Skip to content

Claude Fable 5.2 API — Access via an AI API Gateway ​

Key facts: model IDs claude-fable-5-2 (plus claude-fable-5-1 and claude-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 URL https://byesu.com, OpenAI-compatible https://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.

ItemSpecification
Model IDs on byesuclaude-fable-5-2 (current) · claude-fable-5-1 · claude-fable-5
Context window1M tokens (~555K English words on the current tokenizer)
Max output128K tokens
Thinking modeAdaptive thinking (always on; default effort: high)
ModalitiesText and image input; text output; tool use
Reliable knowledge cutoffJune 2026
Official retirement floorNot sooner than November 9, 2027

Parameter rules worth knowing before migrating ​

  1. Adaptive thinking cannot be turned off. Sending thinking: {"type": "disabled"} or legacy thinking: {"type": "enabled", "budget_tokens": ...} returns HTTP 400. Control depth and latency with output_config: {"effort": "low" | "medium" | "high"} (see 400 thinking cannot be disabled).
  2. No assistant message prefill or forced tool_choice with thinking. Trailing assistant turns and forced tool_choice (any / tool) are rejected on current Claude 5 models; use tool_choice: {"type": "auto"} or output_config.format for 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 ​

bash
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 ​

python
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 ​

bash
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".

Got a problem? Contact support or join our group.