onema
AI solutions
MVP
Web development
Mobile apps
UX/UI design
Branding
Find out your project cost
office@onema.ru
Questions and suggestions
Get a cost estimate
  • »
  • »
  • »
  • »

Three levels of AI assistant: how not to go broke on tokens

A common mistake with AI assistants is running every request through an LLM. It works while there are few users; then the token bill grows with traffic. We break down a three-level pipeline where the model receives only the requests that genuinely need it — on a live project.
Nikolay S.
CTO at onema
Three levels of AI assistant: how not to go broke on tokens — article illustration by onema
Where the token bill comes from
Tokens are the units a model uses to count text: you pay for every request and every response. A ‘brute-force’ assistant is one where any user question, even ‘what are your opening hours?’, gets sent straight to the model.

Let's do the maths using public list prices as of November 2026. A request with context is roughly 2,000 input tokens and 500 output tokens. With Anthropic's Claude Opus 5.5 ($4 / $20 per million input / output tokens) that's about $0.018; with OpenAI's gpt-6.2-astra ($8 / $40), about $0.036. A thousand requests a day comes to $540–1,080 a month for the model alone. If half of the requests are ‘opening hours’, ‘delivery’ and ‘where's my order’, half of that sum goes on paying the model to repeat your own FAQ.

It's not the model that makes an assistant expensive. It's an architecture in which the model is responsible for everything.

Level 1— answers without a model


Some requests come up every day: opening hours, delivery, ‘where's my order’. They don't need a model — scenarios, a cache of ready answers and ordinary scripts are enough. In operation this level is almost free: no tokens, you only pay for the server. And it doesn't wait for generation: in Sigma.AI a standard scenario returns a selection in up to 6 seconds, while full generation takes 15–20.

Level 2— a model working with your data


More complex requests — ‘find an option for my task’ — go to the LLM, but not a ‘bare’ one: they go to a RAG pipeline, where the assistant first finds the answer in your knowledge base and only then has the model phrase it (what RAG and LLM are). Tokens are spent, but on meaningful work rather than repeating the FAQ.

Level 3— an agent that takes action


The top level is an AI agent: it doesn't just answer, it acts — selecting products, building a basket, submitting a request. These are the most expensive requests. The agent works in a loop: think, call a tool, read the result, think again — and every step costs tokens again. According to Anthropic (June 2025), agents use about 4 times as many tokens as an ordinary chat, and multi-agent systems about 15 times as many. Reasoning models have a further hidden cost: reasoning tokens aren't visible in the response but are billed as output tokens (as described in OpenAI's documentation).

That's why an agent in production has two mandatory limits: a step limit and a per-task budget. Stopping and handing the task to a human is cheaper than spinning the loop. The point of the ladder is that only what genuinely needs an agent reaches the agent.
The full ladder
User request → router.
  • Standard request → level 1: scenarios and cache, no tokens.
  • Data question → level 2: RAG + LLM.
  • Action task → level 3: An AI agent with a step limit.

The higher the level, the more expensive the request and the less often it's needed.

The levels here are the route of a single request. In the cost guide and calculator, ‘pipeline level’ means the scale of the project: the most complex route required. Building a level 1 pipeline starts at about $3,700 (as of November 2026), while a single request along this route is almost free in operation. These are different bills: one-off and monthly.

What it looks like on a live project


In Sigma.AI, an assistant for the Sigma.Market grocery marketplace, the ladder is custom-built around the shop's needs, but the principle is the same: the model only gets what can't be solved without it.
  • Level 1 — deterministic scenarios: selections, quizzes, dishes from the catalogue, recipe search by ingredients. Up to 6 seconds and zero tokens.
  • Level 2 — cache: popular recipes such as borscht or pasta are served in about 4 seconds, also without tokens.
  • Level 3 — full generation for new, non-standard requests: 15–20 seconds on our own local model with our own embedding. Requests run in parallel, with no queue.

The pipeline's job is to ensure that only new, non-standard requests reach generation. External models aren't ruled out entirely: Gemini and OpenAI are connected for specific scenarios via orchestration in n8n — tokens are paid for only there. After inference optimisation, the entire AI pipeline runs on a separate 4 CPU / 8 GB server, isolated from the platform. The user gets 3–5 dishes with ingredients that are in stock and a one-tap basket. Details in the Sigma.AI case study.
What follows from this
If someone is selling you an assistant ‘on GPT in a week’, ask what happens to standard requests. If the answer is ‘they go to the model too’, you're paying the model to repeat your own FAQ. The right question to ask a development partner isn't ‘which model?’ but ‘how is a request routed?’. That's where we start — with an audit of tasks and data, not with choosing a model (service page: AI solution development).

A real-world example

FAQs

Cost calculation
Tell us where your product has hit a wall, in the estimate form
After the audit, we'll tell you what to migrate, what to keep and how much it costs
More articles