Cost per Token
What is Cost per Token?
Cost per token is the price paid for each token a language model processes, usually quoted per million tokens with separate rates for input and output, and the basic unit price of AI services.
Updated November 2026 · 2 min read
Cost per token is the price an AI provider charges for each token a model processes, and the unit price of most AI services. Providers usually quote it per million tokens, with separate prices for input tokens, which are sent to the model, and output tokens, which the model generates. Output is typically priced several times higher than input, because generating each output token takes more computation. Many providers also offer lower rates for cached input and for batch processing.
Prices vary enormously. The most capable models can cost tens or even hundreds of times more per token than small, efficient models from the same provider. And prices for a given level of capability have fallen steeply since 2023, as providers have released more efficient models.
A typical price sheet
A provider's price list for one model might include:
- Input tokens, per million.
- Cached input tokens, at a large discount to standard input.
- Output tokens, per million, at a multiple of the input price.
- Batch rates, often around half the standard price.
- Higher rates for very long prompts on some models.
- Separate prices for images, audio or tools such as web search.
How to calculate cost per request
Cost per request = (input tokens × input price) + (output tokens × output price), adjusted for cached tokens and any reasoning tokens. Prices are per million tokens, so divide by 1,000,000.
Take a hypothetical model priced at $3 per million input tokens and $15 per million output tokens. A request with 2,000 input tokens and 500 output tokens costs:
- Input: 2,000 × $3 ÷ 1,000,000 = $0.006
- Output: 500 × $15 ÷ 1,000,000 = $0.0075
- Total: $0.0135
At a million requests a month, that is $13,500. The same workload on a model priced at a tenth of those rates would cost $1,350.
Why cost per token is not enough
- Token efficiency differs. Models tokenize text differently, and some produce longer answers or more reasoning tokens. A model with a lower price per token can cost more per task.
- Capability differs. A cheaper model that fails more often may need retries or human correction.
- Full cost includes more than tokens. See LLM cost.
For these reasons, cost per task at an acceptable quality level is usually a better basis for comparing models.
An example
Consider a hypothetical team choosing between two models for extracting data from contracts. Model A costs a third as much per token as Model B. On a test set of 500 contracts, Model A writes longer outputs, so each attempt costs about half as much as a Model B attempt rather than a third. Model A also fails on 12% of contracts, which must then be rerun on Model B. Model B fails on 2%. Taking a Model B attempt as 1.0, Model B costs about 1.02 per successful contract, while Model A costs about 0.5 + (0.12 × 1.02) = 0.62. Model A is only about 40% cheaper per successfully processed contract, not 67%, and its failures add human review time. The team uses Model A for simple contracts and Model B for complex ones.
Ways to lower effective token costs are covered in AI cost optimization. The unit itself is explained in AI tokens.
Frequently asked questions
How do you calculate the cost of an AI request from cost per token?
Multiply input tokens by the input price and output tokens by the output price, then divide by one million, since prices are quoted per million tokens. At $3 and $15 per million, 2,000 input and 500 output tokens cost $0.0135. Adjust for cached input and any reasoning tokens.
Why can a model with a lower cost per token cost more overall?
Models tokenize text differently, and some write longer answers or produce more reasoning tokens, so a lower price per token does not guarantee a lower price per result. A cheaper model that fails more often also needs retries or human correction. Comparing cost per completed task at an acceptable quality level gives a truer picture.
What discounts can lower the cost per token of an AI model?
Many providers charge much less for cached input tokens, which are repeated prompt content, and offer batch rates around half the standard price for work that can wait. Negotiated or committed pricing can lower rates further. Some models charge higher rates for very long prompts, so prompt length also affects effective cost per token.
Related terms
Reasoning Tokens
Hidden thinking a model does before answering, usually billed as output.
LLM Cost
Everything it costs to build and run applications on language models.
Cost per Task
The full cost of one unit of AI-assisted work, every call and retry included.
AI Cost Optimization
Getting the same value from AI for less, through models, usage and pricing.