Skip to content
TokenGauge
Menu

How-to

How to Cut an LLM API Bill: Five Levers Ranked by Impact

Every lever below is priced on the same workload: Claude Sonnet 5.5 on OpenRouter, 50 million input and 15 million output tokens a month. The baseline is $264.

Published 9 Oct 2026 · Updated 11 Nov 2026 · 8 min read

Summary

  • Model choice is the largest lever. Moving the workload to Haiku 5.5 cuts the bill by 95 percent, if it passes your tests.
  • A Haiku-first cascade with 30 percent escalation cuts about 65 percent.
  • Trimming output by a fifth saves 12 percent, more than trimming input by a fifth.
  • Switching gateway to SayGM cuts about 5 percent on Sonnet 5.5, the size of OpenRouter's fee, with no code changes beyond the client.
  • Combined, the levers take the bill from $264 to $77.

01

The baseline

Claude Sonnet 5.5 on OpenRouter costs $2.11 per million input tokens and $10.55 per million output tokens, including the top-up fee. At 50M input and 15M output tokens a month, that is $105.50 plus $158.25, or $263.75.

Monthly cost after each lever, applied on its own to the baseline.
LeverMonthly costChange
Baseline$264n/a
Move all traffic to Haiku 5.5$13−95%
Haiku-first cascade, 30% escalate$92−65%
Trim output tokens by 20%$232−12%
Trim input tokens by 20%$243−8%
Switch gateway to SayGM$250−5%

02

1. Choose the smallest model that passes

Haiku 5.5 costs about a twentieth of Sonnet 5.5 per token on every route. Sonnet 5.5 costs about half of Opus 5.5. No other lever comes close, so test the cheaper model first and keep the larger one for tasks that fail.

Same workload on SayGM.
ModelMonthly costvs Sonnet 5.5
Claude Opus 5.5$4892.0x
Claude Sonnet 5.5$2501.0x
Claude Haiku 5.5$120.05x

The Sonnet 5.5 vs Haiku 5.5 comparison shows the gap at three usage levels.

03

2. Try the small model first

A cascade sends every request to Haiku 5.5 and escalates to Sonnet 5.5 on failure. The worst case is that every escalated request pays for both attempts. Under that assumption the break-even escalation rate is 95 percent, because Haiku costs a twentieth.

OpenRouter prices, both attempts billed on escalation.
Escalation rateMonthly costvs all Sonnet
10%$40−85%
30%$92−65%
50%$145−45%

SayGM runs cascades at the gateway level, so no routing code is needed.

04

3. Trim output before input

Output tokens cost five times more than input on Claude. At an 80/20 mix, the 20 percent of tokens a model writes are 56 percent of the bill.

Fig. 1Share of the bill from output tokens
  • Input tokens (80% of volume)
  • Output tokens (20% of volume)
Claude Sonnet 5.5
Claude Haiku 5.5
GPT-6.1 Sol
Gemini 3.1 Pro Preview
Show data as a table
ModelShare of bill from inputShare of bill from output
Claude Sonnet 5.544%56%
Claude Haiku 5.544%56%
GPT-6.1 Sol44%56%
Gemini 3.1 Pro Preview40%60%
Assumes 80% input and 20% output tokens. Output tokens are a fifth of the volume but most of the cost on every frontier model. Trimming output length saves more than trimming prompts. Source: published rate cards, November 2026 snapshot. Current prices on saygm.com (opens in a new tab).

Cutting output by 20 percent removes 3M tokens and saves $31.65 a month. Cutting input by 20 percent removes 10M tokens and saves $21.10. Ways to cut output:

  • Set max_tokens per task, not one global ceiling.
  • Ask for diffs or edits instead of full rewritten files.
  • Return structured output with short field names.
  • Drop restated context and closing summaries from system prompts that ask for them.

05

4. Stop paying for the gateway

The same Sonnet 5.5 workload costs $250.00 on SayGM: $100.00 for input and $150.00 for output. SayGM bills Sonnet 5.5 at list price in this snapshot, so the saving is OpenRouter's fee: $13.75 a month, or $165 a year, for a change of client and base URL. Opus 5.5 is 2.1 percent below list there, so its gap is about 7 percent.

Fig. 2Monthly bill at three usage levels, Claude Sonnet 5.5
  • OpenRouter, fee included
  • SayGM
Side project5M in · 1M out
$21
$20
Production app50M in · 15M out
$264
$250
High volume500M in · 100M out
$2,110
$2,000
Show data as a table
OpenRouter, fee includedSayGM
Side project (5M in · 1M out)$21$20
Production app (50M in · 15M out)$264$250
High volume (500M in · 100M out)$2,110$2,000
Usage is millions of input and output tokens per month. No caching discount applied. Source: published rate cards, November 2026 snapshot. Current prices on saygm.com (opens in a new tab).

The gap is far wider on other vendors: about 46 percent on GPT-6.1 Sol and 42 percent on Gemini 3.1 Pro. See all prices.

06

5. Keep the cache warm

Prompt caching discounts repeated prefixes such as system prompts, tool definitions and long documents. The saving depends on the provider's cache pricing and your hit rate, so it is not in the table above.

  • Put stable content first and variable content last.
  • Keep tool definitions in a fixed order.
  • Keep a conversation on one provider. Gateways that spread a conversation across providers lose cache hits. SayGM keeps a conversation on one provider while it stays available, until an hour passes without a turn.

07

All levers together

Apply three levers at once: SayGM as the gateway, output trimmed to 12M tokens, and a Haiku-first cascade with 30 percent escalation. Haiku 5.5 costs $10.76 for the full volume. Escalations add 30 percent of the trimmed Sonnet 5.5 cost of $220.00, or $66.00.

Run the numbers for your own volumes in the calculator. Rates are a snapshot; SayGM's pricing page (opens in a new tab) has the current figures.

Prices in this guide are a November 2026 snapshot and move regularly.

Visit SayGM (opens in a new tab)