EN ▾

Uncensored text API for AI image pipelines

Get API key

The Real Cost of AI: Per-Token Pricing Worked Out

The real cost of ai usage comes down to tokens in, tokens out, and the billing rules around them. Here is the math for this API, step by step.

Updated

Balance scale weighing glowing tokens against a coin, illustrating per-token AI pricing

Key points

  • Price: $0.15 per 1M input tokens and $0.50 per 1M output tokens.
  • A typical chat turn of 2,000 in and 500 out costs $0.00055.
  • Resent chat history is the main driver of cost in long conversations.
  • No subscription, credit never expires, and failed or refused requests are free.

The formula

When people price out an AI project, they usually find a headline number and then a surprise on the invoice. With a per-token API the surprise is easy to avoid, because the bill is one formula:

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

A token is a small chunk of text, often a short word or part of a word. Roughly speaking, a page of plain English is several hundred tokens, but the exact count depends on the text. The API reports usage in each response, so you can measure instead of guessing.

Output tokens cost a little over three times as much as input tokens ($0.50 against $0.15). That is why a short prompt that asks for a long essay costs more than a long document that gets a one-line answer.

Worked examples

All numbers below follow from the two prices, and you can check them with a calculator.

One chat turn

2,000 input tokens and 500 output tokens. Input: 2,000 × 0.15 / 1,000,000 = $0.0003. Output: 500 × 0.50 / 1,000,000 = $0.00025. Total: $0.00055. A thousand such turns cost $0.55.

A long document summary

You paste 100,000 tokens, which is the full context window, and ask for a 2,000 token summary. Note that the window counts prompt and completion together, so in practice you would stay a little under. As an estimate: input 100,000 × 0.15 / 1,000,000 = $0.015. Output 2,000 × 0.50 / 1,000,000 = $0.001. Total: $0.016.

A batch job

10,000 classification or rewriting requests, each with 800 input tokens and 200 output tokens. Input: 8,000,000 tokens = 8 × $0.15 = $1.20. Output: 2,000,000 tokens = 2 × $0.50 = $1.00. Total: $2.20.

One million of each

1M input plus 1M output is $0.15 + $0.50 = $0.65. That is a useful anchor when you scale an estimate up or down.

Why long conversations cost more than you expect

A chat model has no memory between calls. To continue a conversation, your app sends the earlier messages again with every new turn. Input tokens therefore grow as the session grows, even though each new user message is short.

Take a roleplay session of 50 turns. Say the average request carries 6,000 input tokens of history and produces 300 output tokens. Input: 50 × 6,000 = 300,000 tokens, which is $0.045. Output: 50 × 300 = 15,000 tokens, which is $0.0075. The session costs $0.0525 in total.

That is still small, but the shape matters. If you let history grow without limit, turn 200 carries four times the input of turn 50. Three habits keep it in check:

  • Trim or summarize old messages once they pass a set length.
  • Keep the system message short and move rarely used rules into the turns where they apply.
  • Set a sensible max_tokens when you only need a short answer. It is optional, but it caps runaway output.

Hidden costs to check with any provider

Per-token price is only part of the picture. Before you commit to a service, read the terms on each of these, whoever the provider is. For other vendors, check their current pricing and policies rather than relying on comparisons from third parties.

QuestionThis API
Is there a monthly subscription?No, pay as you go
Does prepaid credit expire?No, it never expires
Are failed or refused requests billed?No
Are there extra fees per request?Billing is per token only
Is there a minimum top-up?Yes, $20, up to $500
Are prompts used for training?No

Refusal handling deserves a second look. With a heavily filtered model, a refused request can still consume your time, force a rewrite and cost a retry. Here, refused or failed requests are not charged, and the model is tuned to answer without content refusals for lawful adult use, so wasted calls are rarer.

There are also costs outside the API bill: engineering time to wrap a service with a custom client, rate-limit handling, and moving between vendors. Because this API follows the OpenAI format, switching from or to another compatible endpoint is mostly a base URL and key change.

Top-ups, bonuses and the trial

You pay by prepaying credit, in any whole amount from $20 to $500. Larger top-ups earn a bonus: +5% from $50, +10% from $100 and +15% from $200. In practice:

  • $50 buys $52.50 of credit.
  • $100 buys $110.00.
  • $200 buys $230.00.

At the example rate of $0.00055 per chat turn, $20 covers about 36,000 turns, and $230 of credit covers about 418,000. This site takes crypto only, in USDT on TRC20 or USDC on Base, so keep a little extra for network fees on your side. Those fees are charged by the network, not the API.

New users can test first. After sign-up with Google or email and password, the API key page offers a one-click $0.50 trial credit, one per person, valid for 7 days, with no payment needed. At the example rate that is about 900 chat turns.

Spending less without losing quality

Once you know the formula, a few cheap changes cut the bill. Most of the saving comes from input, because input repeats on every call.

Shorten the system message first. A 1,500 token instruction block sent 10,000 times is 15M input tokens, or $2.25. Trimming it to 500 tokens takes that part down to 5M tokens, or $0.75, a saving of $1.50 on the same job. Next, ask for the format you need: a classification answer of one word costs far less than a paragraph of explanation, since output is the pricier side.

Also look at your retries. Because failed requests are not charged, a retry after a network error or an overload response is free, but a retry after a bad answer is a normal new request. Fix the prompt instead of looping on it. Finally, test with the trial credit before you spend real money, and compare your measured numbers with your estimate once a day for the first week.

A simple way to budget a project

Estimate before you build. Pick a typical request, count its tokens, multiply by volume, and add a margin. A short script makes this repeatable.

from openai import OpenAI

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

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarize this ticket in two lines."}],
)
u = resp.usage
cost = (u.prompt_tokens * 0.15 + u.completion_tokens * 0.50) / 1_000_000
print(u.prompt_tokens, u.completion_tokens, round(cost, 6))

Now scale it. Say you expect 5,000 requests a day, each with 1,500 input and 400 output tokens. That comes to $2.125 per day and $63.75 for 30 days. Check it by hand: 5,000 × 1,500 = 7.5M input tokens, or $1.125. 5,000 × 400 = 2M output tokens, or $1.00. The two add up to $2.125.

Once live, measure instead of estimating. Each response includes usage, and the X-Balance-USD header shows your remaining credit, so you can log balance after each call and see the true spend.

curl -i https://api.uncensoredaiimage.cc/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "uncensored", "messages": [{"role": "user", "content": "Say hi."}]}'

Look for the X-Balance-USD and X-Request-Id headers in the output. For all rates side by side, see the pricing page, and for setup details the API quickstart. The model ID in running text is uncensored.

Questions and answers

How much does one request cost?

It depends on tokens. A request with 2,000 input and 500 output tokens costs $0.00055 at $0.15 and $0.50 per 1M tokens.

Is there a subscription or monthly fee?

No. You prepay credit and spend it per token. The credit never expires.

Am I charged when a request fails or is refused?

No. Failed or refused requests are not charged.

How can I see my remaining balance?

Each response carries an X-Balance-USD header with your remaining credit, and usage is reported in the response body.

What is the smallest top-up?

$20, in any whole amount up to $500, with bonuses of 5% from $50, 10% from $100 and 15% from $200.

Your key is one form away

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