GPT-5 Mini: token counter & pricing
OpenAI · exact (uses official tokenizer) · pricing as of 2026-04-27.
- Provider
- OpenAI
- API model ID
gpt-5-mini- Context window
- 400,000 tokens
- Input price
- $0.25 per 1M tokens
- Output price
- $2.00 per 1M tokens
- Tokenizer accuracy
- exact (uses official tokenizer)
- Pricing as of
- 2026-04-27
Open the counter to count tokens for GPT-5 Mini in real time.
What is GPT-5 Mini?
GPT-5 Mini is OpenAI's mid-tier GPT-5 model — substantially cheaper than full GPT-5 ($1.25 input → $0.25 input, 5× cheaper) while keeping the same o200k_base tokenizer and 400K context window.
The sweet spot between GPT-5 Nano (too small for harder tasks) and GPT-5 (overkill for routine work).
How tokens are counted here
GPT-5 Mini uses OpenAI's o200k_base tokenizer. Counts in your browser via js-tiktoken. Exact.
Pricing notes
$0.25 input / $2.00 output per 1M tokens. Cached input $0.025/M.
For a 1,000-token prompt with 200-token reply: $0.000650 per call, $650 per 1M calls.
When to use GPT-5 Mini
- Most production AI workloads. The default place to land for cost-conscious teams.
- Chatbots, RAG, classification, extraction, summarization — anything where you don't need frontier reasoning.
- Code generation on routine problems — straightforward refactors, scaffolding, test generation.
- First-pass content before escalating to GPT-5.5 for final polish.
When not to use it:
- Multi-step reasoning where errors compound. Use GPT-5.5 or o3.
- High-volume bulk labeling — GPT-5 Nano at $0.05 input is 5× cheaper.
- Workloads where Claude Sonnet 4.6 measurably wins (instruction-following nuance).
Common questions
How does GPT-5 Mini compare to GPT-4o mini?
GPT-5 Mini ($0.25/$2.00) is more expensive than GPT-4o mini ($0.15/$0.60) but materially better on reasoning. For most workloads, the upgrade pays for itself in fewer error-recovery loops. For pure cheap-and-fast classification, GPT-4o mini still wins on cost.
Does GPT-5 Mini have the same context window as GPT-5?
Yes — 400K tokens, same as the full GPT-5 family.
What about prompt caching?
Cached input is $0.025/M (10% of standard). On repeated long-context prompts (the same RAG document across many queries), the savings are substantial.
Compare GPT-5 Mini to other models
- GPT-5.5 (OpenAI, $5.00/$30.00)
- GPT-5.5 Pro (OpenAI, $30.00/$180.00)
- GPT-5.4 (OpenAI, $2.50/$15.00)
- GPT-5.4 Mini (OpenAI, $0.75/$4.50)
- GPT-5.4 Nano (OpenAI, $0.20/$1.25)
- GPT-5.4 Pro (OpenAI, $30.00/$180.00)
- GPT-5.3 (OpenAI, $1.75/$14.00)
- GPT-5.2 (OpenAI, $1.75/$14.00)
- GPT-5.2 Pro (OpenAI, $21.00/$168.00)
- GPT-5.1 (OpenAI, $1.25/$10.00)
- GPT-5 (OpenAI, $1.25/$10.00)
- GPT-5 Nano (OpenAI, $0.05/$0.40)
- GPT-5 Pro (OpenAI, $15.00/$120.00)
- GPT-4.1 (OpenAI, $2.00/$8.00)
- GPT-4.1 Mini (OpenAI, $0.40/$1.60)
- GPT-4.1 Nano (OpenAI, $0.10/$0.40)
- o3 (OpenAI, $2.00/$8.00)
- o3-mini (OpenAI, $1.10/$4.40)
- o3-pro (OpenAI, $20.00/$80.00)
- o4-mini (OpenAI, $1.10/$4.40)
- GPT-4o (OpenAI, $2.50/$10.00)
- GPT-4o mini (OpenAI, $0.15/$0.60)
- GPT-4 Turbo (OpenAI, $10.00/$30.00)
- Gemini 3.1 Flash-Lite (Google, $0.25/$1.50)
- DeepSeek V3 (DeepSeek, $0.27/$1.10)
- Gemini 2.5 Flash (Google, $0.30/$2.50)