Own Weights

How to Price an AI Feature When Your LLM Costs Vary per Call

How to price AI features when your LLM cost changes per call: usage-based pricing, credits, flat rates, and the cost math to check each one.

Updated

To price an AI feature when your model cost changes per call, measure the cost per unit the customer buys, then price against the expensive end of normal use, not the average. Use usage pricing or credits when cost follows usage, and use a flat rate only when every call costs about the same.

Many teams price from the cost of one call, and one call tells you very little. Price from the spread of real calls: the typical one, the heavy tail, and the worst case you allow.

How do you price an AI feature when the cost changes per call?

Work through five steps.

  1. Pick the unit the customer buys. A summary, a reviewed contract, a drafted reply, a classified record. Customers buy outcomes, not tokens.
  2. Measure cost per unit from real traffic. Include retries, long inputs, tool calls and failed attempts. Count input and output tokens separately, since output tokens cost more per token.
  3. Look at the tail. Check the 95th or 99th percentile cost per unit. A few heavy users often make most of the bill, and an average hides them.
  4. Set the price so the tail still clears your target gross margin. Then check that the typical customer still sees a fair price. If you are not sure what margin to aim for, the AI gross margins guide explains why API-heavy products keep less per dollar.
  5. Cap what you cannot price. Set a maximum input length, an output limit, or a credit cost that rises with document size.

Hypothetical example, with round numbers. A summary feature costs $0.02 on average, but a long document sometimes costs $0.20. A flat $0.10 per summary looks fine on average, yet the long documents eat most of the margin. Charge 2 credits for documents over 20 pages and cap the input length, and the tail stops setting your margin.

Usage-based pricing or credits for AI features?

Usage-based pricing charges a fixed amount per unit: per document, per 1,000 records, per report. Your revenue follows your cost, but the bill is hard to forecast. Customers who cannot forecast spend will ration the feature.

Credits fix the forecasting problem and give you one meter across several features. Each action costs a set number of credits, based on its measured cost. A customer buys a pool of credits and sees the balance drop as they work.

Credits go wrong when the conversion is hidden. Show how many credits each action costs before the user clicks it, and state the rollover and expiry rules on the pricing page.

How do you pass LLM costs to customers without surprises?

Passing through the raw model bill rarely sells. Buyers pay for your product, not your token count. Many teams fold the AI cost into the plan price, set a monthly allowance, and sell extra usage as credits.

Tell the customer where they stand before they hit the limit. Show usage inside the product, not only on the invoice, and warn early enough that they can slow down or buy more.

Model prices also move, so do not hard-code them into your plan math without a review date. For Claude, list prices are $4 per million input tokens and $20 per million output tokens for Opus, and $0.10 input and $0.50 output for Haiku, for prompts up to 100K tokens. Anthropic’s Batch API is half price. If a feature can wait, batch processing can cut cost per unit, and the batch API vs real-time guide covers when that trade is worth it. For other vendors, check their current pricing page.

Why does a flat-rate AI feature lose money?

A flat rate works when cost per customer is bounded. AI features break that assumption. A hypothetical heavy user pastes hundreds of pages a day, and a light user asks a few short questions a week. A flat price charges them the same, so the heavy user costs you far more than they pay. Retries, agent loops and long chat histories make it worse, because one user can trigger many calls.

The cost attribution guide shows how to track cost by feature and by customer, so you can see which accounts drive the bill before the invoice arrives.

A flat rate can still work if the feature has a hard usage cap, the calls are short and similar in size, or the flat price sits on a plan with an allowance and an upgrade path. Otherwise, a flat rate is the wrong model.

How do you price an AI product from token costs?

Convert tokens to dollars per unit first. Multiply input tokens by the input price, multiply output tokens by the output price, and add the two. Then compare your target price with that cost to see what margin you keep.

Hypothetical example, with round numbers. A task uses 2,000 input tokens and 500 output tokens. On Haiku at list price, that is 2,000 tokens at $0.10 per million plus 500 tokens at $0.50 per million, or $0.00045 per call. On Opus at list price, the same task is $0.018 per call. These figures describe this made-up task only. Your token counts will differ, so measure them.

Count tokens with the tokenizer of the model you will actually run, because the same text counts differently across models. Training a model on one task can lower cost per unit a lot. On our own exam of 510 commercial contracts, measured at list price on 102 held-out contracts, our Accuracy tier was priced at $4.50 per 1,000 documents, Claude Haiku at $4.95, and Claude Opus at $154.49. Claude took that exam with one prompt, no examples and no task training. Our models were fine-tuned for it. Our Accuracy model scored 0.717 to Claude Opus’s 0.635, but only on that task. That shows what training for one task does. It is not legal advice, and it does not mean our model beats Claude at everything.

A trained model pays off only with a stable, high-volume task. At low volume, a hosted API is often cheaper, because you pay for nothing you do not use. The per-seat vs usage pricing guide compares pricing models if you are still deciding how to charge.

If you want to know what one AI feature costs per unit, start with the free AI cost audit. It maps the AI calls in your code and estimates their cost on your own machine. For the pricing math itself, book a call and bring your numbers. You can also see more at Own Weights.

Questions

how to price AI features

Set the price from the measured cost per unit the customer buys, not from one call. Check that the typical customer still sees a fair price after the heavy users are covered. Recheck the numbers whenever your usage mix or model prices change.

usage based pricing for ai features

Usage pricing charges a fixed amount per unit, such as per document or per 1,000 records, so revenue moves with your cost. Customers with unpredictable bills may ration the feature, so add a visible balance or a monthly allowance if your buyers need to forecast spend.

passing llm costs to customers

Passing the raw model bill through rarely sells, because buyers pay for the outcome and not the token count. Many teams build the AI cost into the plan, add an allowance, and sell extra usage on top. Show usage inside the product so nobody learns about an overage from an invoice.

flat rate ai feature losing money

A flat rate loses money when a few customers use far more calls, tokens or retries than everyone else. The fix is a hard cap, a fair-use limit, or a plan with an upgrade path. If cost per user is wildly uneven, a flat rate is the wrong model for that feature.

ai credits pricing model saas

Give each AI action a credit cost based on its measured model cost, sell credits as packs or plan allowances, and show the balance in the product. Decide on expiry and rollover before launch, since both change your margin and how the price feels to customers.