Anthropic · Text

Claude Sonnet 5.5 API

Model IDclaude-sonnet-5-5

Claude Sonnet 5.5 is an Anthropic Claude model. Point the Anthropic SDK or Claude Code at api.apirail.dev and keep using the Messages API, or call it through the OpenAI-compatible Chat Completions endpoint. Every token is billed at 30% of the list price.

Claude Sonnet 5.5 API pricing

Billed itemAPIRailList price
Input tokens per 1M tokens$0.60$2.00
Cached input tokens per 1M tokens$0.03$0.10
Cache write tokens per 1M tokens$0.75$2.50
Output tokens per 1M tokens$3.00$10.00

Specs

Provider
Anthropic
Modality
Text
Context window
1,000,000 tokens
Max output
128,000 tokens
Endpoints
POST /v1/messagesAnthropic MessagesPOST /v1/chat/completionsOpenAI Chat Completions

Quickstart

Replace ar-live-YOUR_KEY with a key from Dashboard → API keys.

curl https://api.apirail.dev/v1/messages \
  -H "x-api-key: ar-live-YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Say hello in one sentence."}]
  }'
Anthropic · Text

Claude Opus 5.5

claude-opus-5-5

Context
1M
Input / 1M
$4.00$1.20
Output / 1M
$20.00$6.00
Anthropic · Text

Claude Opus 5

claude-opus-5

Context
1M
Input / 1M
$5.00$1.50
Output / 1M
$25.00$7.50
Anthropic · Text

Claude Sonnet 5

claude-sonnet-5

Context
1M
Input / 1M
$2.00$0.60
Output / 1M
$10.00$3.00
Anthropic · Text

Claude Haiku 5.5

claude-haiku-5-5

Context
1M
Input / 1M
$0.10$0.03
Output / 1M
$0.50$0.15
Anthropic · Text

Claude Opus 4.8

claude-opus-4-8

Context
1M
Input / 1M
$5.00$1.50
Output / 1M
$25.00$7.50

FAQ

How do I get a Claude Sonnet 5.5 API key?

Sign in to APIRail with Google, create a key under Dashboard → API keys and top up at least $20. The same ar-live key works for Claude Sonnet 5.5 and every other model in the catalog.

How much does the Claude Sonnet 5.5 API cost?

$0.60 per 1M input tokens and $3.00 per 1M output tokens, 30% of the list price of $2.00 and $10.00. Cached input costs $0.03 per 1M tokens.

Which endpoints can I use with Claude Sonnet 5.5?

POST /v1/messages, POST /v1/chat/completions. Send the model ID claude-sonnet-5-5 in the request.

Can I use Claude Sonnet 5.5 with Claude Code?

Yes. Set ANTHROPIC_BASE_URL=https://api.apirail.dev and ANTHROPIC_AUTH_TOKEN to your APIRail key, then start Claude Code with --model claude-sonnet-5-5.