Rate limits & usage
LoopLlama meters on workflow steps rather than raw requests. Understanding how steps are counted helps you predict cost and stay within your plan.
What counts as a step#
A step is one reasoning turn by one agent — typically a single model call plus any tool invocations it triggers. A run with a three-agent crew consumes three steps. Each step records its own input and output tokens, which roll up onto the run and into your monthly usage.
Included steps by plan#
| Plan | Included steps | Trace retention |
|---|---|---|
| Developer | 10,000 / month | 7 days |
| Pro | 50,000 / month | 30 days |
| Business | 2,000,000 / month | 90 days |
| Enterprise | Custom / volume | Custom |
Beyond your included steps, usage is billed at your plan's overage rate. See Pricing for current per-step rates and seat limits.
Hard caps#
Set a hard cap in your dashboard to stop runs once you hit a monthly step budget — useful for preventing surprise overage on automated pipelines. When the cap is reached, new runs are rejected until the next billing period or until you raise the cap.
Tracking usage#
Each terminal run emits a usage event recording its steps and tokens. Your dashboard aggregates these into a rolling 30-day view, broken down by workflow. To monitor usage programmatically, sum the total_steps, tokens_in, and tokens_out fields returned on each run.
// Roll up steps across recent runs for a workflow
const { data: runs } = await fetch(
`https://api.loopllama.ai/v1/workflows/${workflowId}/runs`,
{ headers: { Authorization: `Bearer ${process.env.LOOPLLAMA_API_KEY}` } },
).then((r) => r.json());
const steps = runs.reduce((sum, r) => sum + r.total_steps, 0);
const tokens = runs.reduce((sum, r) => sum + r.tokens_in + r.tokens_out, 0);Best practices#
- Keep crews as small as the task allows — every extra agent is an extra step on every run.
- Cache or deduplicate inputs upstream so you don't trigger identical runs.
- Use per-agent
modeloverrides to route cheap steps to a smaller model and reserve larger models for the steps that need them.