Creating a Routing Rule
- Click New Rule.
- Enter a Route Name — this should match the route path in your requests (e.g.
/v1/chat/completions). - Add one or more providers/models to the chain. The first entry is the primary; any subsequent entries are fallbacks.
- Configure retry settings if desired.
- Set rate limits or budget caps for this specific route.
- Click Save.
Provider Chain
The provider chain is an ordered list. If the first provider fails (5xx error, timeout, or rate limit), the gateway automatically tries the next entry in the chain. Example chain:openai→gpt-4o(primary)anthropic→claude-opus-4-5(fallback)groq→llama-3.3-70b-versatile(last resort)
Retry Configuration
You can configure automatic retries for transient failures (e.g. 429 Too Many Requests or 503 Service Unavailable):- Max Retries — Maximum number of retry attempts
- Retry on Status Codes — Which HTTP error codes should trigger a retry