On this page
To cut your LLM API bill, cache repeated input first: on DeepSeek’s API a cache hit costs $0.006 per million tokens against $0.30 for a miss. Then run batch work off-peak at half price and send each model to its cheapest host. Past that, a flat plan like Off Grid AI Boost from $4.99 a month stops the meter.
The six levers, ranked by what they save
| Lever | What it saves | Where it’s published |
|---|---|---|
| Cache repeated input | Up to 98% on the cached part of your input | DeepSeek pricing, DeepInfra pricing |
| Move to the cheapest host for that model | Up to 87% on input and 67% on output for DeepSeek V4.1 Flash | NanoGPT vs Together |
| Batch or off-peak | 50% | Fireworks batch, DeepSeek off-peak |
| Skip the router fee | 5.5% of every top-up, $0.80 minimum | OpenRouter FAQ |
Cap max_tokens and trim prompts |
Stops runaway replies and failed big requests | OpenRouter limits |
| Switch to a flat plan | Turns a moving bill into a fixed one | Boost, NanoGPT PRO |
1. Cache what you send every time
Most apps resend the same system prompt, tool list and files on every call. Hosts that cache that prefix charge a fraction for it.
- DeepSeek API: V4.1 Flash input is $0.30 per million on a cache miss and $0.006 on a hit at peak, 98% less (pricing).
- DeepInfra: DeepSeek V4.1 Flash input is $0.14, or $0.0042 cached. The 1017 build is $0.098, or $0.0029 cached (pricing).
- Fireworks: cached input bills at 50% off by default, and DeepSeek V4.1 Flash cached input is $0.006 (pricing).
DeepSeek turns caching on for everyone by default, and a request hits only when it fully matches a stored prefix (context caching). So put the fixed parts first (system prompt, tools, docs) and the changing parts last (the user’s message, timestamps). The usage field reports prompt_cache_hit_tokens, so you can see what you’re saving.
2. Send each model to its cheapest host
The same open model can cost several times more on one host than another. Price per million tokens, input / output:
| Provider | DeepSeek V4.1 Flash | Qwen3.8-27B | GLM-5.3 | Kimi K3.1 Pro |
|---|---|---|---|---|
| NanoGPT | $0.039 / $0.40 | $0.15 / $0.70 | $0.60 / $1.10 | $1.40 / $7.00 |
| Hugging Face, lowest route | $0.051 / $0.567 | $0.04 / $1.35 | $0.07 / $1.40 | $0.24 / $8.40 |
| OpenRouter, lowest route, plus 5.5% | $0.051 / $0.567 | $0.039 / $1.25 | $0.07 / $1.40 | $0.24 / $8.40 |
| DeepInfra | $0.14 / $0.42 | $0.15 / $1.875 | $0.5625 / $2.50 | $1.90 / $9.50 |
| Together AI | $0.30 / $1.20 | Not served | $1.40 / $4.40 | $2.00 / $10.00 |
| Fireworks AI | $0.30 / $1.20 | Not served | $1.40 / $4.40 | $2.00 / $10.00 |
| Off Grid AI Boost | Flat plan, usage worth 2x the price | Flat plan |
On OpenRouter, add :floor to the model name, for example deepseek/deepseek-v4.1-flash:floor, so it sorts hosts by price instead of balancing price against speed (provider routing). The whole table, with blended prices, is in cheapest OpenRouter alternatives.
3. Run what can wait at half price
- Batch: Fireworks takes 50% off input and output “for jobs that don’t need an immediate answer” (pricing). Good for evals, tagging and overnight summaries.
- Off-peak: DeepSeek’s API is half price off-peak. Peak is 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, excluding Chinese public holidays; weekends are off-peak all day (pricing). V4.1 Flash drops to $0.15 in and $0.60 out.
4. Stop paying the router fee
OpenRouter passes through each host’s price, then charges 5.5% when you buy credits, with a $0.80 minimum (FAQ). Hugging Face Inference Providers reaches many of the same routes and adds no fee. If you top up OpenRouter in $5 steps, you’re paying 16% in fees.
5. Cap output and trim input
Output costs several times more than input on every model in the table above, so a reply that runs on is the most expensive kind of waste. Set max_tokens on every call. On OpenRouter it matters twice, because an unset max_tokens makes it reserve a large estimated cost up front, which can trigger a 402 even with money in the account (limits). Then cut the prompt: send the function, not the whole file.
6. Put a ceiling on the month
Per-token pricing moves with every request. A flat plan doesn’t. Once your monthly bill would pass a plan’s price, the plan wins.
A worked example
A coding agent sends 50M input and 10M output tokens a month on DeepSeek V4.1 Flash. 80% of the input is the same files and system prompt each turn, so it can hit the cache.
| Setup | Working | Month |
|---|---|---|
| Together AI, no caching | 50 × $0.30 + 10 × $1.20 | $27.00 |
| DeepSeek API, peak, no caching | 50 × $0.30 + 10 × $1.20 | $27.00 |
| DeepSeek API, peak, 80% cache hits | 40 × $0.006 + 10 × $0.30 + 10 × $1.20 | $15.24 |
| DeepSeek API, off-peak, 80% cache hits | Half of $15.24 | $7.62 |
| OpenRouter lowest route, plus 5.5% | (50 × $0.051 + 10 × $0.567) × 1.055 | $8.67 |
| DeepInfra 1017 build, 80% cache hits | 40 × $0.0029 + 10 × $0.098 + 10 × $0.294 | $4.04 |
| NanoGPT, no caching | 50 × $0.039 + 10 × $0.40 | $5.95 |
| Off Grid AI Boost Starter | Flat, usage worth $9.99 | $4.99 |
Caching plus the right host takes the same work from $27.00 to about $4. That’s the move to make today. Boost’s per-model token rates aren’t published yet, so how much of this one plan covers isn’t known. What Boost fixes is the shape of the bill: you know it before the month starts.
Symptom, check, fix
| Symptom | Check | Fix |
|---|---|---|
| Bill far higher than input × price | Output share of your tokens | Set max_tokens, ask for shorter answers, rank hosts by output price |
| Cache hits near zero | Does the prompt start with a timestamp, user ID or shuffled tool list? | Move fixed text to the front and changing text to the end |
| OpenRouter costs more than the cheapest route | You’re on default routing | Add :floor to the model name |
| Top-up fees keep showing up | Size of each top-up | Top up less often in bigger amounts, or use a host with no fee |
| Nightly jobs cost as much as live traffic | Are they sent at standard rates during peak? | Use batch, or run DeepSeek jobs off-peak |
| You still can’t predict the month | Per-token billing | Move to a flat plan once spend passes its price |
A flat bill from January
Off Grid AI Boost runs open models, with one OpenAI-compatible key for every model. Change one base URL in any OpenAI SDK or tool. The page names Qwen 3.8 and DeepSeek V4.1 Flash, and more, across text, vision, speech, voice, embeddings, image and video.
First-cohort prices are half the regular price for as long as you stay: Starter $4.99 (regular $9.99), Pro $9.99 ($19.99) and Max $49.99 ($99.99). Each plan includes usage worth its full regular price every month, refilled monthly, and you can top up any time. We don’t keep your prompts or train on them.
It’s a pre-order. You pay now, your API key arrives by email in January 2027, and your plan starts that day. If we miss January, you get all your money back. Until then, use the caching and routing fixes above, or a flat plan that’s live today from flat-rate APIs for open models. Every price is on the open-model API prices page.
FAQ
What is the fastest way to cut an LLM API bill? Cache your repeated input. On DeepSeek’s own API, a cache hit on V4.1 Flash costs $0.006 per million input tokens against $0.30 for a miss, 98% less. Coding agents resend the same files and system prompt every turn, so most of their input can hit the cache.
Is the same open model cheaper on a different host? Often by a lot. DeepSeek V4.1 Flash costs $0.039 in and $0.40 out per million tokens on NanoGPT, and $0.30 / $1.20 on Together AI and Fireworks. OpenRouter adds a 5.5% fee when you buy credits.
Does DeepSeek have off-peak pricing? Yes. DeepSeek’s API charges half price off-peak. Peak is 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, excluding Chinese public holidays. Everything else, weekends included, is off-peak.
When does a flat monthly plan beat per-token pricing? When your per-token bill would be higher than the plan’s price. Off Grid AI Boost starts at $4.99 a month with usage worth $9.99, counted at each model’s token rate. It’s a pre-order, with API keys in January 2027.