Routing policies
A customer routing policy picks the model when the customer’s request doesn’t pin one. PRIORITY is a ranked list that falls back to the next model on failure; INTELLIGENT lets Gateway choose per request from an allowed set, optimizing for COST, PERFORMANCE, or CAPABILITY.
Create a policy
POST /v1/customers/{customer_id}/routing-policies. The customer’s first policy becomes its default.
Naming a model the customer’s controls and key usage mode don’t allow returns 400, so check the customer’s allowed models first.
Change the default
Send is_default: true on create or PATCH, or call PUT /v1/customers/{customer_id}/default-routing-policy with {"routing_policy_id": "..."}. Deleting the default leaves the customer with none, so its requests fall back to your organization’s default policy.
GET, PATCH, and DELETE on /v1/customers/{customer_id}/routing-policies/{policy_id} manage a single policy.
Reference
Fields for the other strategy come back null; sending them, or duplicate models in a list, returns 422.