GPT-4.1 mini API pricing
OpenAI charges $0.4 per million input tokens and $1.6 per million output tokens for GPT-4.1 mini (gpt-4.1-mini), and $0.1 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.0012, or $0.0006 through the batch API.
GPT-4.1 mini price per million tokens
| Token type | Standard | Batch API |
|---|---|---|
| Input | $0.4 | $0.2 |
| Cached input | $0.1 | – |
| Output | $1.6 | $0.8 |
API model id: gpt-4.1-mini. GPT-4.1 mini supports a 1.05M-token context window, up to 32.8K output tokens, image input and tool calling.
What GPT-4.1 mini costs per request
| Request | 1 request | 1,000 requests | 1M requests |
|---|---|---|---|
| Short chat message (300 in, 200 out) | $0.00044 | $0.44 | $440.00 |
| Typical request (1K in, 500 out) | $0.0012 | $1.20 | $1,200.00 |
| Long document summary (20K in, 1K out) | $0.0096 | $9.60 | $9,600.00 |
| Coding agent step (50K in, 2K out) | $0.0232 | $23.20 | $23,200.00 |
At standard rates. A token is about 4 characters of English text, so 1,000 tokens is roughly 750 words.
How GPT-4.1 mini compares
- For a typical request, GPT-4.1 mini is cheaper than 71% of the other models on apicost.app.
- Claude Haiku 4.5 from Anthropic costs $1 input and $5 output per million tokens, so a typical request is $0.0035: 2.9× the price of GPT-4.1 mini.
- Gemini 3.1 Flash Lite from Google Gemini costs $0.25 input and $1.5 output per million tokens, so a typical request is $0.001: 1.2× cheaper than GPT-4.1 mini.
- DeepSeek Flash from DeepSeek costs $0.3 input and $1.2 output per million tokens, so a typical request is $0.0009: 1.3× cheaper than GPT-4.1 mini.
GPT-4.1 mini price history
GPT-4.1 mini has cost $0.4 per million input tokens and $1.6 per million output tokens since apicost.app started tracking prices on October 22, 2026.
Every LLM API price increase, cut, new and retired model, dated: LLM API price changes.
Models with a similar price
| Model | Provider | Input / 1M | Cached input / 1M | Output / 1M | Typical request |
|---|---|---|---|---|---|
| DeepSeek V4 1 Flash 1017 | Mistral | $0.3 | $0.007 | $1.2 | $0.0009 |
| DeepSeek Flash | DeepSeek | $0.3 | $0.006 | $1.2 | $0.0009 |
| Gemini 3.1 Flash Lite | Google Gemini | $0.25 | $0.025 | $1.5 | $0.001 |
| GPT-5 mini | OpenAI | $0.25 | $0.025 | $2 | $0.00125 |
| Mistral Large 3 | Mistral | $0.5 | $0.05 | $1.5 | $0.00125 |
| Mistral Large 2512 | Mistral | $0.5 | $0.05 | $1.5 | $0.00125 |
| Gemini 2.5 Flash | Google Gemini | $0.3 | $0.03 | $2.5 | $0.00155 |
| Gemini 3.5 Flash Lite | Google Gemini | $0.3 | $0.03 | $2.5 | $0.00155 |
Other OpenAI models
- GPT-4.1 $2 / $8
- GPT-4o $2.5 / $10
- GPT-4o mini $0.15 / $0.6
- GPT-5 $1.25 / $10
- GPT-5 mini $0.25 / $2
- GPT-5 nano $0.05 / $0.4
- GPT-5.1 $1.25 / $10
- GPT-5.2 $1.75 / $14
- GPT-5.4 $2.5 / $15
- GPT-5.4 mini $0.75 / $4.5
- GPT-5.4 nano $0.2 / $1.25
- GPT-5.5 $5 / $30
- GPT-5.6 $4 / $20
- GPT-5.6 Luna $0.2 / $1.2
- GPT-5.6 Terra $2 / $12
- GPT-6 Astra $10 / $50
- GPT-6 Astra Law $10 / $50
- GPT-6 Luna $0.1 / $0.5
- GPT-6 Sol $2 / $10
- GPT-6.1 Sol $2 / $10
- GPT-6.1 Terra $1 / $5
- o3 $2 / $8
Every OpenAI model side by side, with batch, caching and long-context prices: OpenAI API pricing. Ways to pay less: batch API, prompt caching, the cheapest models.
Questions and answers
How much does the GPT-4.1 mini API cost?
OpenAI charges $0.4 per million input tokens and $1.6 per million output tokens for GPT-4.1 mini (gpt-4.1-mini), and $0.1 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.0012, or $0.0006 through the batch API.
Has the GPT-4.1 mini API price changed?
No. GPT-4.1 mini has cost $0.4 per million input tokens and $1.6 per million output tokens since apicost.app started tracking prices on October 22, 2026.
Is there a cheaper way to use GPT-4.1 mini?
Yes. The OpenAI batch API runs requests within 24 hours for $0.2 per million input tokens and $0.8 per million output tokens. Prompt caching lowers the price of repeated input to $0.1 per million tokens.
What is the context window of GPT-4.1 mini?
GPT-4.1 mini accepts up to 1,047,576 input tokens, roughly 786,000 words of English, and writes up to 32,768 output tokens per response. Filling the whole context window once costs $0.42 in input tokens.
Is GPT-4.1 mini cheaper than Claude Haiku 4.5?
Yes. Claude Haiku 4.5 from Anthropic costs $1 input and $5 output per million tokens, so a typical request is $0.0035: 2.9× the price of GPT-4.1 mini.
Source: OpenAI pricing, via the LiteLLM price list.