Skip to main content
Fallback Policies automatically retry your requests with different models if one fails, ensuring your application stays reliable even when individual providers have issues.
Fallback routing: a request tries the primary model, and on failure automatically falls through to the next model in the chain until one succeeds and returns the response.

If a model fails, the request automatically tries the next one in the chain until one succeeds.

Set up fallback policies in the Requesty Console. Prefer zero setup? Try a managed policy maintained by Requesty.

How It Works

1

Request sent to primary model

Your request goes to the primary model first.
2

Automatic failover on failure

If it fails (timeout, rate limit, error, etc.), the router immediately tries the next model in the chain.
3

Transparent response

Your application receives the successful response without knowing about the failures.

Benefits

Higher Success Rates

No more failed requests due to provider issues.

Zero Downtime

Automatic failover without code changes.

Cost Optimization

Start with cheaper models, fall back to premium ones only when needed.

No Stalled Workflows

Your users never see “model unavailable” errors.

Creating a Fallback Policy

1

Create the Policy

Go to Routing Policies, click Create Policy, and select the Fallback strategy card. Name your policy and reference it as policy/your-policy-name in your requests.Policy editor with strategy cards and Live Performance panel
2

Configure Your Fallback Chain

Add models from the catalog below the form. Filter by provider, region, or data policy, and drag models to reorder your chain. For example:The router will try each model in order, retrying the configured number of times before moving to the next.
3

Use the Policy in Your Code

Change your model parameter to reference your policy:
To find your policy reference, go to Routing Policies, click the copy button next to your policy name, and paste it directly into your model parameter.

Use Cases

Start with cheaper models, only use expensive ones if needed:
Distribute across providers for maximum uptime:
Try regional endpoints before falling back to global:

How Retries Work

Each model in the chain can have 0 to 10 retries. The router uses:
Make sure all models in your fallback chain support your request parameters (context length, streaming, tool calling, etc.). If a model cannot handle the request, the policy will skip to the next model.

Key Selection (BYOK)

For each model, you can choose which API key to use:

Monitoring and Debugging

Every policy page includes a Live Performance panel showing real traffic across the models in the policy. Switch between Latency, Success, and Speed over the last 24 hours or 7 days to see which models are handling your requests and how they perform. For deeper analysis:
1

Open Analytics

Go to Analytics.
2

Filter by policy

Filter by your policy name to see which models succeeded, failed, and how often fallback occurred.

FAQ

The request returns an error with details about the last model attempted. You will see all the failures in your request logs.
Yes. A fallback policy can reference another policy as one of its fallback options. For example, your second priority could be policy/multi-provider-backup instead of a single model.
No. You only pay for successful requests that return tokens. Failed attempts do not incur costs.
Click the edit icon next to your policy in the Routing Policies page. Changes take effect immediately, no code deployment needed.
Last modified on July 24, 2026