Claude Fable 5.2 API — Access via an AI API Gateway
Key facts: model IDs
claude-fable-5-2(plusclaude-fable-5-1andclaude-fable-5); 1M-token context window, up to 128K output tokens, adaptive thinking always on (default effort: high). Anthropic's official list price is $8 / $40 per million input / output tokens (cache read 2.5% = $0.20 / MTok); byesu bills pay-as-you-go per token with the live price shown in the console. Anthropic-native base URLhttps://byesu.com, OpenAI-compatiblehttps://byesu.com/v1.
Call Anthropic's Claude Fable 5.2 through byesu — an AI API gateway with pay-as-you-go billing, no subscription, and both Anthropic-native (/v1/messages) and OpenAI-compatible (/v1/chat/completions) endpoints.
Model specifications and official list prices below come from Anthropic's Models Overview, verified on 2026-11-28.
What It Is & When to Pick It Over Opus 5.5
Anthropic positions Claude Opus 5.5 as the default starting point for everyday agentic coding, and Claude Fable 5.2 above it for demanding multi-step reasoning, architecture synthesis, and long-horizon agent workflows where Opus 5.5 at higher effort still falls short.
| Item | Specification |
|---|---|
| Model IDs on byesu | claude-fable-5-2 (current) · claude-fable-5-1 · claude-fable-5 |
| Context window | 1M tokens (~555K English words on the current tokenizer) |
| Max output | 128K tokens |
| Thinking mode | Adaptive thinking (always on; default effort: high) |
| Modalities | Text and image input; text output; tool use |
| Reliable knowledge cutoff | June 2026 |
| Official retirement floor | Not sooner than November 9, 2027 |
Parameter rules worth knowing before migrating
- Adaptive thinking cannot be turned off. Sending
thinking: {"type": "disabled"}or legacythinking: {"type": "enabled", "budget_tokens": ...}returns HTTP 400. Control depth and latency withoutput_config: {"effort": "low" | "medium" | "high"}(see 400 thinking cannot be disabled). - No assistant message prefill or forced tool_choice with thinking. Trailing
assistantturns and forcedtool_choice(any/tool) are rejected on current Claude 5 models; usetool_choice: {"type": "auto"}oroutput_config.formatfor structured JSON.
How Pricing Works
byesu bills per token from a prepaid balance with no monthly subscription. Each model's live billed rate is displayed in the console model list after sign-in, and every call is itemized in your usage logs.
For reference, Anthropic's official first-party list price for claude-fable-5-2 is $8 / $40 per million input / output tokens, with 5-minute prompt cache writes at $10 / MTok (1.25×) and prompt cache reads at 2.5% of base input ($0.20 / MTok) — an unusually deep cache discount suited to long agent loops with stable system and tool prefixes.
Token group
A token in the default auto group covers claude-fable-5-2. If a token pinned to another vendor group returns "no available channel", switch to auto or check Choosing a Group.
How to Call It
- Anthropic native (
/v1/messages) →https://byesu.com - OpenAI-compatible (
/v1/chat/completions) →https://byesu.com/v1
Option 1: Anthropic native /v1/messages
curl https://byesu.com/v1/messages \
-H "Authorization: Bearer sk-YOUR_TOKEN" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-fable-5-2",
"max_tokens": 4096,
"messages": [
{
"role": "user",
"content": "Design a lock-free ring buffer in Rust and list the memory-ordering invariants."
}
]
}'Option 2: OpenAI Python SDK
from openai import OpenAI
client = OpenAI(api_key="sk-YOUR_TOKEN", base_url="https://byesu.com/v1")
resp = client.chat.completions.create(
model="claude-fable-5-2",
messages=[{"role": "user", "content": "Summarize three failure modes of distributed sagas."}],
)
print(resp.choices[0].message.content)Use It in Claude Code
export ANTHROPIC_BASE_URL="https://byesu.com"
export ANTHROPIC_AUTH_TOKEN="sk-YOUR_TOKEN"
export ANTHROPIC_MODEL="claude-fable-5-2"Full walkthrough: Claude Code CLI setup and Third-Party Gateways for Claude Code.
FAQ
How do I call the Claude Fable 5.2 API on byesu?
Create a token in the byesu console (the default auto group covers claude-fable-5-2) and send requests to https://byesu.com/v1/messages (Anthropic native) or https://byesu.com/v1/chat/completions (OpenAI-compatible) with model set to claude-fable-5-2.
How much does Claude Fable 5.2 cost?
byesu bills pay-as-you-go per token with no monthly subscription; the live billed price is shown in the console model list after sign-in. For reference, Anthropic's official list price for claude-fable-5-2 is $8 per million input tokens and $40 per million output tokens, with prompt cache reads at 2.5% of base input ($0.20 / MTok).
When should I choose Claude Fable 5.2 over Claude Opus 5.5?
Per Anthropic's models overview, Opus 5.5 is the recommended starting point for most coding and knowledge tasks, while Fable 5.2 is built for the hardest reasoning problems and long-horizon agentic workflows where Opus 5.5 at higher effort still falls short.
Can I disable thinking on claude-fable-5-2?
No. Adaptive thinking is always on for Claude Fable 5.2 with a default effort of high. Sending thinking.type = "disabled" returns HTTP 400; tune reasoning depth with output_config.effort instead.
Does claude-fable-5-2 work in Claude Code?
Yes. Set ANTHROPIC_BASE_URL="https://byesu.com", ANTHROPIC_AUTH_TOKEN="sk-YOUR_TOKEN", and ANTHROPIC_MODEL="claude-fable-5-2".