Module: 3/5
Lesson: 7/7
Exercises:
Module 3 | Lesson 6

Lesson 6: Cost and Rate Limits — The Bill at the End of the Month

A Rough Cost Estimation Framework

Do this calculation before you deploy a workflow:

  1. Estimate the system prompt size: Count the words in your system prompt. Multiply by 1.35 to get tokens (rough conversion).

  2. Estimate average input data size: How many tokens of actual input data does each workflow run send? (Emails: ~300 tokens each; weather data: ~50 tokens; API responses: varies. Check your workflow logs.)

  3. Estimate average output size: How many tokens of output does the AI produce? (2-3 sentence summary: ~50 tokens; JSON response: ~80 tokens; longer analysis: ~200 tokens.)

  4. Calculate tokens per run: system prompt tokens + average input tokens + average output tokens = tokens per run.

  5. Calculate runs per month: estimate how many times the workflow runs per month.

  6. Calculate total tokens per month: tokens per run × runs per month = total tokens per month.

  7. Look up pricing: input tokens × input price + output tokens × output price = total cost per month.

Example: Inbox Triage workflow

Trivial.

Now scale that to 10,000 emails per month: - Tokens per run: 600 - Total tokens: 600 × 10,000 = 6 million - Cost: (5m × $0.80 + 1m × $4) / 1m = ~$8.00 per month

Still affordable.

But if you used Claude 3.5 Sonnet instead of Haiku: - (5m × $3 + 1m × $15) / 1m = $30 per month

Suddenly it matters.

🔒

This lesson is premium

Get full access to AI Workflows — all modules, all lessons, lifetime access.

Already purchased? Sign in to restore access.