Agents
Why AI agents burn your budget and how to stop it
An agent that fixes tests by itself is a dream. The token bill at the end of the month is not. Here is why agents get expensive faster than people and what to do about it.
Sanzhar Abdurakhmanov2 min read
An agent is a loop of requests
A person asks and reads. An agent loops: think, call a tool, read the result, think again. On each turn it sends the model the whole history: instructions, files read, command output.
So agent cost grows faster than the number of steps: every next step is heavier than the previous one because the history is longer.
How to cut usage if you pay per token
- Cap steps and time per task
- Compress history: keep step summaries instead of full command output
- Do not let the agent read whole files when it needs one function
- Use a fast model for simple steps and a large one for hard steps
- Cache repeated instructions if your provider supports it
Or remove the meter
Everything above fights the billing model. If an agent is your main tool, change the billing model: with a stream subscription the number of tokens does not affect the price.
At Tenzo Cloud an agent can take any number of steps; only concurrent requests are limited. For an agent with helpers we recommend 4 streams.
An agent on the OpenAI SDK: only the address changes
from openai import OpenAI
client = OpenAI(base_url="https://tenzo-cloud.com/v1", api_key="tc-your-key")
stream = client.chat.completions.create(
model="glm-5.3",
messages=[{"role": "user", "content": "Hello!"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")Helpers and parallelism
Modern agents delegate subtasks to helpers: one searches, another writes tests, a third reviews code. Each helper is another stream of requests with its own context, so token usage multiplies.
In the Tenzo Cloud chat, helpers work within your streams: the assistant sees how many are free and delegates only when there is room. Parallel work speeds things up without growing the bill.
Signs an agent is wasting work
- It reads the same file several times
- The step history has the same command failing again and again
- A 10-minute human task takes the agent an hour
- It does not stop until interrupted
What it costs without a token bill
Qwen 3.8 Max
Operational1 stream 4+ streams, each 3 days $2.73₸1,150 $2.10₸880 7 days $5.33₸2,280 $4.10₸1,750 30 days $14.30₸6,180 $11₸4,750 GLM 5.3
Coming soon1 stream 4+ streams, each 3 days $2.86₸1,240 $2.20₸950 7 days $5.72₸2,470 $4.40₸1,900 30 days $15.73₸6,830 $12.10₸5,250
Price per stream. Volume discount: 2–3 streams pay 88%, 4 or more pay 77% of the single-stream price. Streams and periods stack. Prices sync from the dashboard automatically.
FAQ
Are open models good for agents?
Yes. We recommend GLM 5.3 for code and multi-step tasks and Qwen 3.8 Max for large projects.
How many streams does an agent need?
A sequential agent needs 1–2, an agent with parallel helpers 4.
What if the agent loops forever?
The bill does not grow because the price is fixed. The 120 requests a minute limit also guards against runaway loops.
See also
- SolutionsAn unlimited API for agents: pay for streams, not stepsAn API for agents with no token limits: Claude Code, Codex, OpenCode, LangChain and your own agents at a fixed price per stream. OpenAI-compatible address, no VPN, 3 hours free.Learn more
- BlogWhat a million tokens costs in 2026 and why a subscription often winsHow to estimate LLM API cost: tokens, context, agents and hidden repeats. When per-token billing is cheaper and when a fixed-price subscription saves you a lot.Learn more
- BlogParallel streams: what they are and how many you needA stream is one concurrent request to the model. How many streams you need for yourself, a team, an agent or a bot, what happens when you run short, and why streams beat per-token billing.Learn more
- IntegrationsLangChain without a token bill: ChatOpenAI with our modelsHow to connect LangChain to Qwen 3.8 Max and GLM 5.3 through ChatOpenAI with the Tenzo Cloud base_url: agents and RAG with no token bill and no VPN. Code and common errors.Learn more
Try it on your own work
Three free hours with every model, no card and no VPN. Connect Cursor, Claude Code or your own code in a minute.