Skip to content
mentoor

Price an AI feature

For engineers

Scenario lesson and practice set combining AI unit economics, Cost control, Pricing, plans and limits and AI business models. Completing it counts as evidence for every listed skill.

Price an AI feature from the cost of one accepted result, then test that cost against your heaviest users before you fix the price.

The case

Tallyline is a helpdesk product with 500 support seats. It wants to add Smart reply: the model drafts an answer to a ticket, and the agent edits and sends it. The plan is an add-on at $8 per seat per month, with about 300 drafts per seat, or 150,000 drafts a month.

All prices below are example prices for this lesson. Real prices change, so read the vendor's pricing page on the day you estimate.

Why it matters

An AI feature is different from normal software. Each use costs money, and the cost depends on how much text goes in and out. A feature that looks cheap per call can lose money at scale, and a flat price puts all of that risk on you.

How to do it

1. Read the price list. Models bill per million tokens, with separate rates for input, output and cached input. Output usually costs several times more than input. A batch option, where results arrive within hours, is cheaper again. Note the date you read it.

2. Measure one real call. Use the usage record, not a guess. A Smart reply call has 3,000 input tokens and 400 output tokens. On Model M ($3 input, $15 output per million) that is $0.009 plus $0.006, so $0.015.

3. Price the accepted result. A draft the agent throws away still cost money. If 80% are accepted, the cost per accepted draft is the call cost divided by 0.80. Add the human time: 20 seconds of review at $30 an hour is $0.167 per draft, far more than the model call. Quality of drafts matters more than a cheaper model.

4. Pull the cost levers, one at a time, each with a quality check.

  • Cache the stable part of the prompt. Put the 1,800-token style guide first and unchanged, so repeated calls read it at a lower price.
  • Route easy tickets to a small model, but only after an eval shows it passes.
  • Move work nobody waits on, such as nightly tagging, to batch.
  • Cap output and trim conversation history that grows every turn.

With caching and a 60/40 split between a small and a mid model, the average call falls from $0.015 to about $0.0057.

5. Test the price against heavy users. Averages hide the tail. Light seats use 100 drafts, typical seats 400, heavy seats 2,000. At a flat $8, a light seat earns $6.50, a typical seat $2 and a heavy seat loses $22. Overall margin is about 29%, not the 44% the plan assumed. A cap of 500 drafts keeps a heavy seat under its price.

6. Choose the pricing shape. A flat seat price leaves the cost risk with you. An allowance plus a small fee per extra draft moves risk to the customers who cause it. A per-resolved-ticket price follows value, but needs a clear definition of "resolved" and a way for both sides to check it.

7. Set a review date. Prices keep falling at a given capability level, but new reasoning modes use many more tokens per task. A model can retire, and its replacement can count the same text as more tokens. Re-run the estimate when anything changes.

Before and after

Before: "Model M costs $3 and $15 per million tokens, so Smart reply costs about $2,000 a month and $8 a seat is plenty."

After: "A call costs $0.015, an accepted draft $0.019 before review, and real usage is 190,000 drafts, so $2,850 a month against $4,000 of revenue, a 29% margin. Heavy seats lose $22 each, so we add a 500-draft allowance and a per-draft fee."

What goes wrong

  • Counting input only, or one price for all tokens, and understating cost by a third or more.
  • Pricing from the average seat, so a few heavy users erase the margin.
  • Choosing a model by price per token instead of cost per accepted task.
  • Assuming a lower price per token means a lower bill, when a new model or mode uses more tokens.
  • Promising "unlimited" use on a flat price.
  • Defining an outcome so loosely that either side can game it.

Steps

  1. Read the price list

    Skill: models-pricing

    Write down the input, output and cached-input price per million tokens for each model you might use. Pricing pages list them side by side. Note any batch price, any plan cap and the date you read the page, because prices change.

    For this case the example list is below. Cached reads cost a tenth of fresh input, and output costs five times input.

    Example prices for this lesson (USD per million tokens)
    Illustrative numbers, not a vendor quote
    ModelInputOutputCached input read
    Model S (small)$0.80$4$0.08
    Model M (mid)$3$15$0.30
  2. Measure one call

    Skill: api-cost

    Send a few real tickets and read the usage record. Count fresh input, cached input and output separately. One call here is 1,200 fresh tokens, 1,800 cached tokens and 400 output tokens, which costs about $0.0101 on Model M.

    Usage record from one call
    {  "input_tokens": 1200,  "cache_read_input_tokens": 1800,  "output_tokens": 400}
  3. Price an accepted result, not a call

    Skill: aipm-unit-economics

    Divide the cost of an attempt by the share of drafts agents accept, then add the human review time. At $0.015 per call, 80% accepted and 20 seconds of review at $30 an hour, an accepted draft costs about $0.23. Review is the biggest line, so a draft that needs less editing saves more than a cheaper model.

    Cost of one accepted draft
    LinePer attempt
    Inference$0.015
    Review (20 s at $30/h)$0.167
    Total per attempt$0.182
    Per accepted draft (80%)$0.227
  4. Pull the cost levers

    Skill: api-cost

    Cache the stable prefix, route easy tickets to a small model after an eval, and move work nobody waits on to batch. Each change gets a quality check first. Together, caching and routing bring the average draft from $0.015 to about $0.0057.

    Cost per draft after each lever
    SetupCost per draft
    Model M, no caching$0.0150
    Model M with cached prefix$0.0101
    60% Model S, 40% Model M, both cached$0.0057
  5. Test the price against heavy users

    Skill: aipm-unit-economics

    Averages hide the tail. Group users by usage and compute margin for each group. At a flat $8, light seats earn $6.50, typical seats $2 and heavy seats lose $22. A cap of 500 drafts keeps a capped heavy seat under the price.

    Smart reply usage by seat type (500 seats, $8 per seat per month)
    Seat typeSeatsDrafts per seat per monthCost at $0.015 per draft
    Light300100$1.50
    Typical150400$6.00
    Heavy502000$30.00
  6. Choose the pricing shape

    Skill: aibiz-models

    Pick who carries the cost risk. A flat seat price leaves it with you. An included allowance with a per-draft fee, or a per-resolution price, moves it to the customer who causes it. If customers use fewer seats because of the feature, add a usage component so revenue follows work done.

    Pricing options for Smart reply
    OptionWho carries usage riskMain weakness
    Flat $8 per seatTallylineHeavy seats lose money
    Allowance plus per-draft feeSharedBills vary month to month
    Per resolved ticketTallyline, until the outcome is definedDisputes over what counts as resolved
  7. Set a review date

    Skill: models-pricing

    Prices fall, new tiers appear and models retire. Put a review date in the cost plan, and re-run the estimate whenever a notice arrives. A new model can change tokens per task even when the price per token stays the same.

Skills this scenario uses

Where to study