DALL·E 2
Frontier labImage
API id
dall-e-2Input / 1M
-
not listed
Output / 1M
-
not listed
Context window
-
tokens
Max output
-
tokens per reply
Hosts
2
2 listings
Released
-
date not published
Where to run it
2 hosts serve DALL·E 2. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
| - | dall-e-2 | ||
AI/ML APIGateway dall-e-2 | - | dall-e-2 |
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- Text
- Produces
- Images
Similar models
This model has no listed price, so these are current models with similar capabilities.
Smaller OpenAI models
Other frontier labs
Open-weight picks
No similar open-weight match.
Model line
Newer and older versions, at each lab's own price.
- UndatedDALL·E 3LatestNot listed
- UndatedDALL·E 2This pageNot listed
Call it
Using AI/ML API's API.
Python
from litellm import completion
response = completion(
model="aiml/dall-e-2",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
Which APIs offer DALL·E 2?
DALL·E 2 runs on 2 APIs: Azure OpenAI and AI/ML API.
Is DALL·E 2 being retired?
No retirement date is scheduled for it on any API we track.
Is there a newer version of DALL·E 2?
Yes. DALL·E 3 is the newest model in this line.
What is DALL·E 2's API model id?
Use dall-e-2 with AI/ML API.
Sources
Raw catalog entry for dall-e-2 on AI/ML API
{
"litellm_provider": "aiml",
"metadata": {
"notes": "DALL-E 2 via AI/ML API - Reliable text-to-image generation"
},
"mode": "image_generation",
"output_cost_per_image": 0.026,
"source": "https://docs.aimlapi.com/",
"supported_endpoints": [
"/v1/images/generations"
]
}