EN ▾
Get API key

OpenAI API Cost vs a $0.15 / $0.50 Uncensored API

If you are weighing openai api cost against a cheaper, uncensored endpoint, the fastest way is to run your own token counts through one formula. Here it is, with worked numbers at $0.15 input and $0.50 output per 1M tokens.

Updated

Balance scale weighing glowing data cubes against coins, illustrating token cost

Key points

  • Cost = input tokens x $0.15 / 1M + output tokens x $0.50 / 1M. Nothing else is added.
  • A typical chat request of 2,000 tokens in and 500 out costs $0.00055, so 1,000 of them cost $0.55.
  • Failed and refused requests are not charged, and prepaid credit never expires.
  • Plug any other provider's rates into the same formula and compare on your own traffic.

The short answer

The openai api cost you pay today depends on the model you call and the tokens you send, and the same is true here. The difference is that our price list has exactly two numbers: $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is one model, uncensored, so there is no tier table to read and no per-model multiplier to forget.

The account is prepaid. You add credit, each request deducts what it used, and the balance stays until you spend it. There is no subscription, no monthly minimum and no expiry date on credit. If a request fails or the model refuses it, you are not charged for it.

This page does not quote anyone else's prices, because those change and I would rather not print a stale number. What it gives you is a method: a formula, a set of worked examples you can scale to your own traffic, and a few habits that keep the bill small. When you want to compare with your current provider, open their pricing page, copy their two rates into the formula below and run the same scenarios.

The formula

Every request has two token counts: the tokens you send (the prompt, including the system message and the whole chat history) and the tokens the model writes back (the completion). You pay for each at its own rate.

cost = (input tokens / 1,000,000) x $0.15 + (output tokens / 1,000,000) x $0.50

Output tokens cost a little more than three times as much as input tokens ($0.50 against $0.15). That ratio matters in practice: a long answer to a short question can cost more than a short answer to a long prompt. Keep it in mind when you decide where to trim.

A function you can paste

The same formula as code, with the rates as arguments so you can test other providers too:

def request_cost(tokens_in, tokens_out, price_in=0.15, price_out=0.50):
    """Prices are dollars per 1M tokens."""
    return tokens_in / 1_000_000 * price_in + tokens_out / 1_000_000 * price_out

print(request_cost(2_000, 500))      # 0.00055
print(request_cost(30_000, 1_000))   # 0.005

The context window is 100,000 tokens, prompt and completion together, so the biggest single request you can send is bounded. At the limit, with 98,000 tokens in and 2,000 out, the formula gives $0.0147 + $0.001 = $0.0157. Even a full-window call costs under two cents.

Worked examples

Numbers are easier to trust when you can check them. Each row below uses the formula above; the arithmetic is shown so you can redo it.

ScenarioTokens in / outMathCost
One chat reply2,000 / 500$0.0003 + $0.00025$0.00055
Summarise a long document30,000 / 1,000$0.0045 + $0.0005$0.005
Full-window request98,000 / 2,000$0.0147 + $0.001$0.0157
30-turn roleplay session120,000 / 9,000 in total$0.018 + $0.0045$0.0225
Agent loop of 12 tool calls72,000 / 4,800 in total$0.0108 + $0.0024$0.0132

The roleplay row assumes an average of 4,000 tokens sent and 300 received per turn. The agent row assumes 6,000 tokens in and 400 out per call. Both are guesses at typical shapes, not measurements, so replace them with your own averages.

From one request to a month

Suppose a support bot handles 5,000 requests a day, each about 2,000 tokens in and 500 out. One request is $0.00055, so a day is 5,000 x $0.00055 = $2.75, and a 30-day month is $82.50. If traffic doubles, so does the bill, and nothing jumps at a threshold. That linear behaviour is the point of pay-as-you-go pricing: you can forecast from a single logged sample.

Where the tokens actually go

Most surprises in an LLM bill come from the input side, and most of those come from chat history. A stateless API means every call carries the whole conversation again. A chat that starts at 400 tokens and grows by 300 per turn sends about 9,100 tokens on turn 30, even though the user only typed a sentence. Add up all thirty turns and the input total is far larger than the final message suggests.

Here is what moves the number, roughly in order of impact:

  • History length. Keep the last N turns, or replace older turns with a short summary you generate once. Both cut input tokens on every later call.
  • System prompt size. A 1,500-token persona sheet sent 10,000 times is 15M input tokens, or $2.25. Worth tightening if it is bloated, not worth agonising over if it is not.
  • Output length. Output is the pricier side. Ask for concise answers where you can, and use stop sequences or max_tokens to cap runaway replies. max_tokens is optional here, since the completion may use the rest of the window.
  • Retries. A failed request is not billed, but a successful duplicate is. Make sure your own retry logic does not fire a second request while the first is still streaming.

JSON mode (response_format: {"type":"json_object"}) also helps indirectly. Structured replies tend to be short, and you avoid the extra call you would otherwise spend repairing malformed output.

Comparing against your current provider

A fair comparison needs the same workload on both sides. Pull a day of real traffic from your logs, average the input and output token counts, and run both rate cards through request_cost. Do this for your three most common request types rather than for an imagined average.

Then look past the two headline rates. These are the questions worth asking of any provider, ours included:

  1. Do you pay for requests that fail or get refused?
  2. Does prepaid credit expire, and is there a monthly fee on top of usage?
  3. What are the concurrency and per-minute limits on a new key? Ours are 8 concurrent requests and 300 per minute on a full key, and 2 and 60 on a trial key.
  4. What is the context window, and what happens at the edge of it?
  5. Does the model decline requests that are lawful, which forces you to retry or rewrite prompts?

The last question is the one that rarely shows up on a pricing page. A model that refuses a legitimate fiction or roleplay prompt costs you engineering time even when the refusal itself is free. The uncensored model is tuned to answer without content refusals for lawful adult use. It still has one hard limit: no sexual content involving minors. If your workload is ordinary coding or summarisation, a cheaper general model elsewhere may be all you need, and you should check their current pricing before deciding.

If you are moving an existing OpenAI-style integration, the code change is small. The docs show how to reuse the client you already have, and the API overview explains how the endpoint is positioned.

Topping up: amounts, bonuses and the trial

You can add any whole amount from $20 to $500. Larger top-ups carry a bonus on the credit you receive:

You payBonusCredit added
$20none$20
$50+5%$52.50
$100+10%$110
$200+15%$230
$500+15%$575

At the entry level, $20 buys about 36,000 chat replies of the 2,000-in, 500-out shape ($20 / $0.00055 = 36,363). You can pay with crypto (USDT on TRC20, USDC on Base). Current rates are always on the pricing page.

If you want to test before paying, new users can claim $0.50 of trial credit with one click on the API key page after sign-up. It is valid for 7 days, needs no card, and is limited to one per person. At $0.00055 per request that is roughly 900 replies, plenty to run your own comparison. Sign up and claim it from the API key page.

Tracking spend as you go

Each response carries a usage object with prompt and completion token counts, and a streamed response sends usage at the end. The response headers also include X-Balance-USD, your remaining credit, and X-Request-Id, which is handy when you ask support about a specific call.

from openai import OpenAI

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

raw = client.chat.completions.with_raw_response.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Outline a three-act short story."}],
)
resp = raw.parse()
u = resp.usage
cost = u.prompt_tokens / 1e6 * 0.15 + u.completion_tokens / 1e6 * 0.50

print(f"in={u.prompt_tokens} out={u.completion_tokens} cost=${cost:.6f}")
print("balance:", raw.headers.get("X-Balance-USD"))

Log those three values per request and you have a spending dashboard without any extra tooling. Alert when the balance header drops under a threshold you pick, and top up before the next batch job starts rather than during it.

Questions and answers

What does the OpenAI-compatible endpoint charge per token?

$0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit. There is no subscription and credit does not expire.

Am I charged when a request fails or is refused?

No. Failed or refused requests are not charged; only completed requests deduct from your balance.

Can I try it before adding credit?

Yes. After sign-up you can claim $0.50 of trial credit with one click on the API key page. It lasts 7 days, needs no card and is one per person.

How do I compare this with another provider's rates?

Use the request_cost function above with their input and output prices per 1M tokens, and run it on token counts from your own logs. Check their current pricing page for the rates.

Is this the official API of a big AI vendor?

No. It is an independent provider running one open-weight model, and it is not the official API of any vendor and not a router across vendors.

Your key is one form away

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

Get API key