Clawy / Guides / Cut your LLM API costs
Six levers that lower your OpenAI or Claude bill — ordered by impact. Most teams leave the first two on the table.
LLM bills balloon for boring reasons: the wrong model on easy tasks, uncapped output, the same context re-sent uncached every call. None of these require accepting worse answers. Here's where the money actually goes, biggest lever first.
This is the single biggest lever, and it's free. Frontier models are priced for frontier work; most production calls aren't frontier work. Claude's list rates span a 5× range on input and output:
| Model | Input / 1M | Output / 1M | Good for |
|---|---|---|---|
| Haiku 4.5 | $1 | $5 | classification, extraction, routing, simple chat |
| Sonnet 4.6 | $3 | $15 | most production workloads, balanced |
| Opus 4.8 | $5 | $25 | hard reasoning, agents, long-horizon work |
Routing your high-volume, low-difficulty calls to Haiku instead of Opus is a 5× cost cut on those calls with no quality loss — because they never needed Opus. Reserve the expensive model for the requests that actually move your quality metric. (Not sure which to pick? See which Claude model to use.)
If every request re-sends the same big system prompt, few-shot examples, or document, you're paying full input price for identical tokens. Prompt caching charges the cached prefix at roughly 10% of normal input price on a hit. For an agent with a 10k-token fixed preamble, that's most of your input cost gone.
The catch is that caching is a prefix match: one byte change anywhere in the prefix invalidates everything after it. Silent cache-killers to audit for: a datetime.now() or UUID in the system prompt, unsorted JSON serialization, or a tool list that changes per request. Verify hits with the cache_read_input_tokens field in the response — if it's zero across identical-prefix calls, something is invalidating it.
Output costs 3–5× more than input per token, and an unbounded max_tokens lets a single chatty response run up the bill. Set a max_tokens that fits the job — a classifier needs 50 tokens, not 4,000. If you've enabled extended/adaptive thinking, remember those reasoning tokens bill as output too.
Input tokens are real money, and "stuff the whole document in" is the most common waste. Retrieve and send only the relevant chunks instead of the full corpus. Trim conversation history (or summarize it) once it's long. Every 10k tokens you don't send to Opus is $0.05 you keep, per call.
If a workload doesn't need an instant answer — overnight classification, bulk summarization, evals — the Batch API runs the same requests at 50% off, typically completing within an hour. Anything that can tolerate latency should go through it.
Make "cheap" the default and escalate deliberately, not the other way around. A simple router — try the cheap model, fall back to a stronger one only when the task needs it — captures most of lever #1 automatically.
→ Model the savings. The free margin / cost calculator lets you plug in a model, prompt size, and price to see exact cost per call — compare Haiku vs Opus on your real numbers in seconds.None of these trade quality for cost — they stop paying frontier prices for non-frontier work and stop paying twice for the same tokens. Measure first (know your per-call cost), then pull the levers in order.
→ Or pay only per call. Clawy serves GPT-5.5, Claude Opus 4.8, and a cost-optimized $0.04 auto tier over x402 — USDC per request, no API keys, no subscription. 5-minute quickstart → → Get the AI API Pricing Kit (€19). An Excel cost/margin model, an offline calculator, drop-inmargin-guard code that caps oversize prompts before they cost you, and a quick-start — bundled.