Tools / LLM token & cost calculator
LLM token & cost calculator
Estimate a request's tokens and cost
Paste text or enter token counts to see exact OpenAI token counts (estimated for Claude/Gemini) and the cost per request or per month, against a verified per-1M-token price table.
Runs entirely in your browser - nothing you paste is ever sent anywhere. Token counting for OpenAI models runs locally against the real tiktoken tables, loaded only once you use this tool.
Prices verified 2026-09-23 - check provider pages before relying on them.
| Model | Input tokens | Output tokens | Cost / request | Monthly |
|---|
Price reference (per 1M tokens)
| Provider | Model | Input | Output | Counting | Source |
|---|---|---|---|---|---|
| OpenAI | GPT-5 | $1.25 | $10.00 | Exact | Source |
| OpenAI | GPT-5 mini | $0.25 | $2.00 | Exact | Source |
| OpenAI | GPT-5 nano | $0.05 | $0.40 | Exact | Source |
| OpenAI | GPT-4.1 | $2.00 | $8.00 | Exact | Source |
| OpenAI | GPT-4o | $2.50 | $10.00 | Exact | Source |
| OpenAI | GPT-4o mini | $0.15 | $0.60 | Exact | Source |
| Anthropic | Claude Opus 5.5 | $4.00 | $20.00 | Estimate | Source |
| Anthropic | Claude Sonnet 5 | $2.00 | $10.00 | Estimate | Source |
| Anthropic | Claude Haiku 4.5 | $1.00 | $5.00 | Estimate | Source |
| Gemini 3.1 Pro Preview | $2.00 | $12.00 | Estimate | Source | |
| Gemini 2.5 Pro | $1.25 | $10.00 | Estimate | Source | |
| Gemini 2.5 Flash | $0.30 | $2.50 | Estimate | Source | |
| Gemini 2.5 Flash-Lite | $0.10 | $0.40 | Estimate | Source |