Anthropic
A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.
Addresses and facts
- Anthropic Messages:
https://api.anthropic.comprovider documentation, read - OpenAI Chat Completions:
https://api.anthropic.com/v1Anthropic describes this compatibility layer as a way to test the Claude API with the OpenAI SDK. provider documentation, read
- Authentication
- x-api-key, with the key in
ANTHROPIC_API_KEYprovider documentation, read - Structured output
- provider documentation, read
- Tool calling
- provider documentation, read
- Rate limits
- Read the page provider documentation, read
- Prices
- Read the page provider documentation, read
- Data retention
- API inputs and outputs are deleted within 30 days by default, with the exceptions the page lists, such as a zero data retention agreement. Read the page provider documentation, read
- Documentation
- Unknown
- Output limits Baltor recorded
- Unknown
Harness setup
Replace claude-fable-5 with the model you want.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"npm": "@ai-sdk/openai-compatible",
"name": "Anthropic",
"options": {
"baseURL": "https://api.anthropic.com/v1",
"apiKey": "{env:ANTHROPIC_API_KEY}"
},
"models": {
"claude-fable-5": {
"name": "claude-fable-5"
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"anthropic": {
"baseUrl": "https://api.anthropic.com/v1",
"api": "openai-completions",
"apiKey": "$ANTHROPIC_API_KEY",
"models": [
{
"id": "claude-fable-5"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Anthropic documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Put this in ~/.claude/settings.json, or variables in your shell:
claude --model claude-fable-5From Claude Code documentation, read .
Models it lists
Prices in US dollars per million tokens, input and output, as models.dev, read records them.
| Model | Input | Output | Context | As of |
|---|---|---|---|---|
Claude Fable 5 claude-fable-5 | 10.00 USD | 50.00 USD | 1,000,000 | older than 30 days |
Claude Fable 5.1 claude-fable-5-1 | 10.00 USD | 50.00 USD | 1,000,000 | |
Claude Haiku 4.5 (latest) claude-haiku-4-5 | 1.00 USD | 5.00 USD | 200,000 | older than 30 days |
Claude Haiku 4.5 claude-haiku-4-5-20251001 | 1.00 USD | 5.00 USD | 200,000 | older than 30 days |
Claude Opus 4.5 (latest) claude-opus-4-5 | 5.00 USD | 25.00 USD | 200,000 | older than 30 days |
Claude Opus 4.5 claude-opus-4-5-20251101 | 5.00 USD | 25.00 USD | 200,000 | older than 30 days |
Claude Opus 4.6 claude-opus-4-6 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 4.7 claude-opus-4-7 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 4.8 claude-opus-4-8 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 5 claude-opus-5 | 5.00 USD | 25.00 USD | 1,000,000 | older than 30 days |
Claude Opus 5.5 claude-opus-5-5 | 4.00 USD | 20.00 USD | 1,000,000 | |
Claude Sonnet 4.5 (latest) claude-sonnet-4-5 | 3.00 USD | 15.00 USD | 1,000,000 | older than 30 days |
Claude Sonnet 4.5 claude-sonnet-4-5-20250929 | 3.00 USD | 15.00 USD | 1,000,000 | older than 30 days |
Claude Sonnet 4.6 claude-sonnet-4-6 | 3.00 USD | 15.00 USD | 1,000,000 | older than 30 days |
Claude Sonnet 5 claude-sonnet-5 | 2.00 USD | 10.00 USD | 1,000,000 | older than 30 days |
Sources of this page
- platform.claude.com/docs/en/build-with-claude/structured-outputs, read
- platform.claude.com/docs/en/cli-sdks-libraries/libraries/openai-sdk, read
- platform.claude.com/docs/en/agents-and-tools/tool-use/overview, read
- platform.claude.com/docs/en/api/rate-limits, read
- platform.claude.com/docs/en/about-claude/pricing, read
- privacy.claude.com/en/articles/7996866-how-long-do-you-store-my-organization-s-data, read
- models.dev/api.json, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.