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 Image 2.6 Flare
GPT Image 2.6 Flare is OpenAI's speed-oriented image generation and editing model, released November 4, 2026 in the GPT Image 2.6 family alongside GPT Image 2.6 Sunburst. OpenAI says both 2.6 models generate images 50% faster than before, and Flare can produce an image in as little as six seconds at low quality. OpenAI positions Flare for posters, product imagery, and other layout-focused work. The API supports image markup, so requests can mark specific areas to change, and a complexity setting that controls how much planning the model does. OpenAI recommends low complexity for most quick edits and medium or high for scenes with many elements or constraints. At low quality and 1024x1024 resolution, an image costs $0.0247.
ImageGPT Image 2.6 Sunburst
GPT Image 2.6 Sunburst is an image generation and editing model from OpenAI, released November 4, 2026 as part of the GPT Image 2.6 family alongside GPT Image 2.6 Flare. It takes text and image input and returns generated or edited images. OpenAI positions Sunburst for higher-quality generation and stronger consistency across edits, while Flare focuses on speed and layout quality. OpenAI says the 2.6 models generate images 50% faster than GPT Image 2.5. It is available through the OpenAI API and suits developers building campaign creative, product imagery, or multi-step editing workflows. At low quality and 1024x1024 resolution, an image costs $0.0247.
ChatGPT-6.1 Terra
GPT-6.1 Terra is a mid-tier OpenAI model that follows GPT-5.6 Terra in the Terra line. We found no official OpenAI announcement or published benchmarks for it, so details here come from the provider listing and press reports. It accepts text, image, and file input and returns text. It has a 1,050,000-token context window, 128,000 max output tokens, and supports tool calling. Pricing is $1 per million input tokens and $5 per million output tokens, lower than GPT-6.1 Sol's $2 and $10. The Information reports that OpenAI intends Terra to outperform GPT-6.1 Sol at a lower price, though we could not verify this. It suits cost-sensitive agentic and document workloads.
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