An AI agent workflow does not have one fixed token cost. Each run can contain several model calls, and every call can use a different number of input and output tokens. Estimate the calls separately, add them for one run, then multiply by volume and add only the steps that retries actually repeat.
This guide calculates estimated model usage. It does not calculate your final invoice, subscription charge, credit balance, taxes, storage, external tools, or human review. Check those separately against your current plan and account records.
What counts as a model call in an AI agent workflow?
A model call happens whenever the workflow sends input to a model and receives generated output. One agent run may make a call to understand a brief, another to produce a draft, and a third to review the result. If the review sends revision instructions back to the model, that revision is another call.
For each call, record these four values:
- Model: the exact model used for that call.
- Input tokens: the prompt plus any system instructions, conversation history, retrieved documents, and tool results sent with the call.
- Output tokens: the tokens generated by the model.
- Call count: how many times that step runs in one completed workflow.
A tool action is not automatically a model call. A database lookup, web request, or file write may have its own cost, but it belongs in the model estimate only when content from that action is sent through a model. The safest source for token counts is the usage data returned by the service or recorded in your own logs.
How do you calculate the model cost of one call?
When rates are quoted per one million tokens, calculate input and output separately:
call cost =
(input tokens / 1,000,000 × input rate)
+ (output tokens / 1,000,000 × output rate)If a step makes the same call more than once, multiply the result by its call count. If two steps use different models, calculate each step with its own model rates before adding them.
Rates change, so keep the currency, pricing unit, model name, and date beside every estimate. The example below uses the public Starizzi pricing page, which displayed the following DeepSeek V3 rates when checked on November 20, 2026:
| Model | Input rate | Output rate | Pricing unit |
|---|---|---|---|
| DeepSeek V3 | USD 0.06 | USD 0.12 | Per 1 million tokens |
These rates are a dated input to the example, not a promise that the same rates will apply later. Recheck the pricing page before approving a budget.
How much does one three-step agent run cost?
Consider a hypothetical workflow that reads a brief, drafts an answer, and reviews the draft. Assume all three calls use DeepSeek V3 and each step runs once.
| Step | Calls per run | Input tokens | Output tokens | Estimated model cost |
|---|---|---|---|---|
| Read the brief | 1 | 12,000 | 2,000 | USD 0.00096 |
| Draft | 1 | 6,000 | 1,000 | USD 0.00048 |
| Review | 1 | 2,000 | 1,000 | USD 0.00024 |
| Total per completed run | 3 | 20,000 | 4,000 | USD 0.00168 |
The calculation is:
input = 20,000 / 1,000,000 × USD 0.06 = USD 0.00120
output = 4,000 / 1,000,000 × USD 0.12 = USD 0.00048
one completed run = USD 0.00120 + USD 0.00048
= USD 0.00168All token counts in this example are assumptions. They show the method, not measured usage from a Starizzi customer or a performance claim about this model.
What changes at 1,000 runs?
If all 1,000 runs use the same token counts and complete without retries, the estimated model usage is:
USD 0.00168 per run × 1,000 runs = USD 1.68Real workflows rarely produce the exact same token count every time. A short brief may reduce input. A long conversation history, retrieved documents, or verbose tool output may increase it. Build an initial estimate from a representative sample, then replace assumptions with observed usage as runs accumulate.
Do not multiply only the cost of the first call by monthly volume. The unit you need is the sum of all model calls made by one completed workflow.
How should retries be added?
A retry adds the calls that actually repeat. It does not automatically double the entire workflow. If 100 out of 1,000 runs repeat only the Review step, add 100 Review calls rather than 100 full runs.
In the example, one Review call uses 2,000 input tokens and 1,000 output tokens:
one Review retry =
(2,000 / 1,000,000 × USD 0.06)
+ (1,000 / 1,000,000 × USD 0.12)
= USD 0.00024
100 Review retries = 100 × USD 0.00024
= USD 0.024The adjusted estimate for 1,000 completed runs is therefore USD 1.704 in model usage: USD 1.68 for the base runs plus USD 0.024 for the repeated Review calls.
Track retries by reason when possible. A transient error that repeats the same call, a quality check that triggers a revision, and a user-requested rerun all increase usage differently. A retry rate alone is not enough unless you also know which steps repeat.
Copyable worksheet for your workflow
Copy this worksheet and fill one row for every model call. Use one pricing unit across the sheet. The formulas below assume rates per one million tokens.
AI agent workflow cost worksheet
Estimate date: [YYYY-MM-DD]
Currency: [USD or other]
Pricing unit: per 1,000,000 tokens
Expected completed runs: [number]
Step 1
Name: [step name]
Model: [exact model]
Calls per completed run: [number]
Input tokens per call: [number]
Output tokens per call: [number]
Input rate per 1M tokens: [amount]
Output rate per 1M tokens: [amount]
Expected extra calls from retries: [number]
Step cost per completed run =
calls per run ×
((input tokens / 1,000,000 × input rate)
+ (output tokens / 1,000,000 × output rate))
Base model usage =
sum of all step costs × expected completed runs
Retry model usage =
sum for each repeated step of
expected extra calls × cost per call
Estimated model usage total =
base model usage + retry model usageFor a workflow that routes tasks across several models, add a separate row whenever the model or rate changes. Do not average rates first. Pricing each call independently preserves the effect of routing a large prompt to one model and a short review to another.
Which numbers should you measure instead of guess?
A useful first estimate can begin with assumptions, but ongoing budgeting should replace them with observed values. Record at least:
- input and output tokens for each call;
- model and rate applied to that call;
- calls per completed workflow;
- which step retried and how many times;
- completed, failed, and cancelled runs separately;
- the date on which pricing was checked.
Use a median or another representative value for a typical-run forecast, then test a higher-usage case. For example, a workflow that occasionally retrieves a large document may need separate typical and high-input scenarios. One blended average can hide the small number of runs that drive most usage.
What is excluded from this model usage estimate?
The calculated total is only the cost produced by applying listed model input and output rates to the assumed token counts. Keep these categories separate:
| Category | Included here? | Where to verify it |
|---|---|---|
| Model input and output usage | Yes | Token logs and the current model rates. |
| Subscription, credits, limits, or billing rules | No | The current Starizzi pricing page and your account records. |
| Storage, retrieval, databases, and hosting | No | The provider or infrastructure bill for each service. |
| Paid search, browser, or external tool calls | No | The external tool's usage report and terms. |
| Engineering, operations, and human review | No | Your internal labor and operating budget. |
Do not treat the model usage estimate as an invoice forecast unless you have also verified how your plan applies credits, included usage, minimum charges, discounts, and taxes. Those rules are deliberately absent from the arithmetic here because they require current plan terms.
Use this five-step budgeting check
- List every model call in one completed workflow.
- Record the exact model, input tokens, output tokens, and call count for each step.
- Apply the model's dated input and output rates to each call.
- Multiply the full run cost by expected volume, then add only the steps repeated by retries.
- Reconcile the result with plan terms and non-model operating costs before approving the budget.
For current model rates, plan details, and the units used by Starizzi, check Starizzi pricing before you publish or approve an estimate.
