What it actually costs to run an AI automation in production
A cost breakdown for running an AI automation in production in 2026. LLM API costs, infrastructure, monitoring, vector storage, and the hidden ops costs nobody puts in their pitch deck. With approximate ranges by automation shape.
— TL;DR
As a rough estimate from April 2026 provider pricing, a moderate-volume AI automation costs about $200 to $800 per month all-in. LLM API spend is usually the largest share; infrastructure, monitoring, and vector storage make up the rest. Routing to cheaper models, caching prompt prefixes, and limiting output length often cut the bill substantially.
A realistic monthly cost for a moderate-volume AI automation in production is roughly $200–$800, as an estimate built from provider pricing in April 2026. LLM API spend, infrastructure, monitoring, vector storage. That's the all-in number including the boring ops costs that don't make it into pitch decks. The high end of that range is the case where you've shipped without cost discipline; the low end is where the team has built in routing, caching, and monitoring from week 1.
This piece breaks down the line items by category, gives realistic ranges by automation shape, and walks through the levers that actually move the cost. The figures are approximate and reflect pricing when this was written in April 2026. Vendor prices change often, so check each vendor's current pricing page before you budget.
#The shape of the bill
An illustrative cost stack for a production AI automation:
| Line item | % of bill | Range (moderate volume) |
|---|---|---|
| LLM API calls | 40–60% | $80–$480/mo |
| Compute (containers / serverless) | 10–20% | $20–$160/mo |
| Vector storage (if RAG) | 5–15% | $10–$120/mo |
| Monitoring + observability | 10–15% | $20–$120/mo |
| Audit log storage | 5–10% | $10–$80/mo |
| Workflow platform fees (if n8n cloud / Zapier / Make) | 0–20% | $0–$160/mo |
| Email / notification services | 1–5% | $2–$40/mo |
| Total all-in | (varies) | $200–$800/mo |
These are representative estimates for a production automation, built from provider pricing in April 2026, not measurements from a specific project. Moderate volume meaning ~10,000 LLM calls per day, with monitoring, fallbacks, and audit logging in place. Below that volume the cost falls; above that volume the cost rises but typically sub-linearly because you start hitting volume discounts and amortizing fixed costs.
#LLM API costs
The biggest line item. Within it, three things account for most of the variance:
Input vs output tokens. Both OpenAI and Anthropic charge several times more for output tokens than for input tokens (roughly 3–5x when this was written). A prompt that has 1,000 input tokens and produces 2,000 output tokens costs more than a prompt with 5,000 input tokens that produces 500 output tokens.
One of the biggest cost-cutting moves is constraining output length. Use stop sequences. Set max_tokens. Ask for terse responses in the system prompt. Use structured outputs (JSON schema constraints) which often produce shorter responses than free-form text.
Model tier. Flagship models cost many times what the vendors' small, fast models cost per token. (When this was written in April 2026, GPT-5 and Claude Opus 4.7 were examples of the first kind, gpt-5-nano and Claude Haiku 4.5 of the second.) Most production workloads have a heavy long tail of routine calls that don't need flagship reasoning. Those should route to the cheap tier.
The pattern: most production LLM calls go to a cheap-fast model; a minority go to a flagship model when the cheap one fails an evaluation gate or the workload needs flagship-grade reasoning. Teams that route every call to a flagship model often spend far more than they need to.
Prompt caching. Both vendors offer prompt prefix caching. If your prompts have a stable system prompt or shared context (RAG, few-shot examples), caching can cut the input token cost of the cached portion substantially. The discount and any cache fees differ by vendor, so check each vendor's documentation. Usually worth wiring up.
For more detail on the model-by-model cost trade-offs, see OpenAI vs Anthropic for B2B SaaS automation.
#Compute costs
Where the automation runs. Three common shapes:
- Serverless functions (Vercel, AWS Lambda, Cloudflare Workers): pay-per-execution, no idle cost. Best for low-to-moderate volume automations with bursty traffic. Typical monthly cost: $5–$80 for moderate-volume automations.
- Long-running containers (Fly.io, Railway, AWS Fargate, plain VPS): flat monthly cost regardless of execution count. Best for sustained-traffic automations or workloads that don't fit serverless cold-start tolerance. Typical monthly cost: $20–$200 for a small container.
- Workflow platforms (n8n cloud, Zapier, Make): bundled with execution fees. n8n cloud started at
$24/month when this was written; self-hosted n8n costs only the hosting ($10–$30/month for a small server). Zapier / Make per-execution fees can dominate at volume.
For most B2B automations under 100k executions/day, serverless is the right shape. For workflows that need to maintain long-lived connections (websockets, polling-heavy integrations), a container is cleaner.
#Vector storage (for RAG workloads)
If your automation does retrieval-augmented generation, you need a vector store. Options, with approximate prices from April 2026 (check each vendor's pricing page for current plans):
- pgvector in your existing Postgres (Supabase, Neon): $0–$25/month additional cost. Fine for under ~1M vectors. Can become slow above that without careful indexing.
- Pinecone: $0 free tier, $70/month starter, more at scale. Fully managed, fast, opinionated about index types.
- Qdrant: $0 free tier on Qdrant Cloud, $25–$50/month starter. Open source if you self-host.
- Weaviate: $25–$100/month for managed; self-host on a $5–$20/month VPS.
- Chroma: usually self-hosted, ~$5–$20/month for the VPS.
For most automations: pgvector if you're already on Postgres and your vector count is under 1M. Pinecone or Qdrant if you cross that threshold or have specific perf requirements.
#Monitoring + observability
The line item teams skip in prototype and pay for in production. A realistic stack, with approximate prices from April 2026:
- Sentry for error monitoring: $0 free tier (5k events/month), $26/month for Team tier
- PostHog or Datadog for usage analytics + dashboards: $0–$45/month at moderate volume
- LangSmith or Langfuse for LLM-specific observability (prompt/response logging, eval traces): $0 free tier, $39–$199/month for paid tiers
- Better Uptime or equivalent for cron / endpoint monitoring: $0–$29/month
For a production-grade automation, monitoring lands at $20–$120/month all-in. That's the cost of being able to diagnose what went wrong when the automation produces weird output at 3 AM. Skipping it is the canonical false economy.
#Audit log storage
Needed for any automation that touches customer data, financial records, or regulated workloads. Whether the law requires it depends on your industry and location (this is not legal advice), but you need it operationally either way. When a customer complains that the automation did the wrong thing, you need to be able to prove what it did and why.
Approximate costs:
- Postgres audit log table (in your existing DB): $0 incremental cost; storage cost is negligible at moderate volume
- S3 / R2 for long-term retention of full prompt + response payloads: about $0.02/GB/month; usually $5–$20/month for moderate-volume automations
- Datadog logs or equivalent if you want unified search across application + audit logs: $30–$100/month at moderate volume
The right pattern is usually: structured audit log row in Postgres (timestamp, user, action, summary) + full payloads in S3 / R2 for retrieval when needed. Cheap, and enough for many teams. Check what your own compliance requirements call for.
#Hidden costs
The ones founders don't budget for:
Prompt iteration cost. When a prompt isn't working, you iterate. Each iteration involves running the prompt against an evaluation set (often 50–500 test cases) and comparing outputs. That's not free; running 500 evaluation cases on a flagship model can be $5–$20 per iteration. Across 20–50 iterations during an automation's lifetime, that's $100–$1,000 in eval-only LLM spend.
Budget: ~10% of expected production LLM spend, allocated to evaluation runs.
Fallback model spend. When the primary vendor hits a rate limit or returns 5xx, your automation falls over to the secondary vendor. Most of the time this is fine and rare. Occasionally the primary has a multi-hour outage and 100% of traffic flips to the secondary, which charges different prices. Budget for occasional spikes.
Compliance / audit prep. If your customer is enterprise and you'll be audited (SOC 2, HIPAA, etc.), the audit logging and reporting infrastructure adds engineering time and tooling cost. Not a monthly LLM spend line item, but a one-time workstream that can run to roughly $5–25k for the first audit, and less for later ones.
Drift management. LLM models change. The prompt that worked perfectly on one model version may behave differently on the next. Production automations need an ongoing eval discipline to catch drift; that's engineering time, not a vendor cost line item.
As a rough guide, plan for ~10–20% of LLM API spend going to these hidden costs over the lifetime of an automation.
#Realistic ranges by automation shape
| Shape | Monthly LLM spend | All-in monthly cost |
|---|---|---|
| Daily summary email (1–10 calls/day) | $1–$10 | $20–$50 (mostly monitoring) |
| Customer support triage (1k tickets/day) | $30–$150 | $80–$300 |
| Content moderation (100k items/day) | $200–$800 | $300–$1,000 |
| Sales enrichment (10k leads/day) | $50–$300 | $150–$500 |
| RAG over docs (5k queries/day) | $80–$400 | $150–$600 |
| Multi-step agent workflow (1k runs/day, 10 steps each) | $200–$1,500 | $400–$2,000 |
| High-volume real-time agent (50k+/day) | $1,000–$8,000 | $1,500–$12,000 |
These ranges are estimates built from April 2026 pricing, not quotes. They assume reasonable cost discipline: model routing, prompt caching, output constraints and monitoring in place. Without those, LLM spend can be much higher. Without monitoring, expect production incidents that cost more than the monitoring would have.
#How we approach cost discipline
When we build an automation, we set up cost controls from the start:
- Model routing layer that defaults to the cheap-fast model and escalates to flagship only when needed
- Prompt caching wired up from day 1
- Output constraints in every prompt (max_tokens, structured outputs, stop sequences)
- Daily and monthly spending limits with alerts as spend approaches them
- Hard kill-switch that can pause the automation if cost runs away (typically a feature flag)
- Cost-per-execution metric tracked in monitoring so we can see if a prompt change spiked the per-call cost
This goes in at the start of the build, not after the first surprising bill. It is the work that separates "we shipped an automation" from "we shipped an automation that's economically sustainable."
#Bottom line
Production AI automations in 2026 cost real money, but the costs are predictable when you build with discipline. The cost goes up when teams skip the boring infrastructure work (routing, caching, monitoring) in favor of speed. The cost stays bounded when the boring infrastructure work gets shipped in week 1.
Plan for roughly $200–$800/month for a moderate-volume automation, and check current vendor pricing before you fix a budget. Plan for the ramp from prototype (roughly $5–50/month) to production before shipping. Build the kill-switch before you need it.
For reference, our own automation projects start from $4,800 as one fixed price and take about two weeks. To talk through what a specific workflow would cost to run, book a free 20-minute call. To estimate the payback on a workflow first, use the free AI automation ROI calculator.
Common questions.
How much does it cost to run a typical B2B AI automation?
As a rough estimate built from provider pricing in April 2026, a single moderate-volume automation (~10k LLM calls per day) lands at about $200–$800/month all-in. LLM API spend is usually the largest share; infrastructure, monitoring, and vector storage make up the rest. Check current vendor pricing before you budget.
What's the most expensive line item?
LLM API calls, almost always. Within that, the most expensive sub-line is usually output tokens. OpenAI and Anthropic both charge several times more for output tokens than for input tokens, and many cost overruns come from prompts that produce longer outputs than necessary.
How do I cut LLM costs without hurting quality?
Three levers: (1) route routine work to a small, fast model instead of a flagship one; (2) cache prompt prefixes; (3) constrain output length. Together these often cut a large share of the cost without hurting quality.
What's the cost ramp from prototype to production?
Prototype costs are usually small, roughly $5–50/month (single-user volume, no monitoring, no fallbacks). Production costs for the same automation are often many times higher. The increase is mostly volume, monitoring, redundancy, and ops. Plan for that ramp before shipping.
Can I run AI automations on a flat monthly budget?
Yes, with discipline. Set a daily LLM spend cap with a hard kill-switch. Use deterministic models (temperature=0 where appropriate) for repeatable workloads. Pre-approve any prompt change that increases per-execution cost. Teams that miss budget often lack these controls.
— Want help with this?
AI automation that gives your team hours back ↗
We find the repetitive work that costs your team the most time, then build the AI workflow automation that takes it over. One workflow at a time, each measured against the hours it saves.
— Keep reading
AI Automation
AI acceptable use policy template for small and mid-sized businesses
A free AI acceptable use policy template you can copy and adapt in an hour. Includes a one-page version for very small teams and a full policy covering approved tools, what data may go into AI, checking output, customer-facing AI, AI agents that take actions, meeting recorders, security and incident reporting.
Read post
AI Automation
How much does AI automation consulting cost in 2026?
Typical 2026 price ranges for AI automation consulting: audits, single automations, custom AI agents, implementation programs and monthly support. Plus the four pricing models, what moves the price, and the running costs people forget.
Read post
AI Automation
AI development cost in 2026: price ranges by project type
What AI development costs in 2026, by type of project: adding an AI feature, a chatbot over your documents, document processing, an AI agent, a custom machine learning model and an AI product MVP. Where the money goes, what moves the price, the ongoing costs, and how to spend less without regretting it.
Read post