Claude Fable 5.2
Claude Fable 5.2 costs $8 per 1M input tokens and $40 per 1M output tokens on LLM API, with a 1M-token context window.
Pricing
Served by Anthropic, the only provider.
| Input | $8 | per 1M tokens |
|---|---|---|
| Output | $40 | per 1M tokens |
| Cache read | $0.2 | per 1M tokens |
| Cache write, 5 minutes | $10 | per 1M tokens |
| Cache write, 1 hour | $16 | per 1M tokens |
| Web search | $0.01 | per search |
Features
- ToolsYes
- Parallel tool callsNo
- Image inputYes
- ReasoningYes
Levels: low, medium, high, xhigh, max · default high
- Prompt cachingYes
- Structured outputsYes
- JSON modeYes
- StreamingYes
- Web searchYes
- Also acceptsclaude-fable-5.2
Call 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="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: "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": "claude-fable-5-2",
"max_tokens": 16000,
"messages": [{"role": "user", "content": "Hello"}]
}'POST /v1/chat/completionsSet LLMAPI_KEY to your LLM API key.Chat Completions docs
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.llmapi.ai/v1",
api_key=os.environ["LLMAPI_KEY"],
)
response = client.chat.completions.create(
model="claude-fable-5-2",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
const response = await client.chat.completions.create({
model: "claude-fable-5-2",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);curl https://api.llmapi.ai/v1/chat/completions \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-fable-5-2",
"messages": [{"role": "user", "content": "Hello"}]
}'More from Anthropic
All Anthropic text models
Claude Opus 5.5claude-opus-5-5$4 / $20per 1M input / output
Claude Sonnet 5.5claude-sonnet-5-5$2 / $10per 1M input / output
Claude Haiku 5.5claude-haiku-5-5$0.1 / $0.5per 1M input / output
Prices synced .