What Nito Does
- Failover within a model. A logical model can have several physical backends. Nito filters by your requirements and routes around a backend in trouble.
- A circuit breaker. A provider that keeps failing is held out and probed again after a cooldown.
:confidential request that cannot be served as asked fails. Your fallback logic must never retry at a weaker level.
App-Level Fallback
Only your app knows which alternate model is acceptable. On502 (provider_error) or 503 (unavailable), fall back to an alternate you selected from GET /v1/models at startup, at the same privacy level.
Retry With Backoff
- Retry
502and503. - On
429, honorRetry-Afteras a floor.429also coversinsufficient_quota, which retrying will not fix; check thecodefirst. - Never retry
400,401, or403; they fail identically.
Together
- Nito routes within the model and trips its breaker. Nothing to do.
- Transient
502/503: retry with backoff, honoringRetry-After. - Retries exhausted: fall back to an alternate model at the same privacy level.
- Still failing: surface a clean error keyed by the request ID.
Related
How the API Works
The request lifecycle.
Error Format
The error envelope.
Retry Behavior
Safe to retry, or not.
Rate Limits
The limit headers.

