How to cut your LLM API bill
Six ways, biggest first
- Match the model to the job
- Small models handle classification, extraction and short summaries; send only the hard work to flagships.
- Cap the output
- Output tokens often cost 3 to 6 times as much as input. Set max_tokens to what you actually need.
- Cache long prompts
- Providers that support prompt caching charge much less for repeated context like system prompts and documents.
- Set budgets
- A per-key monthly budget turns a runaway loop into a stopped request instead of an invoice.
- Use credits you have
- Cloud startup credits work through your own Azure, Bedrock or Vertex keys.
- Measure per request
- Cost per request, per feature and per key shows which part of the product to optimise.

From a 1906 handbook on telephone exchanges.
The practical telephone handbook and guide to the telephonic exchange, 1906. Internet Archive Book Images, no known copyright restrictions, via Wikimedia Commons.
What a token costs, by size of model
Prices per million tokens on DigitSpace, 30 Oct 2026.
| Model | Input | Output |
|---|---|---|
| ministral-3b-2512 | $0.10 | $0.10 |
| gpt-6-luna | $0.10 | $0.50 |
| claude-haiku-5-5 | $0.10 | $0.50 |
| claude-sonnet-5-5 | $2.00 | $10.00 |
| gpt-5.5 | $5.00 | $30.00 |
| claude-fable-5-1 | $10.00 | $50.00 |
Current prices for every model are on the models page.
Questions
How much can routing save?
It depends on your traffic. If most requests are simple, moving them from a flagship to a small model cuts their cost by 10 to 100 times; measure your own mix first.
Does a gateway cost extra?
DigitSpace adds 5% on credit top-ups and nothing on tokens; with your own provider keys it's free.
Read next
Live in a minute.
Create a key, change the base URL, send a request. No card needed with your own provider keys.
Start free