Refusals and Fallback of Anthropic Models Anthropic documented that its Claude Fable 5.2, Fable 5.1, Fable 5, Opus 5.5, Opus 5, Sonnet 5.5 and Haiku 5.5 models ship with safety classifiers that can decline a request, returning a normal HTTP 200 response with stop_reason "refusal" and a stop_details.category naming the policy area rather than an error. Developers can set fallbacks to "default" in a beta on the Claude API and on Claude Models on Google Cloud (Anthropic managed), which retries a declined request on the fallback model Anthropic recommends for that refusal category, though Claude Haiku 5.5 has no server-side fallback and requires client-side fallback via SDK middleware or a manual retry. The guidance matters to builders because refusals arrive as successful responses, so declined requests must be detected and routed explicitly to another model to keep applications answering. Messages https://platform.claude.com/docs/en/intro Building with Claude Refusals and fallback How Claude Fable models, Claude Opus models, Claude Sonnet 5.5, and Claude Haiku 5.5 return classifier refusals and how to retry refused requests on a fallback model. Claude Fable 5.2, 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. When that happens, you receive a normal response, not an error, with stop reason: "refusal" . Its stop details.category names the policy area see What a refusal looks like refusal-response . You can usually still get an answer by sending the same request to another Claude model. This page shows you how to recognize a refusal and how to set up that retry. Read this page when you build on any of these models and want declined requests to fall through to another model automatically. It also applies when you have seen "refusal" in a response and want to know what to do next. Related pages: - Stop reasons and fallback https://platform.claude.com/docs/en/build-with-claude/handling-stop-reasons : the full list of stop reason values - Fallback credit https://platform.claude.com/docs/en/build-with-claude/fallback-credit : how to avoid paying the prompt-cache cost twice when you build the retry yourself - SDK middleware https://platform.claude.com/docs/en/cli-sdks-libraries/middleware : the SDK helper that wraps all of this - Fallback and billing recipe https://platform.claude.com/cookbook/fable-5-fallback-billing-guide : a worked end-to-end example The simplest setup, in beta on the Claude API and on Claude Models on Google Cloud Anthropic managed https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/anthropic-managed : set fallbacks to "default" , and the API retries a declined request on the fallback model Anthropic recommends for its refusal category. For categories with no recommended fallback, the refusal stands. Claude Haiku 5.5 has no server-side fallback, so for it use client-side fallback with the SDK middleware client-side-fallback or write the retry yourself manual-retry . client = Anthropic response = client.beta.messages.create model="claude-fable-5", max tokens=1024, messages= {"role": "user", "content": "Hello, Claude"} , fallbacks="default", betas= "server-side-fallback-2026-07-01" , print response.model The following sections cover what a refusal response contains, when to use server-side or client-side fallback, and how each is billed. What a refusal looks like A refusal is a successful HTTP 200 response with stop reason: "refusal" : { "id": "msg 01XFUDYJgAACzvnptvVoYEL", "type": "message", "role": "assistant", "model": "claude-fable-5", "content": , "stop reason": "refusal", "stop details": { "type": "refusal", "category": "cyber", "explanation": "This request was declined because it could enable cyber harm." }, "usage": { "input tokens": 412, "output tokens": 0 } } The stop details object explains the decline: - category : names the policy area that triggered the classifier. - explanation : a human-readable description. The text is not stable, so display it rather than parse it. - recommended model : present only on requests that set fallbacks server-side fallback server-side-fallback , beta . It names a model to retry directly when the API skipped the fallback attempt for example, the fallback model was rate limited , and is null otherwise. It’s a hint, not a guarantee. - category and explanation are both null when the refusal does not map to a named category. That null is a normal, permanent value, not a placeholder. - stop details itself is null for every stop reason other than refusal . | category | What it means | Billed before any output | |---|---|---| | "cyber" | The request could enable cyber harm, such as malware or exploit development. Benign cybersecurity work can also trigger this category. | No | | "bio" | The request could enable biological harm, such as dangerous lab methods. Beneficial life sciences work can also trigger this category. | Yes | | "frontier llm" | The request could help with the development of competing AI models, which is restricted under Anthropic’s commercial terms https://www.anthropic.com/legal/commercial-terms . Benign machine learning work can also trigger this category. | Yes | | "reasoning extraction" | The request asks the model to reproduce its internal reasoning in the response text. To get reasoning in a structured form instead, use adaptive thinking https://platform.claude.com/docs/en/build-with-claude/thinking . See Keep reasoning in thinking blocks keep-reasoning-in-thinking-blocks . | Yes | | "general harms" | The request falls under a usage-policy area outside the four named categories. Benign work can also trigger this category. | No | A refusal can arrive before any output, or mid-stream after partial output. In either case, treat any partial output as incomplete and discard it. Keep reasoning in thinking blocks A reasoning extraction refusal usually comes from a prompt that asks the model to put its thinking or reasoning in the output, either verbatim or in a fixed format. Common examples: - A