Canary routing lets you split traffic between models by percentage weight, making it safe to test a new model version in production before fully committing to it.
1

Configure both models

Your gateway.yaml needs entries for both the current and the new model version:
2

Create a canary routing config

3

Test the canary config

Approximately 10% of requests will go to gpt-4o-new. Monitor your usage analytics to compare error rates and latency.
4

Increase the canary weight

As you gain confidence in the new model, increase its share:
5

Complete the rollout

When satisfied, switch entirely to the new model:

Apply the config automatically for a team

Instead of requiring clients to send the X-ManyLayers-Config header, set the config as a team’s default:
All requests from the engineering team will use the canary config automatically.

Add failover for resilience

Combine canary routing with automatic retry for extra safety: