Configure Route Policies

Scenario

Use Route Policies when a model has multiple channels or when different organizations should use different channels.

Prerequisites

  • At least one channel is created and enabled.
  • The channel has synchronized and enabled the target model.
  • The administrator has permission to manage Route Policies.

Procedure

  1. Go to Route Policy.
  2. Click Create Policy.
  3. Enter a policy name, for example prod-gpt-4o-primary-backup.
  4. Select the applicable organization or scope.
  5. Select the target model.
  6. Add the primary channel and configure priority and weight.
  7. Add a backup channel with lower priority.
  8. Configure failover behavior.
  9. Click Save.
  10. Call the model with an API Key from the target organization and verify the selected channel.

Recommendations

ScenarioRecommendation
Critical production modelConfigure at least one primary channel and one backup channel.
Cost-sensitive modelUse a lower-cost channel as primary and a higher-quality channel as backup.
Organization isolationConfigure different policies for different organizations.
Grayscale validationUse a test organization for a grayscale channel.

Verification

  • Use a test API Key from the target organization to call the target model.
  • Confirm that Usage Log records the expected Route Policy and channel.
  • Temporarily disable the primary test channel and confirm that the backup channel is selected.

Notes

  • Do not change production Route Policies during peak traffic.
  • Keep at least one verified channel for each production model.
  • Record the reason, operator, and validation result for each policy change.