DALL·E 2 API Pricing
As of October 10, 2026, DALL·E 2 costs $0.026 per image on AI/ML API.
- Per image
- $0.026
- Providers
- 2
- Added to LiteLLM
- January 2024
DALL·E 2 pricing by provider
2 listings across 2 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Per image | Output | Context |
|---|---|---|---|---|
| AI/ML API | aiml/dall-e-2 | $0.026 | – | – |
| Azure OpenAI1024×1024, standard quality | azure/standard/1024-x-1024/dall-e-2 | – | $0 | – |
What DALL·E 2 costs in practice
Generating 1,000 images
| AI/ML API | $26.00 |
Use DALL·E 2 with LiteLLM
Call DALL·E 2 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/images/generations. LiteLLM tracks the cost of every request at these prices.
from litellm import image_generation
response = image_generation(
model="aiml/dall-e-2",
prompt="A cute baby sea otter",
)model_list:
- model_name: dall-e-2
litellm_params:
model: aiml/dall-e-2
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "dall-e-2",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'DALL·E 2 FAQ
How much does DALL·E 2 cost?
DALL·E 2 costs $0.026 per image on AI/ML API.
Which providers offer DALL·E 2?
DALL·E 2 is available from 2 providers through LiteLLM: AI/ML API and Azure OpenAI.
How do I call DALL·E 2 with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="aiml/dall-e-2", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/images/generations from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
When did LiteLLM add DALL·E 2?
DALL·E 2 was added to LiteLLM's model price file in January 2024.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:
LiteLLM docs: AI/ML API, Azure OpenAI.
Provider pages: AI/ML API, Azure OpenAI.
