- Anthropic
- Text
- Streaming
Claude Fable 5.2 API: pricing, capabilities and setup
pay as you go · no subscription · key right after sign-up
How much Claude Fable 5.2 costs
- Input$2.304per 1M tokens
- Output$11.52per 1M tokens
- Cache read$0.2304per 1M tokens
- Cache write$2.88per 1M tokens
Cost calculator
3 M tokens
75%
The rest is output
- With llmbox
- $14
What a typical task costs
| Task | Tokens (input / output) | With llmbox |
|---|---|---|
| Short chat | 2 000 / 500 | $0.01037 |
| Code review | 20 000 / 2 000 | $0.06912 |
| Document summary | 40 000 / 2 000 | $0.1152 |
| Agent session | 600 000 / 30 000 | $1.728 |
Specs
Capabilities
- Streaming
- Prompt caching
- Image input
Endpoints
/v1/chat/completions/v1/messages
Setup in three steps
- 01Get a key
Sign up and create an API key in the dashboard.
Get a key → - 02Set the base URL
In any OpenAI-compatible client, point the API address to:
- 03Pass the model id
Put this identifier in the model field:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmbox.cc/v1",
api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
model="anthropic/claude-fable-5.2",
messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)Claude Fable 5.2 vs neighbours
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Claude Fable 5.2 | $2.304 | $11.52 |
| Claude Sonnet 5.5 | $0.522 | $2.61 |
| Claude Sonnet 5 | $0.60264 | $3.0132 |
| Claude Opus 5.5 | $0.90 | $4.50 |
| Claude Opus 5 | $1.305 | $6.525 |
| GPT-6.1 Sol OpenAI | $1.80 | $5.00 |