Planning Capacity and Cost for Agentic AI Before You Go to Production
Tokens and concurrency matter more than request counts
Teams often ask: "How do I plan capacity for an agentic AI system before it goes to production?"
The usual answer for web apps is to count requests per second. That doesn't work well for agents. A single user task can turn into many model calls, many tool calls and a context window that grows on each loop, and it can run for minutes. So for agents, plan around tokens and concurrency.
This post covers a six-step approach for one agent, how to extend it to a fleet of 100+ agents, and a worked example you can adapt.
Where the limits live

An agent task passes through four capacity checkpoints, and any one of them can be the bottleneck:
1. Queue (Amazon SQS): absorbs bursts so you shed load instead of failing.
2. AgentCore Runtime: concurrent sessions, sized with Little's law at p99.
3. Amazon Bedrock: TPM (tokens per minute) and RPM (requests per minute) quotas for each model and Region.
4. Tool APIs (behind AgentCore Gateway): downstream rate limits, which are often the first thing to throttle.
Amazon CloudWatch ties it together with tokens per task, cost per outcome and throttle metrics.
Part 1: Planning for a single agent
1. Profile one task
Instrument a representative task end to end. For each completed task, record:
- Number of model calls and tool calls
- Input and output tokens
- Duration
- Cost
Agent behavior varies a lot from one task to the next, so use p50, p95 and p99 instead of averages. An average will hide the long tail that causes throttling.
2. Model the demand
Convert business demand into model load:
Peak tasks/min × model calls per task × tokens per call = tokens per minute (TPM)Peak tasks/min × model calls per task = requests per minute (RPM)
Add 30–50% headroom to cover retries and bursts.
3. Check quotas early
Before you build, find out which limits you'll run into:
- Amazon Bedrock TPM and RPM for each model and Region
- Amazon Bedrock AgentCore Runtime concurrent sessions
- AgentCore Gateway limits
- Downstream APIs your tools call, and their rate limits
Quota increases can take time, so request them weeks ahead. Cross-Region inference and Provisioned Throughput are also options.
4. Load test
Replay realistic tasks and push past peak to see what breaks first: model throttling, tool APIs or your latency SLOs.
5. Plan for failure
Build in guardrails from day one:
- Caps on loop count and tokens per task
- Exponential backoff with jitter
- Queues to absorb bursts
- Model fallbacks
6. Watch it in production
Track tokens per task and cost per outcome. These are the signals that tell you when to resize. Request volume alone won't.
Part 2: Planning for a fleet of 100+ agents
Once you have dozens or hundreds of agents, plan for the fleet, not for each agent on its own.
1. Tier the agents. Group them by criticality and traffic pattern (steady, bursty or batch). Size the top 10–20 carefully and put the long tail on shared capacity.
2. Add up load for each shared limit. Total the peak TPM and RPM for each model and Region, and the Runtime concurrent sessions for each account. Agents won't all peak at once, so plan for the combined peak (p95 of the summed load), not the sum of every agent's individual peak.
3. Isolate the blast radius. Put critical agents in separate accounts or on reserved capacity (Provisioned Throughput) so one noisy agent can't use up a shared quota.
4. Set per-agent budgets. Give each agent its own TPM, session and concurrency budget, and enforce it with throttling at the gateway.
5. Plan for agent-to-agent fan-out. One user request can trigger calls to 5–10 other agents. Include that multiplier in your model.
6. Run capacity like a platform. Keep a central dashboard, forecast every quarter, and require a capacity review before a new agent is onboarded.
Worked example: Claims Triage agent capacity planning
Step | Calculation | Result |
|---|---|---|
Demand | 500 tasks/hour ÷ 60 | ≈ 8.3 tasks/min |
Tokens per task | 6 model calls × ~4.5K tokens | 27K tokens |
Request load | 8.3 × 6 | ≈ 50 RPM |
Token load | 8.3 × 27K | ≈ 225K TPM |
With 1.5× headroom | 50 × 1.5 and 225K × 1.5 | ≈ 75 RPM and 340K TPM |
Compare these numbers with your Bedrock quotas for the model and Region you plan to use.
Concurrency (Little's law)
Concurrent sessions = arrival rate × task duration
· At p50 (2 min): 8.3/min × 2 ≈ 17 sessions
· At p99 (6 min): 8.3/min × 6 ≈ 50 sessions
Size Runtime session limits for p99, not p50.
Easy to miss
· Context grows on every loop. Later calls in a task use more tokens than earlier ones. Profile the actual growth instead of assuming a flat number per call.
· Quota burn down isn't 1:1. For some models, each output token counts as several tokens against your TPM quota, and quota is reserved up front based on max_tokens. Check the Bedrock token burndown docs for your model, and set max_tokens to a realistic value.
· Prompt caching lowers both token cost and latency when the same system prompt and tool definitions are sent repeatedly.
· Tool APIs often throttle before the model does. Your bottleneck may be a downstream system and not Bedrock.
· Handle bursts with a queue. Put Amazon SQS in front of the agent so it sheds load gracefully instead of failing.
Go-live checklist
· ☐ Profiled tokens, calls, duration and cost per task at p50, p95 and p99
· ☐ Calculated peak TPM, RPM and concurrent sessions, with headroom
· ☐ Confirmed or requested Bedrock, AgentCore and downstream API quotas
· ☐ Load tested at 2× peak
· ☐ Set per-task token and cost caps
· ☐ Defined SLOs for latency and task success rate
· ☐ Set up dashboards for tokens per task and cost per outcome
Bottom line: For agents, capacity planning means modeling tokens and concurrency per task, adding up load against each shared quota, and designing for failure before production, not after
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article