One agent session
1M input tokens and 100K output tokens, no caching.
- Input1M x $2.50 = $2.50
- Output0.1M x $15 = $1.50
$4.00per session
OpenAI - Closed weights
GPT-5.4 is a closed-weights model from OpenAI that costs $2.50 per 1M input tokens and $15 per 1M output tokens on the first-party API, with a 1.05M-token context window.
Last verified from developers.openai.com. All sources
| Item | Price / 1M tokens |
|---|---|
| InputPrompts up to 272,000 tokens | $2.50 |
| OutputPrompts up to 272,000 tokens | $15 |
| Cache readPrompts up to 272,000 tokens | $0.25 |
| Batch inputBatch requests, prompts up to 272,000 tokens | $1.25 |
| Batch outputBatch requests, prompts up to 272,000 tokens | $7.50 |
| Long-context inputPrompts over 272,000 tokens | $5 |
| Long-context outputPrompts over 272,000 tokens | $22.50 |
| Long-context cache readPrompts over 272,000 tokens | $0.50 |
| Long-context batch inputBatch requests, prompts over 272,000 tokens | $2.50 |
| Long-context batch outputBatch requests, prompts over 272,000 tokens | $11.25 |
| Fast mode inputFast mode requests | $5 |
| Fast mode outputFast mode requests | $30 |
Note: Priced by prompt length: a request with more than 272K input tokens pays the long-context pricing rates for the whole request (short context is <=272K input tokens). Batch cached input is $0.13 short context / $0.25 long context. Fast mode has no long-context price listed. Regional processing adds 10%. Default snapshot gpt-5.4-2026-03-05.
gpt-5.4openai/gpt-5.4Worked from the standard list rates above, with the math shown so you can swap in your own token counts. These use the base rates, which apply while each request's prompt stays at or under 272,000 tokens; above that, GPT-5.4 bills $5 input and $22.50 output for the whole request.
1M input tokens and 100K output tokens, no caching.
$4.00per session
10,000 requests a day at 2K input and 500 output tokens each.
$125.00per day
$3,750.00 per 30-day month
90% of the input is read from the prompt cache. The one-time cache write premium is not included.
$1.98per session
| Model | Input / 1M | Output / 1M |
|---|---|---|
| GPT-5.4 (this page) | $2.50 | $15 |
| Claude Sonnet 4.5Anthropic | $3 | $15 |
| Claude Sonnet 4.6Anthropic | $3 | $15 |
| Kimi K3Moonshot AI | $3 | $15 |
| GPT-5.2OpenAI | $1.75 | $14 |
| GPT-5.3-CodexOpenAI | $1.75 | $14 |
| GPT-5.6 TerraOpenAI | $2 | $12 |
| GPT-4oOpenAI | $2.50 | $10 |
| GPT-5OpenAI | $1.25 | $10 |
| GPT-5.1OpenAI | $1.25 | $10 |
Side-by-side pages with both models' prices, specs, cost examples and like-for-like benchmark rows.
GPT-5.4 costs $2.50 per 1M input tokens and $15 per 1M output tokens on OpenAI's first-party API, per developers.openai.com on October 17, 2026. Per 1M tokens, cache reads cost $0.25, and the batch rate is $1.25 input and $7.50 output. Prompts over 272,000 tokens are billed at $5 input and $22.50 output for the whole request.
GPT-5.4 has a 1,050,000-token context window and returns up to 128,000 output tokens per response.
No. GPT-5.4 is a closed-weights model. You call it through OpenAI's API as gpt-5.4 or through Vercel AI Gateway as openai/gpt-5.4.
OpenAI released GPT-5.4 on March 5, 2026.
Last verified from developers.openai.com.
Newsletter
One email per week. New model releases, price cuts and what they mean for your bill.