OneProvider
CLAUDE API · PRICING

Claude API pricing per million tokens

The Claude API is billed per token: one rate for input, a higher one for output. This page shows the rates of the OneProvider catalog for the three current Claude tiers, the arithmetic for a typical request, and what makes a real bill larger than the arithmetic.

How Claude API pricing works

A token is a chunk of text, often a short word or part of one. Code and non-English text use more tokens per word. You pay for the tokens you send (input) and the tokens the model writes (output), each at its own rate per million.

  • Claude Sonnet 5.5: Input / 1M tokens $2.00, Output / 1M tokens $10.00, Context 1M
  • Claude Opus 5.5: Input / 1M tokens $4.00, Output / 1M tokens $20.00, Context 1M
  • Claude Haiku 5.5: Input / 1M tokens $0.10, Output / 1M tokens $0.50, Context 1M

Rates come from the public catalog. The balance does not expire.

In the catalog today, output costs five times as much as input on all three models. Anthropic publishes its own price list at platform.claude.com/docs/en/about-claude/pricing, so compare both before you decide.

What a typical request costs

Take a request with 10,000 input tokens and 1,000 output tokens, which is a modest coding question with a file attached.

One request, and a thousand of them
ModelOne request1,000 requests
Haiku 5.5$0.0010 + $0.0005 = $0.0015$1.50
Sonnet 5.5$0.02 + $0.01 = $0.03$30
Opus 5.5$0.04 + $0.02 = $0.06$60

Each cell is tokens divided by one million, times the rate: 10,000 input tokens on Sonnet 5.5 is 0.01 x $2.00 = $0.02, and 1,000 output tokens is 0.001 x $10.00 = $0.01.

Which tier for which job

A starting point, not a rule
TierFitsWatch out for
HaikuClassification, extraction, short summaries, high volumeHard multi-step reasoning
SonnetCoding assistants, agents, everyday generationLong sessions add up
OpusThe hardest problems and long agent runsThe highest rate of the three

Why a real bill is bigger than the arithmetic

Chat clients and coding agents resend the whole conversation with every request. The input side grows with each turn, and that is where most of the money goes. Four habits keep it down.

  • Cache repeated context. Cached input is billed at a fraction of the normal input rate.
  • Start a fresh session for a new task instead of continuing a long one.
  • Use the smallest tier that does the job and keep the large one for the hard steps.
  • Set a spend limit on every key that an unattended script uses.

Call the API with a OneProvider key

OneProvider has a native Anthropic endpoint and an OpenAI-compatible one, with one USD balance behind them. Top up in the cabinet, issue a key, and send the same request you would send anywhere else.

curl https://api.oneprovider.dev/v1/messages \
  -H "x-api-key: $ONEPROVIDER_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model": "claude-sonnet-5-5", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello"}]}'

For Claude Code, use the root URL without /v1:

export ANTHROPIC_BASE_URL=https://api.oneprovider.dev
export ANTHROPIC_AUTH_TOKEN=sk-...

Frequently asked questions

How much does the Claude API cost?

You pay per million tokens, and the rate depends on the model. The cards above show input and output rates for Haiku 5.5, Sonnet 5.5 and Opus 5.5.

Why does output cost more than input?

Generating text takes more compute than reading it. In the catalog today every Claude model above charges five times as much for output as for input.

What does a cache hit cost?

Tokens read from the prompt cache are billed at a fraction of the input rate. The model pages in the catalog list the cache rates.

Is there a monthly fee?

Not on OneProvider. You top up a balance, it does not expire, and keys spend from it.

How do I estimate my monthly cost?

Count the input and output tokens of a typical request, multiply by the rates per million, and multiply by the number of requests. The example table shows the arithmetic.

Which model should I start with?

Start with Sonnet 5.5 for coding and general work, move easy bulk tasks to Haiku 5.5, and use Opus 5.5 only where the result needs it.

Claude, ChatGPT, GPT, Cursor and other product names are trademarks of their owners and are used only to describe compatibility. We do not give legal advice: following local rules stays with the user.