Skip to main content
POST
Core - Create a Smart Router

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
key
string
required

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

models
string[]
required

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

profile
enum<string>
required

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

smart_router
object
required