EN ▾
Get API key

Uncensored API, transparent billing.

https://api.grokunrestricted.cc/v1

AI API Key Price Comparison: How to Compare Costs

An AI API key price comparison only works if every option is reduced to the same unit: dollars for your own mix of input and output tokens. This article shows how to do that, then applies it to our rates of $0.15 and $0.50 per 1M tokens.

Updated

Isometric scale weighing token stacks against coins to illustrate comparing API costs

Start with the unit that matters

Every provider publishes a price per million tokens, and most split it into an input rate and an output rate. Reading two such pages side by side tells you very little, because a headline number hides three things: how many tokens your requests really contain, how much of that is input versus output, and what happens to failed calls. Before you compare anything, write down your own numbers.

You need four inputs for each workload: average prompt tokens, average completion tokens, requests per day, and the share of requests that fail or get refused. If you have no production data yet, run fifty realistic requests and read the usage block in each response. The OpenAI-compatible format returns prompt_tokens and completion_tokens on every reply, so this takes a few minutes.

The formula is short. Cost per request equals prompt tokens times the input rate, plus completion tokens times the output rate, each divided by 1,000,000. Everything below is that one line applied with care.

Our rates, worked through three workloads

Our API charges $0.15 per 1M input tokens and $0.50 per 1M output tokens, pay as you go from prepaid credit. Here are three workloads with the arithmetic shown, so you can copy the method for your own.

A chatbot with short turns

Say 1,000 requests a day, each with 1,500 input tokens (system prompt plus a few turns of history) and 400 output tokens.

  • Input per day: 1,000 x 1,500 = 1,500,000 tokens, which is 1.5M x $0.15 = $0.225.
  • Output per day: 1,000 x 400 = 400,000 tokens, which is 0.4M x $0.50 = $0.20.
  • Total: $0.425 per day, or $12.75 over 30 days.

Bulk document processing

Now 10,000 documents, each 6,000 tokens in and 500 tokens out, run as a one-off batch.

  • Input: 60,000,000 tokens = 60M x $0.15 = $9.00.
  • Output: 5,000,000 tokens = 5M x $0.50 = $2.50.
  • Total: $11.50 for the whole batch.

A long roleplay session

Chat clients resend the full history on every turn, so input grows as the session goes on. Assume an 800 token system prompt, 100 tokens from the user and 250 from the model each turn, over 20 turns. Turn n sends 800 + 350 x (n - 1) + 100 input tokens. Summed over 20 turns that is 20 x 900 + 350 x 190 = 84,500 input tokens, plus 20 x 250 = 5,000 output tokens.

  • Input: 84,500 x $0.15 / 1M = $0.012675.
  • Output: 5,000 x $0.50 / 1M = $0.0025.
  • Total: about $0.0152, roughly one and a half cents for the entire session.

The full rate table and top-up bonuses are on the pricing page.

Blended price: a quick way to rank options

When you compare several services, a single blended number per workload saves time. Pick a ratio of input to output tokens that matches your traffic, then compute (ratio x input rate + output rate) / (ratio + 1).

For a 3 to 1 ratio, typical of short chat turns, our blended price is (3 x $0.15 + $0.50) / 4 = $0.95 / 4 = $0.2375 per 1M tokens. For the document batch above, the ratio is 12 to 1, so the blend is (12 x $0.15 + $0.50) / 13 = $2.30 / 13, about $0.177 per 1M tokens. Same service, two different effective prices, which is why a single published number cannot settle a comparison.

Do this for every candidate using its current published rates, and do it at two or three ratios. A service with a cheap output rate wins on generation-heavy work such as story writing. A service with a cheap input rate wins on classification and long prompts. If you only test one ratio you may pick the wrong one.

What a price table leaves out

Two keys with the same blended price can cost very different amounts once real use begins. These are the columns to add to your spreadsheet beside the rates.

FactorWhy it changes the real cost
Refusals and failuresA refused answer that you must retry, rephrase or send to another service doubles your effective spend. On our API, failed or refused requests are not charged.
Context windowA small window forces trimming or summarizing calls. Ours is 100,000 tokens for prompt plus completion.
Rate limitsA full key allows 8 concurrent requests and 300 requests per minute. A cheap key that caps you lower costs engineering time.
Minimums and expirySubscriptions and expiring credit waste money in quiet months. Our credit never expires.
Minimum top-upOurs is $20, in any whole amount up to $500.

Refusal handling deserves special attention if your product deals with fiction, roleplay or other adult-oriented text. If a general-purpose model declines a fifth of your prompts, the price per accepted answer is 25 percent higher than the sticker price before you count the retry logic you had to write.

When our API is the better pick, and when it is not

A hosted, OpenAI-compatible API running one open-weight model tuned to answer without content refusals for lawful adult use is a narrow product. It fits some jobs well and others poorly.

It is likely a good fit when

  • Your application is text only and needs fewer refusals than a mainstream model gives you, for lawful adult use such as fiction, roleplay or companion apps.
  • You want pay-as-you-go billing with no subscription and credit that does not expire.
  • Your client already speaks the OpenAI format, so switching means changing the base URL and key.
  • You need streaming, tool calling or JSON mode through the usual parameters.

Look elsewhere when

  • You need images, audio, video, embeddings or fine-tuning. This service is text only.
  • You need a specific named model from a specific vendor. We run one model from an independent provider, not a router across vendors and not any vendor's official API.
  • Your task needs the strongest reasoning available at any cost. Compare quality on your own prompts, not on price alone.

The hard limit applies in all cases: no sexual content involving minors.

Run the comparison yourself in ten minutes

Collect two numbers per candidate: tokens in and tokens out for the same fifty prompts. With our endpoint you can do it with a short script. Replace the key with your own, and use the same prompts against every service you test.

from openai import OpenAI

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

IN_RATE, OUT_RATE = 0.15, 0.50  # dollars per 1M tokens
prompts = ["Summarize this paragraph in two sentences: ...", "Write a short scene in a harbor town."]

total = 0.0
for p in prompts:
    r = client.chat.completions.create(
        model="uncensored",
        messages=[{"role": "user", "content": p}],
    )
    u = r.usage
    cost = u.prompt_tokens * IN_RATE / 1e6 + u.completion_tokens * OUT_RATE / 1e6
    total += cost
    print(u.prompt_tokens, u.completion_tokens, round(cost, 6))

print("average per request:", round(total / len(prompts), 6))

Multiply the average by your expected daily requests and by 30. Repeat with each competitor's current published rates, checking their pricing pages yourself because those numbers change. If you do not yet have a key, the API key page explains the one-click trial credit of $0.50, valid for 7 days with no payment details needed, which is enough for several hundred test requests of this size. The docs cover the request format in full.

Budgeting and top-ups

Once the per-request cost is known, size your balance. Top-ups run from $20 to $500 in any whole amount, with a bonus of 5 percent from $50, 10 percent from $100 and 15 percent from $200. We accept crypto only: USDT on TRC20 or USDC on Base.

At the chatbot's $0.425 per day, a $20 balance lasts 20 / 0.425, about 47 days. A $100 top-up arrives as $110 of credit, so the same workload lasts about 259 days. A $200 top-up arrives as $230. Check the balance in code, since every response carries an X-Balance-USD header, and set an alert well before it reaches zero. If you run into a billing or key problem, the key troubleshooting page is the first stop.

Questions and answers

What is the cheapest way to compare AI API prices?

Convert every option to dollars per request using your own average input and output token counts. A headline price per 1M tokens is only comparable when two services share the same input to output ratio.

Why do input and output tokens have different prices?

Providers charge separately because generating tokens costs more compute than reading them. Ours are $0.15 per 1M input and $0.50 per 1M output, so output-heavy work costs proportionally more.

Are refused requests billed?

On our API, failed or refused requests are not charged. For any other service, check its current billing terms before assuming the same.

Does the credit expire?

No. Prepaid credit never expires, and there is no subscription. The free trial credit is separate and lasts 7 days.

Your key is one form away

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

Get API key