The short version
An ai api token cost comparison only works when every provider is reduced to one unit, and that unit should be dollars per job, not dollars per million tokens. On this site the rates are $0.15 per 1M input tokens and $0.50 per 1M output tokens, charged from prepaid credit with no subscription. The sections below show how to turn those two numbers into a monthly figure, and how to set another provider beside it without guessing.
We do not print competitor prices here. They change, they differ by model and tier, and a stale number in an article is worse than none. You get a worksheet instead. Fill the other column from the provider's own pricing page on the day you decide, then let the arithmetic speak.
Why per-million prices mislead
A price list gives you two numbers per model, one for tokens you send and one for tokens you receive. Output is almost always the more expensive side. Here the output rate is $0.50 against $0.15 for input, a ratio of about 3.3 to 1. Two providers can both look cheaper than the other depending on which side of the ratio your traffic sits on.
Think about two apps. A classifier reads 3,000 tokens and answers with 5. A story writer reads 300 tokens and answers with 3,000. The classifier is nearly all input cost, the writer is nearly all output cost. If provider X has a low input rate and a high output rate, it wins for the first app and loses for the second. A single headline number hides that.
There is a second trap. Tokenizers differ between models, so the same paragraph can count as 1,000 tokens on one API and 1,150 on another. Comparing rates without comparing counts is half a comparison. The fix is to send the same prompt to each API and read the usage numbers each one reports.
Four workloads, priced exactly
Here are four workloads priced from the rates above. Each line is token count divided by 1,000,000, times the rate.
| Workload | Input | Output | Total |
|---|---|---|---|
| Support bot: 1,000 requests, 2,000 in and 500 out each | 2,000,000 tokens = $0.30 | 500,000 tokens = $0.25 | $0.55 |
| Batch summaries: 10,000 documents, 6,000 in and 400 out each | 60,000,000 tokens = $9.00 | 4,000,000 tokens = $2.00 | $11.00 |
| Long story session: 50 turns, 40,000 in and 300 out each | 2,000,000 tokens = $0.30 | 15,000 tokens = $0.0075 | about $0.31 |
| Writing job: 200 requests, 300 in and 3,000 out each | 60,000 tokens = $0.009 | 600,000 tokens = $0.30 | $0.309 |
The support bot costs $0.00055 per request, so a $20 top-up covers roughly 36,000 such requests. The batch job is dominated by input, as you would expect from long documents and short answers. The story session shows the cost of resending history: the model writes only 15,000 tokens in total, but you pay for 2,000,000 tokens of context because each turn carries the whole conversation again.
One useful ceiling: the context window is 100,000 tokens, prompt plus completion. A request that fills the whole window with input costs 100,000 times $0.15 per 1M, which is $0.015. No single request can surprise you by much more than that on the input side.
A worksheet you can run
Do not trust estimates of your own token counts. Run a sample of real prompts, read the usage block, and price it twice. The script below sends one request and computes the cost with our rates and with a second pair of rates that you fill in.
from openai import OpenAI
client = OpenAI(base_url="https://api.ltxnsfw.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarize the plot of a heist film in five sentences."}],
)
u = resp.usage
def cost(prompt_tokens, completion_tokens, in_rate, out_rate):
return (prompt_tokens * in_rate + completion_tokens * out_rate) / 1_000_000
ours = cost(u.prompt_tokens, u.completion_tokens, 0.15, 0.50)
print("tokens:", u.prompt_tokens, u.completion_tokens, "cost:", round(ours, 6))
# For the other provider, use ITS token counts from ITS usage block
# and the rates from ITS pricing page, then compare the two totals.
Repeat this over 50 to 100 representative prompts and sum the results. Multiply by your expected monthly volume. That number is the one to compare, and it already includes the tokenizer difference. Response headers help too: X-Balance-USD shows your remaining credit after each call, so you can confirm the sum against what the account actually spent.
What else changes the real bill
The two rates are not the only line items in a budget. Check these before you decide.
- Failed requests. Failed or refused requests are not charged here. Ask the same question of any other provider you compare.
- Expiry. Credit never expires. If another service expires prepaid balance, a cheap rate can still cost more in practice.
- Limits. A full key allows 8 concurrent requests and 300 requests per minute. A batch job that needs 50 parallel workers will run slower than the price suggests, whoever you pick.
- History. Chat apps pay for context again on every turn. Trimming or summarizing old turns often saves more than switching providers.
- Retries. Rate limit errors return HTTP 429, and a good client backs off. Budget a few percent of extra calls for retries in any provider.
Top-up bonuses change the effective rate
Top-ups are any whole amount from $20 to $500, with a bonus on larger ones: +5% from $50, +10% from $100 and +15% from $200. A $50 payment gives $52.50 of credit, $100 gives $110, and $200 gives $230. Payment is in crypto, USDT on TRC20 or USDC on Base.
At the top tier you receive $230 of credit for $200, so the effective rates drop to about $0.13 per 1M input tokens ($0.15 divided by 1.15) and about $0.43 per 1M output tokens ($0.50 divided by 1.15). Use the effective rate in your worksheet if you plan to buy at that tier. The pricing page lists the tiers.
New users can also claim $0.50 of trial credit with one click on the key page after sign-up. That is enough to run the worksheet above on a few dozen prompts before you spend anything. It lasts 7 days, needs no payment details, and is limited to one per person. Start at the API key page.
A budgeting routine that holds up
Once you have a per-request figure, a monthly budget takes five steps. They work for any provider, and they are the reason the worksheet above exists.
- Collect 50 to 100 real prompts, not toy ones. Include your longest cases.
- Run them and sum the reported input and output tokens.
- Scale to your expected volume, then price it with the current rates.
- Add headroom of 20%. Prompts grow, histories lengthen and retries happen.
- Watch the remaining balance during the first week and compare it with the forecast.
Here is the headroom step with the batch job from the table. One run costs $11.00. If it runs four times a month, that is $44.00, and with 20% headroom the budget line becomes $52.80. Starting from a $50 top-up, which arrives as $52.50 of credit, you would be very close to covered.
Also price quality. If one answer in five is unusable and you rerun it until it works, the expected number of attempts per good answer is 1 divided by 0.8, or 1.25. The support bot example would then cost $0.55 times 1.25, about $0.69 per 1,000 usable answers. A model that refuses a request yields no answer at all, so a cheaper rate on a model that declines your content is a false saving. Compare cost per usable answer, and the ranking sometimes flips.
When another provider is the better choice
Price is one input. This service offers one open-weight text model, called uncensored, run by an independent provider. It is not a router, and it does not generate images, audio or video, create embeddings, or fine-tune. If your project needs any of those, or needs a particular vendor's flagship model, you will be buying from someone else and the comparison above only helps with the text part.
The reverse also holds. If your work involves fiction, roleplay or other lawful adult use that mainstream hosted models decline, a cheaper rate on a model that refuses the request is not cheaper. Cost per useful answer is the number that matters, and refusals count as zero answers. Details on the endpoints and parameters are in the documentation.
