Spending target
A key without a router uses Balanced.
To change the target for one call, add
target to the body:
Which model answered
Besides the response’smodel field, the X-Routing-Model header names it:
Who serves the model
You choose this when you create a router.Suggest model only
POST /v1/routing/rank takes the request you are about to make and the models you can call, with your prices in dollars per million tokens. It returns them ranked, best first.
cost_quality_tradeoff goes from 0 (best quality) to 10 (cheapest). Call ranked[0] with your own provider client.