# GPT-4.1 mini API pricing retiring 2027-01-14 

| Field | Per 1M tokens |
| --- | --- |
| Input | $0.40 |
| Output | $1.60 |
| Cached input | $0.10 |
| Batch input | $0.20 |
| Batch output | $0.80 |

[Cost calculator](https://apicostcheck.com/calculator/) · [Compare models](https://apicostcheck.com/compare/)

OpenAI has announced the retirement of GPT-4.1 mini (2027-01-14). Prices above apply until then; plan a migration. OpenAI names [GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/) as the replacement. Compared with GPT-4.1 mini, [GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/) costs 75% less on input and 69% less on output. [Provider notice](https://developers.openai.com/api/docs/deprecations) Azure OpenAI lists a different retirement date: 2027-04-14 (model version 2025-04-14; checked 2026-11-18; [Azure OpenAI schedule](https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule)). 

[Report a wrong price](https://apicostcheck.com/board/?cat=data&title=Wrong+price%3A+GPT-4.1+mini&body=Our+page+shows+%240.40+input+%2F+%241.60+output+per+1M.+The+official+page+says%3A+%28paste+the+link+and+the+price%29#new) 

[OpenAI](https://apicostcheck.com/providers/openai/) · Context window 1,047,576 · Max input 1,014,808 · Max output 32,768 [vision](https://apicostcheck.com/?f_vision=yes) · [tool calling](https://apicostcheck.com/?f_tools=yes) · [structured output](https://apicostcheck.com/?f_schema=yes) Per 1,000 tokens (1K): $0.0004 input, $0.0016 output. 

[Calculate my cost →](https://apicostcheck.com/calculator/?model=gpt-4.1-mini) 

Follow this price: 

Confirm with the link we send; every alert has a one-click unsubscribe. [How alerts work](https://apicostcheck.com/alerts/) · [Privacy](https://apicostcheck.com/privacy/#alert-data) 

### Atom feed ▾

[Atom](https://apicostcheck.com/models/gpt-4.1-mini/feed.xml)[JSON](https://apicostcheck.com/data/models/gpt-4.1-mini.json)

Get notified in any feed reader. 

Billing rules for caching, Batch and long prompts: [OpenAI API cost guide](https://apicostcheck.com/openai-api-cost-calculator/). 

## Price in context

GPT-4.1 mini ranks 5 of 26 current OpenAI models by output price, cheapest first ([GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/) is the cheapest at $0.50, [GPT-5.4 Pro](https://apicostcheck.com/models/gpt-5.4-pro/) the most expensive at $180.00). Output tokens cost 4× the input price; the median across all 126 current models is 5×. Against the whole table (median $1.25 input / $4.40 output per 1M), GPT-4.1 mini is cheaper on both input and output.

Cached input costs 25% of the normal input price ($0.10 vs $0.40 per 1M). In the support-chatbot scenario with 60% cache hits the month comes to $136 instead of $168 without caching (19% less). There is no separate cache-write charge: repeated prefixes are discounted automatically. The Batch API bills $0.20 input / $0.80 output per 1M (50% below the live rates) for jobs that are not time-critical; the batch-processing scenario costs $630 per month.

The context window is 1,047,576 tokens, roughly 2,095 pages of English text; 34% of current models accept more. The closest model from another provider by price is [Qwen3.7 Plus](https://apicostcheck.com/models/qwen3.7-plus/) ($0.40 / $1.60); the cheapest non-reasoning model for the chatbot scenario is [Ministral 3b (latest)](https://apicostcheck.com/models/ministral-3b-latest/) at $14.28 per month against $136 for GPT-4.1 mini.

## What it costs per month

| Scenario (per month) | GPT-4.1 mini |
| --- | --- |
| Customer support chatbot 5,000 req/day · 1,200 in · 400 out · cache 60% | $136 |
| RAG over documents 2,000 req/day · 8,000 in · 600 out · cache 30% | $206 |
| Coding agent 1,500 req/day · 25,000 in · 2,000 out · cache 80% | $324 |
| Deep reasoning 800 req/day · 3,000 in · 6,000 out · cache 20% | $255 |
| Batch processing 50,000 req/day · 1,500 in · 150 out · batch | $630 |

Adjust the numbers in the [calculator](https://apicostcheck.com/calculator/). 

## Cheaper alternatives

Lowest monthly cost for the chatbot scenario among non-reasoning models: 

- [Ministral 3b (latest)](https://apicostcheck.com/models/ministral-3b-latest/) — $14.28/mo
- [Ministral 8b (latest)](https://apicostcheck.com/models/ministral-8b-latest/) — $21.42/mo
- [Hy4 Flash](https://apicostcheck.com/models/hy4-flash/) — $22.22/mo
- [Ministral 14b (latest)](https://apicostcheck.com/models/ministral-14b-latest/) — $28.56/mo
- [Mercury 2.5](https://apicostcheck.com/models/mercury-2.5/) — $61.56/mo 

## Comparisons

- [Compare GPT-4.1 mini with any model →](https://apicostcheck.com/compare/?m=gpt-4.1-mini) 

## Other OpenAI models

[GPT-6.2 Astra](https://apicostcheck.com/models/gpt-6.2-astra/), [GPT-6.2 Astra Law](https://apicostcheck.com/models/gpt-6.2-astra-law/), [GPT-6.2 Sol](https://apicostcheck.com/models/gpt-6.2-sol/), [GPT-6.1 Sol](https://apicostcheck.com/models/gpt-6.1-sol/), [GPT-6 Sol](https://apicostcheck.com/models/gpt-6-sol/), [GPT-6 Astra Law](https://apicostcheck.com/models/gpt-6-astra-law/), [GPT-6 Astra](https://apicostcheck.com/models/gpt-6-astra/), [GPT-5.6 Sol](https://apicostcheck.com/models/gpt-5.6-sol/), [GPT-5.6 Terra](https://apicostcheck.com/models/gpt-5.6-terra/), [GPT-5.5](https://apicostcheck.com/models/gpt-5.5/), [GPT-5.5 Pro](https://apicostcheck.com/models/gpt-5.5-pro/), [GPT-5.4](https://apicostcheck.com/models/gpt-5.4/), [GPT-5.4 Pro](https://apicostcheck.com/models/gpt-5.4-pro/), [GPT-5.3 Codex](https://apicostcheck.com/models/gpt-5.3-codex/) retiring 2027-04-01, [GPT-5.2](https://apicostcheck.com/models/gpt-5.2/), [GPT-5.2 Pro](https://apicostcheck.com/models/gpt-5.2-pro/), [GPT-5.1](https://apicostcheck.com/models/gpt-5.1/) retiring 2027-04-01, [GPT-4.1](https://apicostcheck.com/models/gpt-4.1/) retiring 2027-01-14, [GPT-4o](https://apicostcheck.com/models/gpt-4o/) retiring 2027-01-14, [GPT-6.1 Terra](https://apicostcheck.com/models/gpt-6.1-terra/), [GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/), [GPT-5.6 Luna](https://apicostcheck.com/models/gpt-5.6-luna/), [GPT-5.4 mini](https://apicostcheck.com/models/gpt-5.4-mini/), [GPT-5.4 nano](https://apicostcheck.com/models/gpt-5.4-nano/) retiring 2027-04-01, [GPT-4o mini](https://apicostcheck.com/models/gpt-4o-mini/) retiring 2027-01-14 · [All OpenAI API prices →](https://apicostcheck.com/providers/openai/) 

## Models at a similar price

[Qwen3.7 Plus](https://apicostcheck.com/models/qwen3.7-plus/) ($0.40/$1.60), [Qwen Coder](https://apicostcheck.com/models/qwen-coder/) ($0.30/$1.50), [GLM-5.3 FlashX](https://apicostcheck.com/models/glm-5.3-flashx/) ($0.37/$1.25), [GLM-4.5v](https://apicostcheck.com/models/glm-4.5v/) ($0.60/$1.80), [Qwen Plus](https://apicostcheck.com/models/qwen-plus/) ($0.40/$1.20), [DeepSeek Flash (V4.1)](https://apicostcheck.com/models/deepseek-v4-flash/) ($0.30/$1.20) 

## Price history

No price changes recorded since tracking began on 2026-10-08. [See all price changes →](https://apicostcheck.com/price-changes/)

## Source and checks

| | |
| --- | --- |
| Data source | [LiteLLM price list](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json) (MIT) |
| Official pricing | [developers.openai.com ↗](https://developers.openai.com/api/docs/pricing) |
| Last synced | 2026-11-24 01:00 UTC |
| Last price change | No price changes recorded since tracking began on 2026-10-08. |
| Cross-check | Matches models.dev |
| Official check | Verified against the [official page](https://developers.openai.com/api/docs/pricing.md) on 2026-11-24 (automatic check) |
| Price region | Not confirmed by an official check |

| Field | This site | Official | Status |
| --- | --- | --- | --- |
| Input | $0.40 | $0.40 | ✓ official |
| Output | $1.60 | $1.60 | ✓ official |
| Cached input | $0.10 | $0.10 | ✓ official |
| Batch input | $0.20 | $0.20 | ✓ official |
| Batch output | $0.80 | $0.80 | ✓ official |
| Context window | 1,047,576 | — | – unchecked |
| Max input | 1,014,808 | — | – unchecked LiteLLM lists 1,047,576 |
| Max output | 32,768 | — | – unchecked |

✓ official = the official page's value is in use (other sources' values noted) · ✓ verified = other source equals the official page · ≠ mismatch = differs and is held for confirmation; both shown · … pending = the automatic check could not read the page · – unchecked = not listed on the official page or not checked yet

Cite: GPT-4.1 mini API pricing, https://apicostcheck.com/models/gpt-4.1-mini/, retrieved 2026-11-24. Reuse under CC BY 4.0; a plain or nofollow link is fine.

---
Source: https://apicostcheck.com/models/gpt-4.1-mini/ · prices in USD per 1M tokens, synced 2026-11-24 01:00 UTC · Free to reuse under CC BY 4.0 with attribution to apicostcheck.com (a plain or nofollow link is fine). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
