- Want to call a specific model through a unified API without setting up a router
- Are prototyping or benchmarking before committing to a router configuration
Direct model call
Specify a model directly by itsprovider/model identifier:
Fallbacks
Add fallback models viaextra_body.models. If the primary model fails, the router automatically tries the next model in the list:
metadata.attempts array of the response.
Auto model selection
Setmodel to auto and provide sorting criteria via extra_body.sort to let the router pick the best model automatically:
price, latency, throughput, intelligence, math, coding.
You can combine multiple criteria — models are ranked by the first criterion, with subsequent criteria used as tiebreakers:
Filtering models
Useextra_body.models to restrict the candidate pool, or extra_body.ignore to exclude specific models or entire providers: