APIMart
Back to all models

Claude Fable 5 API

AnthropicModel ID claude-fable-5Text modelReleased June 9, 2026

Use Claude Fable 5 to trace an outage across three services’ logs, find why two revenue reports disagree, or spot the flaw in an experiment before you run it.

Max input
1,000,000 tokens
Max output
128,000 tokens
Input → output
Text, Image → Text
Knowledge cutoff
January 2026
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Claude Fable 5 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Claude Fable 5.

Try Claude Fable 5 with your own material

Incident analysis across services

Give Claude Fable 5 the logs from each service around the incident and have it build one timeline and name the first failure. Confirm the root cause in your monitoring before closing the incident.

Example: What failed first in this outage?

Material

api-gateway
14:02:10 502 upstream timeout (orders) · 14:02:11 502 upstream timeout (orders)
orders
14:01:58 db pool exhausted (max 20) · 14:02:05 request timeout after 5000 ms
billing-worker
14:01:40 started nightly reconciliation job, 40 parallel queries against orders DB

PromptUsing the logs from the three services, build a timeline and say which failure started the outage.

Sample answer · written by hand to show the reasoning

14:01:40 billing-worker starts a reconciliation job with 40 parallel queries on the orders database. 14:01:58 the orders service runs out of database connections. 14:02:05 its requests start timing out. 14:02:10 the gateway returns 502s. The first failure is the reconciliation job using the database during traffic; limit its concurrency or move it to a replica, then confirm the connection count on your database dashboard.

About the Claude Fable 5 API

  • Mythos-class, for general use

    Anthropic released Claude Fable 5 on June 9, 2026, sharing weights with Claude Mythos 5 and adding cybersecurity and biology safeguards so it could be offered to all customers.

  • Fable 5.2 costs 20% less

    Anthropic released Claude Fable 5.2 on November 9, 2026 and now lists Fable 5 as legacy. Start new projects on Fable 5.2; retirement of Fable 5 is not before June 9, 2027.

  • Always thinks, 1M context

    Thinking is always on, with effort from low to max. The 1M-token context window is billed at standard prices, with up to 128K output tokens.

  • Claude Fable 5 API key and access

    You don’t need a separate Claude Fable 5 API key: one APIMart key works for every model. Check the Claude Fable 5 pricing table on this page, then call an OpenAI Chat Completions-compatible endpoint with the model ID claude-fable-5.

Claude Fable 5 official benchmark results

Selected results Anthropic published at launch.

  • SWE-bench Verified

    95.0%

    Real GitHub issues resolved end to end. Ahead of Claude Opus 4.8 (88.6%) and Gemini 3.1 Pro (80.6%).

  • SWE-bench Pro

    80.0%

    Harder software engineering tasks. Ahead of Claude Opus 4.8 (69.2%), GPT-5.5 (58.6%) and Gemini 3.1 Pro (54.2%).

  • Terminal-Bench 2.1

    84.3%

    Multi-step tasks in a terminal. Ahead of GPT-5.5 with Codex CLI (83.4%) and Gemini 3.1 Pro with Gemini CLI (70.7%).

  • OSWorld-Verified

    85.0%

    Completing tasks by operating a computer. Ahead of Claude Opus 4.8 (83.4%), GPT-5.5 (78.7%) and Gemini 3.1 Pro (76.2%).

  • FrontierCode (Diamond)

    29.3%

    A demanding frontier coding evaluation. More than double Claude Opus 4.8 (13.4%) and far ahead of GPT-5.5 (5.7%).

  • GDPval-AA

    1,932 Elo

    Knowledge work across occupations, rated in Elo. Ahead of Claude Opus 4.8 (1,890), GPT-5.5 (1,769) and Gemini 3.1 Pro (1,314).

How to call the Claude Fable 5 API

To call Claude Fable 5, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-fable-5",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Claude Fable 5 access details

Model IDclaude-fable-5
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Claude Fable 5 API request parameters

Claude Fable 5 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use claude-fable-5 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Claude Fable 5 API pricing

The Claude Fable 5 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input80Credits~$876Credits~$7.672Credits~$7.2100Credits~$1020%
Cached input8Credits~$0.87.6Credits~$0.767.2Credits~$0.7210Credits~$120%
Output400Credits~$40380Credits~$38360Credits~$36500Credits~$5020%

Prices are for reference only. View full pricing

Why call Claude Fable 5 API through APIMart

  • 20% below official pricing

    Claude Fable 5 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Anthropic's official prices, and cached input costs just $0.8 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Claude Fable 5, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Claude Fable 5 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Anthropic model should you choose?

Base prices per 1M tokens (USD). Your Claude Fable 5 API key works for every model in the table; just change the model parameter.

Differences between Anthropic models
ComparisonClaude Fable 5 CurrentClaude Sonnet 4.5Claude Haiku 4.5Claude Opus 4.5Claude Opus 4.6Claude Sonnet 4.6Claude Opus 4.7Claude Opus 4.8Claude Sonnet 5Claude Opus 5Claude Haiku 5.5Claude Sonnet 5.5Claude Opus 5.5Claude Fable 5.1Claude Fable 5.2
Best forLong-running agents, Software engineering, Knowledge work and scienceCoding and agents, Computer use, 200K contextSmall model, Sub-agents and bulk tasks, 200K contextCoding and agents, Adjustable effort, 200K contextCoding and code review, Knowledge work, 1M contextCoding, Computer use, 1M contextHard coding tasks, High-resolution images, Long agentic runsLarge code migrations, Legal and knowledge work, Computer useCoding, Research agents, Computer useCoding, Agents, Knowledge workClassification & routing, Data extraction, Sub-agent tasksEveryday coding, Agentic tasks, Data analysisAgentic coding, Large-scale refactoring, Knowledge workCode review, Long-running coding, Documents and spreadsheetsHard coding problems, Scientific research, Financial modeling
Max input1,000,000 tokens200,000 tokens200,000 tokens200,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens
Max output128,000 tokens64,000 tokens64,000 tokens64,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens
Knowledge cutoffJanuary 2026January 2025February 2025May 2025May 2025August 2025January 2026January 2026January 2026May 2026June 2026June 2026June 2026June 2026June 2026
Input price$8$2.4$0.8$4$4$2.4$4$4$1.6$4$0.08$1.6$3.2$8$6.4
Output price$40$12$4$20$20$12$20$20$8$20$0.4$8$16$40$32

Claude Fable 5 FAQ

Should I use Claude Fable 5 or Claude Fable 5.2?

Start new projects on Claude Fable 5.2. Anthropic released it on November 9, 2026 at official input and output prices 20% lower than Fable 5. In between, Claude Fable 5.1 (September 1, 2026) kept Fable 5’s input and output prices, cut cache reads by 75% and scored higher, for example 55.8% vs. 42.0% on Terminal-Bench 4.0. Workloads already tuned and validated on Fable 5 can stay on it. On APIMart all three share one endpoint and API key, so you only change the model parameter.

How are Claude Fable 5 and Claude Mythos 5 related?

They share the same weights. According to Anthropic’s launch post, Fable 5 is the generally available version with added safeguards: requests its classifiers flag as cybersecurity, biology, chemistry or distillation attempts are handed to Claude Opus 4.8, and the scores Anthropic published for Fable 5 include that fallback. APIMart offers Claude Fable 5.

Can I turn off thinking on Claude Fable 5?

No. According to Anthropic’s docs, Claude Fable 5 always thinks; in Anthropic’s official API a request that tries to disable thinking returns an error. Control how much it thinks with the effort level, which ranges from low to max. For faster, cheaper replies, use Claude Sonnet 5.5 or Claude Haiku 5.5.

Does input over 200K tokens cost more?

No. According to Anthropic’s pricing docs, Claude Fable 5 includes its full 1M-token context window at standard prices, with no long-context surcharge. The pricing table on this page applies to the whole window.

Is Claude Fable 5 being retired?

Not yet. Anthropic lists claude-fable-5 as an active legacy model, with retirement not sooner than June 9, 2027. Legacy means it no longer receives updates and may be deprecated later; this page will show a notice and a replacement link if that happens.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Claude Fable 5 in the text category to start exploring.

Which model ID does the Claude Fable 5 API use?

Set model to claude-fable-5. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Claude Fable 5?

On APIMart, Claude Fable 5 accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Claude Fable 5 can output up to 128,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Claude Fable 5 API cost?

The Claude Fable 5 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $8 per million input tokens and $40 per million output tokens. Diamond: $7.2 per million input tokens and $36 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.