claudeapi.cheap is fully compatible with the Anthropic Messages API. Just change the base URL and API key.
All API requests require a valid API key in the Authorization header. Keys start with sk-cc-.
Compatible with the Anthropic Messages API. Set base_url in your SDK to this value.
| Model ID | Input / 1M | Output / 1M | Context |
|---|---|---|---|
claude-opus-4-6 | $7.50 $15 | $37.50 $75 | 200K |
claude-sonnet-4-6 | $1.50 $3 | $7.50 $15 | 200K |
claude-haiku-4-5 | $0.40 $0.80 | $2.00 $4 | 200K |
POST /v1/messages — Create a message (Anthropic Messages format).
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Model ID |
messages | array | Yes | Array of message objects |
max_tokens | integer | No | Max output tokens (default: 4096) |
system | string | No | System prompt |
temperature | float | No | 0.0 to 1.0 |
stream | boolean | No | Enable SSE streaming |
Set "stream": true to receive Server-Sent Events (SSE).
| Status | Error Type | Description |
|---|---|---|
401 | authentication_error | Invalid or missing API key |
400 | invalid_request_error | Invalid model or malformed request |
402 | insufficient_balance | Balance is $0. Top up required. |
429 | rate_limit_error | Too many requests |
500 | internal_error | Server error |
502 | upstream_error | Upstream provider error |
| Plan | Requests/min | Tokens/min |
|---|---|---|
| Free (Beta) | 10 | 40,000 |
| Starter | 60 | 200,000 |
| Pro | 300 | 1,000,000 |
| Enterprise | Custom | Custom |
Use claudeapi.cheap directly with Claude Code:
Then just run claude in your terminal. All requests route through claudeapi.cheap at 50% off.
Contact us at support@claudeapi.cheap.