AnthropicMessages

Claude Fable 5.2 API

Claude's latest Fable model for demanding reasoning and long-running agent work.

On this page

Claude Fable 5.2 API pricing

82% less than Anthropic’s API for 1,000 input and 500 output tokens, before caching.

USD per 1 million tokens
Token typeRouterHubAnthropicOfficial API
Input$1.435$8.00
Output$7.175$40.00
Cached input$0.03587$0.20
Cache write$1.794$10.00

Anthropic pricing source · Checked 2026-11-18

Compatible with the tools you already use

One key, one base URL. OpenAI and Anthropic compatible.

Claude Fable 5.2 uses Messages. See the tools that support this model.

Start for free

Plus up to $5 bonus credit on your first top-up.

Context window and API compatibility

Claude Fable 5.2 uses the Anthropic-compatible Messages API over POST /v1/messages and has a context window of 1,000,000 tokens. Use model ID claude-fable-5-2 in requests.

Exact model ID
claude-fable-5-2
Provider
Anthropic
Variant
Standard
Supported API
Anthropic-compatible Messages API (/v1/messages)
Availability
Preview
Context window
1,000,000 tokens
Maximum input
Not published
Maximum output
128,000 tokens
Input types
text and images
Coding tools
OpenCode, Claude Code, VS Code + Continue, VS Code + Cline (If the model is in Cline's Anthropic model picker.), Claude Desktop

Make your first API request

Set ROUTERHUB_API_KEY locally, then send a request with the exact model ID below.

cURL
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/messages \
  -H "x-api-key: $ROUTERHUB_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-fable-5-2","max_tokens":256,"messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}]}'

Python: install anthropic with pip. This example requests 256 output tokens and disables automatic retries. Check Usage before resending a paid request.

Python
import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ["ROUTERHUB_API_KEY"],
    base_url="https://routerhub.si",
    timeout=600.0,
    max_retries=0,
)
response = client.messages.create(
    model="claude-fable-5-2",
    max_tokens=256,
    messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
)
print(response.content)

Common questions

What is Claude Fable 5.2?

Claude Fable 5.2 is an Anthropic language model served through RouterHub using the Anthropic-compatible Messages API. Its exact API model ID is claude-fable-5-2.

How much does Claude Fable 5.2 cost?

RouterHub charges $1.435 input, $0.03587 cached input and $7.175 output per million tokens (prices as of 2026-11-22). A typical chat message of about 1,000 input and 500 output tokens costs about 0.50¢. Usage is billed against your prepaid balance.

What is the Claude Fable 5.2 context window?

Context window: 1,000,000 tokens. Maximum input: Not published. Maximum output: 128,000 tokens.

Which API does Claude Fable 5.2 support?

Use the Anthropic-compatible Messages API at https://routerhub.si/v1/messages with the exact model ID claude-fable-5-2 and your RouterHub API key (x-api-key header).

Which coding tools work with Claude Fable 5.2?

OpenCode, Claude Code, VS Code + Continue, VS Code + Cline (If the model is in Cline's Anthropic model picker), Claude Desktop. These tools support this model’s Messages endpoint with the configurations in their setup guides.

Can I try Claude Fable 5.2 for free?

Claude Fable 5.2 needs a free RouterHub account with prepaid credits. New accounts get $5 free on their first top-up of $20 or more.

Related models and guides