Cheap LLM Model API: Real Cost per Million Tokens
The price per million tokens is only half the story. What you pay depends on how many tokens each request carries, how often history gets resent, and whether failures are billed. Here is the arithmetic, worked through on real workloads.
Last updated

What cheap means in practice
A cheap llm model api is one where your cost per finished task is low, not one with the smallest number on a pricing table. Two APIs with the same list price can differ by a factor of three on your bill, because of how your prompts are shaped.
Four numbers decide it: input tokens per request, output tokens per request, requests per month, and the rates for input and output. The service behind this site charges $0.15 per 1M input tokens and $0.50 per 1M output tokens, prepaid, with no subscription. Failed or refused requests are not charged, and credit never expires.
The formula is short.
cost = (input_tokens x 0.15 + output_tokens x 0.50) / 1,000,000
Everything below is that line applied to different workloads.
Five workloads, worked out
| Workload | Input | Output | Per request | Per volume |
|---|---|---|---|---|
| Support chat turn | 1,500 | 300 | $0.000375 | 10,000 turns: $3.75 |
| Retrieval answer with sources | 6,000 | 400 | $0.0011 | 10,000 answers: $11.00 |
| Agent task of 10 tool steps | 8,000 avg per step | 200 per step | $0.013 per task | 1,000 tasks: $13.00 |
| Long document pass | 95,000 | 3,000 | $0.01575 | 100 documents: $1.575 |
| Bulk classification | 400 | 20 | $0.00007 | 1,000,000 items: $70.00 |
Check one by hand. The retrieval row is 6,000 times $0.15 per million, which is $0.0009, plus 400 times $0.50 per million, which is $0.0002. The sum is $0.0011, so ten thousand answers cost $11.00.
The agent row deserves a note. Each step resends the growing conversation, so input dominates: 8,000 tokens in costs $0.0012, 200 out costs $0.0001, giving $0.0013 per step and $0.013 for ten steps.
The 100k-token prompt
The context window is 100,000 tokens, shared by prompt and completion. People often assume a giant prompt is expensive. Run the numbers: 100,000 input tokens cost $0.015. If you also ask for 2,000 tokens back, add $0.001, for $0.016 in total.
At that price, a request that fills most of the window costs less than two cents. That makes whole-document questions practical: you can paste a long report, a transcript, or a long roleplay history and ask a question about it.
The catch is repetition. If a chat resends a 90,000-token history on every turn, a ten-turn conversation costs ten times the single-pass price, about $0.135 on input. The fix is not a cheaper API, it is a shorter history. Keep a rolling summary and the last few turns instead of everything.
Costs that never show up on the price list
- Minimum top-up. Here, it is $20, paid in crypto (USDT on TRC20 or USDC on Base). That buys 133.3M input tokens or 40M output tokens. For a small project it is months of use, but it is a lump sum.
- Idle cost. Per-token billing has none. Rented hardware does.
- Retries. Some providers bill retries they accepted, so check theirs. Here, failed or refused requests are not charged, which keeps retry loops from costing you.
- Expiry. Credit that expires is a hidden fee. Credit here does not expire.
- Rate ceilings. A full key allows 8 concurrent requests and 300 per minute. If your batch job needs more, run time grows even though the price does not.
Top-ups carry a bonus: +5% from $50, +10% from $100 and +15% from $200. A $100 top-up therefore gives $110 of credit. Details are on the pricing page.
Six ways to cut your bill
- Cap replies. Output costs more than three times as much as input per token. Set
max_tokenswhere short answers are fine, and ask for brevity in the prompt. - Trim history. Send a rolling summary plus the last few turns, not the whole log.
- Use stop sequences so the model does not keep writing after the useful part.
- Cache your own answers. If the same question arrives often, store the reply and skip the call.
- Retrieve less. Four relevant passages beat twenty marginal ones.
- Ask for structured output with JSON mode when a program, not a person, reads the result. It is usually shorter than prose.
None of these require a different provider. Together they often halve the token count for chat apps.
A monthly budget in three steps
Take a companion-style chat app with 2,000 conversations a day and six turns per conversation. That is 12,000 turns a day.
- Price one turn. With 3,000 tokens of history and prompt in, and 350 tokens out: 3,000 times $0.15 per million is $0.00045, and 350 times $0.50 per million is $0.000175. One turn costs $0.000625.
- Scale to a day. 12,000 turns at $0.000625 is $7.50, and 30 days is $225.
- Apply one optimisation. Trim the history so each turn sends 1,500 tokens instead of 3,000. Input falls to $0.000225, so a turn costs $0.0004. A day is $4.80 and a month is $144.
One change in how you build the prompt saved $81 a month, which is more than a few cents off a list price would ever do. If you top up $200, the +15% bonus makes it $230 of credit, so the trimmed app above runs for about 48 days on that single payment (230 divided by 4.80).
Comparing providers without the marketing
When you compare two APIs, do not compare list prices alone. Check their current pricing pages and build your own table with these columns:
- Input and output rates, side by side.
- Context window, and whether prompt and completion share it.
- Whether failed requests are billed.
- Whether credit expires, and the minimum top-up.
- Rate limits for your tier.
- Whether the API accepts the OpenAI format, which decides how much code you rewrite.
Then multiply each row by your own request sizes from the workload table above. The result is a monthly figure you can actually compare.
A word on fit: this service offers one text-only model, tuned to answer without content refusals for lawful adult use. If you need images, embeddings, or a choice of models, a cheaper token price here will not help. If you need uncensored text at low cost, the trial on the key page gives $0.50 of credit, enough to run your own workloads through the formula and see the bill. Reference material is in the docs, and our troubleshooting article covers errors that waste tokens.
To get your own token mix, read the usage block that comes back with every response. It reports prompt and completion tokens, so a small script can tally a real week of traffic.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.hereticllmmodels.com/v1", api_key=os.environ["API_KEY"])
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise the plot of Hamlet in two lines."}],
)
u = r.usage
cost = (u.prompt_tokens * 0.15 + u.completion_tokens * 0.50) / 1_000_000
print(u.prompt_tokens, u.completion_tokens, round(cost, 6))
Log those three numbers for each call and you will know your average request size, your input-to-output ratio and your real cost per task, which beats any estimate.
More guides
Begin with free credit
Use email and password; key appears instantly.
Common questions
What does one million tokens cost here?
Input costs $0.15 per 1M tokens and output costs $0.50 per 1M tokens, paid from prepaid credit with no subscription.
How much does a request with a full 100k prompt cost?
About $0.015 for 100,000 input tokens, plus $0.0005 for every 1,000 output tokens. The window is shared, so a long reply shrinks the room for the prompt.
Do I pay for failed requests?
No. Failed or refused requests are not charged.
How do I check my balance?
Read the X-Balance-USD response header on any call, or request GET /v1/balance or the OpenAI-style credit_grants endpoint.
Secure your API key
Register, retrieve your key, update the endpoint. Minimal config required.