Free AI tool · run cost per month
AI agent and RAG cost calculator.
Describe your agent: how many tasks a day, how many model calls each takes, the tokens per call, how much of the prompt is cached and how often calls are retried. Add the retrieval side: documents to embed, chunking, re-indexing, queries and reranking. The calculator prices it from the same dated list prices as our LLM pricing table and ranks what drives the bill.
Monthly run cost
$550.63
Claude Sonnet 5.5, 36,500 model calls a month, 25,000 chunks indexed. Prices checked on 18 October 2026.
What drives the cost
- Reasoning tokens$219.00 · 40%
- Model output$146.00 · 27%
- Model input (not cached)$116.80 · 21%
- Retrieved context sent to the model$30.42 · 6%
- Retries$24.53 · 4%
- Model input (cached)$8.76 · 2%
- Reranking$5.02 · 0.91%
- Re-indexing (embeddings)$0.096 · 0.02%
- Query embeddings$0.0061 · 0.00%
Model calls are priced like the LLM pricing table: uncached and cached input, output and reasoning tokens at the model's per-1M prices, plus the same again for the retry rate. Retrieved chunks are added to the model's input once per query. Reranking uses Voyage's formula: query tokens × chunks reranked, plus the tokens of those chunks. Vector database hosting, tool compute and cache write fees are not included.
Planning an AI agent? Talk to us about building it, with the cost per task designed in from the start.
Prices checked on 18 October 2026. Public list prices in US dollars per 1M tokens, copied by script from models.dev (MIT, list prices, cached-input prices, context windows) and LiteLLM model price file (MIT, batch api prices and reranker prices). Nothing is typed by hand. Confirm a price on the provider's own page before you commit to it; providers change prices and add surcharges (long prompts, regions, priority tiers) that a summary table cannot show.
Rules applied, and where we read them
- Voyage rerank billing: query tokens × documents + document tokens (checked 2026-10-18)
- OpenAI bills reasoning tokens as output tokens (checked 2026-10-18)
- Anthropic bills thinking tokens as output tokens (checked 2026-10-18)
- Google prices Gemini output "including thinking tokens" (checked 2026-10-18)
Where the money goes
Agents are billed per call, and calls multiply.
01
Steps multiply every token
An agent that plans, calls a tool and checks its work makes several model calls per task, and each call resends the instructions and the history so far. Input tokens per call times calls per task is often the largest line.
02
Caching is a large lever
The system prompt, tool definitions and earlier turns repeat across calls. When the provider serves them from its prompt cache they are billed at the cached price, so the cache hit rate can move the monthly total a long way. Try it in the calculator.
03
RAG costs little to index, more to read
Embedding a document set is often a small one-off cost. The recurring cost is the retrieved text sent to the model with every query, so the chunk size and the number of chunks you pass in often matter more than the embedding price.
FAQs · AI agent cost
AI agent and RAG costs · frequently asked questions
How the estimate is built, what it leaves out, and how to make it match your agent.
Next step
Planning an AI agent? Talk to us.
QalbIT designs and builds AI agents and retrieval into business software, with the model, caching and retrieval chosen against a cost per task you agree up front.
More free tools
More free tools
Each one opens on a worked example and shows its answer without a signup.
All free toolsLLM API pricing comparison and cost calculator
OpenAI, Claude, Gemini and more API prices per 1M tokens, with your monthly cost side by side.
LLM token counter and tokenizer
Count tokens for GPT, Claude and Gemini, see the split, and check the context window and cost.
AI crawler checker and robots.txt tester
Which AI crawlers your robots.txt lets in, GPTBot to PerplexityBot, with the line that decides each.
Robots.txt generator for AI crawlers
Build a robots.txt that blocks AI training crawlers, keeps AI search, or blocks every AI bot.
llms.txt generator and validator
Write an llms.txt from your site’s name, summary and key links, or check one against the proposal.
Software development cost calculator
A typical cost and timeline range for your project, by type, scope and features.