In short.
Refusals and fallback is Anthropic’s integration guide for developers building Claude applications, but fallback can still end in a refusal and incur charges for multiple attempts. It explains why a declined request can return HTTP 200, how to retry through three different approaches, and how to identify the serving model and account for each attempt. Server-side fallback is documented as beta on the Claude API and Anthropic-managed Google Cloud offering. The page supplies implementation examples, but establishes no measured success rate, latency or output-quality results.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete supplied documentation page at [https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback.md], including its availability tables, examples, beta requirements, billing notices and exceptions. Linked pages, SDK releases, model listings, commercial terms and credit-redemption specifications are excluded. No requests, code examples, billing outcomes, streaming behavior or model responses were executed or independently verified.
The overview
Identity
Refusals and fallback is an Anthropic documentation page about handling Claude safety-classifier declines and retrying requests on another Claude model. Its original source address is [https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback.md]. It is a technical guide, with HTTP, CLI and SDK examples, rather than a standalone application or installable package.
Assessment
The guide is useful because it connects response handling with consequences that application code can easily miss: refusals are successful HTTP responses, some refusals are billable, and switching models affects conversation history and request compatibility. Its examples show how to distinguish a fallback attempt from a response actually served without refusal.
Fallback may recover legitimate requests caught by a classifier, but the page does not establish how often that happens. A fallback may also be less capable, unavailable or refuse the request itself. Application-specific reliability and answer quality remain unassessed.
Users
The intended readers are developers building Claude chat applications, agents, background workers and other API integrations. It is especially relevant to teams responsible for response handling, monitoring, model choice and token spending.
Beginners need familiarity with JSON requests, API authentication and conversation messages to apply the examples. Experienced developers get details about streaming events, tool-use boundaries, per-attempt usage and model-specific parameter compatibility. This is not a guide to changing refusal behavior in the consumer chat interface.
Capabilities
The page documents stop_reason: "refusal" and the accompanying stop_details fields. Its categories include cyber, bio, frontier_llm, reasoning_extraction and general_harms. Category and explanation can both be null; explanation text is explicitly unstable and should not be parsed as a machine-readable contract.
It covers automatic server-side routing, SDK retry middleware, custom retries, fast-mode adjustments and batch resubmission. It also explains fallback boundary blocks, serving-model identification and usage.iterations. These are documented integration capabilities; their behavior was not tested.
Using it
Requirements
Implementation requires access to the requested and fallback models, appropriate platform credentials, and compatible request parameters. SDK middleware requires an SDK exposing the documented beta helpers; minimum SDK versions are not supplied.
Server-side fallback is documented only for the Claude API and Claude Models on Google Cloud, Anthropic managed. It requires a supported beta header and is unavailable for Message Batches. Claude Haiku 5.5 has no server-side fallback or fallback credit, so its retries require middleware or custom logic and incur the fallback cache-writing cost.
Mechanism
A classifier refusal returns HTTP 200 with stop_reason: "refusal". Server-side fallback can use Anthropic’s category-dependent default routing or an ordered list of up to three distinct, permitted models. Only classifier refusals trigger this routing; primary-model rate limits, overloads and server errors are returned directly.
The response identifies the serving model, marks handoffs with fallback content blocks and records attempts in usage.iterations. A fallback_message entry establishes that a fallback ran, but the final stop reason must also be checked because that model may have refused.
Server-side sticky routing can send later conversation turns directly to the fallback model for approximately one hour. It is organization-scoped and best-effort. SDK middleware instead provides shared BetaFallbackState for keeping a conversation on the model that accepted it.
Setup
For the documented server-side default, set fallbacks to "default" and send anthropic-beta: server-side-fallback-2026-07-01. The HTTP examples also send anthropic-version: 2026-10-21. The older server-side-fallback-2026-06-01 header accepts explicit model lists only; other fallback-header dates are documented as producing a 400 error.
For middleware, configure the SDK’s refusal-fallback helper with a model list and share one fallback-state object across each conversation. Configure either middleware or server-side fallback on a request, never both. Explicit server-side targets must appear in the requested model’s allowed_fallback_models list and meet the documented compatibility rules.
Example
One documented request uses claude-fable-5 with max_tokens set to 1024 and names claude-opus-4-8 as its fallback. The illustrative response reports claude-opus-4-8 as the serving model, includes a fallback boundary triggered by a cyber-category refusal, and ends with stop_reason: "end_turn".
The corresponding usage.iterations contains the declined primary attempt and a fallback_message attempt. This shows why checking the requested model or HTTP status alone is insufficient. The response is an example supplied by the documentation, not an observed execution.
Assessment & evidence
Limitations
Default routing has no recommended fallback for some categories. In particular, reasoning_extraction requires a prompt change rather than the recommended routing path. An explicit chain also stops if a fallback model is rate limited or overloaded; later entries are not attempted. Recommended-model hints do not guarantee availability.
Raw mid-stream refusals are documented as incomplete output to discard. Successful server-side streaming fallback has separate behavior: it preserves streamed content and continues using earlier text as context. Non-streaming fallback omits the declined model’s partial output. A streaming refusal while a tool-use block remains open does not automatically retry.
Conversation history needs block-specific handling around fallback boundaries, and thinking blocks have model-dependent compatibility. The page also states that no field reports the speed of a fallback taking over later in a stream. These details limit assumptions that one continuous response came from one model with unchanged settings.
Implementation tradeoffs
The engineering tradeoff is convenience against control. Default routing avoids maintaining a target list, while explicit targets let an application constrain which models may serve requests. Middleware extends automatic retry handling across platforms but requires correct conversation-state management.
Fallback can also alter request behavior: unsupported thinking, effort, task-budget or speed values may revert to model defaults under the documented July beta header. Applications depending on a particular capability should evaluate the complete fallback path. The page provides no evidence that different models deliver equivalent results.
Alternatives
The page’s three implementation choices are server-side fallback for supported platforms, SDK middleware for automatic client retries, and manual retry logic for raw HTTP or custom behavior. Manual retries offer direct control but add responsibility for credits, request compatibility and conversation continuity.
For reasoning_extraction refusals, the guide offers a different remedy: request a short explanation or use adaptive thinking with summarized display. Related middleware and fallback-credit pages are linked, but their contents and third-party alternatives are not assessed here.
Evidence
The documentation snapshot was captured at 2026-11-25T10:18:23.493Z. Its source revision is sha256:665681b30f0427af13259c228142900707c251ad7493db9ab28facbd90157fd4.
The page provides vendor descriptions, request samples and illustrative responses. It supplies no measured refusal frequency, fallback success rate, latency comparison or answer-quality benchmark. Nothing was executed, and runtime behavior remains unverified.
Access & freshness
Costs
Before any output, refusals categorized as bio, frontier_llm or reasoning_extraction are billed at the model’s normal rates. Other categories, including null, are documented as unbilled before output. Every request still counts against rate limits. Mid-stream refusals bill input tokens and output already produced, including output subsequently discarded.
A fallback request can add its own charges to a billable declined attempt. Fallback credit compensates for prompt-cache misses; it does not make the retry entirely free. Server-side fallback and middleware apply eligible credits automatically, while manual retries require credit handling. Haiku 5.5 refusals and batch refusals carry no fallback credit.
Per-attempt billing is represented in usage.iterations; top-level usage describes only the returned attempt. Fast-mode attempts can use fast-mode rates. Exact token prices, typical total spend and credit-redemption details are not established by this page alone.
Rights
The page supplies no explicit redistribution licence for its documentation or example code. Permission to redistribute those materials is therefore unknown from this evidence.
It states that requests helping develop competing AI models can trigger the frontier_llm category under Anthropic’s commercial terms and links to [https://www.anthropic.com/legal/commercial-terms]. Those terms are outside the supplied page, so their full scope and application are not assessed.
Freshness
The snapshot describes server-side fallback as beta and distinguishes the June and July 2026 beta contracts. Its billing explanation references false-positive measurements as of September 2026 and explicitly says billed categories may change.
Default routing recommendations can also change and are not published as a per-model routing map. The capture timestamp establishes the age of this evidence, not continuing availability or compatibility. A separate publication date and minimum supported SDK releases are unknown.
Actions
Before adopting the examples, confirm platform support, model access, permitted targets and SDK compatibility. Choose one fallback mechanism, set retry budgets and check every request path, including workers and model calls made inside tools; fallback configuration does not automatically propagate to those calls.
Handle null refusal fields, preserve or remove conversation blocks according to the documented boundary rules, and account for fast-mode parameters. For manual retries, the guide says to remove speed to request standard speed; middleware entries use null.
Monitor refusals separately from HTTP errors, record fallback-served responses and use per-attempt usage for cost estimates. Exercise streaming, tool-use and exhausted-chain cases in the application before relying on them. These are recommended next steps, not completed checks.
