Smart routing
Routify routes each request to the best available channel for that model.
Routing pipeline
Request
│
▼
1. Candidates — list channels supporting requested model
│
▼
2. Healthy — drop unhealthy / over-quota / low-balance
│
▼
3. Permitted — apply user tier + region preference
│
▼
4. Score — priority × weight × health × latency × cost factors
│
▼
5. Weighted pick — pick using score as probabilityFailure handling
If a chosen channel returns an error, Routify:
- Marks the channel as failed (raises its
failure_rateexponentially) - Selects another candidate from the same pool
- Retries up to 3 times across different channels
- Returns 502 if all fail
You'll always either get a 200 response or an explicit error — we never silently degrade quality.
Channel quality tiers
| Tier | What it means |
|---|---|
official | Direct from vendor (DeepSeek, Anthropic, etc.) |
proxy | Authorized first-party reseller |
community | Best-effort backup — used as fallback when official fail |
VIP tier accounts get a 1.5× routing weight bonus on official channels —
so you nearly always hit the highest-quality endpoint.
Manual routing
Force a specific channel:
extra_body={"routify": {"channel": "deepseek-official"}}Skip a channel:
extra_body={"routify": {"exclude_channels": ["claude-aws-bedrock"]}}