In short.
Fallback credit is Anthropic's guide for developers building custom Claude retries after refusals, with strict request-matching rules and a five-minute credit deadline. The feature reprices eligible prompt-cache writes on a permitted fallback model as cache reads. The guide covers credit tokens, partial-response continuation, platform differences and rejected retries. It is useful when an application manages retries itself; server-side fallback and SDK middleware already apply the credit automatically. Numerical savings are unknown, and no examples or API behaviour were tested. Requests that have already executed server tools require particular care because restarting without credit can repeat both execution and charges.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is the complete documentation page at [https://platform.claude.com/docs/en/build-with-claude/fallback-credit.md], including metadata, all supplied language examples, reference notices and availability tables. Linked pages, SDK source and separate library files are excluded. Documented restrictions concerning repeated server-tool charges, header matching, token lifetime and platform rollout are included. Runtime behaviour, live availability, numerical savings and rights beyond statements on this page remain unverified.
The overview
identity
Fallback credit is an Anthropic documentation guide for a beta Claude API billing feature. The original selected address is [https://platform.claude.com/docs/en/build-with-claude/fallback-credit.md]. It teaches an integration pattern rather than providing a standalone application or installable library.
Its specific subject is carrying a cache-cost credit from a refused request to an eligible request on another model. The page is intended for raw HTTP integrations and custom retry logic.
assessment
The guide is useful when an application changes models after a refusal and would otherwise write the same conversation prefix into a second model's cache. It explains both the ordinary redemption path and exceptions involving request matching, partial output and completed server-tool calls.
Its value depends on eligible refusals occurring in the application and on how much cache writing can be repriced. The page provides no measured savings, retry success rates or latency results. Operational reliability and economic benefit remain untested.
users
The main audience is developers maintaining their own Claude request and retry handling. Applications with substantial cached conversation prefixes have a clear reason to examine the feature, although the page does not quantify a minimum useful prompt size.
Beginners need to understand that each model has its own prompt cache and that writing a cache costs more than reading it. Developers already using server-side fallback or the SDK fallback middleware generally do not need to implement this token exchange: the page says those approaches apply fallback credit automatically.
capabilities
An eligible refusal supplies an opaque fallback_credit_token. Passing it to a permitted fallback model allows eligible cache-write tokens to be billed as cache reads. The retry's usage exposes the resulting change in cache token accounting.
When fallback_has_prefill_claim is true, the fallback model can continue the refused model's partial response. The documented continuation path preserves completed server-tool work so those calls are not executed again.
The page identifies Claude Opus 4.8 and Claude Opus 5 as fallback targets for Fable 5.2, Fable 5.1, Fable 5 and Opus 5.5. Opus 5 can fall back to Opus 4.8, and Sonnet 5.5 can fall back to Sonnet 5.
Using it
requirements
The feature requires supported models and direct Messages API requests. The page lists beta availability on the Claude API, Claude Platform on AWS, Amazon Bedrock, Claude Models on Google Cloud managed by Google, and Microsoft Foundry. Model coverage varies: the detailed Bedrock row does not list Fable 5.2 or Mythos 5.2.
The client must expose the beta header, refusal stop_details and the top-level fallback_credit_token request parameter. The page does not specify minimum SDK or runtime versions.
Tokens are restricted to the organization and workspace that received the refusal, including on Microsoft Foundry. On Bedrock and Google-managed Claude, they are bound to the platform caller identity instead. Redemption must occur within five minutes of the refusal, using a permitted target model.
mechanism
Prompt caches belong to individual models. A retry on another model can therefore incur a fresh cache write for a prefix already cached elsewhere. Fallback credit changes the eligible retry's accounting rather than requiring the application to transfer cache contents.
The refusal's stop_details contains fallback_credit_token and fallback_has_prefill_claim; both are null when no credit is available. A true claim requires appending one assistant message containing the refused response's content. A false claim uses the original request body without that appended message, while changing the model and adding the token.
Prompt-shaping fields must match exactly: system, messages, tools, tool_choice, thinking, cache_control, output_config, mcp_servers, context_management and container where present. The appended assistant message is the documented exception. Model, max_tokens, stop_sequences, stream, metadata and service_tier may change.
Earlier thinking and redacted_thinking blocks must remain. For echoed response content, trim trailing whitespace from a final text block, omit unmatched client-side tool_use blocks and preserve any fallback block in its original position. These details affect whether the server accepts the continuation.
setup
Send anthropic-beta: fallback-credit-2026-07-01 on the initial request. If it returns a refusal with a token, retain the original body, select a permitted fallback model and add fallback_credit_token at the top level. Choose the retry body from fallback_has_prefill_claim and send the credit header again.
Keep other beta headers consistent between requests because header differences can produce the same mismatch error as body differences. A retry must remove any fallbacks parameter; the server-side-fallback header may also be removed without breaking the match. Keep the fallback-credit header for redemption.
The older fallback-credit-2026-06-01 header is also accepted. The server-side-fallback-2026-07-01 header exposes the fields on supported platforms, but the page says Bedrock and Google-managed Claude reject that header with a 400 error. During rollout on Bedrock, Google-managed Claude and Foundry, a token can arrive without the claim field; try continuation first and handle rejection rather than treating an absent claim as false.
example
The page provides Python, TypeScript, C#, Go, Java, PHP and Ruby examples. They request a response to Hello, Claude from claude-fable-5 with max_tokens set to 1024, then conditionally retry a credited refusal on claude-opus-4-8. They first attempt continuation when appropriate, then the unchanged body with the token, and finally a tokenless request.
The samples use a simple text request. Adapting their final tokenless step to requests that execute server tools requires the additional guard described elsewhere on the page. Their handlers broadly catch non-transient bad-request errors, while the prose specifically ties token removal to an error naming fallback_credit_token.
The examples print stop_reason and model rather than a usage-based billing comparison. They were not executed, so their runtime compatibility, error handling and financial effects are unverified.
Assessment & evidence
limitations
Message Batches refusals do not issue credit tokens, and a token supplied to a batch request is accepted but ignored. Managed Agents support is listed as unavailable. A Haiku 5.5 refusal carries no fallback credit.
Structured output through output_config.format or forced tool use prevents the appended-assistant continuation shape. If server tools have already run, the token requires continuation. Combining those conditions can leave neither credited retry shape usable.
The availability list includes Mythos 5.2 and Mythos 5.1, but the page's explicit fallback-target mappings do not name their targets. Programmatic allowed_fallback_models discovery is described only for the Claude API and Claude Platform on AWS, using the server-side-fallback beta header; it is not exposed on Bedrock, Google-managed Claude or Foundry.
Tokens expire after five minutes and have no inspection or revocation endpoint. The page does not establish fallback answer quality, refusal-resolution rates, latency or an application's production reliability.
reasoning
The practical benefit follows from the documented cache boundary: moving a conversation to another model creates additional cache-write exposure. Credit can reduce that component when a refusal provides an eligible token. Its usefulness therefore depends on the application's refusal frequency, cached-prefix size, permitted fallback models and applicable prices; the page does not quantify these factors.
The engineering burden comes from preserving prompt state while handling partial output and completed tool work. A simple text retry can follow the examples closely, whereas integrations using server tools, structured output or multiple beta features need the reference rules to avoid rejected requests and repeated charges.
alternatives
The page identifies server-side fallback and client-side SDK middleware as alternatives that apply fallback credit automatically [https://platform.claude.com/docs/en/build-with-claude/refusals-and-fallback]. They are relevant when an application does not need to manage the token exchange itself. Their detailed setup and behaviour are not established by this page.
A retry without the token is another documented path when credit cannot be redeemed, but it forfeits the credit and can repeat completed server-tool work. The page provides no comparison with other providers or third-party retry libraries.
evidence
The evidence is the complete Fallback credit documentation page at [https://platform.claude.com/docs/en/build-with-claude/fallback-credit.md], including feature metadata, examples, reference rules and availability tables. It supports claims about documented integration behaviour, rather than independently measured API performance or billing.
The captured source revision is sha256:db7144e44e83e8e4905f21974bb5329867d9de5b37e7ddee49f505995a3510e8. Linked documentation and SDK implementations are outside the supplied evidence. No API requests or sample programs were run.
Access & freshness
costs
The documented benefit is replacing eligible cache-write charges with cache-read charges on the fallback request. The page provides no token prices, separate feature fee or numerical savings example, so the total retry cost and expected savings are unknown.
Compared with an otherwise equivalent request without the token, successful repricing lowers cache_creation_input_tokens and raises cache_read_input_tokens by the same amount. A zero shift can still mean the token was honored, such as when the fallback model's cache was already warm.
A tokenless retry after completed server-tool calls can execute and bill those tools again. The page instructs integrations to surface the error or cost rather than silently accepting that consequence. Expired or forfeited credit also leaves the retry without the documented repricing benefit.
rights
The supplied page does not state a licence for its documentation or code examples, redistribution permission, or contractual terms for using the API feature. Those rights and terms are unknown from this evidence.
freshness
The page was captured on 2026-11-15 at 00:37:37.113 UTC. That snapshot labels fallback credit as beta and documents fallback-credit-2026-07-01 alongside the accepted fallback-credit-2026-06-01 header.
Header dates identify API beta variants; they do not establish the page's publication or last-update date. Those dates are not supplied. Live model eligibility, rollout progress and behaviour after the capture are unknown.
actions
First establish whether the application needs custom retry handling or can use an automatic fallback approach. For a manual integration, confirm the platform and permitted model pair, ensure the client exposes the required fields, and preserve the original prompt-shaping body and beta headers.
Implement separate handling for continuation rejection, token rejection and transient redemption failure. A redemption temporarily unavailable error calls for retrying the same shape with the same token within its five-minute lifetime. Drop a token only under the documented conditions, and surface the error when restarting would repeat completed server-tool work.
Inspect retry usage when assessing the financial effect, including cases where the token is honored with no accounting shift. Before relying on the feature, validate the application's actual combinations of tools, structured output, headers and platform support; the page's examples do not establish those combinations.
