EN ▾

LLM API Price Comparison: A Method That Works

Per-token price lists look easy to compare and still mislead. This page gives you a formula, three worked workloads and a checklist, so you can fill in any provider's numbers and get a real monthly figure.

Updated

Balance scale weighing input token blocks against output token blocks, illustrating an LLM API price comparison

Key points

  • Compare cost per workload, not the headline price per 1M tokens.
  • Our rates are $0.15 per 1M input and $0.50 per 1M output; the blended price depends on your input to output ratio.
  • Chat history is resent on every turn, so input tokens usually dominate the bill.
  • Look up other vendors' current prices yourself and plug them into the same formula.

Why a price table alone misleads you

An llm api price comparison usually starts with two numbers per provider: dollars per 1M input tokens and dollars per 1M output tokens. Put those side by side and you can pick a winner in ten seconds. The result is often wrong, because the two numbers get weighted differently depending on what you build. A summarizer reads a lot and writes little. A story generator writes a lot from a short prompt. A chat app resends its whole history each turn.

So the useful question is not which list price is lower. It is what your own mix of input and output tokens costs per day. This article uses our rates, $0.15 per 1M input tokens and $0.50 per 1M output tokens, as the worked example. For other providers we do not quote figures, since they change; open their pricing pages and drop the numbers into the same formula.

The formula

For any provider, the cost of one request is:

cost = (input_tokens x price_in + output_tokens x price_out) / 1,000,000

Here the prices are per 1M tokens. With ours, a request with 2,000 input tokens and 500 output tokens costs 2,000 x 0.15 / 1,000,000 = $0.0003 for input and 500 x 0.50 / 1,000,000 = $0.00025 for output, a total of $0.00055.

To compare providers with a single number, use a blended price for your ratio. If you send three input tokens for every output token, the blended price at our rates is (3 x 0.15 + 1 x 0.50) / 4 = $0.2375 per 1M tokens. At a 1:1 ratio it is (0.15 + 0.50) / 2 = $0.325. At 10:1 it is (10 x 0.15 + 0.50) / 11, about $0.182. The same price list gives three different answers, and that is the reason to measure your ratio first.

Three workloads, calculated

A chatbot with short replies

Say 1,000 conversations a day, each averaging 2,000 input tokens and 400 output tokens. Input is 2,000,000 tokens a day, which is $0.30. Output is 400,000 tokens, which is $0.20. The day costs $0.50, and a 30-day month costs $15.00.

A document summarizer

A batch of 5,000 documents, each 6,000 tokens long, with a 300-token summary. Input is 30M tokens, $4.50. Output is 1.5M tokens, $0.75. The batch costs $5.25. Output is only 14% of the bill here, so a provider with a cheap input rate and an expensive output rate would look better for this job than the reverse.

A long chat session

Take a 40-turn conversation where each turn adds 150 user tokens and 250 reply tokens, and the full history is sent each time. Turn n sends 400 x (n - 1) + 150 input tokens, so the session sends 400 x 780 + 150 x 40 = 318,000 input tokens in total and receives 10,000 output tokens. Input costs 318,000 x 0.15 / 1,000,000 = $0.0477. Output costs 10,000 x 0.50 / 1,000,000 = $0.005. The session costs $0.0527, and about 90% of it is input, even though the output price is higher.

This is the pattern behind most surprises. The longer a conversation runs, the more the input rate matters, so judge a chat product mostly by its input price and its context window.

A comparison sheet you can fill in

One caution on reading the sheet: a price comparison is only valid when the models do comparable work. A cheaper model that needs two attempts per task costs more than a pricier one that needs one, and a model that declines your use case costs nothing per token and delivers nothing. Run the same twenty prompts through each candidate before you trust any total.

Copy this table into a spreadsheet and fill one column per provider you are considering. Leave the cells empty until you have read the provider's current pricing page.

LineThis APIProvider BProvider C
Price per 1M input tokens$0.15
Price per 1M output tokens$0.50
Context window100,000 tokens
Failed requests billed?No
Subscription or minimumNone, prepaid credit
Credit expiryNever
Rate limit, full key300 requests/min, 8 concurrent
Content refusalsTuned not to refuse for lawful adult use

The last row is not decoration. If a model refuses a fifth of your prompts, the cheapest rate gives you the most expensive working output, because you pay for retries or for a second provider. For a side-by-side with a search-focused API, see the Perplexity cost and limits comparison.

Costs that never show up in the price list

  • Billing of failures. Here, failed or refused requests are not charged. Check whether your other candidates do the same.
  • Retries and rate limits. A low limit forces queues. Ours returns HTTP 429 with rate_limited or concurrency, and a Retry-After: 5 header on temporary overload.
  • Expiring credit. Prepaid balances that expire turn a small unused amount into a loss. Credit here never expires.
  • Minimum purchases. Ours is $20, and top-ups from $50 add a 5% bonus, from $100 10%, from $200 15%.
  • Payment method. This service takes crypto only: USDT on TRC20 or USDC on Base. Network fees on your side are part of the real price.

Measure your own ratio

Guessing the input to output ratio is where comparisons go wrong. Send a few hundred real prompts and read the usage block on each reply. The snippet below prints token counts and the dollar cost of one call at our rates. The docs show the same call in curl and Node.

import os
from openai import OpenAI

client = OpenAI(base_url="https://api.claudensfw.top/v1", api_key=os.environ["API_KEY"])

PRICE_IN = 0.15 / 1_000_000   # dollars per input token
PRICE_OUT = 0.50 / 1_000_000  # dollars per output token

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarize the plot of Hamlet in 120 words."}],
)

u = resp.usage
cost = u.prompt_tokens * PRICE_IN + u.completion_tokens * PRICE_OUT
print(u.prompt_tokens, u.completion_tokens, round(cost, 6))

Log the numbers for a week, compute the average input and output per request, then run the formula for each provider. The response header X-Balance-USD also shows your remaining balance, which lets you check the calculation against what was really charged.

Budgeting is simple once you have a daily figure. At $0.50 a day, a $100 top-up, which comes with a 10% bonus and gives $110 of credit, lasts 220 days. A $20 top-up lasts 40 days. See the pricing page for the full bonus table, and the key page to claim $0.50 of trial credit and run the test above for free.

Questions and answers

What does this API cost per token?

$0.15 per 1M input tokens and $0.50 per 1M output tokens, charged from prepaid credit. There is no subscription, and failed or refused requests are not charged.

Which is better to compare: input price or output price?

Neither alone. Compute the cost of your own workload with both prices, or use a blended price for your input to output ratio. Long chats are dominated by input tokens.

Do you list competitors' prices?

No. Provider prices change, so check each provider's current pricing page and enter the numbers into the same formula.

Does credit expire?

No. Credit never expires, and top-ups start at $20 with bonuses from $50.

Your key is one form away

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

Get API key