Claude Fable 5.2 API
claude-fable-5-2Cache writes 1.25× input
- Input
- $8.80/M
- Cached
- $0.22/M
- Output
- $44.00/M
- Context
- 1M
Price Anthropic’s official price plus 10%, per call. No fee when you buy credit.
Know first Prompt caching is on: a cache write costs more than input, a cache read far less. reasoning_effort isn’t accepted on it yet.
API
curl
curl https://api.tokens.pay/v1/chat/completions \
-H "Authorization: Bearer $TOKENS_PAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-fable-5-2",
"messages": [{"role": "user", "content": "Say hello in five words."}]
}'
Python
from openai import OpenAI
import os
client = OpenAI(base_url="https://api.tokens.pay/v1", api_key=os.environ["TOKENS_PAY_KEY"])
reply = client.chat.completions.create(
model="claude-fable-5-2",
messages=[{"role": "user", "content": "Say hello in five words."}],
)
print(reply.choices[0].message.content)
Node
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.tokens.pay/v1", apiKey: process.env.TOKENS_PAY_KEY });
const reply = await client.chat.completions.create({
model: "claude-fable-5-2",
messages: [{ role: "user", content: "Say hello in five words." }],
});
console.log(reply.choices[0].message.content);
Where it runs
| Step | Where | Stores the prompt |
|---|---|---|
| Tokens.Pay | United States | No |
| Anthropic | Not stated | Its own terms |