# Model fallbacks (/docs/fleet/fallbacks)

> For AI agents, the [documentation index](https://bitrouter.ai/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

Spot already retries a failed request on another provider of the same model. It
never switches models. To fall back to a different model, such as your Claude model when Spot can't
answer, define a chain in the CLI on your machine.

## Define a chain \[#define-a-chain]

```yaml title="bitrouter.yaml"
models:
  coding:
    strategy: priority
    endpoints:
      - provider: <spare-provider>          # the provider id `spare models` shows for Spare
        service_id: deepseek-v4.1-flash
      - provider: anthropic                 # your key or subscription
        service_id: <your-claude-model>
```

Send `"model": "coding"` to the CLI, or start your agent with `spare claude --model coding`. Endpoints are
tried in order, and the next one is used only after a failure: a server error, a timeout, a rate limit or
an unavailable provider. A successful answer is never retried because of its quality.

The non-Spare endpoints use [your key](https://bitrouter.ai/docs/fleet/byok) or subscription. A
[local model](https://bitrouter.ai/docs/fleet/local) can sit in the same chain, first or last.

Fallbacks replace a request that failed. To choose a model for a request that would succeed, use the
[Cost routing](https://bitrouter.ai/docs/fleet/cost-routing).

## Billing \[#billing]

| Who answered                                               | Who bills it                                                                            |
| ---------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| A Spot model                                               | Spare, at the [price](https://bitrouter.ai/docs/pricing) of the provider that served it |
| Your Claude or OpenAI model, with your key or subscription | Your provider; Spare bills nothing for the request                                      |
| Your local model                                           | Free                                                                                    |