Available on all Portkey plans.
Examples
| Pattern | Use Case |
|---|---|
| Between Providers | Route to different providers; model comes from request |
| Multiple API Keys | Distribute load across rate limits from different accounts |
| Cost Optimization | Send most traffic to cheaper models, reserve premium for a portion |
| Gradual Migration | Test new models with small percentage before full rollout |
The
@provider-slug/model-name format automatically routes to the correct provider. Set up providers in Model Catalog.How It Works
- Define targets & weights — Assign a
weightto each target. Weights represent relative share of traffic. - Weight normalization — Portkey normalizes weights to sum to 100%. Example: weights 5, 3, 1 become 55%, 33%, 11%.
- Request distribution — Each request routes to a target based on normalized probabilities.
- Default
weight:1 - Minimum
weight:0(stops traffic without removing from config) - Unset weights default to
1
Considerations
- Ensure LLMs in your list are compatible with your use case
- Monitor usage per LLM—weight distribution affects spend
- Each LLM has different latency and pricing

