Smart Routers
Create a Smart Router
Creates a Smart Router in the current workspace from 2 to 50 distinct eligible models. The key must be unique in the workspace and becomes part of the model reference used in AI Gateway requests.
POST
Core - Create a Smart Router
Related guide: Routing rules guide. See the Routing rules guide for a walkthrough with examples.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Unique key for the Smart Router within the workspace. Use lowercase letters, numbers, and hyphens.
Pool of 2 to 50 distinct eligible models. Each value uses provider/model format.
Routing preference: quality favors more capable models, cost favors less expensive models, and balanced trades off both.
Available options:
SMART_ROUTER_PROFILE_UNSPECIFIED, SMART_ROUTER_PROFILE_QUALITY, SMART_ROUTER_PROFILE_BALANCED, SMART_ROUTER_PROFILE_COST Response
200 - application/json
OK