Roteadores inteligentes
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
Guia relacionado: guia de regras de roteamento. Consulte o guia de regras de roteamento para um passo a passo com exemplos.
Autorizações
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corpo
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.
Opções disponíveis:
SMART_ROUTER_PROFILE_QUALITY, SMART_ROUTER_PROFILE_BALANCED, SMART_ROUTER_PROFILE_COST Resposta
OK

