Models
All public Claude models on LLMsRelay — Opus 5, Fable 5, Opus 4.8, Opus 4.7, Opus 4.6, Sonnet 5, Sonnet 4.6 and Haiku 4.5.
LLMsRelay exposes eight public model IDs through api.llmsrelay.com: Claude Opus 5, Claude Fable 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 5, Claude Sonnet 4.6, and Claude Haiku 4.5. Short aliases are accepted for requests, while GET /v1/models is the source of truth for a specific key.
| you pay | Anthropic-equivalent balance | discount |
|---|---|---|
| $45 | $500balance | −91% |
| $90popular | $1,000balance | −91% |
Recommended Model IDs
Use the stable model IDs listed below in your API requests. These IDs are consistent across both Anthropic and OpenAI-compatible endpoints.
| Model | Model ID | Context | Thinking | Key access |
|---|---|---|---|---|
| Claude Opus 5 | claude-opus-5 | 1M | Yes | Basic, Pro |
| Claude Fable 5 | claude-fable-5 | 1M | Yes | Basic, Pro |
| Claude Opus 4.8 | claude-opus-4.8 | 1M | Yes | Claude key groups |
| Claude Opus 4.7 | claude-opus-4.7 | 1M | Yes | Claude key groups |
| Claude Opus 4.6 | claude-opus-4.6 | 1M | Yes | Claude key groups |
| Claude Sonnet 5 | claude-sonnet-5 | 1M | Yes | Claude key groups |
| Claude Sonnet 4.6 | claude-sonnet-4.6 | 1M | Yes | Claude key groups |
| Claude Haiku 4.5 | claude-haiku-4.5 | 200K | Yes | Claude key groups |
The catalog can be filtered by API-key group and per-key allowed-model settings. Use the response from GET /v1/models before configuring a client.
Short Aliases
For quick experimentation you can use short aliases instead of pinned IDs. Aliases always resolve to the latest version of each tier — convenient for chat clients, risky for production.
| Alias | Resolves to | Recommended for |
|---|---|---|
| opus | claude-opus-4.8 | Quick CLI calls, sandboxes |
| sonnet | claude-sonnet-4.6 | Quick CLI calls, sandboxes |
| haiku | claude-haiku-4.5 | Quick CLI calls, sandboxes |
Long Context (1M tokens)
LLMsRelay exposes a 1 million token context window for Opus 5, Fable 5, the Opus 4.x models, and Sonnet 5/4.6. Haiku 4.5 has a 200K context window. Enable the 1M context mode by sending the anthropic-beta header on each request:
curl https://api.llmsrelay.com/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: context-1m-2025" \
-H "content-type: application/json" \
-d '{
"model": "claude-opus-5",
"max_tokens": 4096,
"messages": [{"role": "user", "content": "."}]
}'LLMsRelay Rates (91% below Anthropic (11× cheaper))
These are the Anthropic-equivalent per-token rates used for usage deductions. Cache write is billed at 1.25× input and cache read at 0.10× input.
| Model | Input / 1M | Output / 1M | Cache write / 1M | Cache read / 1M |
|---|---|---|---|---|
| Claude Opus 5 | $5.00 | $25.00 | $6.25 | $0.50 |
| Claude Fable 5 | $10.00 | $50.00 | $12.50 | $1.00 |
| Claude Opus 4.8 | $5.00 | $25.00 | $6.25 | $0.50 |
| Claude Opus 4.7 | $5.00 | $25.00 | $6.25 | $0.50 |
| Claude Opus 4.6 | $5.00 | $25.00 | $6.25 | $0.50 |
| Claude Sonnet 5 | $2.00 | $10.00 | $2.50 | $0.20 |
| Claude Sonnet 4.6 | $3.00 | $15.00 | $3.75 | $0.30 |
| Claude Haiku 4.5 | $1.00 | $5.00 | $1.25 | $0.10 |
Rates are shown per million tokens. The exact balance deduction also depends on the measured request usage and cache token categories.
Choosing a Model
- Opus 5 — highest-capability reasoning and agent workloads
- Fable 5 — high-capability coding and agent workloads
- Opus 4.8 / 4.7 / 4.6 — complex reasoning, research, and long coding sessions
- Sonnet 5 / 4.6 — general coding and daily development
- Haiku 4.5 — fast, lower-cost classification and automation
See Key Controls to restrict which models a specific API key can use.
Listing Models via API
You can retrieve the list of available models programmatically:
The response is filtered for the authenticated key and includes the model capabilities exposed by the gateway. Pricing rates are documented on the Pricing page.