ospalabs
Guide · Fallbacks

LLM model fallback for budgets: degrade instead of going down

Updated October 2026

Most "model fallback" setups switch providers when one returns an error or times out. That's about uptime. A budget fallback is about money: as spend gets close to the ceiling, expensive requests move to a cheaper model so the app keeps answering instead of hitting the limit early.

Fuse calls this soft landing. It's decided in the same step as the ceiling check, so it can't race with other requests.

  1. 01

    Pick a fallback per model

    In the project's Protection settings, choose a cheaper model from the same provider for each model you use, for example a mini model for a large one.

  2. 02

    Choose when it starts

    Set the percent of the ceiling at which fallback begins. Below it, every request uses the model it asked for.

  3. 03

    Know when it happened

    Downgraded responses carry x-fuse-model with the model that answered and x-fuse-downgraded-from with the one you asked for. The request log and usage panel count every switch.

    app.ts
    const { data, response } = await client.chat.completions
      .create({ model: "gpt-4.1", messages })
      .withResponse();
    
    if (response.headers.get("x-fuse-downgraded-from")) {
      // answered by a cheaper model near the ceiling
    }
  4. 04

    Still handle the hard stop

    If even the cheaper model would cross the ceiling, the request is refused with 402 fuse_blown as usual. Keep that path in your code.

Questions

Does Fuse fail over to another provider when one is down?
No. Fallback in Fuse is for budgets and stays within the same provider. Use your SDK's retry logic or a gateway for provider failover.
Will users notice the cheaper model?
Possibly, for hard tasks. Use it for features where a slightly weaker answer beats no answer, and leave it off where quality matters more than uptime.