OpenAI-compatible API for Claude Codehttps://api.claudecodeapikey.com/v1
Get API key

HomePricing

Claude Code API: Pay per token

Pay only for the text your coding agent processes. Our prepaid, pay-as-you-go model ensures your spending stays predictable and never exceeds your loaded balance.

No subscription. Prepaid credit never expires.

per 1M input tokens
$0.25
Output tokens / 1M
$1.00
token context
100,000
trial credit
$0.50
requests per minute
300

Cost calculator

$0.00

Worked examples

  • Generating a standard React component

    A typical request sends 1,500 input tokens and receives 800 output tokens. Cost: (1,500 / 1,000,000 × $0.25) + (800 / 1,000,000 × $1.00) = $0.000375 + $0.0008 = $0.001175 per request.

  • Debugging a complex Python script

    A debugging session might process 5,000 input tokens and generate 2,000 output tokens. Cost: (5,000 / 1,000,000 × $0.25) + (2,000 / 1,000,000 × $1.00) = $0.00125 + $0.002 = $0.00325 per session.

  • Refactoring a large codebase context

    Handling a 32,000 token context window with 16,000 input and 16,000 output tokens costs: (32,000 / 1,000,000 × $0.25) + (16,000 / 1,000,000 × $1.00) = $0.008 + $0.016 = $0.024 per turn.

Token Pricing

We charge strictly for the tokens your API call processes. Input tokens are billed at $0.25 per million, and output tokens are billed at $1.00 per million. This structure applies to all requests, whether you are generating code or providing context. The claude code proxy does not add hidden fees for streaming, tool calling, or standard chat completions. You pay exactly for the text volume your coding agent consumes.

Top-Up Bonuses

Load your account with prepaid credit to reduce your effective cost per token. When you top up $50 or more, you receive a 5% bonus credit. Top-ups of $100 or more include a 10% bonus. These bonuses are added to your balance automatically. The credit remains available for your API calls as long as your account is active.

Free Trial Offer

New accounts receive $0.50 in trial credit with no credit card required. This trial is valid for 7 days and resets once per person. Use this period to verify integration with your preferred coding tools. The trial credit covers standard API usage, allowing you to test latency and response quality before committing to a larger top-up.

No Expiration Policy

Your prepaid credit never expires. Whether you use the platform daily or occasionally, your balance remains available indefinitely. This eliminates the risk of wasting funds due to monthly subscription cycles. You retain full control over your spending, with usage never exceeding your loaded balance.

What your credit buys

One price list, one set of limits, all features on every key.

SpecValue
JSON modeJSON object mode via response_format json_object
Max context100,000 tokens (prompt + completion together)
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Max output16,000 tokens max; 2,048 if max_tokens is not set
Parallel requestsup to 8 in parallel per key
Requests per minute300 requests per minute per key
Bonus credit+5% on $50+, +10% on $100+
Subscriptionno monthly fee; paid credit does not expire
Free trial$0.50 for 7 days, no card
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $10 to $500
Token prices$0.25 per 1M input tokens · $1.00 per 1M output tokens

All limits and error codes are listed in the docs.

Questions and answers

Do I pay for both input and output tokens?

Yes. We charge $0.25 per million input tokens and $1.00 per million output tokens. Both are billed based on the actual text processed in each API call.

What happens to my bonus credit if I top up?

Bonus credit is added to your account immediately after a qualifying top-up. It is available for use alongside your base credit for API requests.

Does the trial credit expire?

The trial credit expires 7 days after account creation. Base prepaid credit does not expire and remains available indefinitely.

Can I exceed my prepaid balance?

No. Your API key stops accepting requests once your balance reaches zero. You must top up to continue using the service.

Your key is one form away

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

Get API key