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.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
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.
SMART_ROUTER_PROFILE_UNSPECIFIED, SMART_ROUTER_PROFILE_QUALITY, SMART_ROUTER_PROFILE_BALANCED, SMART_ROUTER_PROFILE_COST Response
OK