> ## Documentation Index
> Fetch the complete documentation index at: https://docs.floprouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fallbacks

> What the router does when a miner fails, and when it stops trying.

## Before any output

If an attempt fails before the miner produces any text, the router tries the next miner in the order: auto order, or your `order` list. It stops after a fixed number of attempts and then answers `503 all_attempts_failed`, with every attempt listed in `flop.attempts` of the session record.

Failures that move on to the next miner include a miner that does not acknowledge the channel, an endpoint that stops answering, and a channel open that the chain rejects.

## After output

Once a miner has sent text, the router does not move to another miner. You never get two answers, or two charges, for one request. If the miner goes silent after that point, the router closes the channel on chain (see [settlement](https://docs.floprouter.com/settlement.md)) and the request ends with an error.

## Model fallbacks Not live yet

Name more models to try when the first has no miner that can serve it:

```json theme={null}
{
  "model": "qwen/qwen3-8b",
  "models": ["qwen/qwen2.5-0.5b-instruct"],
  "messages": [{"role": "user", "content": "Hello"}]
}
```

The router tries `model`, then each entry of `models` in order, when a model has no serving miner (404, 502, 503) or the request is too large for it. It never moves to another model after output. The response `model` names the model used. `route: "fallback"` is accepted.

## Turning fallbacks off

```json theme={null}
"provider": {"only": ["5HKiGN..."], "allow_fallbacks": false}
```

With `only`, no other miner is tried. With `order` and `allow_fallbacks: false`, the listed miners are tried in order and no others.

## Payer fallback

In grant mode a request can be served through miners with a live signed offer. When none is ready, or the grant cannot pay, the request fails. To run it in balance mode instead:

```json theme={null}
"flop": {"fallback_payer": "credit"}
```

It is off by default, so your wallet stays the payer unless you ask for the fallback. See [payer modes](https://docs.floprouter.com/payer-modes.md).

## Retrying on your side

The router already retries across miners. Retry a request yourself after `503` or `429`, waiting for the `Retry-After` header. Do not retry a slow request: a normal reply takes 15 to 50 s, and a second request opens a second channel. The full list is on the [errors](https://docs.floprouter.com/errors.md) page.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.