Prices and model details on this page may have changed. For current rates, see the OpenLux pricing page.

Home / Claude Fable 5

claude-fable-5 Refusals: Causes, Billing and Fallback Setup

If a claude-fable-5 call returns HTTP 200 with an empty content array and stop_reason set to "refusal", the problem is not your network or your API key: the model's safety classifier declined the request. According to Anthropic's documentation, sending the same request to another Claude model usually still gets an answer. Start by reading stop_details.category. If the category is reasoning_extraction, change the prompt; for other categories, retry on a different model. On the Claude API you can also let the server switch models for you with the fallbacks parameter. The sections below follow the official documentation point by point.

Why does a successful request come back with no content?

Anthropic's "Refusals and fallback" page states that Claude Fable 5.1, Claude Fable 5, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5 and Claude Haiku 5.5 include safety classifiers that can decline a request. A decline is returned as a normal response, not an error: HTTP 200, stop_reason "refusal", plus a stop_details object that explains the decline. When the refusal arrives before any output, content is an empty array and the token counts still appear in usage.

stop_details contains type (always refusal), category (the policy area that triggered the classifier) and explanation (a human-readable description). The documentation warns that the explanation text is not stable, so display it but do not parse it. category and explanation can both be null when the refusal does not map to a named category; that null is a normal, permanent value, not a placeholder.

A refusal can also arrive mid-stream, after some output has already been sent. In both cases the documentation says to treat any partial output as incomplete and discard it.

Switching to claude-fable-5-1 does not avoid this behavior: Claude Fable 5.1 is on the same list of models with classifiers. Note also that the official model page marks Claude Fable 5 as legacy (Claude Fable 5.1 is the current Fable model), with retirement not sooner than June 9, 2027.

Official sources: https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback and the model page https://platform.claude.com/docs/en/models/fable-5/overview

Read the category first: what the five refusal categories mean

cyber: the request could enable cyber harm, such as malware or exploit development; the documentation notes that benign cybersecurity work can also trigger it. A refusal before any output in this category is not billed.

bio: the request could enable biological harm, such as dangerous lab methods; beneficial life sciences work can also trigger it. A refusal before any output is billed.

frontier_llm: the request could help develop competing AI models, which is restricted under Anthropic's commercial terms; benign machine learning work can also trigger it. A refusal before any output is billed.

reasoning_extraction: the request asks the model to reproduce its internal reasoning in the response text. A refusal before any output is billed. The documentation says this category has no recommended fallback model, so you should change the prompt rather than retry. See the next section.

general_harms: a usage-policy area outside the four named categories; benign work can also trigger it. A refusal before any output is not billed.

To detect a refusal in code, the documentation recommends checking stop_reason == "refusal" (or stop_details.type) directly. Do not branch on whether content is empty or on the inner stop_details fields, because category can be null.

reasoning_extraction: change the prompt, do not retry

According to the documentation, this category usually comes from a prompt that asks the model to put its thinking in the output. Common patterns: a <thinking>, <reasoning> or scratchpad section the model fills in before answering; a reasoning, thinking or trace field in JSON output or in a tool input; asking for the model's private notes or a running log of its reasoning; asking for the reasoning verbatim or in full.

This wording can sit in a system prompt, a skill or a tool description, so check all of those, not just the user message.

The official alternative: you can still ask Claude to explain its answer, for example with a short explanation, the evidence behind a result, or a summary of the actions it took. To see how the model reasoned, set display: "summarized" in the thinking configuration and read the returned thinking blocks.

If a reworded request is still declined, the documentation says to contact Anthropic support and include the request ID.

Are refused requests billed?

The official billing rules apply on every platform. A refusal before any output is billed like a normal request, at the rates of the model that ran it, when its category is bio, frontier_llm or reasoning_extraction. A refusal before any output in any other category, or with a null category, is not billed. The documentation says these are the categories where Anthropic measured low volumes of false positives as of September 2026, and that the list may change; the "Billed before any output" column of the category table in the documentation is the reference.

A mid-stream refusal bills the input tokens and the output already streamed at normal rates.

When you use fallback, the refusal that triggered it is billed in addition to the fallback request if it arrived mid-stream or is in a billed category. Fallback credit compensates for the fallback request's prompt-cache miss so you do not pay to cache the conversation twice; server-side fallback and the SDK middleware handle this for you.

Every attempt that runs, including the one that declined, counts against its own model's rate limits. For unit prices, check the official pricing page.

Option 1: let the server switch models with fallbacks

Availability: the documentation states that server-side fallback is in beta and is offered only on the Claude API and on Claude Models on Google Cloud (Anthropic managed). The Message Batches API does not support it: a batch request that includes fallbacks produces a per-item errored result.

Setup: send the header anthropic-beta: server-side-fallback-2026-07-01 and add "fallbacks": "default" to the request body. In default mode the API picks the fallback model Anthropic recommends for the refusal category; if the category has no recommended model, the refusal is returned as usual. The beta header must be exactly 2026-07-01 (supports both the default and the list form) or 2026-06-01 (list form only); under any other server-side-fallback date the fallbacks parameter is rejected with a 400 error.

You can also name up to three fallback models yourself. The official example is "fallbacks": [{"model": "claude-opus-4-8"}]. Entries are tried in order; each must be distinct from the others and from the requested model, and must be one of the requested model's permitted targets (with the beta header set, the Models API lists them as allowed_fallback_models). The request must be valid as a direct request to every model named, otherwise it is rejected up front.

Only a safety classifier decline triggers fallback. A rate limit, overload or server error on the requested model is returned to you as-is. If the fallback model is rate limited or overloaded, the fallback attempt is skipped and the original refusal is returned; stop_details.recommended_model then names a model to retry directly, which the documentation describes as a hint, not a guarantee.

Sticky routing: after a conversation falls back, later requests for that conversation that include fallbacks go straight to the fallback model for approximately 1 hour. It is scoped to your organization and best-effort, so your code must still handle the requested model being tried again.

Option 2: SDK middleware or your own retry

If you are not on those platforms, or want more control, the documentation offers two other routes. The first is the refusal-fallback middleware in the Anthropic SDK (BetaRefusalFallbackMiddleware in Python; betaRefusalFallbackMiddleware() in TypeScript; names differ slightly by language). You configure the fallback list once on the client, and requests made through the beta messages interface are retried automatically when refused; the middleware also sends the fallback-credit-2026-07-01 header. Share one BetaFallbackState across a conversation so follow-up turns stay pinned to the model that accepted. When every model declines, the middleware returns the last refusal instead of raising an error. Do not combine the middleware and the server-side fallbacks parameter on the same request.

The second is writing the retry yourself, in three official steps: check whether stop_reason is "refusal"; send the same request with model set to a fallback model (the documentation uses Claude Opus 4.8 as the example); and in multi-turn conversations keep using the fallback model for later turns instead of switching back.

Common pitfalls listed by Anthropic: do not resend to the same model, which usually earns another refusal; budget retries per request, not per turn or session, because one agent turn plus its subagents can produce several refusals; configure fallback on every request path, including retry handlers, error-recovery branches and background workers; and give subagent calls their own fallback, because fallbacks does not carry over to model calls made from inside tool execution.

A manual retry writes the fallback model's prompt cache in full, which costs more than reading an existing cache. The documentation recommends redeeming a fallback credit on every retry you build yourself: https://platform.claude.com/docs/en/build-with-claude/fallback-credit

How to confirm the fallback worked

Check the top-level model field of the response: it reports the model that actually produced the message, so after a successful fallback it shows the fallback model.

Look for a fallback content block, shaped like {"type": "fallback", "from": {"model": ...}, "to": {"model": ...}}, which marks the handoff. On a refusal before any output it is the first content block.

Check usage.iterations: each attempt has one entry; a model that declined appears as a message entry and the model that served the turn appears as a fallback_message entry. The official samples treat a response as served by the fallback model when a fallback_message entry exists and stop_reason is not refusal. If every model in the chain declines, you get the last model's refusal.

On the next turn, send the assistant content back as you received it and keep the fallback block exactly where it appeared. Per the official table, drop thinking, redacted_thinking and connector_text blocks and client-side tool_use blocks that come before the final fallback block; keep server_tool_use blocks before it only when they are paired with their result.

For monitoring, track refusals separately: a refusal is an HTTP 200, so dashboards built on error rates or 5xx responses never see it. The documentation suggests emitting one event per refusal and one per fallback-served response, then alerting on the gap between the two counts.

What to check when calling through the OpenLux relay

The OpenLux pricing API lists claude-fable-5 as available, along with claude-opus-4-8 (the fallback model used in the official examples) and claude-fable-5-1 (the current Fable model).

To see Anthropic-native fields such as stop_reason and stop_details, call the Anthropic Messages format: set the Base URL to https://api.openlux.ai without /v1, and let the client build /v1/messages. This page has not verified how a refusal is represented in the OpenAI-compatible format, so it does not describe it.

Server-side fallback depends on the anthropic-beta header and the fallbacks parameter, which Anthropic offers only on the Claude API and Google Cloud (Anthropic managed). This page has not verified whether these are passed through a relay to an upstream that supports them. The safer approach is to check stop_reason in your own code and resend with model changed to another available model, which only uses ordinary requests.

Before changing your code, call /v1/models to confirm that every model you plan to use is in the list. For prices, check the official pricing page.

Still stuck? Full documentation and support are at OpenLux Claude Fable 5 API relay.

More on this site

Get started

Query the pricing API and confirm the account group first, then verify the Claude Fable 5 request path

Get a free API key

Official site: https://api.openlux.ai

Last updated 2026-10-31 | Written and maintained by OpenLux.
Latency and pricing figures come from our own measurements. Where they differ from the vendor's site, the vendor's live page wins.