APIMODELSAPIMODELS
All
Models/Claude Fable 5.1
Anthropic

Claude Fable 5.1 API

claude-fable-5-1

Claude Fable 5.1 is Anthropic's September 2026 flagship: 1M context, 128K output, text and image input, and 52.6% on Terminal-Bench-Science against 24.7% for Fable 5. It is now a generation behind Fable 5.2, which scores higher and is priced lower here. Call claude-fable-5-1 at $5 / $25 per 1M tokens; failed requests are not charged.

50% Below OfficialAgentic Coding1M ContextMultimodal
Input$5
Output$25
per 1M tokens

API Documentation

View complete API reference with all parameters and examples.

View Docs

Advanced Features

Streaming

Enable real-time streaming responses with Server-Sent Events.

{
  "model": "claude-fable-5-1",
  "stream": true,
  "max_tokens": 1024,
  "messages": [...]
}

Function Calling (Tools)

Enable Claude to use tools and call functions.

{
  "model": "claude-fable-5-1",
  "max_tokens": 1024,
  "tools": [{
    "name": "get_weather",
    "description": "Get current weather for a location",
    "input_schema": {
      "type": "object",
      "properties": {
        "location": {"type": "string", "description": "City name"}
      },
      "required": ["location"]
    }
  }],
  "tool_choice": {"type": "auto"},
  "messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
}

PDF Support

Analyze PDF documents by sending them as base64 encoded content.

{
  "model": "claude-fable-5-1",
  "max_tokens": 1024,
  "messages": [{
    "role": "user",
    "content": [{
      "type": "document",
      "source": {
        "type": "base64",
        "media_type": "application/pdf",
        "data": "<base64_encoded_pdf>"
      }
    }, {
      "type": "text",
      "text": "Summarize this document."
    }]
  }]
}

Structured Output (JSON Schema)

Get structured JSON responses that match your schema.

{
  "model": "claude-fable-5-1",
  "max_tokens": 1024,
  "output_format": {
    "type": "json_schema",
    "schema": {
      "type": "object",
      "properties": {
        "name": {"type": "string"},
        "age": {"type": "integer"}
      },
      "required": ["name", "age"]
    }
  },
  "messages": [{"role": "user", "content": "Extract info: John is 30 years old"}]
}

Web Search

Enable Claude to search the web for up-to-date information.

{
  "model": "claude-fable-5-1",
  "max_tokens": 1024,
  "tools": [{
    "type": "web_search_20250305",
    "name": "web_search",
    "max_uses": 5
  }],
  "messages": [{"role": "user", "content": "What's the latest news about AI?"}]
}

API Parameters Reference

ParameterTypeRequiredDescription
modelstringYesModel identifier (e.g., claude-fable-5-1)
messagesarrayYesArray of message objects with role and content
max_tokensintegerYesMaximum tokens in the response (1 - 128000)
systemstringNoSystem prompt to set context
streambooleanNoEnable streaming responses (SSE)
temperaturenumberNoSampling temperature (0.0 - 1.0)
top_pnumberNoNucleus sampling threshold (0.0 - 1.0)
top_kintegerNoTop-k sampling (0 - infinity)
stop_sequencesarrayNoSequences that stop generation
toolsarrayNoFunction calling tools definition
tool_choiceobjectNoTool selection strategy (auto/any/tool)
thinkingobjectNoEnable extended thinking mode
output_formatobjectNoStructured output with JSON schema

Full API Documentation

View complete API reference with streaming, thinking, and more.

View Documentation

Pricing

Input
$5
per 1M tokens
Output
$25
per 1M tokens

Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000

Below Official on All Four Tiers

$5 / $25 in-out, $0.22 cached read, $5.778 cache write

2x Fable 5 on Agentic Science

Terminal-Bench-Science 52.6% vs 24.7%

1M Context, 128K Output

Multimodal input (text + image)

Drop-in for Claude Code

Native /v1/messages, tool use + prompt caching

TL;DR Claude Fable 5.1 is an Anthropic large language model, callable via APIMODELS' unified API (model name `claude-fable-5-1`). Pricing: Input: $5, Output: $25 per 1M tokens. One API key for all image / video / LLM / audio models.
Newer generation available: Claude Fable 5.2 — FrontierSWE v2 69.9% against Fable 5.1's 56.3% and Terminal-Bench-Science 74.6% against 52.6% (Anthropic), at $4.80 / $24 per 1M tokens (40% below the official rate, and below Fable 5.1 here). Claude Fable 5.2 →

About Claude Fable 5.1

Claude Fable 5.1 is a Large Language Model API provided by Anthropic. Claude Fable 5.1 is Anthropic's flagship model, released September 2026, and on APIMODELS it costs $5 per 1M input tokens and $25 per 1M output tokens — exactly half Anthropic's $10 / $50 list price. Prompt caching is more affordable here too — $0.22 per 1M cached reads against Anthropic's $0.25, and $5.778 per 1M cache writes against their $12.50 (5-minute) and $20 (1-hour), with both TTLs billed at the same rate — so all four token tiers sit below the official price, not just input and output. What changed against Fable 5 is agentic endurance: it more than doubles Fable 5 on Terminal-Bench-Science 0.1 (52.6% vs 24.7%, with Opus 5 at 29.0%), leads on Terminal-Bench 4.0 (55.8% vs 42.0%), CursorBench 3.2.0 (73.4% vs 70.5%), AutomationBench (31.4% vs 17.1%), OSWorld 2.0 strict (41.7% vs 36.1%) and Humanity's Last Exam with tools (65.0% vs 63.8%), and moves GDPval-AA v2 from 1723 to 1853 Elo. Anthropic demonstrated 38-hour unattended agent runs on it. The context window is 1M tokens with up to 128K output, and input is multimodal (text + image). Call it through the Anthropic Messages API (/v1/messages) — the native path for Claude Code, the Anthropic SDK and Anthropic-compatible clients like Cursor — with native tool use and prompt caching. Request params match Claude Fable 5, so switching is a one-line model-name change. Through APIMODELS platform, you can access this model via a unified API with transparent pay-as-you-go pricing. Current pricing: Input: $5, Output: $25 per 1M tokens.

Key Features

  • Below Official on All Four Tiers -- $5 / $25 in-out, $0.22 cached read, $5.778 cache write
  • 2x Fable 5 on Agentic Science -- Terminal-Bench-Science 52.6% vs 24.7%
  • 1M Context, 128K Output -- Multimodal input (text + image)
  • Drop-in for Claude Code -- Native /v1/messages, tool use + prompt caching

Use Cases

Chatbot & Customer Support

Build intelligent conversational systems to automatically answer user queries and improve service efficiency.

Content Generation

Automatically write articles, emails, ad copy, and other text content to boost productivity.

Code Assistant

Assist with code writing, debugging, and code review to accelerate software development.

Data Analysis

Understand and analyze unstructured data, extract key insights, and generate summary reports.

Why APIMODELS

  • Unified API -- One API key to access all models, no need to register on multiple platforms
  • Transparent Pricing -- Pay-as-you-go with per-call pricing published on every model page, ideal for indie developers and startups
  • Instant Access -- Start right after signup; pay by card, PayPal, Alipay or USDT
  • Full Documentation -- Detailed API docs with code examples in cURL, Python, and Node.js

Frequently Asked Questions

How much does Claude Fable 5.1 cost?

Claude Fable 5.1 is available through APIMODELS at: Input: $5, Output: $25 per 1M tokens. Billing is pay-as-you-go — you only pay for what you generate.

How to use Claude Fable 5.1 API?

Sign up at APIMODELS, get your API key, and call our unified API endpoint. We provide detailed API documentation with code examples in cURL, Python, and Node.js.

What is the difference between APIMODELS and the official Anthropic API?

APIMODELS offers the same Claude Fable 5.1 model through our aggregation platform. We provide a unified API interface so you do not need separate accounts for each provider - one API key to access all models.

What does Fable 5.1 improve over Fable 5, and which should I pick?

The gap is in how long it can keep working, not in how it chats. Anthropic's published numbers: Terminal-Bench-Science 0.1 goes from Fable 5's 24.7% to 52.6% (Opus 5 sits at 29.0%) — more than double; Terminal-Bench 4.0 55.8% vs 42.0%; CursorBench 3.2.0 73.4% vs 70.5%; AutomationBench 31.4% vs 17.1%; OSWorld 2.0 strict 41.7% vs 36.1%; GDPval-AA v2 moves from 1723 to 1853 Elo. Anthropic demonstrated 38-hour unattended agent runs on it. The choice is easy: take 5.1 for long-horizon agents, cross-repo code work and multi-step research. Both cost the same here ($5 / $25), so there is no cost argument for staying on Fable 5 — only an “it already works, don't touch it” argument.

Can I use Fable 5.1 in Claude Code or Cursor?

Yes, on the native path. It speaks the Anthropic Messages API (/v1/messages): point ANTHROPIC_BASE_URL at https://api.apimodels.app, set the model to claude-fable-5-1, and use your apimodels API key (see /docs/claude-code). Anthropic-compatible clients like Cursor work through their "custom Anthropic model" setting. Tools use the Anthropic schema ({name, input_schema}), and request parameters are identical to Fable 5 — migrating is a one-line model-name change.

How is prompt caching billed? Does the 1-hour TTL cost more?

Cached reads are $0.22 per 1M tokens and cache writes are $5.778 per 1M — both below Anthropic’s own list ($0.25 for reads; $12.50 and $20 for 5-minute and 1-hour writes). That puts all four tiers under the official price, not just input and output. Anthropic charges the two write TTLs differently; here both bill at the same $5.778, so passing ttl:"1h" costs you nothing extra. Usage is the standard cache_control:{"type":"ephemeral"} block — put the system prompt and the unchanging context first and keep it byte-identical between turns, or the prefix will not hit. Claude Code already uses caching by default; nothing to configure.

What are the context and output limits?

A 1M-token context window with up to 128K output tokens, and multimodal input (text + image). The full 1M context bills at the same input rate — there is no long-context surcharge. Worth knowing about the output ceiling: filling all 128K in one call costs about $3.2 (128K x $25/1M), so for long generations use stream:true — you see output as it arrives and you avoid a very long non-streaming request running into gateway timeouts.

Fable 5.1 vs Claude Opus 5 vs Opus 4.8 — how do I choose?

By task shape. Fable 5.1 is the strongest of the three for long-horizon agents, terminal work and multi-step research, and it leads Opus 5 on the Terminal-Bench series, AutomationBench and OSWorld. Opus 4.8 is far more affordable per token ($3 / $13) and is the sensible default for ordinary conversation, single-shot code edits and structured output. All three share one API key and one endpoint, so routing per task is a change to the model field and nothing else.

What can Claude Fable 5.1 do?

Claude Fable 5.1 supports: 50% Below Official, Agentic Coding, 1M Context, Multimodal. See the APIMODELS docs for full parameters and call examples.

Can I use the Claude Fable 5.1 API from any country, including mainland China?

Yes. APIMODELS does not restrict access by country: the site and the API answer requests from anywhere, and apimodels.app and api.apimodels.app are reachable directly from mainland China without a proxy. You call Claude Fable 5.1 with one APIMODELS key, so you do not need a separate account with the model's developer.

What payment methods are supported? Can I pay with PayPal or crypto?

Yes to both. You can top up with a card (Visa, Mastercard and others, through Stripe), PayPal, Alipay, or USDT on TRON (TRC20) or BNB Smart Chain (BEP20). Card, PayPal and Alipay top-ups are credited immediately; USDT is credited once the transfer confirms on-chain. Auto top-up is optional, and a $50 top-up adds a $1 bonus ($3 on a $100 top-up). The balance is in USD and billed per use, with no subscription.

Related models

Related reading

How to get access, regional availability, and how this model compares with its alternatives.