AnyInt Docs
Guides

Model Fallbacks

Fallbacks are how you keep an application usable when one model, route, or provider path is unavailable.

Fallbacks are how you keep an application usable when one model, route, or provider path is unavailable.

Good fallback patterns

  • primary model plus one lower-cost alternative
  • primary premium model plus one stable baseline
  • one route family per workload, with a documented escape hatch

What to avoid

  • silent fallback that changes output quality without observability
  • fallback chains that cross incompatible request shapes
  • using fallback as a substitute for real entitlement checks

A practical fallback policy

  1. choose one primary model per workload
  2. pick one fallback in the same compatibility family
  3. log every fallback event
  4. expose degraded behavior clearly in internal dashboards

When not to fallback

Do not fallback silently when:

  • the user paid for a specific service tier
  • the request contains provider-specific guides that another route cannot honor
  • billing or compliance boundaries would change

On this page