GPT-5.4 mini pricing
OpenAI · API id gpt-5.4-mini · verified 2026-10-18
| Input | $0.75 |
| Cached input (cache hit) | $0.075 |
| Cache write | — |
| Output | $4.50 |
| Batch discount | 50% |
| Context window | 400,000 tokens |
| Max output | 128,000 tokens |
USD per 1M tokens unless noted. Official source
Estimate your workload on GPT-5.4 mini →
What GPT-5.4 mini costs for real workloads
| Workload | GPT-5.4 mini | Ministral 3 8B | Claude Haiku 5.5 | GPT-6 Luna | Mistral Small 4 |
|---|---|---|---|---|---|
| 10,000 chatbot replies 2,000 input + 400 output tokens each, 50% of the prompt cached | $26.25 | $2.25 | $3.10 | $3.10 | $4.05 |
| One 30-step coding agent run 12K system + tools prompt, 1K output and 3K tool result per step, caching on | $0.38 | $0.05 | $0.12 | $0.05 | $0.07 |
| 1M documents classified (batch) 600 input + 20 output tokens each, batch API where available | $270 | $46.50 | $35.00 | $35.00 | $51.00 |
Compared with the cheapest other small models. Change the numbers in the calculator.
Billing notes
Snapshot gpt-5.4-mini-2026-03-17. Max input 272K. No long-context tier. Reasoning tokens billed as output.
Where GPT-5.4 mini ranks by use case
Position by cost among all models that fit each workload (1 = cheapest).
- Cheapest LLM for coding agents: #15 of 36 (Per run (cached): $0.38)
- Cheapest LLM for RAG chatbots: #14 of 36 (Per 1,000 answers: $5.29)
- Cheapest LLM for batch classification and extraction: #14 of 36 (Classify 1M docs: $270)
- Cheapest LLM for high-volume customer support: #15 of 36 (Per 1,000 replies: $2.21)
Counting tokens for a prompt? The token counter estimates GPT-5.4 mini tokens (OpenAI (o200k_base) tokenizer) and input cost.
Other OpenAI models
- GPT-6 Astra: $10.00 / $50.00
- GPT-5.5: $5.00 / $30.00
- GPT-5.6 Sol: $4.00 / $20.00
- GPT-6.1 Sol: $2.00 / $10.00
- GPT-6 Sol: $2.00 / $10.00
- GPT-5.6 Terra: $2.00 / $12.00
- GPT-5.6 Luna: $0.20 / $1.20
- GPT-6 Luna: $0.10 / $0.50
FAQ
How much does GPT-5.4 mini cost per 1M tokens?
GPT-5.4 mini costs $0.75 per 1M input tokens and $4.50 per 1M output tokens at standard rates (verified 2026-10-18).
Does GPT-5.4 mini support prompt caching?
Yes. Cached input is billed at $0.075 per 1M tokens.
Is there a batch discount for GPT-5.4 mini?
Yes. The batch API is 50% cheaper than standard requests.
What is the context window of GPT-5.4 mini?
400,000 tokens, with up to 128,000 output tokens.