GPT-5 API pricing
OpenAI's GPT-5 tier. Available at listed at platform rate (no published official USD price).
| Route | Input / 1M | Output / 1M |
|---|---|---|
| Platform rate | $0.625 | $5 |
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 costs at your volume
| Usage level | Input / output per month | Monthly cost |
|---|---|---|
| Light, prototyping, a few thousand calls | 5M / 1M | $8.12 |
| Working (one developer), daily use | 50M / 10M | $81.25 |
| Heavy — team or agent loops in production | 500M / 100M | $812.50 |
Calculated at $0.625 input / $5 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.
Reading GPT-5's numbers correctly
$0.625 per million input tokens looks like the headline, and it is the one people compare. It is also the smaller half of the bill. Output here runs at 8.0× input, so on any interactive workload the generation side decides what you actually pay. Comparing this model against another on input alone will point you the wrong way.
This is a reasonable rate for agent loops and interactive editing, where the turn count is high but nobody in particular resends a huge context. It is a poor fit for anything that resends a large context every turn, because at $0.625 the input side stops being negligible.
Where GPT-5 sits in the index
GPT-5 is 119 of 231 on input rate and 165 of 231 on output rate. A gap of 46 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 pushes it 46 places down the table, 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.
| Ranked by | Position | Percentile | Rate |
|---|---|---|---|
| Input rate | 119 of 231 | 48% | $0.625 |
| Output rate | 165 of 231 | 29% | $5.00 |
| Agent mix 1:3, blended | 164 of 231 | 29% | $3.9062 |
On an agent mix the lowest blended rate in the same index is Gemma2 9B It at $0.01 per 1M tokens, about 390.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 specifically the shift is 46 — which is what the re-ranked index exists to show.
GPT-5 is 119 of 231 across every model in the index; the comparison that usually settles a choice is OpenAI's own lineup further down.
GPT-5 among OpenAI's 12 models
GPT-5 is the 6th cheapest of OpenAI's 12 models in this index at $0.625 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 25).0× the group's cheapest tier.
| Model | In / 1M | Out / 1M | vs this |
|---|---|---|---|
| GPT-6 Luna | $0.05 | $0.25 | 0.08× |
| GPT-5.6 Luna | $0.1 | $0.6 | 0.16× |
| GPT-5 mini | $0.125 | $1 | 0.20× |
| GPT-6.1 Terra | $0.5 | $2.5 | 0.80× |
| GPT-5 | $0.625 | $5 | — |
| GPT-5.6 Terra | $1 | $6 | 1.60× |
| GPT-6 Sol | $1 | $5 | 1.60× |
| o3 | $1 | $4 | 1.60× |
| GPT-6.1 Sol | $1 | $5 | 1.60× |
On input rate alone, stepping up to GPT-5.6 Terra costs 1.6× the input rate and dropping to GPT-6.1 Terra 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 |
|---|---|---|---|
| Gemini 2.5 Pro | $0.625 / $5 | same | |
| Claude Sonnet 5 | Anthropic | $1 / $5 | +$0.38 |
| Grok 4.1 | xAI | $1 / $5 | +$0.38 |
Blended comparison (input + output per 1M). Price is one axis, these are the three closest to GPT-5 in blended rate, not interchangeable substitutes for it.
Calling GPT-5
The identifier you send is gpt-5. 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'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",
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 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 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 bills from: the output half
Quoting a monthly token figure tells you very little about GPT-5. 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 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% | $28.75 | 25.0× |
| Support triage 20k conversations, 1.5k in / 400 out | 38M | 21% | $58.75 | 25.0× |
| RAG question answering 50k questions, 6k in / 500 out | 325M | 8% | $312.5 | 25.0× |
| Agent loop (coding) 8k sessions, 400k in / 6k out | 3248M | 1% | $2240.00 | 25.0× |
| Long-form generation 5k documents, 2k in / 4k out | 30M | 67% | $106.25 | 25.0× |
The cheapest comparison is GPT-5 nano at $0.025 / $0.2 per 1M — 25.0× cheaper than GPT-5 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 for.
The spread between the first and last row above is not caused by doing more work — it is caused by asking GPT-5 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 $5 per 1M output rate.
FAQ
How much does GPT-5 cost per million tokens?
$0.625 per million input tokens and $5 per million output tokens. No official USD list price is published for this model, so it is billed at platform rate.
Is GPT-5 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 cost per month in practice?
At a 5:1 input-to-output ratio it is about $8.12 a month for light use (5M input tokens) and roughly $812.50 for heavy use (500M input). Agent workloads sit at the high end here because every turn resends the context and GPT-5 bills output at 8.0x input — see what actually drives Claude Code cost.
Which models cost about the same as GPT-5?
The comparison table further up this page lists the three closest to GPT-5's $5.625 blended rate. If you are choosing on cost alone, test the top two on your own prompts — $0.625 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?
You need an API key, then point your client at the gateway base URL with gpt-5 as the model id. On GPT-5 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 snippet is in the calling section above.
What is the GPT-5 API price per 1M tokens?
$0.625 per 1M input and $5 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 they differ by 8.0x.
How much more does GPT-5 charge for output than input?
Output tokens cost 8.0x what input tokens do here — $0.625 per 1M in against $5 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 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 cost for a coding agent?
About $812.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 812 dollars a month on GPT-5, halving the resend roughly halves that. See what actually drives agent cost.
Does GPT-5 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.625 in / $5 out per 1M. The reason to route it through a gateway is access and one consolidated bill across vendors, not a discount.