# AI Token Calculator

Source: https://tokencalculator.ai/

Free browser-based AI token cost calculator. Estimate and compare token costs across major LLM providers — OpenAI, Anthropic, Google Gemini, Perplexity, DeepSeek, and Grok. The calculator runs entirely client-side; no data is stored or transmitted.

## What it does

- Counts characters, words, and estimated input tokens for any text you paste
- Estimates output tokens based on use case (classification, RAG, chat, full response, long generation)
- Returns per-provider cost comparisons sorted cheapest-first or most-expensive-first
- Supports 100+ models across six providers

## Current flagship model pricing (per 1M tokens)

- **GPT-5.2** — input $1.75 / cached $0.175 / output $14
- **Claude Opus 4.5** — input $5.00 / cached $6.25 (5m) or $10.00 (1h) / output $25.00
- **Gemini 3 Pro Preview** — input $2 (≤200k) or $4 (>200k) / cached $0.2 or $0.4 / output $12 or $18
- **Grok 4.1 Fast** — input $0.20 / cached $0.05 / output $0.50
- **DeepSeek-V3.2** — input $0.28 / cached $0.028 / output $0.42
- **Perplexity Sonar Deep Research** — input $2 / reasoning $3 / output $8

Pricing is pulled from each provider's official documentation and updated as new models ship.

## Related

- [Input vs output tokens — a plain-language guide](https://tokencalculator.ai/input-vs-output-tokens-in-ai-a-simple-guide-for-dummies/)
- [Blog](https://tokencalculator.ai/blog/)
- [About](https://tokencalculator.ai/about/)

## Publisher

Marcus-Aurelius Digital — organic growth systems for luxury and hospitality brands.
Based in the Balearic Islands. Contact: https://tokencalculator.ai/about/#contact