Anthropic
Anthropic serves 17 text models on LLM API, all from Anthropic.
Anthropic is the AI safety company that builds the Claude family of models. Through LLM API you call Claude with the same OpenAI-compatible key you use for every other provider.
Models and prices
Prices when Anthropic serves the request.
No Anthropic model matches your search.
Text 17
Prices per 1M tokens
anthropic/claude-fable-5-2 | $8 | $40 | $0.2 | 1M |
|---|---|---|---|---|
anthropic/claude-opus-5-5 | $4 | $20 | $0.2 | 1M |
anthropic/claude-sonnet-5-5 | $2 | $10 | $0.1 | 1M |
anthropic/claude-haiku-5-5 | $0.1 | $0.5 | $0.01 | 1M |
anthropic/claude-fable-5-1 | $10 | $50 | $0.25 | 1M |
anthropic/claude-opus-5 | $5 | $25 | $0.5 | 1M |
anthropic/claude-fable-5 | $10 | $50 | $1 | 1M |
anthropic/claude-opus-4-8 | $5 | $25 | $0.5 | 1M |
anthropic/claude-opus-4-7 | $5 | $25 | $0.5 | 1M |
anthropic/claude-sonnet-4-6 | $3 | $15 | $0.3 | 1M |
anthropic/claude-opus-4-6 | $5 | $25 | $0.5 | 1M |
anthropic/claude-opus-4-5-20251101 | $5 | $25 | $0.5 | 200K |
anthropic/claude-haiku-4-5 | $1 | $5 | $0.1 | 200K |
anthropic/claude-haiku-4-5-20251001 | $1 | $5 | $0.1 | 200K |
anthropic/claude-sonnet-4-5-20250929 | $3 | $15 | $0.3 | 200K |
anthropic/claude-sonnet-4-5 | $3 | $15 | $0.3 | 200K |
anthropic/claude-sonnet-5 | $2 | $10 | $0.2 | 1M |
Send requests to Anthropic
Put anthropic/ before a model ID and the request goes to Anthropic. If Anthropic’s uptime over the last 5 minutes is below 90%, it goes to another provider of the model, unless it sends X-No-Fallback: true. Routing docs
Example: Claude Fable 5.2
POST /v1/messagesSet LLMAPI_KEY to your LLM API key.Anthropic Messages docs
import os
import anthropic
client = anthropic.Anthropic(
base_url="https://api.llmapi.ai",
api_key=os.environ["LLMAPI_KEY"],
)
message = client.messages.create(
model="anthropic/claude-fable-5-2",
max_tokens=16000,
messages=[{"role": "user", "content": "Hello"}],
)
for block in message.content:
if block.type == "text":
print(block.text)import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.llmapi.ai",
apiKey: process.env.LLMAPI_KEY,
});
const message = await client.messages.create({
model: "anthropic/claude-fable-5-2",
max_tokens: 16000,
messages: [{ role: "user", content: "Hello" }],
});
for (const block of message.content) {
if (block.type === "text") console.log(block.text);
}curl https://api.llmapi.ai/v1/messages \
-H "x-api-key: $LLMAPI_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "anthropic/claude-fable-5-2",
"max_tokens": 16000,
"messages": [{"role": "user", "content": "Hello"}]
}'Prices synced November 13, 2026.