What Is the Cheapest LLM API? How to Work It Out
What is the cheapest LLM API depends on your workload, not on a single price tag, and anyone who names a winner without asking about your token mix is guessing. Here is the formula, our numbers worked through, and the cases where another option wins.

Key points
- Compare cost per finished job, not price per million tokens in isolation.
- Here the rates are $0.15 per 1M input and $0.50 per 1M output tokens, with no subscription.
- A 10,000-turn chat workload at 3,000 input and 400 output tokens each costs $6.50.
- Free local models and tiny volumes are real reasons to choose something else.
No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).
Get API keyWhy no one answer is correct
Price lists look simple: so many dollars per million tokens. But two providers with the same input price can differ by a factor of three on your real bill, because jobs differ in how many tokens go in and how many come out. A summarizer sends 60,000 tokens and gets 500 back. A story writer sends 800 and gets 3,000. Output is usually priced higher than input, so the second job costs far more per call even though it moves fewer tokens in.
There are other things a price list hides. A minimum top-up, credit that expires, rate limits that force you to buy a bigger plan, and refusals that waste paid calls all change the real figure. And quality matters: a model that needs two attempts costs twice as much per useful answer.
We sell one model at one price, so we can state our side exactly. We will not state other vendors' prices, because they change and we cannot check them for you. What we can do is give you a method that works for any provider, and you plug in whatever numbers their pricing page shows today.
The one formula you need
cost_per_call = (input_tokens * input_price
+ output_tokens * output_price) / 1_000_000
Multiply by your number of calls. Our rates are $0.15 for input and $0.50 for output, both per 1M tokens. A token is roughly three quarters of an English word, so 1,000 tokens is about 750 words, though other languages and code use more tokens per word.
To find your own inputs, take ten real examples of your task, run them, and read the usage field of each response. It lists prompt tokens and completion tokens. Average those and you have the two numbers that drive everything else.
Four workloads, computed
| Workload | Tokens in / out | Cost per call | Volume | Total |
|---|---|---|---|---|
| Chat bot turn with history | 3,000 / 400 | $0.00045 + $0.0002 = $0.00065 | 10,000 turns | $6.50 |
| Short classification | 800 / 20 | $0.00012 + $0.00001 = $0.00013 | 1,000,000 items | $130 |
| Long document summary | 60,000 / 1,000 | $0.009 + $0.0005 = $0.0095 | 1,000 documents | $9.50 |
| Fiction writing | 1,000 / 2,000 | $0.00015 + $0.001 = $0.00115 | 1,000 chapters | $1.15 |
Check one by hand. Chat turn: 3,000 x 0.15 / 1,000,000 = 0.00045. 400 x 0.50 / 1,000,000 = 0.0002. Sum 0.00065. Times 10,000 is 6.5. Use the same steps for any other provider's numbers and you get a fair side-by-side.
Costs that are easy to forget
Minimum top-up and expiry
Here, credit is prepaid, any whole amount from $20 to $500, and it never expires. The $20 floor is a real cost if you only want to spend $3. On the other side, no expiry means a balance never evaporates. Other providers have different rules, so read theirs.
Refusals and failures
Failed or refused requests are not charged here. If your content is fiction with adult themes or other lawful material that mainstream assistants decline, a model tuned to answer without content refusals saves the retries and the manual rewriting. The one hard line is sexual content involving minors, which is never allowed.
Re-sent context
In a chat, the whole history goes in on every turn. A 20-turn conversation does not cost 20 times the first turn; it costs more, since each call is longer than the last. Trim or summarize old turns and the input line shrinks quickly.
Rate limits
A full key allows 8 concurrent requests and 300 requests per minute. A batch job of 1,000,000 short items at 300 per minute takes about 3,333 minutes, close to 56 hours. If you are processing at that scale, the limit matters as much as the price, so ask every provider about theirs.
Volume bonuses change the effective rate
Top-ups carry a bonus: 5% more credit from $50, 10% from $100 and 15% from $200. Put $200 in and you receive $230 of credit. That makes the effective rates about $0.130 per 1M input tokens ($0.15 / 1.15) and $0.435 per 1M output tokens ($0.50 / 1.15). For the chat workload above, the 10,000 turns that cost $6.50 at list rates cost about $5.65 on a bonus balance.
Because credit never expires, there is no pressure to use a large balance quickly, and no waste if a project stops. The full tier table is on the pricing page.
When something else is the better choice
An honest comparison names cases where we lose.
- You can run a model yourself. A small open model on hardware you already own has no per-token charge. You pay in setup time and electricity, and quality depends on the model you can fit.
- Your usage is a few hundred calls. Many providers offer free allowances or trials. Ours is $0.50 of credit for 7 days, which covers about 770 chat turns of the size above (0.50 / 0.00065). That may be all you ever need, but check the other providers' current free offers too.
- You need the strongest reasoning available. This is one open-weight model run by an independent provider. It is not the official API of any big vendor and not a router across vendors. For hard multi-step reasoning, test it on your own samples before you commit.
- You need images, audio, embeddings or fine-tuning. This API does text only.
- You need a vendor's own model by name. This service does not offer that.
It fits best when you want a pay-per-token text model with no subscription, an OpenAI-compatible interface, and no content refusals for lawful adult use. If you also draw images from generated text, the guide on prompt mistakes in image APIs covers the neighbouring problem.
Keeping the bill flat as you grow
Whatever provider you pick, the same habits hold the bill down. First, set max_tokens for tasks with a known answer size, since output is the expensive side. A classifier that returns one label has no need for a 2,000 token ceiling, and a cap stops a stray rambling reply from costing you ten times the usual amount.
Second, put the stable part of the prompt to work. Instructions that run to 1,500 tokens and repeat on every call add $0.000225 each time at our input rate. Cut them to 400 tokens and that falls to $0.00006, which over a million calls is the difference between $225 and $60. Third, batch small items. Sending 20 short tickets in one call and asking for a JSON list back pays for the instructions once rather than twenty times.
Fourth, watch the response headers. X-Balance-USD comes back with every reply, so a one-line check in your code can warn you before credit runs out mid-job. Finally, test a cheaper setting before you scale: lower temperature for extraction tasks usually gives shorter, more predictable answers, and predictable answers are cheaper answers.
Measure it yourself in ten minutes
Create an account with Google or email and password, open the API key page and claim the trial credit with one click. It is one per person and needs no payment. Then run a script that sends your real prompts and prints what each call cost.
from openai import OpenAI
client = OpenAI(
base_url="https://api.unrestrictedimagegenerator.top/v1",
api_key="YOUR_API_KEY",
)
IN_P, OUT_P = 0.15, 0.50 # dollars per 1M tokens
prompts = ["Summarize the following ...", "Classify this ticket ..."] # your real samples
total = 0.0
for p in prompts:
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": p}],
max_tokens=500,
)
u = r.usage
cost = (u.prompt_tokens * IN_P + u.completion_tokens * OUT_P) / 1_000_000
total += cost
print(u.prompt_tokens, u.completion_tokens, f"{cost:.6f}")
print("average per call:", total / len(prompts))
Take the average, multiply by your monthly volume, and compare that with the same calculation for any other candidate. If the sample outputs are good enough and the total is lower, you have your answer. The API documentation lists every parameter, including streaming, tool calling and JSON mode. The base URL is https://api.unrestrictedimagegenerator.top/v1, the model is uncensored, and prompts are not used for training.
More guides
Questions and answers
Is this the cheapest LLM API?
We cannot say, because we do not verify other providers' current prices. Our rates are $0.15 per 1M input and $0.50 per 1M output tokens, so you can run the formula against any alternative.
Is there a monthly fee?
No. You pay per token from prepaid credit, and the credit never expires.
What is the smallest amount I can add?
$20, in any whole amount up to $500, paid in USDT on TRC20 or USDC on Base. Bonuses start at $50.
Do failed requests cost money?
No. Failed or refused requests are not charged.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.