Cost per tokenFree and cheap
Shop for the cheapest model without lock-in
Compare list prices in the catalog, then route through one URL so switching models is a string change.
Set it up
curl · anyrouter/auto
$ curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anyrouter/auto",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'- 1.Compare models on /models and /compare — use the published list prices, not screenshots.
- 2.Start traffic on anyrouter/auto so health-aware failover avoids a dead cheap SKU.
- 3.Pin a specific id only after you have measured quality on your prompts.
Why use this
The cheapest SKU on a landing page is often the wrong unit (cached vs uncached, input vs output) or a model that is not actually serving.
Endpoints and key
- OpenAI-compatible
- https://anyrouter.dev/api/v1
- Anthropic-compatible
- https://anyrouter.dev/api
- Key
- ANYROUTER_API_KEY (sk-ar-…)