Short answer: Building a production AI agent typically costs €8,000–€35,000 in development, plus €50–€3,000/month to run. A fixed-scope build (one working agent, 2–4 weeks) starts around €8,000; a full production system with multi-tenancy, billing, and observability runs €18,000–€35,000. Monthly running costs for an early-stage product (under ~50 users) are usually €300–€400 — mostly LLM API calls, hosting, database, and observability. The single biggest variable is the model: a small model can be 4× (Claude Haiku 4.5) to 40× (GPT-6 Luna) cheaper than a top-tier model like Claude Opus 5.5 for the same workload. The numbers below come from four production agents I've built — BandiFinder, Pellemoda, RevAgent, and the H-Farm chatbot.
"How much will it cost?" is the first question every client asks. And the honest answer is: it depends enormously on what the agent does, how often it runs, and what model you use. Here's the full breakdown.
🧮 Want a number for your project? Try the interactive AI Agent Cost Calculator — pick your scope, model tier, and volume to get a build + monthly cost estimate.
How Much Do LLM API Calls Cost?
LLM tokens are your primary variable cost. The model you choose determines whether your agent costs $50/month or $5,000/month for the same workload.
Current Pricing (October 2026)
List prices from the official pricing pages, standard tier, verified 5 October 2026. They change often — check before you budget.
Anthropic Claude:
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Best For |
|---|---|---|---|
| Claude Fable 5.1 | $10.00 | $50.00 | Hardest reasoning and long agentic tasks |
| Claude Opus 5.5 | $4.00 | $20.00 | Complex reasoning, coding, agent orchestration |
| Claude Sonnet 5.5 | $2.00 | $10.00 | Best speed/intelligence ratio |
| Claude Haiku 4.5 | $1.00 | $5.00 | High-volume, low-latency tasks |
OpenAI GPT:
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Best For |
|---|---|---|---|
| GPT-6 Astra | $10.00 | $50.00 | Frontier tasks where quality beats cost |
| GPT-6.1 Sol | $2.00 | $10.00 | General-purpose default |
| GPT-6 Luna | $0.10 | $0.50 | Classification, routing, extraction, high volume |
Google Gemini:
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Best For |
|---|---|---|---|
| Gemini 3.1 Pro (preview) | $2.00 | $12.00 | Long-context reasoning (≤200K tokens) |
| Gemini 3.8 Flash | $0.75 → $1.50 | $3.75 → $7.50 | Fast general tasks (promo price until 1 Jan 2027) |
| Gemini 3.5 Flash-Lite | $0.30 | $2.50 | High-volume, low-cost |
Price per token isn't cost per task. Claude models from 4.7 onward use a tokenizer that produces roughly 30% more tokens for the same text, so compare providers on a sample of your real workload, not on the price sheet alone.
Real-World Token Consumption
Here's what each of my agents actually consumed per invocation, on the models they ran on when I built them (2024–2025 prices). Token counts are the useful part — multiply them by today's prices above:
| Agent | Task | Input Tokens | Output Tokens | Model | Cost/Call |
|---|---|---|---|---|---|
| RevAgent Risk | Score one deal | ~2,000 | ~500 | GPT-4.1-mini | ~$0.0016 |
| RevAgent Forecast | Daily pipeline forecast | ~8,000 | ~2,000 | GPT-4.1-mini | ~$0.0064 |
| RevAgent Chat | One user query | ~4,000 | ~1,000 | GPT-4.1-mini | ~$0.0032 |
| BandiFinder Match | Match one tender | ~3,000 | ~800 | GPT-4o-mini | ~$0.0009 |
| Pellemoda Forecast | One product forecast | ~1,500 | ~400 | GPT-4o-mini | ~$0.0005 |
| H-Farm Chatbot | One user question | ~2,000 | ~600 | GPT-4o-mini | ~$0.0007 |
Monthly LLM Costs by Scale
For a typical B2B SaaS with AI agents:
| Scale | Daily Agent Calls | Monthly LLM Cost (small models) | Monthly LLM Cost (Sonnet-tier) |
|---|---|---|---|
| MVP / Early | 100 | $5-15 | $50-150 |
| Growth (50 customers) | 2,000 | $50-200 | $500-2,000 |
| Scale (500 customers) | 20,000 | $400-1,500 | $4,000-15,000 |
| Enterprise (2,000+ customers) | 100,000+ | $2,000-8,000 | $20,000-80,000 |
The #1 cost optimization: Use the cheapest model that works. For RevAgent, I started with GPT-4o ($2.50/$10 per MTok at the time) and switched to GPT-4.1-mini ($0.40/$1.60) with 3 few-shot calibration examples. Same quality risk scores at 85% lower cost. The few-shot examples compensated for the smaller model's weaker zero-shot reasoning.
Prompt Caching Saves Up to 90–95%
Most providers offer prompt caching — the system prompt and few-shot examples are processed once and reused across calls. Since these are typically 60-80% of your input tokens, caching cuts input costs dramatically:
| Provider | Cache Write | Cache Read (Hit) | Savings |
|---|---|---|---|
| Anthropic | 1.25x (5-min cache) / 2x (1-hour) | 0.1x (Sonnet, Haiku), 0.05x (Opus) | ~90–95% on cached portion |
| OpenAI | 1.25x base price | 0.05x (Sol), 0.1x (Luna, Astra) | ~90–95% on cached portion |
For RevAgent's risk agent with a 1,500-token system prompt + 600-token few-shot examples, prompt caching saves ~$0.001 per call. At 20,000 calls/day, that's $600/month saved.
What Does AI Agent Infrastructure Cost?
Database: Supabase
| Tier | Monthly | What You Get |
|---|---|---|
| Free | $0 | 500MB DB, 50K MAUs, 1GB storage |
| Pro | $25 | 8GB DB, 100K MAUs, 100GB storage |
| Team | $599 | All Pro features + SAML SSO, priority support |
For most AI SaaS products, the Pro tier ($25/mo) is sufficient through your first $10K MRR. BandiFinder and Pellemoda both run on Pro.
Vector Store: Pinecone vs pgvector
If your agent needs RAG (retrieval), you need a vector store:
| Option | Monthly Cost | When to Use |
|---|---|---|
| Supabase pgvector | $0 (included in Pro) | <100K embeddings, simple RAG |
| Pinecone Starter | $0 (free) | Prototyping, <2GB storage |
| Pinecone Standard | $50+ | Production RAG, >100K embeddings |
My recommendation: Start with pgvector (free with Supabase). Switch to Pinecone only when you need dedicated vector search performance — usually at 500K+ embeddings or when query latency matters (<100ms).
BandiFinder uses Pinecone ($50/mo) because it searches 50K+ tender documents with sub-second latency. Pellemoda uses pgvector (free) because it only embeds ~5K product records.
Hosting: Vercel
| Tier | Monthly | What You Get |
|---|---|---|
| Hobby | $0 | Personal projects, 100GB bandwidth |
| Pro | $20/developer | Commercial use, 1TB bandwidth, Fluid Compute |
| Enterprise | Custom | SLA, advanced security, dedicated support |
Vercel Pro ($20/mo) handles most AI SaaS apps comfortably. Fluid Compute reuses function instances across concurrent requests, so your agent API endpoints handle high concurrency without traditional cold start issues.
Observability: LangSmith
| Tier | Monthly | Traces |
|---|---|---|
| Developer | $0 | 5K traces/mo |
| Plus | $39 | 50K traces/mo |
| Enterprise | Custom | Unlimited |
You need LangSmith (or equivalent) in production. Without it, debugging agent failures is blind guessing. The Plus tier ($39/mo) covers most early-stage products.
What's the Total Monthly Cost to Run an AI Agent?
Scenario 1: MVP / Side Project
A simple chatbot or single-agent tool.
| Component | Monthly Cost |
|---|---|
| LLM API (small model, ~100 calls/day) | $5 |
| Supabase Pro | $25 |
| Vercel Pro | $20 |
| LangSmith Developer | $0 |
| Domain | $1 |
| Total | ~$51/month |
Scenario 2: Early SaaS (0-50 customers)
Multi-agent product with RAG, billing, and integrations.
| Component | Monthly Cost |
|---|---|
| LLM API (small model, ~2K calls/day) | $100-200 |
| Supabase Pro | $25 |
| Pinecone Standard | $50 |
| Vercel Pro | $20 |
| LangSmith Plus | $39 |
| Stripe (2.9% + $0.30 per txn) | ~$50 |
| Domain + email | $5 |
| Total | ~$300-400/month |
Scenario 3: Scaling SaaS (50-500 customers)
Full-featured product with multiple agents, enterprise features.
| Component | Monthly Cost |
|---|---|
| LLM API (small model, ~20K calls/day) | $800-1,500 |
| Supabase Team | $599 |
| Pinecone Standard | $200 |
| Vercel Pro (3 developers) | $60 |
| LangSmith Plus | $39 |
| Stripe | ~$500 |
| Monitoring (Sentry, etc.) | $30 |
| Total | ~$2,200-3,000/month |
At Scenario 3 revenue levels ($50K+ MRR), these costs represent 4-6% of revenue — very healthy unit economics.
How Much Does It Cost to Build or Hire for an AI Agent?
Infrastructure is cheap. Development time is the real cost.
What It Takes to Build
| Component | Time (experienced dev) | Time (learning as you go) |
|---|---|---|
| Agent architecture + LangGraph setup | 1-2 weeks | 3-5 weeks |
| RAG pipeline (chunking, embedding, retrieval) | 1-2 weeks | 3-4 weeks |
| Tool integrations (CRM, email, etc.) | 1-2 weeks per integration | 2-4 weeks per integration |
| Frontend dashboard | 2-3 weeks | 4-6 weeks |
| Auth + multi-tenancy | 1 week | 2-3 weeks |
| Billing (Stripe) | 1 week | 2-3 weeks |
| Evaluation + testing | 1-2 weeks | 2-3 weeks |
| Deployment + CI/CD | 2-3 days | 1-2 weeks |
| Total MVP | 8-12 weeks | 20-30 weeks |
Hiring vs Building In-House
| Option | Cost | Timeline | When |
|---|---|---|---|
| Solo developer (you) | Your time | 8-30 weeks | You have the skills |
| Freelance AI developer | $100-250/hr | 8-12 weeks | Need expertise, budget-conscious |
| Agency | $50K-150K fixed | 10-16 weeks | Need full product, have budget |
| Full-time hire | $120K-200K/yr + equity | Ongoing | Long-term product development |
My recommendation: For MVP, hire a freelance AI developer who's shipped agents before. An experienced developer builds in 8-12 weeks what takes a learning developer 20-30 weeks. The $15K-40K you spend on a freelancer saves you 3-5 months of time-to-market.
How Do You Reduce AI Agent Costs?
Quick Wins (Implement First)
-
Use small models by default. Models like GPT-6 Luna, Claude Haiku 4.5 or Gemini Flash-Lite handle most agent tasks. Only use larger models for tasks where the small one measurably fails on your own test set.
-
Enable prompt caching. Structure prompts so the system prompt + few-shot examples are stable. Dynamic content goes at the end.
-
Cache embeddings. Track document hashes. Only re-embed on content change.
-
Batch operations. Anthropic and OpenAI offer 50% discounts on batch API calls. Use for non-real-time tasks (daily risk scans, weekly briefs).
Medium-Term Optimizations
-
Hybrid LLM + rules. Use deterministic code for anything that doesn't require reasoning. RevAgent's risk scoring uses LLMs only for email sentiment — everything else is rule-based.
-
Tiered model routing. Route simple queries to a small model (Luna, Haiku), complex queries to a mid-tier one (Sol, Sonnet). A small classifier ($0.0001/call) saves big on unnecessary large model calls.
-
Structured output reduces output tokens. JSON responses are 30-50% shorter than natural language. Less tokens = less cost.
-
RAG metadata filtering. Filter by metadata before vector search. Searching 1,000 relevant documents is cheaper and more accurate than searching 100,000.
Advanced Optimizations
-
Fine-tune a small model. If you have 10K+ examples of good agent output, fine-tuning a small model can match a much larger model's quality on your specific task at a fraction of the inference cost. Check current fine-tuning availability and prices per provider — they change more often than base model prices.
-
Self-hosted models (vLLM). At >$5K/month in API costs, self-hosting open-weight models (Llama, Mistral) on GPU instances becomes cost-effective. But the operational overhead is significant — only do this with dedicated ML ops capacity.
Is an AI Agent Worth It? The ROI Question
Cost only matters relative to value delivered. Here's how my clients think about it:
| Agent | Monthly Cost | Value Delivered |
|---|---|---|
| RevAgent | ~$800 LLM + $700 infra | Prevents ~20% deal slippage = $50K+/month for a mid-market SaaS |
| BandiFinder | ~$200 LLM + $100 infra | Finds tenders 10x faster than manual search = 40+ hours saved/month |
| Pellemoda | ~$50 LLM + $50 infra | Reduces stockouts by 30% = €15K+/month in recovered revenue |
If your agent costs $500/month and saves $5,000/month in labor or revenue, that's a 10x return. The cost conversation should always start with: "What's the cost of NOT having this agent?"