How is token cost calculated?
Costing an LLM API call is really just two steps. Per-call = input tokens × input price + output tokens × output price (prices are quoted per million tokens); then × calls per day × 30 for a monthly budget. This tool does both for you, and lines every model up side by side.
Why enter input and output separately? Because almost every vendor prices output higher than input, often 2–4× — generating costs more compute than reading. So the same 10k tokens cost very differently for “long input, short output” (summarizing) versus “short input, long output” (writing). A single blended price hides that.
A support bot: ~800 input and ~200 output tokens per call, 30,000 calls a day. Say a model charges $1 input / $4 output per million tokens —
per call = (800×1 + 200×4) ÷ 1M = $0.0016; a month ≈ 0.0016 × 30k × 30 = $1,440.
Switch to a model with cheaper output and that monthly bill often halves — exactly what the table above is for.
Chinese models (Doubao / Qwen / ERNIE / Kimi, etc.) use each vendor’s official CNY price; global models convert at the live rate, toggled ¥ / $. For each model’s context window, capability tags and more, see the LLM price comparison.