1072e5ba28ab

OpenAPI 3.1.0raw.githubusercontent.com2026-08-0926150111.7 MB
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/v2/smart-routers

Request body

keystring required

Unique key for the Smart Router within the workspace. Use lowercase letters, numbers, and hyphens.

modelsstring[] required

Pool of 2 to 50 distinct eligible models. Each value uses provider/model format.

profile'SMART_ROUTER_PROFILE_UNSPECIFIED' | 'SMART_ROUTER_PROFILE_QUALITY' | 'SMART_ROUTER_PROFILE_BALANCED' | 'SMART_ROUTER_PROFILE_COST' required

Response

OK