How Many Tokens?

← All models

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

When not to use it:

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