GPT-5 nano API pricing
The smallest GPT-5 tier. Available at listed at platform rate (no published official USD price).
| Route | Input / 1M | Output / 1M |
|---|---|---|
| Platform rate | $0.025 | $0.2 |
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 nano costs at your volume
| Usage level | Input / output per month | Monthly cost |
|---|---|---|
| Light, prototyping, a few thousand calls | 5M / 1M | $0.33 |
| Working (one developer), daily use | 50M / 10M | $3.25 |
| Heavy — team or agent loops in production | 500M / 100M | $32.50 |
Calculated at $0.025 input / $0.2 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 nano is priced
GPT-5 nano will quote you $0.025 per million input tokens, which reads as very cheap. It is. The trap is the other side of the request: output bills at $0.2, 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.025 is genuinely good for.
Where GPT-5 nano sits in the index
GPT-5 nano is 5 of 231 on input rate and 17 of 231 on output rate. A gap of 12 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 nano.
| Ranked by | Position | Percentile | Rate |
|---|---|---|---|
| Input rate | 5 of 231 | 98% | $0.025 |
| Output rate | 17 of 231 | 93% | $0.20 |
| Agent mix 1:3, blended | 17 of 231 | 93% | $0.1563 |
On an agent mix the lowest blended rate in the same index is Gemma2 9B It at $0.01 per 1M tokens, about 15.6× 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 nano specifically the shift is 12 — which is what the re-ranked index exists to show.
GPT-5 nano is 5 of 231 across every model in the index; the comparison that usually settles a choice is OpenAI's own lineup further down.
GPT-5 nano among OpenAI's 12 models
GPT-5 nano is the cheapest of OpenAI's 12 models in this index at $0.025 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 every other model in the group costs more on input than this one.
| Model | In / 1M | Out / 1M | vs this |
|---|---|---|---|
| GPT-5 nano | $0.025 | $0.2 | — |
| GPT-6 Luna | $0.05 | $0.25 | 2.00× |
| GPT-5.6 Luna | $0.1 | $0.6 | 4.00× |
| GPT-5 mini | $0.125 | $1 | 5.00× |
| GPT-6.1 Terra | $0.5 | $2.5 | 20.00× |
| GPT-5 | $0.625 | $5 | 25.00× |
| GPT-5.6 Terra | $1 | $6 | 40.00× |
| GPT-6 Sol | $1 | $5 | 40.00× |
| o3 | $1 | $4 | 40.00× |
On input rate alone, stepping up to GPT-6 Luna costs 2.0× the input rate. 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 |
|---|---|---|---|
| GPT-6 Luna | OpenAI | $0.05 / $0.25 | +$0.07 |
| Claude Haiku 5.5 | Anthropic | $0.05 / $0.25 | +$0.07 |
| MiniMax M3.1 Flash | MiniMax | $0.075 / $0.3 | +$0.15 |
Blended comparison (input + output per 1M). Price is one axis, these are the three closest to GPT-5 nano in blended rate, not interchangeable substitutes for it.
Calling GPT-5 nano
The identifier you send is gpt-5-nano. 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 nano'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-nano",
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 nano 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 nano 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 nano bills from: the output half
Quoting a monthly token figure tells you very little about GPT-5 nano. 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 nano 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% | $1.15 | 1.0× |
| Support triage 20k conversations, 1.5k in / 400 out | 38M | 21% | $2.35 | 1.0× |
| RAG question answering 50k questions, 6k in / 500 out | 325M | 8% | $12.5 | 1.0× |
| Agent loop (coding) 8k sessions, 400k in / 6k out | 3248M | 1% | $89.6 | 1.0× |
| Long-form generation 5k documents, 2k in / 4k out | 30M | 67% | $4.25 | 1.0× |
This is the lowest blended rate in the index at $0.025 / $0.2 per 1M. Even so it is only a rate floor. Whether it can do the work is a separate question from what it costs.
The spread between the first and last row above is not caused by doing more work — it is caused by asking GPT-5 nano 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 $0.2 per 1M output rate.
FAQ
How much does GPT-5 nano cost per million tokens?
$0.025 per million input tokens and $0.2 per million output tokens. No official USD list price is published for this model, so it is billed at platform rate.
Is GPT-5 nano 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 nano cost per month in practice?
At a 5:1 input-to-output ratio it is about $0.33 a month for light use (5M input tokens) and roughly $32.50 for heavy use (500M input). Agent workloads sit at the high end here because every turn resends the context and GPT-5 nano bills output at 8.0x input — see what actually drives Claude Code cost.
Which models cost about the same as GPT-5 nano?
The comparison table further up this page lists the three closest to GPT-5 nano's $0.225 blended rate. If you are choosing on cost alone, test the top two on your own prompts — $0.025 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 nano?
You need an API key, then point your client at the gateway base URL with gpt-5-nano as the model id. On GPT-5 nano 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 nano snippet is in the calling section above.
What is the GPT-5 nano API price per 1M tokens?
$0.025 per 1M input and $0.2 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 nano they differ by 8.0x.
How much more does GPT-5 nano charge for output than input?
Output tokens cost 8.0x what input tokens do here — $0.025 per 1M in against $0.2 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 nano 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 nano cost for a coding agent?
About $32.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 32 dollars a month on GPT-5 nano, halving the resend roughly halves that. See what actually drives agent cost.
Does GPT-5 nano 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.025 in / $0.2 out per 1M. The reason to route it through a gateway is access and one consolidated bill across vendors, not a discount.