The gateway picks a target provider for each incoming request using routing rules. Each rule has match conditions, a target, an optional fallback, and a routing strategy that decides what “best” means when more than one provider could serve the request.Manage rules from Configuration → Routing. Rules are evaluated by priority; the first matching rule wins.
Open Configuration → Routing from the dashboard sidebar and click Create Routing Rule.
2
Name the rule and pick a strategy
Set a Rule Name and pick a Strategy. Set a Priority; lower numbers evaluate first.
Create Routing Rule
3
Add Match Conditions
Add one or more conditions. For example, Model contains flash to capture every Gemini Flash variant.
4
Set the Target
Pick a Provider, then either select a model from its enabled inventory or enter a model name. Optionally set a Fallback provider/model for when the primary fails.
5
Save and verify
Click Create Rule. The rule appears in the list. Send a request that matches the rule’s conditions and confirm the gateway routed it to the expected provider in Logs.