OpenAI: DALL·E 2
This model is no longer available.Add AI to your application with Puter.js.
Explore Other ModelsModel Card
DALL·E 2 is OpenAI's earlier text-to-image model released in 2022 that generates images up to 1024x1024 pixels and supports inpainting, outpainting, and image variations. It offers more control in prompting and allows multiple images per request but produces lower quality results than newer models. DALL·E 2 is now deprecated and will be discontinued in May 2026.
Cost Per Image $0.02
per generation
Configuration N/A
resolution
Release Date Apr 6, 2022
Code Example
Add AI to your app with the Puter.js AI API, no API keys or setup required.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2img("A serene mountain landscape at sunset").then(image => {
document.body.appendChild(image);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A serene mountain landscape at sunset").then(image => {
document.body.appendChild(image);
});
</script>
</body>
</html>
More AI Models From OpenAI
GPT-6 Sol
GPT-6 Sol is OpenAI's mid-tier model in the GPT-6 family, released September 22, 2026 as a faster, cheaper counterpart to the flagship GPT-6 Astra, built on the same training methods. OpenAI positions it for complex development work that developers run repeatedly, such as building features, reviewing code, debugging, and analyzing data. OpenAI reports Sol scoring 68.8% on the DeepSWE 1.1 coding benchmark, 60.5% on OSWorld 2.0 for computer use at xhigh effort, and 56.4% on Agents' Last Exam, a test of professional work across 55 sub-industries. The company says Sol makes about half as many factual errors as GPT-5.6 Sol, approaching Astra-level reliability at a lower cost. At $2 per million input tokens and $10 per million output tokens, half of GPT-5.6 Sol's rate, Sol matches Claude Sonnet 5's standard pricing, though no published benchmark compares the two models directly.
ChatGPT-6 Sol Pro
GPT-6 Sol Pro is OpenAI's higher-effort configuration of GPT-6 Sol, the mid-tier model in the GPT-6 family released September 22, 2026 alongside the flagship GPT-6 Astra. Following the pattern OpenAI used for GPT-5.6 Sol Pro and GPT-6 Astra Pro, it runs the same underlying Sol model with reasoning effort set to pro rather than a separate, larger checkpoint, which is why it carries identical pricing to base Sol. At $2 per million input tokens and $10 per million output tokens, it shares Sol's 1,050,000-token context window and 128,000 max output tokens, along with function calling and adjustable reasoning effort. Sol Pro suits complex development work, coding, computer use, and data analysis where response quality on harder requests matters more than shaving cost or latency.
ChatGPT-6 Luna
GPT-6 Luna is OpenAI's fast, low-cost model in the GPT-6 family, released September 22, 2026 alongside GPT-6 Sol as smaller, cheaper counterparts to the flagship GPT-6 Astra. OpenAI built both on the training methods behind Astra, carrying over its factuality and alignment gains into models meant for high-volume use. Luna targets tightly scoped, high-volume work such as summarizing documents, extracting information, and answering straightforward questions. On DeepSWE 1.1, a coding benchmark, OpenAI reports Luna scoring 66.6%, close behind Sol's 68.8%. OpenAI also says that at higher reasoning-effort settings, Luna can match GPT-5.6 Sol's quality at roughly a hundredth of the cost. At $0.10 per million input tokens and $0.50 per million output tokens, it costs 50% less on input and 58% less on output than GPT-5.6 Luna, positioning it for applications that run at scale rather than tasks needing peak accuracy.
Frequently Asked Questions
DALL·E 2 is no longer available through Puter.js. Explore other AI models for alternatives.
| Price | |
|---|---|
| Per image | $0.02 |
DALL·E 2 was created by OpenAI and released on Apr 6, 2022.
Yes — the DALL·E 2 API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Get started with Puter.js
Add AI to your application without worrying about API keys or setup.
Explore Models View Tutorials