All tools

Document search (RAG) cost calculator

Letting AI answer questions from your own documents has two costs: preparing the documents once, and each question after that. Work out both.

Your documents

Questions

One-time setup

$0.16

8,000,000 tokens of documents

Per month

$130.53

15,000 questions and updates

Per question

$0.0087

Search plus a written answer

Monthly, at wholesale price

$65.27

You save $65.27 a month

Questions

What is RAG?

Retrieval-augmented generation: your documents are split into passages and stored as embeddings. For each question, the most relevant passages are found and given to an AI model, which answers from them.

Why is the setup so cheap?

Embedding models cost far less per token than chat models, and each document is processed once. Most of the running cost comes from the answers, because each one sends several passages to the answering model.

How do I lower the cost per question?

Send fewer or shorter passages, use a cheaper model for simple questions, and cache the fixed instructions. Buying the tokens at wholesale price (50% off list price) halves the rest.

What isn't included?

Storing the embeddings (a vector database) and hosting your app. These are usually small next to the AI costs, but depend on your setup.

More free tools

Estimates from each provider's official list price on aitoken.trading/models, updated every 5 minutes. Your real bill depends on how you use each model. AI Token is not affiliated with the AI providers named.