The price of an LLM token can range from free to several dollars per million, and the difference between choosing the right model and the wrong one can multiply your AI bill by 10x without improving outcomes. Output tokens cost three to five times more than input tokens, cached tokens cost a fraction of fresh ones, and reasoning models bill for thinking you never see.
This guide breaks down current pricing across major providers, explains the mechanics that drive token costs, and covers practical ways to reduce spend without sacrificing quality.
LLM API pricing ranges from free to several dollars per million input tokens, with output tokens typically costing three to five times more. Providers charge per million tokens, where one token equals roughly 0.75 English words. A million tokens translates to about 750,000 words, or around 1,500 pages of text.
A token is a chunk of text the model processes. It might be a word fragment, a full word, or a punctuation mark. Every API call bills based on tokens consumed, making the token the fundamental unit of AI spend.
The pricing spread across models is dramatic. Budget models like GPT-4o Mini or Gemini Flash cost fractions of a cent per thousand tokens. Frontier reasoning models like Claude Opus or GPT-o1 can cost several dollars per million tokens. Choosing the wrong model for a workload can multiply costs by 10x or more without improving outcomes.
Not all tokens cost the same. Providers bill separately for different token types, and understanding the distinctions matters for accurate cost estimation.
Input tokens are the text you send to the model. This includes your prompt, system instructions, conversation history, and any context you provide. Input tokens are typically the cheaper token type, ranging from free to a few dollars per million depending on the model.
Output tokens are the text the model generates back to you. Generation requires more active compute than reading, which is why output tokens cost three to five times more than input tokens. A verbose response can quickly become expensive, especially at scale.
Many providers offer significant discounts when you reuse identical input text within a short time window. If your system prompt stays the same across requests, cached input pricing can reduce effective input costs by 50% to 90%. This is one of the most powerful optimization levers available.
Writing to cache can cost more than standard input tokens, but the investment pays off when that cached content is read multiple times. Not all providers expose cache write as a separate line item, though the economics still apply.
Current pricing varies significantly across providers and model tiers. The table below shows representative rates as of late 2026.
| Provider | Model | Input (per 1M) | Output (per 1M) | Tier |
|---|---|---|---|---|
| OpenAI | GPT-4o Mini | $0.15 | $0.60 | Budget |
| OpenAI | GPT-4o | $2.50 | $10.00 | Mid-tier |
| OpenAI | o1 | $15.00 | $60.00 | Frontier |
| Anthropic | Claude Haiku | $0.25 | $1.25 | Budget |
| Anthropic | Claude Sonnet | $3.00 | $15.00 | Mid-tier |
| Anthropic | Claude Opus | $15.00 | $75.00 | Frontier |
| Gemini Flash | $0.075 | $0.30 | Budget | |
| Gemini Pro | $1.25 | $5.00 | Mid-tier |
OpenAI's model family spans from GPT-4o Mini at budget rates to o1 reasoning models at premium pricing. The o1 family bills for internal "thinking" tokens that appear on your invoice but not in the visible response. Batch API discounts of up to 50% are available for non-time-sensitive workloads.
Claude models range from Haiku for high-volume, cost-sensitive tasks to Opus for complex reasoning. Anthropic offers competitive caching discounts. The same pricing applies whether you access Claude directly or through AWS Bedrock, though Bedrock adds its own margin.
Gemini Flash is positioned as the fast, affordable option for production workloads. Gemini pricing is competitive in the mid-tier segment, and the long context windows available on some Gemini models can reduce the need for retrieval infrastructure.
Open-weight models like Llama are free to download but cost money when accessed via hosted APIs. "Free" depends entirely on whether you self-host or use a provider like Together, Replicate, or a cloud marketplace.
Smaller providers often compete on price for specific use cases. Mistral offers strong price-performance ratios for European deployments. Cohere focuses on enterprise search and RAG applications. Comparing across providers for your specific workload can surface meaningful savings.
Estimating costs before committing to a model or architecture helps avoid surprises. Here is a practical approach.
Start by measuring tokens in a typical request. Most providers offer tokenizer tools to get exact counts. Remember that system prompts count as input tokens on every request, which adds up quickly at scale.
Separate input, output, and cached tokens when calculating. A common mistake is using a blended rate, which understates costs when output-heavy or overstates them when cache-heavy.
Estimate your monthly request volume, then factor in cache hit rate. If 80% of your requests reuse the same system prompt and context, your effective input cost drops significantly.
Reasoning models generate hidden thinking tokens that appear on the bill but not in the response. Agent workflows multiply model calls from a single user action. A straightforward calculation often understates real spend by 2x to 5x for agentic applications.
Understanding why prices vary helps you make better cost-quality tradeoffs.
Optimization requires balancing cost against output quality. The following approaches help maintain quality while reducing spend.
Use a frontier model only when a cheaper model fails quality checks. Many tasks, including summarization, classification, and simple Q&A, perform well on budget models. Model routing based on evaluation metrics rather than assumptions can cut costs by 50% or more.
Maximize cache utilization by structuring prompts to reuse identical prefixes. Monitor cache hit rate as a key metric. Note that routing decisions interact with caching: changing models can invalidate cached context.
Remove redundant instructions. Summarize long documents before including them. Only include the context the model actually needs. Every token in your prompt costs money on every request.
Use the max_tokens parameter to prevent verbose responses. Structured output formats like JSON schemas constrain the model to produce only what you need, directly reducing output token spend.
Optimization requires knowing who consumes what. Without allocation, teams cannot identify which features or customers drive spend. Mapping token costs to business dimensions enables accountability and targeted optimization.
Tokens are the most visible and easily metered portion of AI cost, but they are not the whole picture. Treating "AI cost" and "token cost" as interchangeable leads to incomplete budgets and surprise bills.
A complete view of AI economics includes all of the above, not just the per-token API charges.
Managing token cost at scale requires the same FinOps practices used for cloud spend: visibility, allocation, budgeting, anomaly detection, and optimization. The FinOps Foundation's 2026 State of FinOps report found 98% of practitioners now manage AI spending, up from 31% in 2024. Finout is an enterprise-grade FinOps platform for cloud and AI spend that treats AI costs the same as infrastructure costs.
Virtual Tags map token spend to teams, features, or customers without changing provider configurations. The Canonical AI Taxonomy normalizes model names across providers, making the same model through Bedrock and direct API appear as one line. Billy lets teams ask natural-language questions about AI spend and get immediate answers.
AI Agents take that governance further, watching multi-step agentic workflows and surfacing the true cost of agent loops that multiply token consumption behind a single user action. Detector flags the anomaly the moment token spend breaks its normal pattern. Investigator traces it back through the actual chain of calls to find the real cause, not just a summary. Orchestrator matches the finding to the right fix and drives it through your systems, executing reversible actions automatically and requiring a human sign off before anything destructive runs.
For teams that need to answer "what does this AI feature actually cost?" on demand, book a demo to see how Finout brings AI spend under the same governance as cloud infrastructure.