The API for uncensored AI models
AI API Cost Comparison: How to Calculate Costs Fairly

A comparison often fails because price lists do not measure the same unit. Here is what numbers you must compare side by side and how to calculate your actual monthly bill in advance.
Updated

Key points
- Compare input and output price separately, per 1 million tokens.
- Conversation history is recalculated as input with every request.
- Failed requests, minimum top-up, and credit expiry belong in the bill.
- External prices change: always check the provider's current pricing page.
The short answer: three numbers, one scenario
For a fair AI API cost comparison, you need only three numbers per provider: the price per 1 million input tokens, the price per 1 million output tokens, and the rules regarding credit (minimum amount, expiry, billing for errors). Plus your own scenario: how many requests per month, with how many tokens in and out.
Only with this scenario do two price lists become a comparable monthly sum. We deliberately do not name external prices here, as they change continuously. Read them from the provider's current pricing page and plug them into the formula below.
Kosten pro Anfrage = (Input-Tokens / 1,000,000) * Input-Preis
+ (Output-Tokens / 1,000,000) * Output-PreisWhy count input and output separately
Many chat APIs bill input and output at different rates, and usually output is more expensive. Check this with every provider on the current pricing page. With our API, 1 million input tokens cost $0.15 and 1 million output tokens cost $0.50. Output is thus about three times more expensive than input.
This has consequences for the comparison. A provider with a low input price but high output price is worthwhile for summarizing long texts (much in, little out). For stories or code generation (little in, much out), this flips. A single price per token without this separation tells you nothing.
Calculation examples with our prices
Three typical workloads, calculated exactly at $0.15 per 1M input and $0.50 per 1M output.
| Scenario | Input | Output | Cost per request | Quantity | Total |
|---|---|---|---|---|---|
| Chat response | 3,000 | 600 | $0.00045 + $0.00030 = $0.00075 | 10,000 | $7.50 |
| Document question | 20,000 | 500 | $0.00300 + $0.00025 = $0.00325 | 1,000 | $3.25 |
| Long context | 80,000 | 2,000 | $0.01200 + $0.00100 = $0.01300 | 100 | $1.30 |
How to read the first line: 3,000 tokens are 0.003 million, times $0.15 equals $0.00045. 600 tokens are 0.0006 million, times $0.50 equals $0.0003. Total $0.00075, for 10,000 requests $7.50.
If you repeat this table with another provider's prices, you have a real comparison instead of a gut feeling.
History eats more than the response
The biggest source of error in cost estimates is conversation history. A chat API is stateless: for every request, you resend the entire conversation history, and it is billed as input every time.
Example: The system prompt has 500 tokens, each user message 200, each response 300. The input for the first round includes 700 tokens, for the second 1,200, for the third 1,700, and so on, 500 more per round. After 10 rounds, you have consumed 10 × 700 + 500 × 45 = 29,500 input tokens and 3,000 output tokens. This costs 29,500 / 1,000,000 × $0.15 = $0.004425 plus 3,000 / 1,000,000 × $0.50 = $0.0015, totaling about $0.0059 for the whole conversation.
The sum grows quadratically with the length of the conversation. If you run long roleplays or support dialogues, you should summarize or truncate older turns. The context window for a request can cover up to 100,000 tokens (prompt plus response) with us, but just because the window is large doesn't mean you have to fill it.
Credit rules belong in the comparison
Besides the token price, contract details determine the total cost. Note for every provider:
- Billing model: Prepaid credit or subscription with a base fee? A subscription is only worthwhile if you actually use up the quota.
- Minimum top up: With us, it is $20, up to $500, in whole amounts. From $50 you get +5 % bonus, from $100 +10 % and from $200 +15 %.
- Expiry: Our credit never expires. With others, check the terms.
- Failed requests: We do not charge for failed or rejected requests.
- Limits: 8 parallel requests and 300 per minute with a full key. A tight limit costs you developer time for queues.
- Payment methods: We accept crypto (USDT on TRC20, USDC on Base).
Retries also count. On a rate limit response (HTTP 429), send the same request later; plan a queue with pauses for batch jobs instead of retrying blindly. Also watch max_tokens: without a cap, a response can use the rest of the context window, and an overflowing output is the most expensive part of the bill.
An example of the bonus: topping up $100 gives you $110 in credit, $200 gives $230.
What cannot be compared in tokens
A low price helps little if the model does not perform your task. Therefore, also check whether rejections affect your application. Our offering is a single open-weight model from an independent provider, tuned for responses without refusal for lawful use by adults. It is not an official API from a major vendor and not a router over multiple providers. More on production selection criteria is in the uncensored AI checklist for production.
Additionally, the API is text-only: no images, no audio, no embeddings, no fine-tuning. If you need such features, you have to buy them from another service anyway, and that belongs in your total cost. A hard limit always applies: no sexual content with minors.
Your own bill in five minutes
Run this small script to read the real token counts from the response and convert them to dollars. The API provides the consumed tokens in the usage field, and the header X-Balance-USD shows the remaining balance.
from openai import OpenAI
client = OpenAI(base_url="https://api.kiapis.com/v1", api_key="DEIN_SCHLUESSEL")
antwort = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Fasse den Nutzen von Prepaid-Guthaben in drei Sätzen zusammen."}],
)
u = antwort.usage
kosten = u.prompt_tokens / 1_000_000 * 0.15 + u.completion_tokens / 1_000_000 * 0.50
print(u.prompt_tokens, u.completion_tokens, f"${kosten:.6f}")Run the script over 50 to 100 real requests from your application and average the values. This is more reliable than any estimate. For testing, the $0.50 free trial credit is enough, which you can get with one click on the get API key page after signing in. It is valid for 7 days and requires no payment details. Details on parameters are in the documentation, current rates on the pricing page.
More guides
Frequently asked questions
How much does an AI API cost per month?
This depends solely on your usage. At $0.15 per 1M input and $0.50 per 1M output, 10,000 chat responses with 3,000 tokens input and 600 tokens output each cost $7.50.
Why is output more expensive than input?
Output tokens are generated sequentially by the model, input tokens are processed in one pass. That is why output is more expensive with many providers; check the pricing list of the respective provider.
Are failed requests billed?
Not with us: failed or rejected requests are not charged. Other providers state this in their terms.
Can I test the API for free?
New users can get $0.50 free trial credit once per person with one click on the key page. It is valid for 7 days and requires no payment details.
Your key is just one click away
Create account, copy key, adjust Base URL. That’s it.