Smart Routers

Create a Smart Router

Changed on

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

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/smart-routers
  • Auth
    HTTP bearer

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_QUALITY' | 'SMART_ROUTER_PROFILE_BALANCED' | 'SMART_ROUTER_PROFILE_COST' required

Response

OK

Changes

    • breaking

      removed the enum value SMART_ROUTER_PROFILE_UNSPECIFIED of the request property

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      removed the SMART_ROUTER_PROFILE_UNSPECIFIED enum value from the / response property for the response status

    • warning

      removed the request property

    • warning

      removed the optional property / from the response with the status

    • warning

      added the new SMART_ROUTER_PROFILE_UNSPECIFIED enum value to the / response property for the response status

    • info

      added the new SMART_ROUTER_PROFILE_UNSPECIFIED enum value to the request property

    • info

      removed the non-success response with the status