Fallback Chain Model
Fallback Chain Model gives an Agent an ordered list of provider and model targets. The agent calls the first target, and when that call fails for a transient reason it retries the same request on the next target in the list. Put your preferred model first and a backup provider second, and a single provider outage no longer stops the agent. You find it on the node picker’s AI shelf.
The node has a single output handle, Model. Connect it to the Agent’s Model handle. An agent reads one model node, so this node and the other model providers are alternatives rather than a stack.
Credentials
Section titled “Credentials”Each target row can name its own API key secret: a secret holding the key for that row’s provider. A row takes a secret, never a saved connection; name a connection on the Agent’s own credential field instead. Set a secret per target when the chain crosses providers, so the backup provider does not depend on a workspace or server key being present. A row without one uses the workspace key for its provider (see AI models), with the server’s key as the final fallback.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Targets (targets) | list (required) | — | The ordered list of provider+model targets the agent tries; the first is used and the rest are fallbacks. |
Provider (targets[].provider) | string (required) | — | |
Model (targets[].model) | string (required) | — | |
API key (targets[].apiKey) | string (optional) | — | |
Base URL (targets[].baseUri) | string (optional) | — | |
Temperature (targets[].temperature) | number (optional) | — | |
Max tokens (targets[].maxTokens) | integer (optional) | — |
Each target row also carries optional temperature and maxTokens overrides that apply only to that target; leave them empty to keep the provider defaults.
When the agent fails over
Section titled “When the agent fails over”The agent moves to the next target when a call fails with:
- a rate limit (429),
- a provider overload (503),
- a server error (5xx),
- an out-of-credit or otherwise unavailable provider account.
A request the provider rejects as too large, or any other error, stops the run instead of failing over: the next model would fail the same way. When a provider account is out of credit, remaining targets billed to that same credential are skipped rather than tried one by one. When every target fails, the run fails and the error reports how many failovers were attempted.
Output
Section titled “Output”The node emits no output of its own and never runs as a step in the flow. It hands the agent the whole ordered chain. The agent reads it when a run starts, calls the first target, and walks the rest of the list only when a call fails.
Example
Section titled “Example”Keep an agent answering through a provider outage (the “Smoke / Model routing — fallback chain” flow template shows the same wiring with two OpenAI models):
- Add a Fallback Chain Model node.
- First target:
provider=anthropic,model=claude-sonnet-4-6. - Second target:
provider=openai,model=gpt-4o-mini, with an API key secret for your OpenAI key. - Connect the node’s Model handle to the Agent’s Model handle.
Requests run on the Anthropic model; when it is rate-limited or down, the same request is retried on the OpenAI model.
Limitations
Section titled “Limitations”- A failover restarts the whole model call from scratch, so a partially streamed answer from the failed target is discarded.
- Rows missing a provider or model are dropped from the chain. A chain with one usable row behaves like Static Model, and a chain with none leaves the agent on its own provider and model.
- The order is fixed. To pick a target by request instead of by failure, use a router; a Rule Model Router rule can carry its own fallback list, so you do not have to choose between routing and failover.
Related
Section titled “Related”- Agent, the node this one attaches to.
- Static Model pins a single model with no failover.
- Rule Model Router, Cost Model Router, and Llm Model Router choose per request.
- How to route between models is the task guide.