Cost formula
Estimated request cost = (prompt tokens / 1,000,000 × input price) + (completion tokens / 1,000,000 × output price)
Calculator
Paste a prompt and get a fast token estimate, plus a one-request cost preview against current list prices.
Live token count
34tokens
$0.003042 / request · GPT-5 · $3.04 @ 1K req
Prompt
Paste a prompt, system message, or document chunk—counts update live.
Exact BPE (o200k / cl100k). OpenAI family uses exact BPE; others are planning ratios. Likely range 29–41.
Cost
Uses the estimated token count as uncached input for one request.
OpenAI-family counts use the browser GPT BPE tokenizer (o200k_base / cl100k_base). Anthropic, Google, and DeepSeek remain planning estimates—confirm with each provider SDK for production billing. Pricing snapshot updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Count tokens in your prompt and expected completion before you send a request or size a budget. Token counts drive billing on every major API, and small wording changes can shift cost noticeably at high monthly volume. Paste text directly—no API key required.
Estimated request cost = (prompt tokens / 1,000,000 × input price) + (completion tokens / 1,000,000 × output price)
You cannot estimate spend accurately without token counts. Character length, language, and special formatting all affect tokenization, so guessing from word count leads to budget errors that compound at scale.
Counts use the same tokenizer families providers bill against and are suitable for planning. Edge cases in special tokens or provider-side preprocessing may differ slightly from your invoice.
No. Token counting runs entirely in your browser. Nothing is sent to CentsPerToken servers or to any LLM provider.
Each model family uses its own vocabulary and encoding rules. A prompt that is 800 tokens on one model may be 950 on another, which changes cost when you switch providers.
Multiply per-request input and output cost by expected daily requests and by 30. Use the API cost calculator for a fuller model-by-model breakdown.