GPT-5
OpenAI's fifth-generation flagship, a reasoning model that in ChatGPT sits behind a router choosing between it and a faster variant per request.
Key Specifications
- Context window
- 400K tokens
- Max output
- 128K tokens
- Knowledge cutoff
- web search available
- Released
- Inputs
- Image, text
- Capabilities Show details
- Reasoning Thinks before it answers, always on or as a switchable mode. Function calling Connect to external tools, APIs, and systems. Structured output Return responses in structured formats like JSON. Web search Search the web for up-to-date information. Code execution Write and execute code in a sandboxed environment. File upload Process uploaded documents, spreadsheets, and other files. MCP Connect to services via Model Context Protocol. Image generation Generate and edit images from text prompts.
Hosted API pricing
| Provider | Input /1M tokens | Output /1M tokens | Cached input /1M | Cost at 10M in + 2M out | |
|---|---|---|---|---|---|
|
|
$1.25 | $10.00 | $0.13 | $32.50 | View |
|
|
$1.25 | $10.00 | $0.13 | $32.50 | View |
|
|
$1.25 | $10.00 | $0.13 | $32.50 | View |
|
|
$1.25 | $10.00 | $32.50 | View |
Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.
Similarly priced models
The models nearest GPT-5 by blended rate, each at its own cheapest provider.
| Model | Blended /1M | Input /1M | Output /1M | Context | Cutoff | vs GPT-5 |
|---|---|---|---|---|---|---|
|
|
$2.6667 | $2.00 | $6.00 | 500K | Feb 2026 | −2% |
|
|
$2.6667 | $2.00 | $6.00 | 500K | Jan 2026 | −2% |
|
|
$2.6667 | $2.00 | $6.00 | 262K | −2% | |
|
|
$2.6667 | $2.00 | $6.00 | 1M | −2% | |
|
|
$2.7083 | $1.25 | $10.00 | 1M | Jan 2025 | 0% |
|
|
$2.7083 | $1.25 | $10.00 | 400K | Sep 2024 | |
|
|
$2.7083 | $1.25 | $10.00 | 400K | Sep 2024 | 0% |
|
|
$2.75 | $1.50 | $9.00 | 1M | +2% | |
|
|
$3.00 | $2.00 | $8.00 | 1M | Jun 2024 | +11% |
|
|
$3.00 | $2.00 | $8.00 | 200K | Jun 2024 | +11% |
|
|
$3.3333 | $2.00 | $10.00 | 1M | Jan 2026 | +23% |
Prices are USD per 1M tokens at each model's cheapest listed provider. Blended is the cost of 10M input plus 2M output tokens, spread over the 12M.
Frequently Asked Questions
What is GPT-5 good for?
Reasoning-heavy coding and agent work, in the middle of OpenAI's price range.
When is GPT-5 not a good fit?
New projects: OpenAI now calls it a previous model, recommends GPT-5.6, and plans to shut down the API model in December 2026. Closed weights, so no self-hosting.
What is the cheapest way to run GPT-5?
The cheapest hosted rate is $1.25 / $10.00 per 1M tokens via OpenAI.
How does GPT-5 compare with GPT-5.1?
OpenAI says GPT-5.1 builds on GPT-5 with a no-reasoning mode, thinking that scales with how hard the prompt is (far fewer tokens on easy inputs), more steerable tone and formatting, and named apply patch and shell tools for coding agents. Same price, 400K-token context and text and image input. GPT-5 came out 3 months earlier.
Can I self-host GPT-5?
No. OpenAI does not publish the weights; GPT-5 is available only through hosted APIs.
More from OpenAI
| Model | Context | Input /1M | Output /1M |
|---|---|---|---|
|
|
400K | $1.25 | $10.00 |
|
|
1M | $2.00 | $8.00 |
|
|
200K | $2.00 | $8.00 |
|
|
1M | $2.00 | $10.00 |
|
|
1M | $2.00 | $12.00 |
|
|
128K | $2.50 | $10.00 |
|
|
400K | $1.75 | $14.00 |
|
|
400K | $1.75 | $14.00 |