How much do tokens cost? LLM pricing per million tokens compared across providers
By TechCompare · Updated · How we check
Token costs are small per-request but add up fast at scale. Use prompt caching for repeated content, batch mode for non-urgent processing, and cheaper models for tasks that don't need frontier intelligence. The built-in LLM Pricing Calculator on this site estimates costs across models and usage patterns.
LLM API pricing is quoted per million tokens, split between input tokens (what you send) and output tokens (what the model generates).
Output tokens typically cost 3-5x more than input tokens because generation is computationally more expensive. The cheapest models (DeepSeek V4 Flash, GPT-5.4 Nano) cost under $0.50 per million input tokens. The most expensive (Claude Opus 4.8) costs $5 per million input tokens.
How this is calculated
To calculate cost: (input_tokens / 1,000,000) × input_price + (output_tokens / 1,000,000) × output_price. A single ChatGPT interaction with a 500-token prompt and 200-token response on GPT-5.4 costs roughly $0.004.
A high-volume application processing 1 million requests per day with 1,000 input tokens and 500 output tokens each on GPT-5.4 costs about $10,000 per day. Prompt caching reduces costs for repeated content: cached input tokens on GPT-5.4 cost $0.25 per million (90% discount). Always check if your use case qualifies for caching or batch pricing before scaling.
Verdict
Price input and output tokens separately, because output usually costs 3-5x more per token. The math is (input / 1,000,000) x input price plus (output / 1,000,000) x output price.
A 500-token in and 200-token out GPT-5.4 chat costs about $0.004, but a million calls a day at 1K in and 500 out runs around $10,000 daily. Cached input on GPT-5.4 drops to $0.25 per million, with no batch price to shave more off.
More Tokens scenarios
Related guides
Frequently asked questions
Why do output tokens cost more than input tokens?
How do I calculate the cost of an LLM request?
How much do prompt caching and batch mode save?
Related tools
LLM API Pricing Calculator
Compare API costs across major models (OpenAI, Anthropic, Google) with prompt caching.
Use toolLLM VRAM Calculator
Calculate the VRAM needed to run or fine-tune any LLM at any quantization.
Use toolJSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use tool