DALL·E 2 API Pricing
aiml/dall-e-2- Price
- $0.026 per image
As of November 24, 2026, DALL·E 2 costs $0.026 per image on AI/ML API.
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 $LITELLM_API_KEY" \
-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. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
LiteLLM docs: AI/ML API, Azure OpenAI.
Provider pages: AI/ML API, Azure OpenAI.