openai/dall-e-2
Model 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
API Usage Example
Add DALL·E 2 image generation to your app with just a few lines of code.
No API keys, no backend, no configuration required.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A serene mountain landscape at sunset", {
model: "openai/dall-e-2"
}).then(image => {
document.body.appendChild(image);
});
</script>
</body>
</html>
Get started with Puter.js
Add DALL·E 2 image generation to your app without worrying about API keys or setup.
Read the Docs View Tutorials