Pricing research

LLM API Cost Guide: Input, Output, Cached and Batch Tokens

A source-backed guide to the token billing variables that change a production LLM API bill.

Written by TokencostLast reviewed 2026-07-30Pricing verified 2026-07-30

LLM API bills are built from several separate meters. A useful estimate must include input tokens, output tokens, cached input when the provider supports it, batch discounts when latency is flexible, and retry overhead when a workflow fails or asks for a repair response.

The mistake many teams make is comparing only the input price per million tokens. For long generated answers, output cost can dominate. For repeated system prompts and retrieval context, cached input can matter more. For offline processing, batch pricing can change the economics again.

Verified pricing sample

ProviderModelInput / 1MCached input / 1MOutput / 1MCurrencyLast verifiedSource
OpenAIgpt-5$1.25$0.125$10USD2026-07-30source
OpenAIgpt-5-mini$0.25$0.025$2USD2026-07-30source
OpenAIgpt-5-nano$0.05$0.005$0.4USD2026-07-30source
OpenAIgpt-5.5$5$0.5$30USD2026-07-30source
OpenAIgpt-5.5-pro$30Not listed$180USD2026-07-30source
Anthropicclaude-sonnet-4.5$3Not listed$15USD2026-07-30source
Anthropicclaude-4.5-haiku$1Not listed$5USD2026-07-30source
Googlegemini-2.5-flash$0.3$0.03$2.5USD2026-07-30source
Googlegemini-2.5-flash-lite$0.1$0.01$0.4USD2026-07-30source
Googlegemini-2.5-pro$1.25$0.125$10USD2026-07-30source
Googlegemini-3-pro-preview$2Not listed$12USD2026-07-30source
Googlegemini-3-flash-preview$0.5Not listed$3USD2026-07-30source
DeepSeekdeepseek-v4-flash$0.14$0.028$0.28USD2026-07-30source
DeepSeekdeepseek-chat$0.27Not listed$1.1USD2026-07-30source
Moonshot AIkimi-k3¥20¥2¥100CNY2026-07-30source
Moonshot AIkimi-k2.7-code¥6.5¥1.3¥27CNY2026-07-30source
Moonshot AIkimi-k2.6¥6.5¥1.1¥27CNY2026-07-30source

Worked scenarios

Support answer

Assumptions: 10,000 requests/month, 1,500 input tokens, 400 output tokens, 30% cacheable input, 20% retry overhead. Scenario tables calculate USD rows only to avoid unsourced currency conversion.

ModelMonthly estimateAnnualizedInput/output driver
OpenAI gpt-5$64.42$773.10Output-heavy
OpenAI gpt-5-mini$12.88$154.62Output-heavy
OpenAI gpt-5-nano$2.58$30.92Output-heavy
OpenAI gpt-5.5$209.70$2516.40Output-heavy
OpenAI gpt-5.5-pro$1404.00$16848.00Output-heavy
Anthropic claude-sonnet-4.5$126.00$1512.00Output-heavy

Document summary

Assumptions: 2,000 requests/month, 25,000 input tokens, 1,200 output tokens, 50% cacheable input, 10% retry overhead. Scenario tables calculate USD rows only to avoid unsourced currency conversion.

ModelMonthly estimateAnnualizedInput/output driver
OpenAI gpt-5$64.21$770.55Input-heavy
OpenAI gpt-5-mini$12.84$154.11Input-heavy
OpenAI gpt-5-nano$2.57$30.82Input-heavy
OpenAI gpt-5.5$230.45$2765.40Input-heavy
OpenAI gpt-5.5-pro$2125.20$25502.40Input-heavy
Anthropic claude-sonnet-4.5$204.60$2455.20Input-heavy

Agent workflow

Assumptions: 50,000 requests/month, 6,000 input tokens, 900 output tokens, 40% cacheable input, 25% retry overhead. Scenario tables calculate USD rows only to avoid unsourced currency conversion.

ModelMonthly estimateAnnualizedInput/output driver
OpenAI gpt-5$862.50$10350.00Output-heavy
OpenAI gpt-5-mini$172.50$2070.00Output-heavy
OpenAI gpt-5-nano$34.50$414.00Output-heavy
OpenAI gpt-5.5$2887.50$34650.00Input-heavy
OpenAI gpt-5.5-pro$21375.00$256500.00Input-heavy
Anthropic claude-sonnet-4.5$1968.75$23625.00Input-heavy

Formula

Monthly cost = request volume × (1 + retry rate) × [(normal input tokens × input price) + (cached input tokens × cached price) + (output tokens × output price)] / 1,000,000.

Limitations

These estimates exclude taxes, minimum charges, tool fees, enterprise discounts, regional processing uplifts, rate-limit constraints, and product-specific billing rules. The table links to official sources so users can verify before procurement.

How to use this page in a real budget

This page is designed for independent developers, creator teams and small SaaS operators who need a quick but defensible estimate before committing to a model, workflow or monthly subscription. Start with the example table, then replace the assumptions with numbers from your own product: monthly active users, average requests per user, prompt length, expected output length, retry rate and the share of repeated context that may qualify for prompt caching.

The important habit is to estimate the completed task, not only the raw API call. A support chatbot may need one answer. A coding assistant may run several tool calls before it finishes. A RAG application may attach thousands of retrieved tokens before every response. A creator workflow may regenerate audio, music, images or video many times before one usable output is approved. When those loops are ignored, the advertised price per unit can look cheaper than the real production cost.

Common mistakes

Practical cost-reduction tips

Reduce repeated prompt text first. Long system prompts, hidden instructions and pasted policies can become a silent monthly cost when multiplied by thousands of calls. Move static material into cacheable context when the provider supports it. Use smaller models for classification, routing, extraction and draft generation, then reserve stronger models for final decisions or customer-visible answers. Measure cost per successful task instead of cost per request, because a cheap model that causes many retries can become expensive.

For LLM API Cost Guide: Input, Output, Cached and Batch Tokens, the best estimate usually comes from a three-scenario forecast: conservative, expected and high-growth. The conservative scenario protects cash flow. The expected scenario helps pricing decisions. The high-growth scenario reveals whether the architecture will stay profitable if traffic arrives suddenly from search, social media or a product launch.

FAQ

Are the prices guaranteed?

No. Tokencost records source-backed public pricing and community-dataset checks, but providers can change prices, discounts and regional availability. Verify the linked source before signing a client quote or procurement plan.

Why are some prices manual?

Some platforms use credits, regional plans, private enterprise pricing or bundled subscriptions. When a public unit price is not clear, Tokencost prefers a manual input instead of inventing a fake number.

Should I choose the cheapest model?

Not automatically. Compare quality, latency, retry rate, tool support and context length. The cheapest model for one workload may be the wrong choice for a workflow that needs reliable reasoning or long-context accuracy.

How often is pricing refreshed?

The pricing dataset is designed to refresh daily from source-backed data and to keep a visible last-verified date. Kimi rows are currently stored as CNY because the official Kimi platform publishes those prices in yuan.

Related calculators and research