Skip to content
mentoor

Topic 6 of 6 · 4 min read

Task, credit and token costs of a workflow

Goal: Estimate the monthly cost of a workflow from runs per day, steps per run and tokens per AI step.

A workflow has two kinds of cost, the platform's count of tasks or operations and the model's count of tokens, and you can estimate both before you switch it on. The multiplication is simple. The surprise comes from forgetting a number in it.

Check yourself · 1 of 3

A workflow runs 200 times a month and has 5 steps that each count as one task. How many tasks does it use?

Choose one answer

Why it matters

A workflow that costs little on ten test runs can cost a lot at 500 runs a day. Plans have monthly limits, and when you pass them the workflow either stops or moves you to a bigger plan. Check the current figures on each vendor's pricing page, because plans change. Zapier, Make, n8n and Power Automate each count usage in their own way.

The two meters

  1. Platform usage. Most platforms count units of work. In many, each action step that runs counts as a task, a credit or an operation, and some do not count the trigger or a filter that stops the run. Read how your platform counts. A run of 6 steps can use 6 units, not 1. Self-hosted n8n counts executions differently, but you then pay for the server.
  2. Model usage. Model providers charge per token, which is a small piece of text, roughly a short word or part of one. Input tokens (your prompt plus the pasted data) and output tokens (the reply) are priced separately, usually per million tokens. Output is often priced higher than input. See the provider's pricing page for exact rates.

The estimate

  1. Runs per day times days per month gives runs per month.
  2. Runs per month times counted steps per run gives platform units. Compare with your plan.
  3. For each AI step: input tokens plus output tokens per run, times runs per month. Multiply by the price.
  4. Add retries. If 5 percent of runs retry, add 5 percent.

Worked example

A support workflow handles 100 emails a day, 30 days a month, so 3,000 runs a month. It has 5 counted steps. That is 15,000 units a month. Check it against the plan. The AI step takes about 800 input tokens and 100 output tokens per email, which is 2.4 million input tokens and 0.3 million output tokens a month. Multiply each by that model's current price per million tokens.

Limits that are not money

APIs also have rate limits: a cap on requests or tokens per minute. A burst of 200 emails at once can hit it. Spread the load, add a short wait between runs or let the platform's retry handle it.

Ways to cut cost

  • Filter early, so junk never reaches counted or AI steps.
  • Use a smaller, cheaper model for sorting and extraction.
  • Send only the part of the text the step needs.
  • Batch items into one run where the platform allows it.

What goes wrong

  • Counting runs, not steps.
  • Forgetting that long pasted threads make input tokens large.
  • Ignoring retries and loops.
  • Estimating once and never checking the real usage page.

Examples

Estimate in four lines

Runs: 40 per day times 30 days is 1,200 a month. Counted steps: 4, so 4,800 units a month. AI step: 1,000 tokens in and 150 out per run, so 1.2 million in and 0.18 million out a month. Price both at the current rates and add 5 percent for retries.

The step that doubled the bill

A team added a step that pasted the whole email thread into the model, not just the last message. Input tokens per run went from 600 to 3,000. The workflow was unchanged otherwise, but the model bill rose five times.

Key points

  • A workflow has a platform meter (tasks, credits or operations) and a model meter (tokens).
  • Platform usage is usually runs times counted steps, so a run with many steps uses many units.
  • Models charge separately for input tokens and output tokens, often per million tokens.
  • Add retries and loops to the estimate, and check the real usage page after launch.
  • Filter early, send less text and use a cheaper model for simple sorting to cut cost.

Common mistakes

  • Multiplying by runs and forgetting that each step may count.
  • Ignoring output tokens, which can cost more per token than input.
  • Leaving retries and loops out of the estimate.
  • Assuming a plan's limits and prices stay the same, and not rechecking the pricing page.

Check yourself · 2 of 3

What are tokens, in the cost of an AI step?

Choose one answer

Check yourself · 3 of 3

A workflow sends every incoming email, including 40 percent auto-replies, to an AI step. What is the cheapest sensible change?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic