

























GPT-5 is OpenAI's most powerful model to date — a unified reasoning model that succeeds the o3 and o4-mini series while folding in the conversational fluency of GPT-4o. It ships with a 400K context window, 128K max output tokens, and built-in chain-of-thought reasoning that can tackle everything from multi-step math proofs to complex code generation.
But power comes at a price. GPT-5's pricing structure introduces a concept that catches many developers off guard: reasoning tokens. These invisible tokens are generated during the model's internal thinking process, and they're billed at the output rate. If you don't understand how they work, your API bill can balloon to 5–10x what you expected.
This guide breaks down every aspect of GPT-5 API pricing — base rates, reasoning token mechanics, automatic caching, the Batch API discount, and how to cut your costs by 45% using Crazyrouter as an API proxy. Whether you're building a production app or experimenting with GPT-5 for the first time, this is the pricing reference you need.
Last updated: April 27, 2026.
GPT-5's pricing follows OpenAI's standard per-token model, but with rates that reflect its position as a frontier reasoning model.
| Component | Price per Million Tokens |
|---|---|
| Input tokens | $1.25 |
| Cached input tokens | $0.125 (90% discount) |
| Output tokens | $10.00 |
At first glance, the input price looks reasonable — 1.25permilliontokensiscompetitivewithotherfrontiermodels.Theoutputpriceof1.25 per million tokens is competitive with other frontier models. The output price of 10.00/MTok is where costs add up, especially once you factor in reasoning tokens (more on that below).
For comparison, here's how GPT-5 stacks up against other OpenAI models:
| Model | Input ($/MTok) | Output ($/MTok) | Context |
|---|---|---|---|
| GPT-5 | $1.25 | $10.00 | 400K |
| o3 | $2.00 | $8.00 | 200K |
| o4-mini | $0.40 | $1.60 | 200K |
| GPT-4o | $2.50 | $10.00 | 128K |
| GPT-4.1 | $2.00 | $8.00 | 1M |
GPT-5 actually has cheaper input tokens than GPT-4o and GPT-4.1, while matching or exceeding their capabilities. The 400K context window is double what o3 offered. On paper, it's a strong value proposition — until reasoning tokens enter the picture.
This is the single most important concept to understand about GPT-5 pricing. Get this wrong, and your costs will be unpredictable.
When GPT-5 processes a complex request, it doesn't jump straight to an answer. It thinks first. The model generates an internal chain of thought — breaking down the problem, considering approaches, checking its work — before producing the visible response you see in the API output.
These internal thinking steps consume reasoning tokens. You don't see them in the response content (they're hidden by default), but they absolutely show up on your bill.
Reasoning tokens are billed at the output token rate — $10.00 per million tokens. This is the critical detail. Even though you never see these tokens, they cost the same as the visible output.
Here's what a typical API response looks like:
In this example, the total completion tokens are 8,500 — but only 2,100 of those are the visible response. The remaining 6,400 are reasoning tokens. You're paying for 8,500 output tokens, not 2,100.
The ratio of reasoning tokens to visible output depends on the complexity of the task:
This means a request that produces 1,000 visible output tokens might actually consume 5,000–10,000 total output tokens. At 10/MTok,that′sthedifferencebetween10/MTok, that's the difference between 0.01 and $0.10 for a single request.
reasoning_effort#OpenAI provides a reasoning_effort parameter that lets you control how much thinking GPT-5 does. This is your primary lever for managing reasoning token costs.
| Level | Behavior | Reasoning Token Impact |
|---|---|---|
minimal | Bare minimum reasoning | ~0.5x visible output |
low | Light reasoning | ~1–2x visible output |
medium | Balanced (default for many tasks) | ~2–5x visible output |
high | Deep reasoning, maximum accuracy | ~5–10x visible output |
Rule of thumb: Use low or minimal for straightforward tasks (summarization, translation, simple Q&A). Reserve medium and high for tasks where accuracy matters — math, code, complex analysis. This single parameter can cut your costs by 50–80% on routine requests.
GPT-5 supports automatic prompt caching — and unlike previous OpenAI models, you don't need to do anything to enable it. It just works.
When you send a request to GPT-5, OpenAI automatically caches the prompt prefix. If a subsequent request shares the same prefix (system prompt, few-shot examples, or any repeated content at the beginning of the prompt), the cached portion is billed at the cached input rate: **0.125/MTok∗∗insteadof0.125/MTok** instead of 1.25/MTok — a 90% discount.
Cached prompts are retained for up to 24 hours with extended retention, though the exact duration depends on usage patterns. Frequently accessed caches are kept longer. Infrequently used caches may expire sooner.
Caching is most valuable when you have:
Suppose your system prompt is 10,000 tokens and you make 1,000 requests per day:
That's 11.25savedperday—11.25 saved per day — 337.50 per month — just from automatic caching on the system prompt alone.
OpenAI's Batch API lets you submit large batches of requests and receive results within 24 hours. The tradeoff: you give up real-time responses in exchange for a 50% discount on all token costs.
| Component | Standard Price | Batch API Price |
|---|---|---|
| Input tokens | $1.25/MTok | $0.625/MTok |
| Cached input | $0.125/MTok | $0.0625/MTok |
| Output tokens | $10.00/MTok | $5.00/MTok |
The Batch API is ideal for:
.jsonl file with your requestsCombining Batch API with automatic caching can yield dramatic savings. If your batch requests share common prefixes, you get the 50% batch discount on top of the 90% caching discount on input tokens — effectively paying $0.0625/MTok for cached input in batch mode.
Crazyrouter is an API proxy that gives you access to GPT-5 (and 200+ other models) at significantly reduced prices. It's fully compatible with the OpenAI SDK — you just change the base_url and API key.
| Component | OpenAI Official | Crazyrouter (55%) | You Save |
|---|---|---|---|
| Input tokens | $1.25/MTok | $0.6875/MTok | 45% |
| Output tokens | $10.00/MTok | $5.50/MTok | 45% |
Crazyrouter charges 55% of OpenAI's official pricing, which means you save 45% on every token — input and output, including reasoning tokens.
Switching to Crazyrouter takes two lines of code:
Let's walk through three realistic scenarios to see how GPT-5 costs play out in practice — and how reasoning tokens, caching, and Crazyrouter affect the bottom line.
Setup: 5,000-token system prompt, average 500-token user message, 800-token visible response, low reasoning effort.
| Cost Component | Tokens/Day | OpenAI Price | Crazyrouter Price |
|---|---|---|---|
| Input (first request, uncached) | 5.5M | $6.88 | $3.78 |
| Input (cached, 9,999 requests) | 49.995M × cached | $6.25 | $3.44 |
| Output (incl. reasoning) | 16M | $160.00 | $88.00 |
| Daily total | $173.13 | $95.22 | |
| Monthly total | $5,193.90 | $2,856.60 |
Monthly savings with Crazyrouter: $2,337.30
Note how output costs dominate even with low reasoning effort. The 5,000-token system prompt is almost free after the first request thanks to caching.
Setup: 2,000-token system prompt, 3,000-token code context, 2,000-token visible output, high reasoning effort for maximum code quality.
| Cost Component | Tokens/Day | OpenAI Price | Crazyrouter Price |
|---|---|---|---|
| Input (mostly cached) | 2.5M | $0.63 | $0.35 |
| Output (incl. reasoning) | 9M | $90.00 | $49.50 |
| Daily total | $90.63 | $49.85 | |
| Monthly total | $2,718.90 | $1,495.50 |
Monthly savings with Crazyrouter: $1,223.40
This scenario shows the reasoning token multiplier in action. The visible output is only 2,000 tokens, but you're paying for 18,000 tokens of output per request. At high reasoning effort, the model is doing extensive internal planning and code review — great for quality, expensive for your wallet.
Cost optimization tip: Use high reasoning for complex algorithmic tasks and low for boilerplate code generation. A smart routing layer that adjusts reasoning_effort based on task complexity can cut costs by 60%+ without sacrificing quality where it matters.
Setup: Processing 50,000 product descriptions. 200-token input per item, 500-token output, minimal reasoning effort. Using Batch API.
| Cost Component | Total Tokens | OpenAI Batch Price | Crazyrouter Price |
|---|---|---|---|
| Input | 10M | $6.25 (batch) | $3.44 |
| Output (incl. reasoning) | 37.5M | $187.50 (batch) | $103.13 |
| Total | $193.75 | $106.57 |
Savings with Crazyrouter: $87.18 on a single batch run
For batch workloads, combining the Batch API's 50% discount with Crazyrouter's 45% discount yields massive savings. The same job at standard OpenAI rates would cost 387.50—you′repayingjust387.50 — you're paying just 106.57 through Crazyrouter, a 72% total reduction.
Reasoning tokens are the biggest cost driver. They're billed at the output rate ($10/MTok) and can be 2–10x the visible output. Always check completion_tokens_details.reasoning_tokens in your API responses to understand your actual costs.
Use reasoning_effort strategically. Not every request needs deep thinking. Set low or minimal for simple tasks, medium for general use, and high only when accuracy is critical. This single parameter can reduce output costs by 50–80%.
Automatic caching is free money. Structure your prompts with static content first (system prompt, few-shot examples) and dynamic content last. The 90% discount on cached input tokens adds up fast at scale.
Batch API for async workloads. If you don't need real-time responses, the 50% discount on all tokens is too good to ignore. Content pipelines, data processing, and evaluation runs should always use batch.
Crazyrouter saves 45% on everything. Same API, same SDK, same response format — just cheaper. At scale, this translates to thousands of dollars per month in savings.
GPT-5 is a remarkable model, but its costs can escalate quickly if you're not paying attention to reasoning tokens. The good news: between reasoning_effort tuning, automatic caching, Batch API, and Crazyrouter's 45% discount, you have multiple levers to keep costs under control.
Ready to cut your GPT-5 API costs by 45%?
👉 Get started with Crazyrouter — create an account, grab your API key, and swap your base_url. It takes less than a minute.
No subscriptions. No minimums. Just cheaper tokens.
Disclaimer: Pricing information is accurate as of April 27, 2026. OpenAI may change pricing at any time. Crazyrouter pricing is based on current rates and subject to change. Always verify current pricing on the official OpenAI and Crazyrouter websites before making purchasing decisions. Token usage estimates in the scenarios above are approximations — actual reasoning token consumption varies by task complexity, prompt structure, and model behavior.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。