Claude API
Decode serves every Claude model on the official Anthropic Messages API and an OpenAI-compatible API, so existing Anthropic SDK, OpenAI SDK and Claude Code setups only need a new base URL and key. Prices are 35% of the official price.
Models and pricing
| Model | Model ID | Official input / output | Decode input / output | Cache read |
|---|---|---|---|---|
| Claude Fable 5.2 | claude-fable-5-2 | $8.00 / $40.00 | $2.80 / $14.00 | $0.07 |
| Claude Fable 5.1 | claude-fable-5-1 | $10.00 / $50.00 | $3.50 / $17.50 | $0.0875 |
| Claude Opus 5.5 | claude-opus-5-5 | $4.00 / $20.00 | $1.40 / $7.00 | $0.07 |
| Claude Opus 5 | claude-opus-5 | $5.00 / $25.00 | $1.75 / $8.75 | $0.175 |
| Claude Opus 4.8 | claude-opus-4-8 | $5.00 / $25.00 | $1.75 / $8.75 | $0.175 |
| Claude Opus 4.7 | claude-opus-4-7 | $5.00 / $25.00 | $1.75 / $8.75 | $0.175 |
| Claude Opus 4.6 | claude-opus-4-6 | $5.00 / $25.00 | $1.75 / $8.75 | $0.175 |
| Claude Opus 4.5 | claude-opus-4-5claude-opus-4-5-20251101 | $5.00 / $25.00 | $1.75 / $8.75 | $0.175 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $2.00 / $10.00 | $0.70 / $3.50 | $0.035 |
| Claude Sonnet 5 | claude-sonnet-5 | $2.00 / $10.00 | $0.70 / $3.50 | $0.07 |
| Claude Sonnet 4.6 | claude-sonnet-4-6 | $3.00 / $15.00 | $1.05 / $5.25 | $0.105 |
| Claude Haiku 5.5 | claude-haiku-5-5 | $0.10 / $0.50 | $0.035 / $0.175 | $0.0035 |
| Claude Haiku 4.5 | claude-haiku-4-5claude-haiku-4-5-20251001 | $1.00 / $5.00 | $0.35 / $1.75 | $0.035 |
- Cache writes: 1.25 × the input price for the 5-minute cache, 2 × for the 1-hour cache.
claude-haiku-5-5requests above 100K input tokens bill at the long-input rate: input $0.175, output $0.875, cache read $0.0175.- Fast mode: every price × 2 when a
claude-fable-5-2,claude-opus-5-5request sends"speed": "fast". - Thinking tokens bill as output; failed requests are not charged. Prices as of 2026-11-16; live prices are on the model square.
Start in three steps
- Sign up and top up.
- In API Keys, create a key in the "Claude" group.
- Call
POST /v1/messages:
curl https://decode8.com/v1/messages \
-H "x-api-key: $DECODE_CLAUDE_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "claude-opus-5-5", "max_tokens": 1024, "messages": [{"role": "user", "content": "Introduce yourself in one sentence."}]}'
import anthropic
client = anthropic.Anthropic(base_url="https://decode8.com", api_key="sk-...")
message = client.messages.create(
model="claude-opus-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Introduce yourself in one sentence."}],
)
print(message.content[-1].text)
With Claude Code:
export ANTHROPIC_BASE_URL=https://decode8.com
export ANTHROPIC_AUTH_TOKEN=sk-...
claude
See the Claude API reference for the OpenAI-compatible endpoint and billing details.
FAQ
How much does the Claude API cost?
Every Claude model costs 35% of the official price, billed on the tokens used. Claude Opus 5.5 is $1.40 input and $7.00 output per 1M tokens (officially $4.00 / $20.00).
Why do I get "no available channel"?
Claude needs a key in the "Claude" group. Create one in API Keys; it shares one balance with your video and image keys.
Does it work with Claude Code?
Yes. Set ANTHROPIC_BASE_URL=https://decode8.com and ANTHROPIC_AUTH_TOKEN=sk-..., then start claude.
Can I use the OpenAI SDK?
Yes. Set base_url to https://decode8.com/v1 and call chat.completions.create with a Claude model ID. For Claude-only features such as prompt caching and effort, use the Anthropic endpoint /v1/messages.