Claude API access
Call Anthropic's Claude models through 7API with the Anthropic Messages API or the OpenAI Chat Completions API. Claude Code, the Anthropic SDK and Claude-compatible tools work with two settings changed, and the same key also covers every other family in the catalog.
| Model | ID | Context | Max output | Input / 1M | Output / 1M | Cached / 1M |
|---|---|---|---|---|---|---|
| Claude Fable 5.2 | claude-fable-5-2 | 1M | 64K | $0.80 | $0.80 | $0.08 |
| Claude Opus 5.5 Max | claude-opus-5-5-max | 1M | 128K | $0.70 | $0.70 | $0.07 |
| Claude Opus 5.5 | claude-opus-5-5 | 1M | 128K | $0.70 | $0.70 | $0.07 |
| Claude Opus 5 | claude-opus-5 | 1M | 64K | $0.50 | $0.50 | $0.05 |
| Claude Opus 4.8 | claude-opus-4-8 | 1M | 64K | $0.50 | $0.50 | $0.05 |
| Claude Opus 4.7 | claude-opus-4-7 | 1M | 64K | $0.50 | $0.50 | $0.05 |
| Claude Opus 4.6 | claude-opus-4-6 | 1M | 64K | $0.50 | $0.50 | $0.05 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | 1M | 64K | $0.50 | $0.50 | $0.06 |
| Claude Sonnet 5 | claude-sonnet-5 | 1M | 64K | $0.50 | $0.50 | $0.05 |
| Claude Haiku 5.5 | claude-haiku-5-5 | 1M | 64K | $0.03 | $0.03 | $0.01 |
Rates are in USD per million tokens. Last checked 2026-11-20.
What to know
- Supports adaptive thinking and the
lowtomaxeffort scale (claude-opus-4-6stops atmaxwithoutxhigh). - Every Claude model has a 1M-token context window. In Claude Code, the
[1m]suffix turns on the 1M-context beta. - Prompt caching works on every Claude model, and
cache_controlbreakpoints are passed through unchanged. claude-sonnet-5-5is served on/v1/messagesonly. The other Claude models also work on Chat Completions and Responses.
Quick start
curl https://7api.st/v1/chat/completions \
-H "Authorization: Bearer $SEVENAPI_API_KEY" -H "Content-Type: application/json" \
-d '{"model": "claude-fable-5-2", "messages": [{"role": "user", "content": "Hello"}]}'Set the base URL to https://7api.st/v1 for OpenAI-format clients, or https://7api.st for Anthropic-format clients. See the quickstart for SDK examples.
Independent benchmarks
Scores published by third parties, not by 7API. See all benchmarks for sources and method.
| Model | Artificial Analysis Intelligence Index | Effort |
|---|---|---|
claude-opus-5-5 | 58 | max |
claude-sonnet-5-5 | 56 | max |
claude-haiku-5-5 | 43 | max |
Do I need an Anthropic account to use Claude through 7API?
No. You use a 7API key with base URL https://7api.st. Billing is per token from your 7API balance.
Which Claude model should I use for coding?
claude-opus-5-5 scores highest on the Artificial Analysis Intelligence Index (58 at max effort) and suits hard, multi-step tasks. claude-haiku-5-5 is far cheaper for quick edits. See the benchmarks.
Does Claude Code work with 7API?
Yes. Set ANTHROPIC_BASE_URL to https://7api.st and ANTHROPIC_AUTH_TOKEN to your key. See the Claude Code guide.
