Cheap is a ratio, not a price
When people ask whether a provider is cheap, they usually mean one number from a pricing page. That number is a rate: dollars per million tokens, split into input and output. It tells you nothing until you know how many tokens your product moves and in which direction.
So the useful question is: what does one finished task cost, and how many of those do you run per month? A provider with a higher rate can still be the cheaper option if its model gets the answer right on the first try, and a provider with a very low rate can lose that advantage if you need three attempts per task.
We are not going to quote OpenAI's or anyone else's prices here. They change, and a stale number is worse than none. Open their pricing page, copy the current input and output rates, and plug them into the method below. For our own service the rates are $0.15 per 1M input tokens and $0.50 per 1M output tokens.
Step 1: count tokens per task
Run twenty to fifty real tasks through the API and read the usage block on each response. It gives you prompt tokens and completion tokens. Average them per task type, because a chat turn, a document summary and a code generation call have very different shapes.
from openai import OpenAI
client = OpenAI(
base_url="https://api.cheapopenaiapi.com/v1",
api_key="YOUR_KEY",
)
IN_RATE = 0.15 / 1_000_000 # dollars per input token
OUT_RATE = 0.50 / 1_000_000 # dollars per output token
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise the plot of Hamlet in 5 lines."}],
)
u = resp.usage
cost = u.prompt_tokens * IN_RATE + u.completion_tokens * OUT_RATE
print(u.prompt_tokens, u.completion_tokens, f"${cost:.6f}")
Token counts differ between vendors because each uses its own tokenizer. The same paragraph can be a different number of tokens on two APIs. Always count with the usage block of the API you are testing instead of reusing numbers from another one.
Step 2: price each task shape
With averages in hand, the arithmetic is one line: input tokens times the input rate, plus output tokens times the output rate. Here is that calculation at $0.15 and $0.50 per 1M for four common shapes.
| Task | Input / output tokens | Cost per call | Cost per 1,000 calls |
|---|---|---|---|
| Short chat turn | 1,200 / 300 | $0.00033 | $0.33 |
| Code generation | 3,000 / 1,500 | $0.0012 | $1.20 |
| Summarise a long document | 20,000 / 500 | $0.00325 | $3.25 |
| Roleplay turn with long history | 50,000 / 400 | $0.0077 | $7.70 |
As an example, the document summary works out as 20,000 x 0.15 / 1,000,000 = $0.003 for input, plus 500 x 0.50 / 1,000,000 = $0.00025 for output, for $0.00325 in total. Notice that the last row, with the longest input, is the most expensive even though the answer is short. Input size drives cost in most real products.
Step 3: account for history growth
Chat apps resend the conversation on every turn, so cost grows faster than the number of turns. Take a 40-turn conversation where each exchange adds about 300 tokens (100 from the user, 200 from the model).
- Input on turn n is about 300 x (n - 1) + 100 tokens.
- Summed over 40 turns, that is 300 x 780 + 4,000 = 238,000 input tokens.
- Output is 40 x 200 = 8,000 tokens.
At our rates the input costs 238,000 x 0.15 / 1,000,000 = $0.0357 and the output costs 8,000 x 0.50 / 1,000,000 = $0.004, so the whole conversation is about $0.0397, roughly four cents. About 90% of that is input. If you halve the history you send, for example by summarising old turns, you cut nearly half of the bill without changing the model.
The context window here is 100,000 tokens, prompt plus completion, so very long sessions need trimming anyway.
Step 4: compare on equal terms
Now repeat steps 1 to 3 for the other provider, using that provider's own token counts and current rates. Then check the details that a headline rate hides.
- Quality per attempt. If one model needs two tries for a task the other nails in one, the second is really half the price.
- Charges on failure. On this service, failed or refused requests are not charged. Check how the other vendor treats errors and refusals.
- Minimums and expiry. Our top-ups start at $20 and credit never expires. Other plans may have monthly minimums or expiring credit.
- Rate limits. A full key here allows 8 concurrent requests and 300 per minute. If your traffic needs more, the cheapest rate does not help.
- Fit. A cheap model that refuses your use case costs more than a dearer one that answers it.
Be honest about the last point in both directions. This service runs one open-weight model, with a 100,000-token window and text only. If your task needs a specific vendor's model, or images, audio or embeddings, the right answer is probably another provider no matter what the per-token math says.
Mistakes that make an API look cheaper than it is
Four errors account for most wrong conclusions about cost.
- Mixing units. Some price lists quote per 1,000 tokens and others per 1M. A rate of $0.00015 per 1,000 tokens is the same as $0.15 per 1M, since 0.00015 x 1,000 = 0.15. Convert before comparing.
- Pricing only the first message. A fresh prompt is cheap. The hundredth turn of the same chat is not.
- Ignoring verbosity. A model that writes twice as much per answer doubles your output bill at the same rate. Ask for short answers and set
max_tokenswhere it makes sense. - Counting benchmark scores as savings. A leaderboard result does not say what your tasks cost. Only your own usage numbers do.
Do these four checks once and the rest of the comparison is arithmetic.
Where this service sits on the cost scale
The service behind this site is an OpenAI-compatible API with a single model, uncensored, billed per token from prepaid credit. One million input tokens plus one million output tokens costs $0.65 ($0.15 + $0.50). The $0.50 trial credit buys about 900 calls of 2,000 input and 500 output tokens, since each such call costs $0.00055.
Top-ups can be any whole amount from $20 to $500. You get +5% from $50, +10% from $100 and +15% from $200, so $100 becomes $110 of credit and $200 becomes $230. Payment is in crypto only, USDT on TRC20 or USDC on Base. See the pricing page for the current terms, and the docs for how to call the API.
To try it with your own prompts at no cost, claim the trial on the API key page, then run the script above on your real tasks. Our other article, on common OpenAI API pricing mistakes, covers errors that inflate bills on any provider.
