EN ▾

Updated

How Much Does Claude API Cost? Token Math Explained

Claude API pricing is set by Anthropic per model, so check their page for current rates. Here is how token billing works, plus exact costs for an OpenAI-compatible alternative at $0.15 and $0.50 per 1M tokens.

Balance scale weighing token cubes against coins, illustrating per-token API pricing

No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).

Get API key

Key points

  • Official rates differ by model and change, so verify them on Anthropic's pricing page.
  • This service charges $0.15 per 1M input and $0.50 per 1M output tokens, prepaid, with no subscription.
  • A typical 2,000-in, 500-out request costs $0.00055; 10,000 of them cost $5.50.
  • Credit never expires, and failed or refused requests are not charged.

The short answer

If you are asking how much does claude api cost, the honest answer is that it depends on the model you pick and how many tokens you send and receive, and Anthropic sets those rates. Check their current pricing page for numbers, because they change and differ per model.

What we can give you exactly is the price of this service, which is a different product from Anthropic's: $0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit. The rest of this article shows how token-based billing works, then does the arithmetic for realistic jobs so you can compare against any quote.

How token pricing is structured

Most LLM APIs, official or not, share the same billing shape:

  • Input tokens are everything you send: system prompt, history, documents, tool definitions.
  • Output tokens are what the model writes back. They are usually priced higher than input.
  • Rates are quoted per 1M tokens, and often differ between models from the same vendor.
  • A token is roughly three quarters of an English word, so 1M tokens is on the order of 750,000 words.

When you compare vendors, compare the same workload, not the headline rate. A chat app with long histories is input-heavy. A story generator with a short prompt is output-heavy. The ratio decides which rate matters more to you.

This service: the numbers

Model uncensored, one price for everything:

ItemRate
Input$0.15 per 1M tokens
Output$0.50 per 1M tokens
SubscriptionNone, pay as you go
Failed or refused requestsNot charged
Credit expiryNever

You top up any whole amount from $20 to $500. Bonuses apply on larger top-ups: +5% from $50, +10% from $100 and +15% from $200. So a $100 top-up gives $110 of credit, and $200 gives $230. You can pay by crypto (USDT on TRC20, USDC on Base).

Worked examples

Cost of one request is input tokens times $0.15 divided by 1M, plus output tokens times $0.50 divided by 1M. Here are four jobs with the math shown.

A typical question and answer

2,000 tokens in, 500 out. Input: 2,000 x 0.15 / 1,000,000 = $0.0003. Output: 500 x 0.50 / 1,000,000 = $0.00025. Total: $0.00055 per request. A thousand of them cost $0.55.

A bulk batch

10,000 requests, each 2,000 in and 500 out. That is 20M input tokens and 5M output tokens. Input: 20 x $0.15 = $3.00. Output: 5 x $0.50 = $2.50. Total: $5.50.

A 20-turn chat session

Say each turn sends 3,000 tokens (history included) and receives 400. Over 20 turns that is 60,000 in and 8,000 out. Input: 0.06 x $0.15 = $0.009. Output: 0.008 x $0.50 = $0.004. Total: $0.013, about a cent and a quarter for the whole session.

A full context window

The window is 100,000 tokens. Send 100,000 in and get 1,000 out. Input: 0.1 x $0.15 = $0.015. Output: 0.001 x $0.50 = $0.0005. Total: $0.0155 per request.

Calculate it yourself

Every response includes a usage block, so you never have to guess. This helper reproduces the numbers above:

# Estimate cost from the usage block of any response
IN_PRICE = 0.15 / 1_000_000    # dollars per input token
OUT_PRICE = 0.50 / 1_000_000   # dollars per output token

def cost(prompt_tokens: int, completion_tokens: int) -> float:
    return prompt_tokens * IN_PRICE + completion_tokens * OUT_PRICE

print(round(cost(2000, 500), 6))   # 0.00055
print(round(cost(100000, 1000), 6))  # 0.0155

And here it is on a live call:

from openai import OpenAI

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

r = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarize TCP slow start."}],
)
u = r.usage
print(u.prompt_tokens, u.completion_tokens)
print(u.prompt_tokens * 0.15e-6 + u.completion_tokens * 0.50e-6)

The X-Balance-USD response header also reports your remaining balance, which is handy for alerts when credit runs low.

What the trial and first top-up buy you

New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It needs no card and is valid for 7 days. At $0.00055 per typical request, $0.50 covers 909 requests of the 2,000-in, 500-out kind, since 0.50 / 0.00055 is about 909.

The smallest top-up is $20. At the same request size that is about 36,363 requests, and since credit never expires there is no rush to spend it. Trial keys run at 2 concurrent requests and 60 per minute, so for load tests use a full key (8 concurrent, 300 per minute).

Comparing against Claude pricing

To compare fairly, take one of the workloads above, look up the current input and output rates for the Anthropic model you would actually use, and run the same multiplication. Do not compare against a consumer chat subscription, which is billed differently from the API.

Cost is not the only axis. Model quality, tool support, context size and content policy all differ. This model is tuned to answer without content refusals for lawful adult use, which matters if your product keeps hitting refusals elsewhere. It does not replace a specific vendor model for every task, so test on your own prompts. The pricing page has the current top-up options and the docs show how to send your first request. You can claim the trial and run your own numbers.

Ways to lower your bill

Because billing is per token, the cheapest tokens are the ones you never send. These changes tend to pay off first.

  • Trim history. Keep the last few turns and a short summary instead of the whole transcript.
  • Shorten the system prompt. It is sent on every request, so 800 tokens of instructions repeated 10,000 times is 8M input tokens.
  • Use stop sequences and a sensible max_tokens when you know the answer is short.
  • Cache your own results. If the same prompt recurs, store the answer.
  • Keep failed requests out of your estimate. They are not charged here, though retries of successful requests are.

An example: you run 10,000 requests and cut each prompt from 2,000 to 1,200 tokens. That removes 800 x 10,000 = 8M input tokens, and 8 x $0.15 = $1.20 saved on that batch.

A monthly budget example

Say a roleplay or companion app handles 50,000 requests a month, each with about 1,500 tokens in and 300 out. Input is 75M tokens: 75 x $0.15 = $11.25. Output is 15M tokens: 15 x $0.50 = $7.50. The month comes to $18.75, which a single $20 top-up covers with $1.25 left over.

Double the traffic and the bill doubles, with no tiers or minimum commitment. Triple the output length and only the $7.50 part triples, to $22.50, bringing the total to $33.75. That is the practical value of separating input from output: you can see which side of the workload drives the bill.

Questions and answers

Is the Claude API free?

Anthropic sets its own terms, so check their current pricing and any free offers on their site. This service is separate: new users get $0.50 of trial credit, valid for 7 days, with no card.

Do output tokens cost more than input tokens?

Here yes: $0.50 per 1M output tokens against $0.15 per 1M input tokens. Many other APIs also price output higher, but check each vendor's current rates.

Does unused credit expire?

No. Credit never expires, and failed or refused requests are not charged.

What is the minimum top-up?

$20, in any whole amount up to $500. Bonuses are +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.

Get API key