EN ▾
Create key

How Much Is an API Key for Claude? Monthly Cost

How much is an api key for claude? The key itself is not what you pay for. You pay for the tokens your requests use, so the monthly bill depends on volume, not on owning a key. This page shows how to estimate it and what the same traffic costs on our service.

Last updated

A key above a glass meter filling with glowing tokens, illustrating that API cost follows token usage

Summary

  • A key is a credential. Billing is per input and output token, so spend follows usage.
  • Monthly cost equals requests times tokens per request times the per-token rate.
  • On our rates, a hobby bot costs about $0.64 a month and a small app about $33.
  • We are not affiliated with Anthropic. Check their pricing page for current Claude rates.

The short answer

For most LLM APIs, including Claude's, creating an API key does not carry a fee. The key identifies your account, and the money goes on tokens: input tokens for everything you send, output tokens for everything the model writes back. A prototype that sends a few hundred requests can cost cents. A busy product can cost hundreds of dollars a month. Same key, very different bills.

Claude's per-token rates depend on the model you pick and change over time, so we do not print them here. Open Anthropic's current pricing page, note the input and output rate for your model, and feed them into the formula below. We are an independent service and not affiliated with Anthropic. Chat subscriptions for the Claude app are a separate product from API billing, so do not mix the two when you budget.

The formula behind every monthly bill

Whatever the provider, the arithmetic is the same:

Monthly cost = requests per month x ((input tokens x input rate) + (output tokens x output rate)), with rates expressed per token.

Rates are quoted per million tokens, so divide by 1,000,000 first. With our prices of $0.15 per 1M input and $0.50 per 1M output, a request with 2,000 input and 500 output tokens costs 2,000 x 0.15 / 1M = $0.0003 plus 500 x 0.50 / 1M = $0.00025, which is $0.00055. Output is more than three times as expensive as input per token here, so long answers move the bill more than long prompts do.

Three monthly scenarios on our rates

These are worked from $0.15 and $0.50 per 1M tokens, over a 30-day month.

ScenarioRequests per monthTokens per request (in / out)Cost per requestMonthly cost
Hobby Discord bot, 50 a day1,5001,500 / 400$0.000425$0.64
Small app, 2,000 a day60,0002,000 / 500$0.00055$33.00
Busy product, 20,000 a day600,0003,000 / 600$0.00075$450.00

To check the middle row: 60,000 requests carry 120M input tokens, which cost $18.00, and 30M output tokens, which cost $15.00. Together that is $33.00. The hobby bot's $0.64 is rounded from $0.6375, so a single $20 top-up would cover it for well over two years, and credit never expires.

Comparing with Claude's pricing

Do the same table with Anthropic's numbers. Take the input and output rate for the exact Claude model you would use, run the three scenarios above with the same token counts, and compare the monthly totals. Two cautions make the comparison fairer.

  • Quality is not equal. A cheaper per-token model may need more retries or longer prompts to reach the same result, and a stronger model may finish in one pass. Test on your own prompts.
  • Features differ. Our API is text only, with a 100,000-token window, streaming, tool calling and JSON mode. It has no images, audio, embeddings or fine-tuning, and it runs one open-weight model that is not Claude.

If you need Claude specifically, for its behaviour or its tooling, nothing here replaces it. If you need a cheap, OpenAI-compatible text model that answers without content refusals for lawful adult use, that is where we fit. For more on what keys and billing really involve, see Claude API key: myths vs facts.

Remember that Anthropic offers several Claude models at different rates, so "what does Claude cost" has no single answer. Pick the model first, then the budget. A small, fast model and a top-tier model can differ many times over in price, and your volume decides which one is realistic.

Measure your own tokens instead of guessing

The most accurate estimate comes from real responses. Every completion returns a usage object with prompt and completion token counts, so a short script can price your actual traffic.

from openai import OpenAI

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

r = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarize the plot of Hamlet in 5 sentences."}],
)
u = r.usage
cost = u.prompt_tokens * 0.15 / 1_000_000 + u.completion_tokens * 0.50 / 1_000_000
print(u.prompt_tokens, u.completion_tokens, f"${cost:.6f}")

Run it over fifty typical inputs, average the cost, and multiply by your expected monthly requests. The response also carries an X-Balance-USD header, so you can watch the real balance fall. More on the response format is in the docs.

Ways to keep the bill down

Once you know the formula, the bill responds to a few levers you control. The biggest is the part of the prompt you send on every request.

  • Shorten the system prompt. Cutting 1,000 tokens from a prompt that goes out with 60,000 requests a month removes 60M input tokens, which is $9.00 at $0.15 per 1M.
  • Cap the output. max_tokens is optional here, but a sensible cap stops a rambling answer from running up the expensive side of the bill.
  • Summarize old turns. A chat that resends 20 turns of history pays for them every time. Replace the oldest turns with a short summary.
  • Cache your own answers. If many users ask the same question, store the reply and serve it again.
  • Use a small test set. Build the feature on ten prompts, not ten thousand.

Watch for the cost of failures too. On our service failed or refused requests are not charged, but a request that succeeds and gets thrown away by your own code still is. Log what you discard.

Finally, set a review habit. Look at the balance once a week, compare it with your estimate, and adjust. The X-Balance-USD header makes this a one-line job. Because credit is prepaid and never expires, a miss in either direction costs you little: an underestimate means a quick top-up, and an overestimate means credit waiting for next month.

Getting started cheaply

New users can claim $0.50 of trial credit with one click on the API key page after signing up with Google or email. It needs no payment details, is valid for 7 days, and covers roughly 900 requests of the 2,000-in, 500-out size from the table, since $0.50 divided by $0.00055 is about 909. After that you top up any whole amount from $20 to $500, with a bonus of 5% from $50, 10% from $100 and 15% from $200. Payment is crypto only, USDT on TRC20 or USDC on Base. See the pricing page for the full schedule.

The bonuses make bigger top-ups slightly better value: $100 arrives as $110 of credit and $200 as $230. For a hobby project the $20 minimum is already more than a year of use, as the first scenario in the table shows.

Common questions

Does an API key itself cost money?

Generally no. A key is a credential for your account, and you are billed for the tokens you use. Check your provider's pricing page for any exceptions.

How do I estimate my monthly bill?

Multiply requests per month by the cost of one request, where cost is input tokens times the input rate plus output tokens times the output rate. Measure real token counts from the usage field of a few responses.

Is this service the Claude API?

No. We run one open-weight model through an OpenAI-compatible API under the model ID uncensored. We are not affiliated with Anthropic.

What does $20 buy on your service?

At the 2,000-in, 500-out size, $20 covers about 36,000 requests, because $20 divided by $0.00055 is roughly 36,364.

Generate your key in one form

Sign up, copy the key, update the base URL. That is the entire configuration.