Skip to content
The AI Agent Factory

32.4 Price your own worker

Approved by
Panaversity ·
8 min read

In everyday life. Before you buy a car, you work out what it costs a month: fuel, insurance, repairs. Two cars with the same price can cost very different amounts to run.

What you will learn. A four-step method to price an AI worker's month, a worked example on four setups, and how big the saving of an open stack really is.

Why it matters. A foundation chosen without numbers is a guess. With this method you can price any worker in an hour, and defend the choice to a client or a manager.

The method

Step 1. Describe the workload. How many assignments a month, how many model calls each, and how many input and output tokens per call. Take these from your worker's real runs. For Brightline's AP worker in Part III, the transcripts give you all three.

Step 2. Count the tokens.

Input tokens = assignments × calls per assignment × input tokens per call Output tokens = assignments × calls per assignment × output tokens per call

For the medium worker: 300 × 10 × 12,000 = 36 million input tokens, and 300 × 10 × 1,000 = 3 million output tokens a month.

Step 3. Price each kind of work on its model. Split the tokens by the model that does the work, and multiply by that model's price per million tokens. Do the same for learning, which has its own token counts.

Step 4. Add the other lines: runtime, database and tools, and human review. Then subtract the total from what the worker earns. What is left is its contribution.

Worked example: the work itself

Prices per million tokens, checked on 29 November 2026. They change often; check them before you use them.

ModelInputOutput
Claude Haiku 5.5 (prompts up to 100K tokens; five times more above)$0.10$0.50
Claude Sonnet 5.5$2.00$10.00
Qwen 3.7 Flash (short prompts)$0.03$0.13
DeepSeek Flash (peak; off-peak $0.15 and $0.60)$0.30$1.20

On Claude, 95% of the tokens go to Haiku and 5% to Sonnet for hard cases:

  • Input: 36M × (0.95 × $0.10 + 0.05 × $2.00) = 36 × $0.195 = $7.02
  • Output: 3M × (0.95 × $0.50 + 0.05 × $10.00) = 3 × $0.975 = $2.93
  • Total: $9.95 a month

On economy models, 90% go to Qwen Flash and 10% to DeepSeek Flash:

  • Input: 36M × (0.90 × $0.03 + 0.10 × $0.30) = 36 × $0.057 = $2.05
  • Output: 3M × (0.90 × $0.13 + 0.10 × $1.20) = 3 × $0.237 = $0.71
  • Total: $2.76 a month

Same tokens, about a quarter of the price. Whether the economy models do the work as well is a separate question, and the only way to answer it is to test them on your golden set. The lab does that.

Four setups, one worker

The paper's cost model, model.ts, runs the whole method for every line. Here is the medium worker, earning $100 a month, on four setups:

Claude Managed AgentsPi Durable, Claude modelsPi Durable, economy modelsPi Durable, hybrid
Model calls for the work$9.95$9.95$2.76$7.79
Runtime$4.80$0.35$0.35$0.35
Database, tools, monitoring$1.20$1.80$1.80$1.80
Human review$18.00$18.00$18.00$18.00
Model calls for learning$21.76$21.61$7.03$7.66
Contribution$44.30$48.30$70.07$64.40

Figure 32.3. The medium worker's contribution on four setups. "Hybrid" sends most work to economy models and 5% to Sonnet.

Moving to Pi Durable with the same Claude models gains only $4.00: the runtime is cheaper, but the model bill does not move. The big gain comes from changing models.

The honest size of the saving

The table compares against Claude Managed Agents with dreaming on Sonnet. That is not the cheapest Claude setup. A careful team would also run reflection and most skill tests on Haiku. Against that cost-tuned Claude setup, the saving of Pi Durable with economy models falls to about $8 a month for this worker.

Where does a saving that lasts come from? In every comparison, two parts stay:

  • Model choice for ordinary work: about $7.18 a month.
  • Runtime and infrastructure: about $4.00 a month.

The rest depends on which models each side uses for learning, and that must be settled by testing quality, not by price. Against the cost-tuned Claude setup, that rest is negative: Claude's learning is $3.08 cheaper, so $7.18 + $4.00 − $3.08 leaves $8.10.

So the open stack is not a magic cut. For one medium worker, it may save $8 to $26 a month. For a firm with a thousand workers, it is $100,000 to $300,000 a year, and the freedom to move to the next cheaper model the day it appears. Whether that is worth the engineering is the question of 32.7.

The invariant. Price the worker before you choose its foundation, compare against the cheapest honest version of each side, and test quality before you trust a saving.

Check yourself. A light worker does 100 assignments a month, 4 calls each, 6,000 input tokens per call. How many input tokens is that a month? (100 × 4 × 6,000 = 2.4 million.)

Owner
Panaversity