How Many Tokens?

← All models

GPT-4o mini: token counter & pricing

OpenAI · exact (uses official tokenizer) · pricing as of 2026-04-26.

Provider
OpenAI
API model ID
gpt-4o-mini
Context window
128,000 tokens
Input price
$0.15 per 1M tokens
Output price
$0.60 per 1M tokens
Tokenizer accuracy
exact (uses official tokenizer)
Pricing as of
2026-04-26

Open the counter to count tokens for GPT-4o mini in real time.

What is GPT-4o mini?

GPT-4o mini is OpenAI's small, fast, cheap model — designed for high-volume workloads where GPT-4o is overkill. 17× cheaper than GPT-4o on input, 17× cheaper on output, while keeping the same o200k_base tokenizer and 128k context window.

How tokens are counted here

GPT-4o mini uses OpenAI's o200k_base tokenizer. We compute counts in your browser via js-tiktoken — your prompt never leaves your device for OpenAI counts. Counts are exact.

When to use GPT-4o mini

When not to use it: anything requiring careful multi-step reasoning, structured planning, or nuanced instruction-following on subtle constraints. The quality gap to GPT-4o is real on these.

Pricing notes

At $0.15/$0.60 per million, GPT-4o mini is one of the cheapest frontier-tier models. Direct competitors:

For most price-sensitive workloads, the choice is GPT-4o mini vs Gemini Flash. Test both; the winner depends entirely on your prompt distribution.

Common questions

Is GPT-4o mini just GPT-3.5 with new branding?

No. It's a distinct model with substantially better benchmark scores than the old gpt-3.5-turbo line — but priced at roughly 30% of the cost. OpenAI deprecated gpt-3.5-turbo in favor of mini.

Does mini support function calling and structured outputs?

Yes — same OpenAI features as GPT-4o (function calling, JSON mode, structured outputs with schema). The capability surface is the same; the only difference is reasoning quality on hard prompts.

What's a typical cost for a chat exchange?

A 500-token prompt with a 100-token reply: $0.000075 input + $0.00006 output = $0.000135 per call, or $135 per million calls. Use the calculator above with your real prompt for an accurate number.

Compare GPT-4o mini to other models

Detailed comparisons