GPT-5 API pricing, limits, and evaluation context

GPT-5 lists $1.25/1M input and $10/1M output with a 400K context window. It still covers a wide range of general text and coding work at a low rate, but the newer GPT-5.6 tiers now set OpenAI's default price points.

By benchr Editorial Team · · Figures verified against official sources, July 24, 2026 · View changelog

Input / 1MOpenAI · Aug 2025
Output / 1MOpenAI
SWE-benchofficial
Contextmax context window

Pricing breakdown

gpt-5 — official provider pricing
TierRate / 1M tokens
Standard input$1.250
Cached input$0.125
Standard output$10.000
Context window400,000 tokens
Max output128,000 tokens

The 400K context ceiling

GPT-5's 400K limit is below the 1M-token limits listed for some Claude, DeepSeek, and Gemini models. The difference can matter for large repositories, complete legal-document sets, or extended agent conversations. Measure the full request and expected output before choosing a tier; usable input is lower than the headline window when the response also occupies context.

A 90% cached-input discount

OpenAI prices GPT-5 cached input at $0.125/1M tokens, 90% below the $1.25 standard input rate. For agentic workloads with large repeated system prompts, eligible cache hits can sharply cut the repeated-prefix portion of the input bill.

Capabilities to test

GPT-5 is positioned for general-purpose text work such as writing, summarization, Q&A, and analysis. OpenAI reports 74.9% on SWE-bench. Treat that figure as one coding signal and test assisted-development tasks with the same review process you will use in production.

Cost scenarios

At 10M input tokens + 3M output tokens per month: $12.50 input + $30 output = $42.50/month. At 100M + 30M: $425/month. Using the listed rates and the same token mix, the corresponding examples are $540/month for Claude Sonnet and $1,250/month for GPT-5.5. Actual cost per accepted result also depends on caching, retries, latency, and review time.

Use-case fit

Consider for: General-purpose production traffic, broad text tasks, and coding agents that fit within the 400K context limit.

Skip if: You need deeper reasoning — price GPT-5.6 Sol or GPT-6 Astra; you need a context window above 400K tokens.

At $1.25/1M input and $10/1M output, GPT-5 should be judged on total task cost rather than headline input price alone. Long prompts, retries, and output-heavy generations can make output pricing dominate the bill. Its 400,000-token context limit is useful only if retrieval quality and latency remain acceptable on your own documents. For coding-heavy evaluation, compare the 74.9% SWE-bench figure against your expected human-review cost.

Decision checklist

Before routing production traffic to GPT-5, run a small evaluation that matches the workload you actually pay for: prompt length, expected output length, cache reuse, retry behavior, and human-review rate. A public benchmark is a useful signal, but it does not tell you whether this model is cheaper for your own calls.

Benchmark it against one lower-cost option and one higher-capability option. Routing may be more economical than choosing a single default for every request. Verify the live model ID, rate limits, and any regional availability constraints before treating the published token price as the final production cost.

Output-heavy workloads can cost substantially more than the input headline suggests.

Frequently asked

How should I compare GPT-5 with DeepSeek V4-Pro for coding?

The cited figures are 74.9% and 80.6% on SWE-bench Verified, with listed input rates of $1.25/1M and, since August 16, 2026, $1.32/1M at peak or $0.66/1M off-peak. One benchmark and the token rate do not establish cost per accepted task. Test matched repository work and include latency, retries, human review, integration effort, and deployment requirements.

Does GPT-5 support tool calls and structured output?

OpenAI documents tool calling, structured outputs, instructions, and streaming for supported GPT-5 API workflows. Check the current documentation for the endpoint and model ID you plan to use, because feature support and request fields can differ by endpoint or version.

Changelog

  • — Replaced the "sensible default" framing with a note pointing new work to GPT-5.6 Terra and Luna, added the December 11, 2026 shutdown of the gpt-5-2025-08-07 snapshot, and corrected the DeepSeek V4-Pro comparison in the short answer. GPT-5 rates unchanged.
  • — Corrected GPT-5 cached-input pricing to $0.125/1M and re-verified it against OpenAI's official model documentation.
  • — Published. Pricing verified at platform.openai.com/docs/pricing.

Sources