GPT-5.2: token counter & pricing
OpenAI · exact (uses official tokenizer) · pricing as of 2026-05-31.
- Provider
- OpenAI
- API model ID
gpt-5.2- Context window
- 400,000 tokens
- Input price
- $1.75 per 1M tokens
- Output price
- $14.00 per 1M tokens
- Tokenizer accuracy
- exact (uses official tokenizer)
- Pricing as of
- 2026-05-31
Open the counter to count tokens for GPT-5.2 in real time.
What is GPT-5.2?
GPT-5.2 is the second incremental update in the GPT-5 line, meaningfully better reasoning and tool use than GPT-5 / 5.1 at a modest price bump. $1.75 input / $14 output per 1M tokens.
It's the "still cheap but noticeably smarter" tier, the most commonly chosen GPT-5 model for agentic workloads as of mid-2026 per OpenAI's published usage trends.
How tokens are counted here
OpenAI's o200k_base tokenizer (same as the rest of the GPT-5 family). Computed in your browser via js-tiktoken. Exact.
Pricing notes
$1.75 input / $14 output per 1M. Cached input $0.175/M.
Same single-tier pricing as GPT-5.1, no long-context surcharge above 128K. The output rate is what jumps from 5.1 ($10) to 5.2 ($14), 40% more expensive on the output column where reasoning models tend to spend their bill.
When to use GPT-5.2
- Multi-step agent loops where the GPT-5.1 quality wasn't quite enough.
- Coding workloads with tool use, measurably better tool selection vs 5.1.
- Workloads that benefit from longer reasoning without paying o-series prices.
When not to use it:
- Pure cost-optimization. GPT-5.1 at $1.25/$10 covers most tasks.
- Frontier reasoning that needs GPT-5.5 ($5/$30) or o3-pro ($20/$80).
Common questions
What's GPT-5.2 Pro?
GPT-5.2 Pro is the premium tier of the same line at $21/$168 per 1M, 12× the cost of base GPT-5.2 on input. Use only when you've measured GPT-5.2 falling short on your eval.
How does GPT-5.2 compare to o3?
Same input rate ($2 for o3 vs $1.75 for GPT-5.2). o3 is positioned for explicit reasoning tasks and bills you for invisible "reasoning tokens", actual o3 output cost is typically 5-15× the visible reply length. For most agent tasks GPT-5.2 is the cheaper effective choice.
Cached prompt savings?
Cached input at $0.175/M is 10% of standard. On loops with stable system prompts (most agents), this pays back fast.
Compare GPT-5.2 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 Pro (OpenAI, $21.00/$168.00)
- GPT-5.1 (OpenAI, $1.25/$10.00)
- GPT-5 (OpenAI, $1.25/$10.00)
- GPT-5 Mini (OpenAI, $0.25/$2.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 Pro (Google, $2.00/$12.00)
- Mistral Large (Mistral, $2.00/$6.00)
- Qwen3 Coder 480B (Alibaba, $2.00/$2.00)