GPT-5 API pricing
OpenAI charges $1.25 per million input tokens and $10 per million output tokens for GPT-5 (gpt-5), and $0.125 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.00625, or $0.00313 through the batch API.
GPT-5 price per million tokens
| Token type | Standard | Batch API |
|---|---|---|
| Input | $1.25 | $0.625 |
| Cached input | $0.125 | $0.0625 |
| Output | $10 | $5 |
API model id: gpt-5. GPT-5 supports a 272K-token context window, up to 128K output tokens, image input, tool calling and reasoning.
What GPT-5 costs per request
| Request | 1 request | 1,000 requests | 1M requests |
|---|---|---|---|
| Short chat message (300 in, 200 out) | $0.00237 | $2.38 | $2,375.00 |
| Typical request (1K in, 500 out) | $0.00625 | $6.25 | $6,250.00 |
| Long document summary (20K in, 1K out) | $0.035 | $35.00 | $35,000.00 |
| Coding agent step (50K in, 2K out) | $0.0825 | $82.50 | $82,500.00 |
At standard rates. A token is about 4 characters of English text, so 1,000 tokens is roughly 750 words.
How GPT-5 compares
- For a typical request, GPT-5 is cheaper than 34% of the other models on apicost.app.
- Claude Sonnet 5 from Anthropic costs $2 input and $10 output per million tokens, so a typical request is $0.007: 1.1× the price of GPT-5.
- Gemini 2.5 Pro from Google Gemini costs $1.25 input and $10 output per million tokens, so a typical request is $0.00625: about the same price as GPT-5.
- DeepSeek V4 Pro from DeepSeek costs $1.32 input and $3.96 output per million tokens, so a typical request is $0.0033: 1.9× cheaper than GPT-5.
GPT-5 price history
GPT-5 has cost $1.25 per million input tokens and $10 per million output tokens since apicost.app started tracking prices on October 22, 2026.
Every LLM API price increase, cut, new and retired model, dated: LLM API price changes.
Models with a similar price
| Model | Provider | Input / 1M | Cached input / 1M | Output / 1M | Typical request |
|---|---|---|---|---|---|
| GPT-4.1 | OpenAI | $2 | $0.5 | $8 | $0.006 |
| o3 | OpenAI | $2 | $0.5 | $8 | $0.006 |
| Gemini 3.5 Flash | Google Gemini | $1.5 | $0.15 | $9 | $0.006 |
| Gemini Omni 1.1 Flash | Google Gemini | $1.5 | – | $9 | $0.006 |
| Gemini Omni 1.2 Flash | Google Gemini | $1.5 | – | $9 | $0.006 |
| GPT-5.1 | OpenAI | $1.25 | $0.125 | $10 | $0.00625 |
| Gemini 2.5 Pro | Google Gemini | $1.25 | $0.125 | $10 | $0.00625 |
| GPT-6 Sol | OpenAI | $2 | $0.2 | $10 | $0.007 |
Other OpenAI models
- GPT-4.1 $2 / $8
- GPT-4.1 mini $0.4 / $1.6
- GPT-4o $2.5 / $10
- GPT-4o mini $0.15 / $0.6
- GPT-5 mini $0.25 / $2
- GPT-5 nano $0.05 / $0.4
- GPT-5.1 $1.25 / $10
- GPT-5.2 $1.75 / $14
- GPT-5.4 $2.5 / $15
- GPT-5.4 mini $0.75 / $4.5
- GPT-5.4 nano $0.2 / $1.25
- GPT-5.5 $5 / $30
- GPT-5.6 $4 / $20
- GPT-5.6 Luna $0.2 / $1.2
- GPT-5.6 Terra $2 / $12
- GPT-6 Astra $10 / $50
- GPT-6 Astra Law $10 / $50
- GPT-6 Luna $0.1 / $0.5
- GPT-6 Sol $2 / $10
- GPT-6.1 Sol $2 / $10
- GPT-6.1 Terra $1 / $5
- o3 $2 / $8
Every OpenAI model side by side, with batch, caching and long-context prices: OpenAI API pricing. Ways to pay less: batch API, prompt caching, the cheapest models.
Questions and answers
How much does the GPT-5 API cost?
OpenAI charges $1.25 per million input tokens and $10 per million output tokens for GPT-5 (gpt-5), and $0.125 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.00625, or $0.00313 through the batch API.
Has the GPT-5 API price changed?
No. GPT-5 has cost $1.25 per million input tokens and $10 per million output tokens since apicost.app started tracking prices on October 22, 2026.
Is there a cheaper way to use GPT-5?
Yes. The OpenAI batch API runs requests within 24 hours for $0.625 per million input tokens and $5 per million output tokens. Prompt caching lowers the price of repeated input to $0.125 per million tokens.
What is the context window of GPT-5?
GPT-5 accepts up to 272,000 input tokens, roughly 204,000 words of English, and writes up to 128,000 output tokens per response. Filling the whole context window once costs $0.34 in input tokens.
Is GPT-5 cheaper than Claude Sonnet 5?
Yes. Claude Sonnet 5 from Anthropic costs $2 input and $10 output per million tokens, so a typical request is $0.007: 1.1× the price of GPT-5.
Source: OpenAI pricing, via the LiteLLM price list.