Agent cost calculator
How many AI agents fit on one GPU server and what each one costs. The map shows what breaks first.
One server with 8x B300 running DeepSeek V4.1 Flash. Every agent is guaranteed 40 tok/s (p5) and a first token in under 5 s (p95). GPU cost only, no margin and no ops. Updated .
always on, 10 calls an hour, context 20k to 64k
- agents per server
- 20,000measured: 20,000 passed, 24,000 failed
- GPU cost per agent
- $1.46 a month8 GPUs x $5.00 x 730 h = $29,200, split over the agents
- breaks first
- GPU memoryContexts stop fitting in GPU memory. Calls queue while contexts load back from RAM.
- OpenRouter price
- $1.87 cheapest
$7.89 medianSame agent, 313M tokens a month, if the endpoint keeps its context cached. Cheapest of 56: sail-research/fp4.
- $1 per agent per month The bright side of the line costs less. Thin lines are $10 and $100.
- prefill New prompt tokens arrive faster than the GPUs can read them. Time to first token passes 5 s.
- decode Too many answers in flight at once. The server writes at most 2,048 at a time, each at 40 tok/s.
- GPU memory Contexts stop fitting in GPU memory. Calls queue while contexts load back from RAM.
- The agent from the sliders. Click the map to move it.
One server with 8x B300, DeepSeek V4.1 Flash, 40 tok/s for every agent. GPU cost only. 1337mind.com/calc
Four agents on one server
| agent | per server | GPU cost, month | OpenRouter, month | breaks first |
|---|---|---|---|---|
| light agentalways on, 10 calls an hour, context 20k to 64k | 20,000 | $1.46 | $1.87 cheapest$7.89 median | GPU memory |
| coding agentone person coding with it 8 hours a day, context up to 200k | 7,270 | $4.01 | $5.73 cheapest$29.6 median | GPU memory |
| nonstop botsynthetic coding bot, never pauses, 143 calls an hour, context to 128k | 1,910 | $15.3 | $27.4 cheapest$126 median | prefill |
| backlog workerGitHub agent clearing a backlog, 254 calls an hour, context to 100k | 801 | $36.5 | $45.9 cheapest$213 median | prefill |
At $5 per GPU-hour. OpenRouter list prices for DeepSeek V4.1 Flash on 2026-12-01, 56 endpoints, from openrouter.ai/api/v1/models/deepseek/deepseek-v4.1-flash-1017/endpoints. Endpoints go by their OpenRouter tag. Cached input is billed at each endpoint's cache-read price, with the same cache hit as on my server. That assumes the endpoint still has the agent's context cached at every call. When it does not, the whole prompt is billed as new input. This puts their price next to my GPU cost. My number has no margin and no ops in it.
Model against measurement
| test | measured, agents | model | model against test |
|---|---|---|---|
| nonstop bot, 128k context2026-10-28 | 2,160 | 1,910 | -11% |
| backlog worker2026-11-09 | between 750 and 800 | 801 | +3% |
| same worker, backlog cleared2026-11-11 | 1,337 ran inside the guarantee, no ceiling found | 2,520 | consistent |
| light agent, full scale2026-11-23 | 20,000 passed, 24,000 failed | 20,000 | set from this test |
| light agent, 1/8-scale test2026-11-13 | 29,200 passed, 36,000 failed | 20,000 | scaled test, overstated by 46% |
At full scale 20,000 light agents passed and 24,000 failed. At 20,000 their contexts filled 82% of GPU memory. At 24,000 they filled 100% and time to first token went to 117 s (p95). The ceiling is between 20,000 and 24,000. I count the level that passed, so the calculator treats 82% of GPU memory as usable for every agent type. The 1/8-scale test ran 1/8 of the agents, each 8 times faster, on 1/8 of the GPU memory. It did not reproduce loading contexts back from RAM at the full number of sessions.
What is in the numbers
- The ceilings in the table are measured. So are the size of GPU memory (1.06bn tokens of context) and the prefill limit (147k new tokens per second at a 65k average context).
- Everything between those points is a model. The coding agent is an estimate, no test ran that profile.
- An agent's context grows to its max, then gets compacted.
- RAM and NVMe hold contexts too, but in the full-scale test they added no capacity, so today a context has to stay in GPU memory.
- For agents that call rarely this may be too strict. I have not run them at full scale yet.
- An agent that calls rarely is cheaper on OpenRouter today. With the light agent's context, under about 8 calls an hour the cheapest endpoint costs less than my GPU cost, if it keeps the context cached that long.
- The limit of 2,048 answers at once is a setting of my server, tuned for long contexts. I have not tested a higher one, so agents with small contexts may fit more than the map shows.
- GPU cost is the whole server for 730 hours split over the agents it holds. Traffic is flat and the server is full.
- Real agents slow down when the server slows down. The model ignores that, so a real fleet fits a few more.