# 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.

Compare list prices, switch with a string

**Slug**: `cheapest-llm-api`  
**URL**: https://anyrouter.dev/use-cases/cheapest-llm-api  
**Markdown**: https://anyrouter.dev/use-cases/cheapest-llm-api.md  
**Short link**: https://anyrouter.dev/u/cheapest-llm-api  
**Other short links**: https://anyrouter.dev/u/cheap  

## 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.

## Set it up

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.

## Code

### curl · anyrouter/auto

```bash
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." }]
  }'
```

## Related

- [virtual-presets](https://anyrouter.dev/use-cases/virtual-presets)
- [unify-api](https://anyrouter.dev/use-cases/unify-api)
- [go-plan](https://anyrouter.dev/use-cases/go-plan)
