EN ▾
Get API key
Get API key

Uncensored LLM API for adults

Chatbot Price Comparison: Best Practices for API Costs

Per-token price lists look easy to compare and often mislead. This article gives you a method for a fair chatbot price comparison: measure your own traffic, model whole conversations, then plug in each provider's rates.

Updated

Balance scale weighing token stacks against coins, illustrating chatbot API price comparison

Key points

  • Compare cost per finished conversation, not the price per 1M tokens on a list.
  • Chat history is resent every turn, so input tokens usually dominate long chats.
  • At $0.15 per 1M input and $0.50 per 1M output, a 20-turn chat in the example costs $0.01585.
  • Count refusals, retries, minimum top-ups and expiry rules, because they change the real price.

A method that survives contact with real traffic

Searches for chatbot price comparison best practices usually end at a table of rates, and that table is the least useful part of the exercise. Two providers can list the same price per million tokens and still differ several times over in what a finished conversation costs, because the amount of text sent and received differs. The method below takes about an hour and gives you a number you can trust.

  1. Log or estimate real usage: tokens in and tokens out for a sample of 100 or more conversations from your app.
  2. Turn that into a cost per conversation, including resent history.
  3. Apply each provider's input and output rates to the same numbers.
  4. Add the hidden items: refusals, retries, minimum purchase, expiry and rate limits.
  5. Re-run the comparison when your prompt or traffic changes.

Everything else in this article expands on those five steps, using this service's rates as the worked example: $0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit with no subscription. For other vendors, read their current pricing page on the day you compare, because rates change and old numbers in blog posts go stale quickly.

Step 1: Know your tokens

A token is roughly three to four characters of English text, though code and other languages use more. Do not guess. Every chat completion response carries a usage block with prompt and completion token counts, and with streaming you get usage at the end of the stream. Store those two numbers per request for a week and you have a real dataset.

Group the data into a few conversation shapes. A support bot might see short sessions of 3 turns. A roleplay or companion app might see sessions of 40 turns. A one-shot tool such as a text rewriter has one turn. Each shape has a different cost profile, so price them separately and weight by how often they occur.

The split between input and output matters because they are priced differently. Output tokens cost more per token here ($0.50 against $0.15), but chats send far more input than output, since the whole history rides along with each new message. In most chat apps input ends up being the bigger share of the bill.

Step 2: Model a whole conversation

Take a chat with a 500-token system prompt. Each turn the user writes about 150 tokens and the model answers with about 250. The history grows by 400 tokens per turn. For a 20-turn conversation, the input at turn k is 650 + 400 x (k - 1) tokens, which sums over 20 turns to 20 x 650 + 400 x 190 = 89,000 input tokens. Output is 20 x 250 = 5,000 tokens.

PartTokensRate per 1MCost
Input, 20 turns89,000$0.15$0.01335
Output, 20 turns5,000$0.50$0.0025
Whole conversation94,000$0.01585

That is about 1.6 cents for twenty turns. At 1,000 such conversations a month the bill is $15.85. Notice that input is $0.01335 of the $0.01585, about 84 percent. If you cut history by summarising old turns, you attack the biggest line directly. If you only compare output rates, you are looking at the wrong number.

For a shorter job, such as a retrieval-backed question with 6,000 input tokens and a 400-token answer, the cost is 6,000 x $0.15 / 1,000,000 = $0.0009 plus 400 x $0.50 / 1,000,000 = $0.0002, so $0.0011. Ten thousand of those cost $11.

Step 3: Compare like with like

With a per-conversation figure in hand, apply every candidate's rates to the same token counts. A few rules keep the comparison honest.

  • Same task, same prompt. A model that needs a 1,500-token prompt of instructions to behave costs more than one that works with 300, even at equal rates.
  • Different tokenizers. The same text can be a different token count on different models. Use each provider's own usage numbers, not your estimate from another.
  • Quality at the price. A cheaper model that needs two attempts per answer is not cheaper. Run your real prompts and score outputs before you decide.
  • Behaviour. If your product needs fiction, roleplay or moderation text that mainstream assistants decline, the relevant comparison is the cost of a model that answers, not the cost of one that refuses.

Be careful not to compare a hosted API against a self-hosted GPU on price alone. A rented GPU has a fixed monthly cost whether it is busy or idle, so it only wins when your traffic keeps it occupied most of the time. For bursty or early-stage traffic, pay per token is usually cheaper. Our cost and trade-off analysis works through that decision for adult-content chatbots in more detail.

Hidden items that change the price

Rates are only part of the bill. Check these before you decide.

  • Refused and failed requests. Here they are not charged. Check whether a provider bills for a refusal or a timeout, since a high refusal rate on your content adds real cost.
  • Minimum top-up. Top-ups here start at $20 and go up to $500, in whole dollar amounts. With a bonus of +5% from $50, +10% from $100 and +15% from $200, a $200 top-up buys $230 of credit. Divide by your per-conversation cost: $230 / $0.01585 is about 14,511 conversations of the example.
  • Expiry. Credit here never expires. Some providers expire prepaid balances, so ask.
  • Rate limits. A full key allows 8 concurrent requests and 300 per minute. If your peak traffic needs more, you will queue, which has a latency cost even if it has no direct price.
  • Payment method. This service takes USDT on TRC20 or USDC on Base. If you cannot pay that way, the cheapest rate is irrelevant.

Ways to lower the bill without switching

Once you know where the tokens go, a few changes pay off quickly.

  1. Trim the system prompt. Every word is resent every turn. Moving 200 tokens out of a prompt saves 200 x $0.15 / 1,000,000 = $0.00003 per request, which is $30 over a million requests.
  2. Summarise history. Replace the oldest 20 turns with a 300-token summary. In long chats this can cut input by more than half.
  3. Cap output. Set max_tokens when answers should be short. It is optional on this API, but it stops a rambling reply costing $0.50 per 1M tokens.
  4. Retrieve less. In RAG apps, fewer and smaller chunks cut input directly.
  5. Watch the headers. Each response includes X-Balance-USD, so you can log spend per request and alert on drift.
from openai import OpenAI

client = OpenAI(base_url="https://api.unrestrictedchatbot.top/v1", api_key="YOUR_KEY")

raw = client.chat.completions.with_raw_response.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarise this thread in two sentences."}],
    max_tokens=120,
)
resp = raw.parse()
print(resp.usage.prompt_tokens, resp.usage.completion_tokens)
print("balance:", raw.headers.get("X-Balance-USD"))

Log those three values per request and you can reproduce this whole comparison from your own data at any time. The pricing page and the documentation list rates and headers, and the free trial lets you test it: after sign-up you can claim $0.50 of credit from the API key page. At $0.01585 per example conversation, that is about 31 full chats.

Questions and answers

What is the single most useful number for comparing chatbot APIs?

Cost per finished conversation, measured on your own traffic. List prices per 1M tokens hide differences in prompt size, history length and retries.

Why do long chats cost so much more than short ones?

The full history is sent with every new message, so input tokens grow with each turn. Summarising old turns is the most effective fix.

Are refused requests billed?

Not on this service. Failed or refused requests are not charged. Check the billing terms of any other provider you compare.

Does credit expire?

No. Prepaid credit never expires, and top-ups are any whole amount from $20 to $500.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key