Kingdom of KumarBack to home

Guide · Cost

Cut AI and automation costs before your 2027 budget

By Mayank Raj · Kingdom of Kumar · Updated 4 November 2026

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

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.

OptionBilling unitGood fit
ZapierTasks (successful actions)Short workflows, few runs, non-technical owners
n8n CloudExecutions (one full run)Many-step workflows, frequent runs
n8n self-hostedYour own server and timeA team that can run and patch it
Custom codeBuild once, then hosting and upkeepStable, 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

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

  1. Day 1: export last month’s LLM and automation invoices and list every workflow behind them.
  2. Day 2: add per-task logging to the top three.
  3. Day 3 to 4: try routing, caching and trimming on those three, measured against your test examples.
  4. 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.

Email about a cost reviewWays to work with usAll services

Related guides