Cheap is a total, not a price tag
Every provider advertises a price per million tokens. That number matters, but it is only one of the things that decide your bill. Two teams using the same model at the same list price can end up paying very different amounts, because one sends long prompts with every request, retries failures blindly and uses its largest model for everything, while the other does none of those things.
So the useful question is not "which API has the lowest price?" but "which setup gives me the quality I need for the lowest total cost?" The answer has three parts: the price you pay per token, the number of tokens you use, and the work it takes to keep both under control.
How token pricing works
Language models read and write text in tokens, which are pieces of words. As a rough guide, 1,000 tokens is about 750 English words. Almost every API charges separately for two things:
- Input tokens: everything you send. That includes your instructions, the conversation so far, any files or code you attach, and the descriptions of tools the model can call.
- Output tokens: everything the model writes back, including any reasoning it does before answering.
Output is almost always priced higher than input, often several times higher. That is why the same model can look cheap for one job and expensive for another. A classifier that reads a long document and answers with one word is nearly all input. A writing assistant that turns a short brief into a long article is mostly output.
What really drives the bill
Conversation history
Chat models have no memory between requests. To continue a conversation, your app sends the whole history again each time. A coding agent that has been working for an hour may send tens of thousands of input tokens on every step, even when the new instruction is one line. For agents, input is usually more than 90% of all tokens.
Model choice
The gap between the largest and smallest model in a family is often ten times or more. Many tasks, such as tagging, extraction, routing and short summaries, are handled well by a small model. Sending them to the flagship model is the most common way to overpay.
Retries and failures
A request that times out and is retried three times costs up to four times as much if each attempt was billed. Check how a provider treats failed requests. On CheapTokens, a request that fails is not charged.
Output length
If you only need a short answer, say so, and set a sensible max_tokens. Models tend to write more than you need when given room.
Where the lower prices come from
Model providers sell the same capacity at different effective prices: list prices for small accounts, volume discounts for large ones, committed-use deals, promotional credit and regional offers. A reseller or gateway that buys in bulk can pass part of that difference on. That is how a service like CheapTokens can sell access to the same models below the list price.
This is worth understanding because it tells you what to check. A low price should come with a clear answer to three questions: which model am I really getting, how is usage measured, and what happens when something fails?
What to compare, beyond price
| Question | Why it matters |
|---|---|
| Are input and output prices both published? | A single "blended" figure hides how your own mix will be billed. |
| Is usage taken from the model's own report? | You should be able to see input tokens, output tokens and the charge for every request. |
| Are failed requests free? | Otherwise outages cost you twice: once in downtime, once on the bill. |
| Is it prepaid or postpaid? | Prepaid balances cap your risk. A leaked key can only spend what is there. |
| Can I limit spend per key? | Lets you run experiments and unattended jobs without watching them. |
| Which formats are supported? | OpenAI-compatible and Claude-compatible endpoints mean existing tools work unchanged. |
| What happens to my prompts? | Check whether request content is stored, and by whom. |
A fair way to compare two providers
- Collect real requests. Take 50 to 100 prompts from your own product, not a benchmark. Include the long ones.
- Run them on both. Use the same model and settings. Record input tokens, output tokens, latency, errors and the charge.
- Check the answers. A cheaper request that produces a worse answer is not cheaper. Compare a sample by hand.
- Work out cost per task. Divide the total charge by the number of successful results. This is the number that matters, and it already includes retries and failures.
- Scale it up. Multiply by your expected monthly volume and compare.
Seven ways to spend less on any provider
- Use the smallest model that passes your quality check, and keep the large one for the hard cases.
- Trim conversation history. Summarise old turns instead of resending them.
- Keep system prompts short. They are billed on every request.
- Send only the parts of a document the model needs, not the whole file.
- Set
max_tokensto fit the answer you expect. - Retry with a delay and a limit, and don't retry requests that failed because they were invalid.
- Give each app its own API key with a spend limit, so one runaway job can't empty the balance.
Warning signs
Be careful with any service that won't say which model a name maps to, shows only one unexplained price, has no per-request history, or asks for a long commitment before you have tested it. A good provider lets you start small, see every charge and leave whenever you like.
Trying it on CheapTokens
CheapTokens gives you GPT, Claude, Gemini, DeepSeek and other models behind one key and one prepaid balance. Input and output prices for every model are on the models page, each request is listed with its tokens and exact charge, failed requests are free, and every key can have its own spend limit. The setup wizard has copy-and-paste steps for the common coding tools, so a side-by-side test takes a few minutes.
Create a CheapTokens account ↗