Loading Tool...
Count BPE tokens, MCP schema overhead, context usage, and API costs locally.
Loading Tool...
LLM & MCP Token Calculator measures BPE token counts for prompts, documents, and Model Context Protocol (MCP) JSON tool schemas right in your browser. It estimates input, prompt-cached, and output costs across OpenAI, Anthropic, and Google models, shows context window utilization, and lets you plug in custom per-million-token pricing. Tokenization runs 100% client-side using o200k_base BPE so your prompts and proprietary tool schemas never leave your device.
| Model | Est. Input | Context Usage | Input Cost | Output Cost | Total / Req | Per 1K Reqs |
|---|---|---|---|---|---|---|
GPT-6.1 SolOpenAI Exact (o200k) | 0 | 0.13% of 400k | $0.00 | $0.0050 | $0.0050 | $5.00 |
GPT-6 AstraOpenAI Exact (o200k) | 0 | 0.13% of 400k | $0.00 | $0.025 | $0.025 | $25.00 |
GPT-5 miniOpenAI Exact (o200k) | 0 | 0.13% of 400k | $0.00 | $0.0010 | $0.0010 | $1.00 |
o4-miniOpenAI Exact (o200k) | 0 | 0.25% of 200k | $0.00 | $0.0022 | $0.0022 | $2.20 |
Claude Sonnet 5.5Anthropic Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.0050 | $0.0050 | $5.00 |
Claude Haiku 5.5Anthropic Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.0003 | $0.0003 | $0.250 |
Claude Opus 5.5Anthropic Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.010 | $0.010 | $10.00 |
Claude Fable 5.2Anthropic Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.020 | $0.020 | $20.00 |
Gemini 4 CarbonGoogle Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.0050 | $0.0050 | $5.00 |
Gemini 4 ArgonGoogle Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.0050 | $0.0050 | $5.00 |
Gemini 4 HydrogenGoogle Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.0037 | $0.0037 | $3.75 |
Gemini 3.8 FlashGoogle Est. (~BPE) | 0 | 0.05% of 1,000k | $0.00 | $0.0019 | $0.0019 | $1.88 |
Custom RateCustom Custom | 0 | 0.25% of 200k | $0.00 | $0.0030 | $0.0030 | $3.00 |