1337mind

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 median
Same agent, 313M tokens a month, if the endpoint keeps its context cached. Cheapest of 56: sail-research/fp4.
Where it breakscache hit 95.5%, 894 output tokens per call, $5.00 per GPU-hour
8k16k32k64k128k256k512k131030100300max context, tokensrequests per hourPREFILLDECODEGPU MEMORY$1 a month$10$100light agent $1.46
  • $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

agentper serverGPU cost, monthOpenRouter, monthbreaks first
light agentalways on, 10 calls an hour, context 20k to 64k20,000$1.46$1.87 cheapest$7.89 medianGPU memory
coding agentone person coding with it 8 hours a day, context up to 200k7,270$4.01$5.73 cheapest$29.6 medianGPU memory
nonstop botsynthetic coding bot, never pauses, 143 calls an hour, context to 128k1,910$15.3$27.4 cheapest$126 medianprefill
backlog workerGitHub agent clearing a backlog, 254 calls an hour, context to 100k801$36.5$45.9 cheapest$213 medianprefill

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

testmeasured, agentsmodelmodel against test
nonstop bot, 128k context2026-10-282,1601,910-11%
backlog worker2026-11-09between 750 and 800801+3%
same worker, backlog cleared2026-11-111,337 ran inside the guarantee, no ceiling found2,520consistent
light agent, full scale2026-11-2320,000 passed, 24,000 failed20,000set from this test
light agent, 1/8-scale test2026-11-1329,200 passed, 36,000 failed20,000scaled 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