For side projects
HOBBY
$0 / month
- 1M tokens a month, any model
- One route, two models
- Community support
THE GATEWAY
Put one API in front of every model you use. Route by cost, latency or eval score, fail over mid-stream, and keep the bill in one place.
Requests served without a provider incident, last 90 days
Routing production traffic for
Quickstart
The gateway speaks the chat format you already send. Name a route, state a policy, and every response tells you which model answered and what it cost.
curl https://api.switchyard.example/v1/chat \
-H "Authorization: Bearer $SWITCHYARD_KEY" \
-d '{
"route": "support-bot",
"policy": ["cost", "eval>70"],
"failover": true,
"messages": [{"role": "user", "content": "Hi"}]
}'
# x-switchyard-model: yard-4-mini
# x-switchyard-latency-ms: 92
# x-switchyard-cost-usd: 0.00041
Catalog · 9 models
Nine models behind one key, priced per million tokens. Add them to a route and the gateway picks per request. Hover a plate to read its scores.
Read the routing docsRouting policy
Four switches decide how the gateway picks a model for each request. The estimate below recalculates from the catalog as you press them.
Routing by cost, then eval score, with failover on.
$0.00 / 1M inPricing
Every tier runs the same gateway. What changes is how much of it you can hold open at once.
For side projects
$0 / month
Most teams
$180 / month
For regulated workloads
Custom / annual
Questions
Bring them and we route through yours, or use ours and take one bill. Either way the keys are scoped per route and rotated from the dashboard.
Failover moves the request mid-stream to the next model in the route and marks the response, so your logs show which model actually answered.
Provider cost plus a flat 4%, itemised per request in the log. Input and output tokens are priced separately, as they are by every provider. The policy console shows the blended input rate for the switches you have on.
Get started
Free tier, no card required.