Guide · Cost
Cut AI and automation costs before your 2027 budget
To cut LLM and automation spend, work in this order: measure cost per task, send easy work to a small model and escalate only when needed, cache repeated prompt prefixes, move work nobody is waiting on to batch APIs, trim context and output, and only then look at replacing per-task automation pricing. We give no savings percentages for your stack because we cannot know them. The vendor discounts below are quoted from their own docs.
1. Measure cost per task first
A monthly invoice tells you what you spent, not what for. Before you change a prompt, log one row per task: workflow name, model, input tokens, output tokens, retries, and whether the result was accepted. Divide by completed tasks, not by calls. A workflow that retries three times costs three times what its invoice line suggests.
Two or three task types will usually carry most of the bill. Fix those and leave the rest. If you do not have this table, build it before anything else on this page, because every later step needs it to prove it worked.
2. Route by difficulty: small model first, escalate
Classification, extraction, tagging and routing rarely need your largest model. Run the cheapest model that passes your own checks, and escalate to a larger one only when a validator fails or the model reports low confidence. Keep the escalation rate in your cost-per-task table. If most tasks escalate, the routing is not helping and you have only added a hop.
Test with your own examples. A published benchmark does not tell you how a model handles your invoices or your support tickets.
3. Cache repeated prompt prefixes
If every call starts with the same long instructions, schema or reference document, cache it. Per Anthropic’s prompt caching docs, cache reads cost 10% of the base input price (with some per-model exceptions listed there), and writing a 5-minute cache entry costs 1.25x base input. So caching pays when the same prefix is reused within the cache window, and costs slightly more if it is not. OpenAI’s prompt caching guide describes a discount of up to 95% on cached input, depending on the model. Put stable content first and changing content last, or the prefix will not match.
4. Batch anything nobody is waiting for
Nightly enrichment, backfills, bulk classification and report drafts do not need an instant reply. Anthropic’s Message Batches API is priced at 50% of standard API prices, and most batches finish in under an hour. OpenAI’s Batch API gives a 50% discount versus synchronous APIs with separate, higher rate limits, and completes within 24 hours. Keep interactive work, such as a chat a person is typing into, on the normal API.
5. Trim context and output
- Send the fields the task needs, not the whole record or the whole thread.
- Summarise long history once and pass the summary on later calls.
- Ask for structured output with short fields instead of prose you then parse.
- Set a sensible maximum output length for each task type.
- Remove few-shot examples that no longer change the result, checked against your own test set.
6. Per-task automation pricing: Zapier, Make, n8n, or code
Two different billing units matter here. Zapier bills tasks: only successful actions count and trigger steps do not. From 1 December 2026, Next Gen Zaps and the Zapier SDK also use tasks, and each successful Next Gen run uses at least one task. Higher tiers lower the cost per task, and overage switches to pay-as-you-go unless you turn it off (see Zapier pricing). Check whether your plan will change on that date.
n8n Cloud bills per workflow execution, which is one full run however many steps it has. Its pricing page lists Starter at 20 EUR a month billed annually for 2.5K executions and Business at 667 EUR a month billed annually for 40K executions, with a 50% Startup discount on Business for companies under 20 employees. The Community Edition can be self-hosted from GitHub.
| Option | Billing unit | Good fit |
|---|---|---|
| Zapier | Tasks (successful actions) | Short workflows, few runs, non-technical owners |
| n8n Cloud | Executions (one full run) | Many-step workflows, frequent runs |
| n8n self-hosted | Your own server and time | A team that can run and patch it |
| Custom code | Build once, then hosting and upkeep | Stable, high-volume, business-critical flows |
Count runs and steps per workflow for a month, then price the same workload under each unit. That tells you more than any headline price. We do not quote a Make figure here because we have not verified one.
When not to migrate
- The bill is small. A migration has a build cost and a maintenance cost, and a small saving may not cover either.
- The workflow is brittle or poorly documented and nobody wants to touch it. Document it first.
- Nobody on your team will own the replacement. Self-hosted tools need updates and monitoring.
- The workflow relies on a connector that only the current tool provides well.
- Volume is falling or the process is about to change. Wait until it settles.
Often the right move is partial: keep the long tail of small zaps where they are, and move the two or three busiest workflows.
A one-week plan
- Day 1: export last month’s LLM and automation invoices and list every workflow behind them.
- Day 2: add per-task logging to the top three.
- Day 3 to 4: try routing, caching and trimming on those three, measured against your test examples.
- Day 5: move any no-rush job to a batch API, then rewrite the 2027 line items from measured cost per task.
Questions
What is the first step to cut LLM costs?
Measure cost per task before changing anything. Log model, input tokens, output tokens and outcome for each task type, so you know which workflow actually drives the bill.
Do batch APIs really halve the price?
Both Anthropic's Message Batches API and OpenAI's Batch API are priced at 50% of standard prices. Anthropic says most batches finish in under an hour, and OpenAI completes batches within 24 hours, so they suit work nobody is waiting on.
How does prompt caching reduce cost?
Repeated prompt prefixes can be read from cache at a lower price. Anthropic bills cache reads at 10% of the base input price, with a 1.25x charge to write a 5-minute cache entry. OpenAI discounts cached input by up to 95%, depending on the model.
Is n8n cheaper than Zapier?
It depends on the shape of your workflows. n8n Cloud bills per workflow execution, however many steps it has, while Zapier bills tasks, which are successful actions. Long workflows run often tend to favour per-execution pricing, short ones may not. Count your own runs before deciding.
When should I not migrate off Zapier or Make?
Do not migrate when your bill is small, the workflows rarely break, and nobody on your team can own the replacement. A migration costs build time and ongoing maintenance, so it only pays when the saving is larger than both.
Next step
If a workflow is worth moving, we scope it in writing: sprints of $500/month, or $500/month for build days. See custom automation for n8n, Zapier and Make migrations and HubSpot cleanup if bad CRM data is what makes your workflows retry. We will also tell you when staying put is cheaper.