GPT-5 mini API pricing
The smaller GPT-5 tier. Available at listed at platform rate (no published official USD price).
| Route | Input / 1M | Output / 1M |
|---|---|---|
| Platform rate | $0.125 | $1 |
USD, standard tier. Rate read from the live rate config on 2026-11-14. OpenAI publishes no USD list price for this model, so nothing here is cross-checked against one — this is a gateway rate, not a discount.
Specifications
| Vendor | OpenAI |
| Context window | — |
| Max output | — |
| Category | US frontier |
What GPT-5 mini costs at your volume
| Usage level | Input / output per month | Monthly cost |
|---|---|---|
| Light, prototyping, a few thousand calls | 5M / 1M | $1.62 |
| Working (one developer), daily use | 50M / 10M | $16.25 |
| Heavy — team or agent loops in production | 500M / 100M | $162.50 |
Calculated at $0.125 input / $1 output per 1M tokens, 8.0× apart on this model. The 5:1 input-to-output assumption in this table is generous, responses longer than that cost more per response than the row suggests, so treat these as floors rather than estimates. Put your own split through the cost calculator before committing a budget.
Cheap in, expensive out: how GPT-5 mini is priced
GPT-5 mini will quote you $0.125 per million input tokens, which reads as very cheap. It is. The trap is the other side of the request: output bills at $1, around 8.0×. A task that sends a short instruction and gets back a long answer pays most of its cost at the output rate, and this model stops being cheap there.
Where the shape works in your favour is the reverse: large input, small output. Classification of big documents, extraction from long text, embedding-adjacent pipelines, anything that swallows a lot and answers briefly. That is what $0.125 is genuinely good for.
Where GPT-5 mini sits in the index
GPT-5 mini is 54 of 231 on input rate and 73 of 231 on output rate. A gap of 19 places, because on this model the output rate is 8.0× the input rate, steeper than the index median of 4.0× An output-heavy workload therefore leaves it almost where it started, which is why the cheapest model per input token is routinely not the cheapest per task. Percentile is the share of the 231 models in this index that cost more than GPT-5 mini.
| Ranked by | Position | Percentile | Rate |
|---|---|---|---|
| Input rate | 54 of 231 | 77% | $0.125 |
| Output rate | 73 of 231 | 68% | $1.00 |
| Agent mix 1:3, blended | 72 of 231 | 69% | $0.7812 |
On an agent mix the lowest blended rate in the same index is Gemma2 9B It at $0.01 per 1M tokens, about 78.1× less than this model at the same ratio. Across the whole index, sorting by input price alone moves a model by as much as 77 places; on GPT-5 mini specifically the shift is 19 — which is what the re-ranked index exists to show.
GPT-5 mini is 54 of 231 across every model in the index; the comparison that usually settles a choice is OpenAI's own lineup further down.
GPT-5 mini among OpenAI's 12 models
GPT-5 mini is the 4th cheapest of OpenAI's 12 models in this index at $0.125 per 1M input tokens. The range inside that group runs from GPT-5 nano at $0.025 to GPT-6 Astra at $5 (a spread of 200×, and this one sits at 5).0× the group's cheapest tier.
| Model | In / 1M | Out / 1M | vs this |
|---|---|---|---|
| GPT-5 nano | $0.025 | $0.2 | 0.20× |
| GPT-6 Luna | $0.05 | $0.25 | 0.40× |
| GPT-5.6 Luna | $0.1 | $0.6 | 0.80× |
| GPT-5 mini | $0.125 | $1 | — |
| GPT-6.1 Terra | $0.5 | $2.5 | 4.00× |
| GPT-5 | $0.625 | $5 | 5.00× |
| GPT-5.6 Terra | $1 | $6 | 8.00× |
| GPT-6 Sol | $1 | $5 | 8.00× |
| o3 | $1 | $4 | 8.00× |
On input rate alone, stepping up to GPT-6.1 Terra costs 4.0× the input rate and dropping to GPT-5.6 Luna cuts it by 20%. Both measured at 2026-11-14, the same check as every other rate on this page.
Full OpenAI range, including models outside this shortlist: OpenAI rate index.
Similarly priced alternatives
| Similarly priced | Vendor | In / out per 1M | vs this |
|---|---|---|---|
| DeepSeek V4 Flash | DeepSeek | $0.22 / $0.66 | −$0.24 |
| Gemini 2.5 Flash | $0.15 / $1.251 | +$0.28 | |
| DeepSeek R1 | DeepSeek | $0.2899 / $1.1596 | +$0.32 |
Blended comparison (input + output per 1M). Price is one axis, these are the three closest to GPT-5 mini in blended rate, not interchangeable substitutes for it.
Calling GPT-5 mini
The identifier you send is gpt-5-mini. Copy it exactly, because a mismatch
returns a model error rather than a connection error, which sends most people to debug the wrong
thing. Everything else is a base URL argument, GPT-5 mini's own SDKs work unchanged.
from openai import OpenAI
client = OpenAI(base_url="https://aicomp.ai/v1", api_key="sk-...")
resp = client.chat.completions.create(
model="gpt-5-mini",
messages=[
{"role": "system", "content": "Answer in one short paragraph."},
{"role": "user", "content": "Explain what changed in this release."},
],
max_tokens=300,
)
# prompt_tokens / completion_tokens 是真实账单的唯一依据 —— 记下来,别猜
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)
Log the usage object on every call, not just while you are optimising. On GPT-5 mini output costs 8.0× what input costs, so the same monthly token count bills very differently depending on how much of it comes back as output — measure your own split before extrapolating from the headline input rate, because rates move with vendor promotions.
Setting it up
Pointing an existing integration at GPT-5 mini is a base URL change, not a rewrite. Pick your tool:
- Claude Code — set the base URL via environment variables
- Cursor — override the API endpoint in settings
- OpenAI / Anthropic SDK — one
base_urlargument - Python (sync), streaming and async examples
- Cutting the bill — eight levers ranked by effect
Where GPT-5 mini bills from: the output half
Quoting a monthly token figure tells you very little about GPT-5 mini. Output here costs 8.0× what input does, above the index median of 4.0× across 231 models, so two deployments moving the same number of tokens can differ by several times depending purely on how much the model writes back. Generation is the bill; everything else is rounding. The five shapes below are the ones GPT-5 mini actually gets used for, priced out at each one's real ratio.
| Workload | Tokens | Output share | Monthly cost | vs cheapest in index |
|---|---|---|---|---|
| Classification / tagging 100k short jobs, 300 in / 20 out | 32M | 6% | $5.75 | 5.0× |
| Support triage 20k conversations, 1.5k in / 400 out | 38M | 21% | $11.75 | 5.0× |
| RAG question answering 50k questions, 6k in / 500 out | 325M | 8% | $62.5 | 5.0× |
| Agent loop (coding) 8k sessions, 400k in / 6k out | 3248M | 1% | $448.00 | 5.0× |
| Long-form generation 5k documents, 2k in / 4k out | 30M | 67% | $21.25 | 5.0× |
The cheapest comparison is GPT-5 nano at $0.025 / $0.2 per 1M — 5.0× cheaper than GPT-5 mini on a blended rate. Treat it as a rate floor, not a recommendation: it says nothing about whether GPT-5 nano can do the work you need GPT-5 mini for.
The spread between the first and last row above is not caused by doing more work — it is caused by asking GPT-5 mini to write more. At 8.0×, the cheapest intervention available to you is shortening responses: a tighter system prompt, a lower max_tokens, a shorter answer format. Optimising the input side barely registers against your $1 per 1M output rate.
FAQ
How much does GPT-5 mini cost per million tokens?
$0.125 per million input tokens and $1 per million output tokens. No official USD list price is published for this model, so it is billed at platform rate.
Is GPT-5 mini cheaper than buying direct?
There is no published official USD price to compare against for this model, it is billed at platform rate, and the reason to route it through a gateway is access and consolidated billing rather than a discount.
What does GPT-5 mini cost per month in practice?
At a 5:1 input-to-output ratio it is about $1.62 a month for light use (5M input tokens) and roughly $162.50 for heavy use (500M input). Agent workloads sit at the high end here because every turn resends the context and GPT-5 mini bills output at 8.0x input — see what actually drives Claude Code cost.
Which models cost about the same as GPT-5 mini?
The comparison table further up this page lists the three closest to GPT-5 mini's $1.125 blended rate. If you are choosing on cost alone, test the top two on your own prompts — $0.125 per input token is only half the equation, the other half is how many tokens a model needs before it finishes the task.
How do I start using GPT-5 mini?
You need an API key, then point your client at the gateway base URL with gpt-5-mini as the model id. On GPT-5 mini it is a one-line change in most SDKs — see the SDK setup guide, or the Claude Code and Cursor guides for those tools. The GPT-5 mini snippet is in the calling section above.
What is the GPT-5 mini API price per 1M tokens?
$0.125 per 1M input and $1 per 1M output. The two directions are quoted separately because a request is billed twice (once for what you send, once for what comes back) and on GPT-5 mini they differ by 8.0x.
How much more does GPT-5 mini charge for output than input?
Output tokens cost 8.0x what input tokens do here — $0.125 per 1M in against $1 per 1M out. The median output-to-input multiple across our full price index is 4.0x, so this model sits above that line. It matters more than it looks: on GPT-5 mini a coding agent's output takes 62% of the bill, so the input rate people usually compare is the smaller half. See why output pricing dominates.
How much does GPT-5 mini cost for a coding agent?
About $162.50 a month at 500M input and 100M output tokens, the shape a coding assistant really produces, because every turn resends the whole context and the model writes more than it reads. The biggest lever is not the model but how much context you resend each turn At 162 dollars a month on GPT-5 mini, halving the resend roughly halves that. See what actually drives agent cost.
Does GPT-5 mini have an official list price?
No, OpenAI does not publish a USD list price for this model, so there is nothing to compare against and it bills at platform rate: $0.125 in / $1 out per 1M. The reason to route it through a gateway is access and one consolidated bill across vendors, not a discount.