Key Takeaways
- For 20,000 monthly conversations, the cost of aKnowledge Agent (RAG) ranges from €120 to €2,987 per month, depending on the model chosen: a ratio of approximately 1 to 25.
- The issue: separate billing for input and output. Generated tokens generally cost 3 to 6 times more than read tokens, and as much as 8 to 9 times more on certain models. “Thinking” models widen the gap even further: their reasoning—which is invisible to the user—is billed at the output rate.
- Without taking the prompt cache into account, a comparison overestimates the actual cost: in our simulation, the cache reduces the cost by about 35% based on the RAG architecture. However, it is still necessary to understand its rules: a minimum size threshold and a limited lifespan.
- The per-token pricing model alone is not enough to choose a solution: compliance with the AI Act, data sovereignty, and integration with the accounting system are just as important.
- There are five ways to keep costs down: routing based on complexity, caching, batch processing, optimized drivers, and regular reviews of rates.
As of June 1, 2026, all GitHub Copilot plans are billed on a pay-as-you-go basis. The flat-rate subscription offering unlimited access to AI is no longer available: each token is now counted and billed separately. Beyond being a mere footnote, this change marks a significant shift.
In 2025, generative AI was still considered an almost free resource that could be deployed without any real financial oversight. In 2026, the reality check was harsh: “AI for developers” budgets were exhausted in a matter of months, and finance departments realized—often too late—that the cost of tokens was rising faster than expected.
In this context, any company rolling out an AI agent or assistant must ask itself a simple question: Does the choice of model actually affect the cost? To answer this question with data rather than intuition, we simulated the actual cost of aKnowledge-Based AI Agent (RAG)across ten models, all with strictly identical usage volumes.
Input, Output, Reasoning: How Is a Token's Price Calculated?
To compare plans, you first need to know what you’re paying. All providers use two separate pricing structures:
- input tokens, that is, everything that is passed to the model: the question, the context, and the retrieved documents;
- output tokens, in other words, the text generated by the model.
Generating a response token by token requires more computational power than simply reading a prompt. The output is therefore always more computationally expensive than the input: generally 3 to 6 times more, and up to 8 or 9 times more for certain models.
For RAG (Retrieval-Augmented Generation) architectures, this asymmetry has a direct impact. Each request sends a large number of tokens as input (question, history, knowledge base excerpts) to obtain a response that is usually brief. The largest cost item is therefore not necessarily the one you might expect.
The Special Case of “Thinking” Models
This logic is reversed with so-called “thinking” or “reasoning” models. When a model reasons before formulating its response, the user sees none of that reasoning, but it is still billed: each reasoning token counts as an output token, at the full rate.
A response expected to be 100 words long may thus be preceded by several minutes of silent “reflection”—the equivalent of 2,000 words of hidden reasoning. The total output is therefore 2,100 words, not 100.
When used in conversation, caution is warranted. In our simulation (detailed below), approximately 2,000 tokens of hidden reasoning per RAG call are enough for the cost of the output to exceed that of the input: the balance shifts, and the input—which had been the primary cost—takes a back seat. In customer service, where an immediate response is expected, this type of in-depth reasoning is rarely justified. Moreover, some providers do not guarantee completely transparent reasoning, even when explicitly requested.
Simulation: from 1 to 25 for the same volume of conversations
To make an objective comparison, we defined a typical usage profile for a knowledge-based AI agent (RAG) and applied the same data volumes to ten models currently on the market:
- via RAG call: 10,000 tokens in and 250 tokens out;
- An average of 2.5 RAG calls per conversation;
- 3 additional requests per conversation, each with 1,000 input tokens and 40 output tokens;
- 20,000 conversations per month.
From one line to the next, only the model's price varies. Here are the results, based on the official prices from August 2026 converted at a rate of $1 = €0.92:
Simulation — 20,000 conversations per month
Monthly cost of an RAG chatbot based on the selected model
Based on exactly the same call volumes, official rates as of August 2026. The most expensive model costs nearly 25 times as much as the least expensive one.
GPT-5.4 nano
Gemini 3.5 Flash-Lite
Mistral Large 3
Claude Haiku 4.5
GPT-5Azure OpenAI, EU
Claude Sonnet5 Intro Price
Gemini 3.1 Pro
GPT-5.4
Claude Opus 4.8/ Opus 5
GPT-5.5
Assumptions: 10,000 input tokens + 250 output tokens per RAG call · 2.5 RAG calls per conversation · 3 follow-up requests (1,000 input tokens, 40 output tokens) · 20,000 conversations per month. Official rates, August 2026. The prompt cache is not factored into these figures and can reduce the actual bill by approximately 35%.