GPT-5.4 pricing
GPT-5.4 API cost from OpenAI — $2.50 per 1M input tokens and $15.00 per 1M output tokens. Balanced flagship. Estimate your real monthly bill below, then compare it against every other model.
Flagship 400K context · all prices USD per 1M tokens, this price verified 2026-06-27.
GPT-5.4 capabilities & limits
Representative specs for this tier — confirm exact limits in the OpenAI docs.
API acting up? Check live OpenAI status → · all AI API status
Call GPT-5.4 from your code
The exact model string and endpoint to use. Works with the OpenAI SDK — just point base_url at the URL below.
gpt-5.4https://api.openai.com/v1OPENAI_API_KEYcurl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4",
"messages": [{"role": "user", "content": "Hello"}]
}' Model strings follow each provider's naming convention; confirm the current id in the OpenAI docs before relying on it.
What a GPT-5.4 API call actually costs
Blended input + output cost at GPT-5.4's list rates — useful yardsticks before you commit to volume.
GPT-5.4 cost calculator
Enter your monthly volume to estimate the GPT-5.4 bill. Runs entirely in your browser.
Peak/off-peak and long-context pricing are applied automatically where published. Cache-write, Batch/Flex and Fast-mode adjustments are not included. For the full multi-model breakdown, use the cost calculator.
OpenAI models — GPT-5.4 in context
How GPT-5.4 prices against its siblings. Cheapest reference cost first.
| Model | Input /1M | Output /1M | Cost / call* | Context | Type |
|---|---|---|---|---|---|
| GPT-6 Luna Efficient model for focused, high-volume tasks · >272K input uses long-context rates | $0.100 | $0.500 | $0.0006 | 1.05M | Fast / cheap |
| GPT-5.6 Luna Cost-sensitive, high-volume tier | $0.200 | $1.20 | $0.0014 | 1.05M | Balanced |
| GPT-5.4 nano Cheapest OpenAI tier | $0.200 | $1.25 | $0.0015 | 400K | Fast / cheap |
| GPT-5.4 mini | $0.750 | $4.50 | $0.0053 | 400K | Balanced |
| GPT-6 Sol Complex coding and agentic workflows · >272K input uses long-context rates | $2.00 | $10.00 | $0.012 | 1.05M | Flagship |
| GPT-5.6 Terra Balances intelligence and cost | $2.00 | $12.00 | $0.014 | 1.05M | Flagship |
| GPT-5.4 Balanced flagship | $2.50 | $15.00 | $0.017 | 400K | Flagship |
| GPT-5.6 Sol Flagship for complex professional work | $4.00 | $20.00 | $0.024 | 1.05M | Flagship |
| GPT-5.5 Flagship | $5.00 | $30.00 | $0.035 | 400K | Flagship |
| GPT-6 Astra Also called GPT-6 or Astra · >272K input uses long-context rates | $10.00 | $50.00 | $0.060 | 1.05M | Flagship |
*Reference cost of one call with 1,000 input + 1,000 output tokens — a neutral yardstick. Use the calculator for your real usage. Cheapest row highlighted.
How GPT-5.4 pricing works
GPT-5.4 is billed per token: a lower input price of $2.50 per million tokens for everything you send, and a higher output price of $15.00 per million for everything the model generates. To turn that into a real GPT-5.4 bill, multiply by your monthly request volume and average prompt/response length — the calculator above does exactly that.
Prompt caching is the biggest lever on your GPT-5.4 cost: cached input tokens bill at just $0.250 per million — about 90% cheaper. If you reuse a long system prompt or context across calls, caching can dramatically cut the input portion of your bill.
List prices move fast — always confirm the current numbers on the official OpenAI pricing page before relying on them for budgeting.
GPT-5.4 pricing FAQ
How much does the GPT-5.4 API cost?
GPT-5.4 costs $2.50 per 1M input tokens and $15.00 per 1M output tokens, with cached input at $0.250 per 1M (about 90% off). A typical 3K-input / 500-output call at the displayed rate works out to about $0.015.
What is GPT-5.4's context window?
GPT-5.4 has a 400K-token context window. Tokens you put in the prompt are billed at the $2.50 per 1M input rate.
Does GPT-5.4 support prompt caching?
Yes. GPT-5.4 bills cached input tokens at $0.250 per 1M instead of $2.50 — roughly 90% cheaper for the repeated part of your prompts.
Is there a cheaper alternative to GPT-5.4?
In the same flagship tier, MiniMax-M3 (MiniMax) is cheaper at $0.300 in / $1.20 out. The overall cheapest model on the market is Gemini 1.5 Flash-8B.