Codex Mini API Pricing
azure/codex-mini- Input / output
- $1.50 / $6.00 per 1M tokens
- Cache read
- $0.375 / 1M
- Context
- 200K tokens
- Max output
- 100K tokens
As of November 24, 2026, Codex Mini costs $1.50 per 1M input tokens and $6.00 per 1M output tokens from Azure OpenAI, the lowest of 2 providers, with cache reads at $0.375 per 1M tokens. It has a 200,000-token context window and returns up to 100,000 tokens per response.
azure/codex-mini on November 17, 2026. Prices below are the last listed and kept for reference.Codex Mini pricing by provider
4 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 | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| Azure OpenAI | azure/codex-mini | $1.50 | $6.00 | $0.375 | 200K |
| Azure AI Foundry | azure_ai/codex-mini | $1.50 | $6.00 | $0.375 | 200K |
| Azure OpenAIeu | azure/eu/codex-mini | $1.65 | $6.60 | $0.413 | – |
| Azure OpenAIus | azure/us/codex-mini | $1.65 | $6.60 | $0.413 | – |
What Codex Mini costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Azure OpenAI | $6.00 |
| Azure AI Foundry | $6.00 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Azure OpenAI | $16.20 |
| Azure AI Foundry | $16.20 |
Codex Mini cost calculator
At Azure OpenAI's price ($1.50 input, $6.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $45.00 a day, about $1,350 a month. Change the numbers for your workload.
- Per request
- $0.0045
- Per day
- $45.00
- Per month (30 days)
- $1,350
Codex Mini features
Input: text, image. Output: text.
- Function calling
- Parallel tool calls
- Structured output
- Image input
- PDF input
- Reasoning
- Prompt caching
Use Codex Mini with LiteLLM
Call Codex Mini through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/responses. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="azure/codex-mini",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: codex-mini
litellm_params:
model: azure/codex-mini
api_base: os.environ/AZURE_API_BASE
api_key: os.environ/AZURE_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "codex-mini",
"messages": [{"role": "user", "content": "Hello!"}]
}'Codex Mini FAQ
How much does Codex Mini cost?
Codex Mini costs $1.50 per 1M input tokens and $6.00 per 1M output tokens from Azure OpenAI, the lowest of 2 providers, with cache reads at $0.375 per 1M tokens.
What is the context window of Codex Mini?
Codex Mini has a 200,000-token context window and returns up to 100,000 tokens per response.
Which providers offer Codex Mini?
Codex Mini is available from 2 providers through LiteLLM: Azure OpenAI and Azure AI Foundry. The lowest price is on Azure OpenAI.
How do I call Codex Mini with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="azure/codex-mini", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/responses from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does Codex Mini support?
Codex Mini supports function calling, parallel tool calls, structured output, image input, PDF input, reasoning and prompt caching.
When did LiteLLM add Codex Mini?
Codex Mini was added to LiteLLM's model price file in June 2025.
Is Codex Mini being deprecated?
Azure OpenAI deprecated azure/codex-mini on November 17, 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. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
- prices.azure.com/api/retail/prices?$filter=serviceName%20eq%20'Foundry%20Models'%20and%20armRegionName%20eq%20'eastus'%20and%20priceType%20eq%20'Consumption'
- azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/
LiteLLM docs: Azure OpenAI, Azure AI Foundry.
Provider pages: Azure OpenAI, Azure AI Foundry.