Routing logic, out of your codeEnterprise

Dynamic Routes

Define named, versioned routing flows with conditions, percentage splits and model targets, then call them with dynamic/<name>.

dynamic/support → x-user-tier?
dynamic/supportx-user-tier?paidpremium modelfree · 90%splitfree · 10%experimentelsedefault model
Change routing without a deploy
01

Conditions

Branch on headers, body or plan.

02

Traffic splits

A/B models by percentage.

03

Versions

Every publish is versioned. Roll back anytime.

04

Observable

See which branch each request took.

Built for

  • Tiered models

    Premium models for paying users

  • Safe rollouts

    Send 10% to a new model first

  • No-redeploy changes

    Ops edits routing, code stays put

Call a route by name
terminal
1curl https://api.llmgateway.io/v1/chat/completions \2  -H "Authorization: Bearer $LLM_GATEWAY_API_KEY" \3  -H "Content-Type: application/json" \4  -H "x-user-tier: paid" \5  -d '{6    "model": "dynamic/support",7    "messages": [8      {9        "role": "user",10        "content": "Hello!"11      }12    ]13  }'
Read docs

More in routing & reliability

All features

Start using Dynamic Routes today

One API key. Every model. Live in minutes.