LiteLLMModels

Flux.2 Pro API Pricing

As of October 10, 2026, Flux.2 Pro costs $0.04 per image on Azure AI Foundry. It has a 32,000-token context window.

By Black Forest LabsModel ID azure_ai/flux.2-proPrices updated Checked
Per image
$0.04
Context window
32,000 tokens
Providers
1
Added to LiteLLM
January 2026

Flux.2 Pro pricing by provider

1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMPer imageContext
Azure AI Foundryazure_ai/flux.2-pro$0.0432K

What Flux.2 Pro costs in practice

Generating 1,000 images

Azure AI Foundry$40.00

Use Flux.2 Pro with LiteLLM

Call Flux.2 Pro 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="azure_ai/flux.2-pro",
    prompt="A cute baby sea otter",
)
Proxy config.yaml
model_list:
  - model_name: flux.2-pro
    litellm_params:
      model: azure_ai/flux.2-pro
      # 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": "flux.2-pro",
    "prompt": "A cute baby sea otter",
    "n": 1,
    "size": "1024x1024"
  }'

Flux.2 Pro FAQ

How much does Flux.2 Pro cost?

Flux.2 Pro costs $0.04 per image on Azure AI Foundry.

What is the context window of Flux.2 Pro?

Flux.2 Pro has a 32,000-token context window.

Which providers offer Flux.2 Pro?

Flux.2 Pro is available from Azure AI Foundry through LiteLLM, using the model name azure_ai/flux.2-pro.

How do I call Flux.2 Pro with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="azure_ai/flux.2-pro", 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 Flux.2 Pro?

Flux.2 Pro was added to LiteLLM's model price file in January 2026.

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: Azure AI Foundry.

Provider pages: Azure AI Foundry.