AI Glossary / AI for business and adoption / Beginner
Cost per token
Definition
Cost per token is the price a provider charges for each token of text a language model reads or writes, usually quoted per thousand or per million tokens. It is a unit price, not a total bill. Rates differ by model and by provider, and input tokens (what you send) are often priced differently from output tokens (what the model returns).
What it means
A token is a small chunk of text, often a short word or part of a word. When you use a language model through an API, you are usually billed for the tokens you send in and the tokens you get back. Cost per token is the rate that turns that usage into money.
For a business, this makes AI spend behave like a utility bill. It does not behave like a fixed software license. Spend rises with volume, with the length of each request and with the model you pick. A short question to a small model costs very little. A long document sent to a large model many times a day can add up quickly. The rate on its own tells you little. What matters is how many tokens each task uses and how many tasks you run.
How it works
A provider publishes a price list. Each model has an input rate and an output rate, often stated per million tokens. Some providers also offer a lower rate for repeated or cached input, or for work that can wait and run in batches. Check the current price page, because rates and options change.
When a request runs, the system counts the tokens in your prompt, including instructions, pasted documents and any earlier conversation that is sent again. It then counts the tokens in the reply. Each count is multiplied by its rate, and the two results are added. That sum is the cost of one request.
To estimate monthly cost, multiply the cost of an average request by the number of requests. Then add the extras: retries, extra model calls inside a workflow, and tool use. In a chat, the full history is typically resent with every turn, so longer conversations cost more per message. Roughly four characters make a token in plain English, but the exact count depends on the model's tokenizer and the language used.
Three practical examples
- Finance team: An accounts payable group uses a model to pull fields from vendor invoices. Each invoice sends about 1,500 input tokens and returns 200 output tokens. The team multiplies that by its monthly invoice count to forecast spend before approving the project.
- Retailer: An online store writes product descriptions with a model. It tests a smaller, cheaper model first because the descriptions are short and low risk. It keeps a larger model for customer-facing copy where quality matters more than price.
- Support desk: A help desk assistant answers questions using a long policy document pasted into every request. The team notices most of the bill is input tokens from that repeated document. It trims the document and uses cached input pricing where the provider offers it.
Think of it this way
Think of a prepaid phone plan that charges per minute of talking: the longer and more often you call, the more you pay, and the rate per minute matters less than your total minutes. The analogy stops working because with tokens you pay for what you send and what comes back, and the minutes can balloon without anyone noticing when prompts quietly grow longer.
Worked example
Suppose a model charges $2 per million input tokens and $8 per million output tokens. These are made-up prices for practice. A task sends 1,500 input tokens and gets 300 output tokens.
Input cost: 1,500 divided by 1,000,000 is 0.0015 million tokens. Times $2 gives $0.003.
Output cost: 300 divided by 1,000,000 is 0.0003 million tokens. Times $8 gives $0.0024.
Cost per task: $0.003 plus $0.0024 equals $0.0054, a little over half a cent.
Now run 20,000 tasks a month. 20,000 times $0.0054 equals $108. If the team cuts input to 900 tokens by shortening the instructions, the input cost falls to 0.0009 times $2, which is $0.0018. The task cost becomes $0.0018 plus $0.0024, or $0.0042, and the monthly cost falls to 20,000 times $0.0042, which is $84. That is a saving of $24 a month from trimming the prompt.
Illustrative case study
Fictional case: Harbor Lane Outfitters, a small online seller of camping gear, added an AI assistant to answer shipping and returns questions. The pilot looked cheap, at a fraction of a cent per message. After a month the bill was several times the forecast. The team checked the logs and found two causes. The assistant resent the full return policy and the whole chat history with every turn, and it sometimes retried failed requests without a limit. Input tokens were far higher than planned. The fix had three parts. They shortened the policy text, capped the conversation history sent back, and set a retry limit. They also routed simple questions to a smaller model. Spend fell to roughly the original forecast, and answer quality, checked on a sample of 100 chats, stayed acceptable. The lesson they recorded was to forecast from tokens per task, not from the headline rate.
Common misconceptions and mistakes
A low cost per token means the project will be cheap. The rate is only one factor, because cost depends on how many tokens each task uses and how many tasks you run.
Only the answer you read is billed. Input tokens count too, including instructions, pasted documents and earlier conversation sent again with each request.
The cheapest model always saves money. A cheaper model that needs more retries, longer prompts or human fixes can cost more overall than a stronger one.
Prices stay fixed once you start. Providers change rates, add or drop models and offer discounts such as cached or batch pricing, so recheck regularly.
Business use
To start, pick one task and measure it. Run a sample of 50 to 100 real requests, record average input and output tokens, apply the current price list, and multiply by expected volume. Add a margin for retries and growth. Test two or three models on the same sample and compare both quality and cost, since the cheapest option is not always the best value.
Track cost per completed task, not only the monthly total, along with tokens per request and the share of requests that fail or retry. Set budget alerts and usage limits so a bug or a long prompt cannot run up a large bill unseen. The main risks are unbounded usage, prompts that grow over time and price changes. Reducing cost often means shorter prompts, trimmed history, caching and routing simple work to smaller models, but each change should be checked against output quality.
People also ask
How do I estimate my AI cost per month?
Measure the average input and output tokens for one task, price them using the provider's current rates, then multiply by your expected number of tasks. Add a margin for retries and growth.
Why are output tokens often priced higher than input tokens?
Providers often charge more for output because generating text takes more computation than reading it, though pricing varies by provider and model. Always check the current price page.
How can I lower my cost per token?
You usually cannot change the rate, but you can lower total spend by shortening prompts, limiting history, using cached or batch pricing where offered and routing simple tasks to smaller models.
Check your understanding
In the worked example, what is the cost of one task at the original prompt size?
Answer: $0.0054, made up of $0.003 for input and $0.0024 for output.
What happened to monthly cost when input fell from 1,500 to 900 tokens?
Answer: Cost per task dropped from $0.0054 to $0.0042, so the monthly cost for 20,000 tasks fell from $108 to $84.
Why can a long chat cost more per message than a short one?
Answer: The earlier conversation is usually resent as input with every turn, so each new message carries more tokens.
Why is the headline rate a poor basis for a forecast?
Answer: Total cost depends on tokens per task and task volume, so you need measured usage, not just the price per token.
Related terms
- Token
- Context window
- Inference
- Input and output tokens
- Prompt caching
- Model routing
- API
- Total cost of ownership
Learn next
Pick one task in your business and estimate its cost using a small sample and the current price list. Then read about tokens and context windows to see why prompt length drives cost, and about prompt caching and model routing for ways to reduce it.
More in AI for business and adoption
- Contract analysis - Contract analysis is the use of software, usually language models and related text tools, to read contracts and pull out structured information such as...
- Conversational commerce - Conversational commerce is the use of chat or voice conversations, in messaging apps, on websites or through voice assistants, to help customers discover...
- Copyright and AI - Copyright and AI is the set of legal questions about how copyright law applies to artificial intelligence: whether copyrighted works may be used to train...
- Cost-benefit analysis - Cost-benefit analysis is a method for deciding whether a project is worth doing by listing its expected costs and benefits, putting both in money terms, and...
- Customer experience (CX) - Customer experience (CX) is the sum of a customer's perceptions and interactions with an organization across the whole relationship, from first awareness to...
- Customer lifetime value (CLV) - Customer lifetime value (CLV) is an estimate of the total profit, or sometimes revenue, a business expects to earn from one customer over the whole time...
Sources
Google, Machine Learning Glossary: https://developers.google.com/machine-learning/glossary Gartner, Information Technology Glossary: https://www.gartner.com/en/information-technology/glossary IBM, Think topics: https://www.ibm.com/think/topics The sources were consulted for general definitions of tokens and how language model usage is measured and priced; the examples, analogy, worked example and case are original educational illustrations, and all prices shown are invented for practice. Checked 9 Nov 2026.
Previous: Cost Model Next: Cost-sensitive machine learning