LiteLLMModels

DALL·E 2 API Pricing

As of October 10, 2026, DALL·E 2 costs $0.026 per image on AI/ML API.

By OpenAIModel ID aiml/dall-e-2Prices updated Checked
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.

ProviderModel name in LiteLLMPer imageOutputContext
AI/ML APIaiml/dall-e-2$0.026––
Azure OpenAI1024×1024, standard qualityazure/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.

Python SDK
from litellm import image_generation

response = image_generation(
    model="aiml/dall-e-2",
    prompt="A cute baby sea otter",
)
Proxy config.yaml
model_list:
  - model_name: dall-e-2
    litellm_params:
      model: aiml/dall-e-2
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl 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.