OpenAI logo

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.

List price via OpenAI
Input
$1.25 /1M tokens
Output
$10.00 /1M tokens
OpenAI DigitalOcean Azure Replicate 4 providers

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
OpenAI logo OpenAI Creator $1.25 $10.00 $0.13 $32.50 View
DigitalOcean logo DigitalOcean $1.25 $10.00 $0.13 $32.50 View
Microsoft Azure logo Azure $1.25 $10.00 $0.13 $32.50 View
Replicate logo Replicate $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 vs GPT-5
xAI Grok 4.5 xAI $2.6667 −2%
xAI Grok 4.6 xAI $2.6667 −2%
Alibaba Cloud Qwen3.8-2.4T-A95B Alibaba Cloud $2.6667 −2%
Alibaba Cloud Qwen3.8-Max Alibaba Cloud $2.6667 −2%
Google Cloud Gemini 2.5 Pro Google Cloud $2.7083 0%
OpenAI GPT-5 This model OpenAI $2.7083
OpenAI GPT-5.1 OpenAI $2.7083 0%
Google Cloud Gemini 3.5 Flash Google Cloud $2.75 +2%
OpenAI GPT-4.1 OpenAI $3.00 +11%
OpenAI o3 OpenAI $3.00 +11%
Anthropic Claude Sonnet 5 Anthropic $3.3333 +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
OpenAI GPT-5.1 400K $1.25 $10.00
OpenAI GPT-4.1 1M $2.00 $8.00
OpenAI o3 200K $2.00 $8.00
OpenAI GPT-5.6 Sol 1M $2.00 $10.00
OpenAI GPT-5.6 Terra 1M $2.00 $12.00
OpenAI GPT-4o 128K $2.50 $10.00
OpenAI GPT-5.2 400K $1.75 $14.00
OpenAI GPT-5.3-Codex 400K $1.75 $14.00