Inference Cost per Task
In this article
- Price one model call class by class from the token counts its response reports.
- Add up every call a task makes, tool requests and retries included, and divide a workload's spend by the tasks that succeeded.
- Explain why a model that is five times pricier per token can cost less than five times as much per task it gets right.
- Choose among configurations on cost only after the quality bar and the time limit have removed the ones that fail.
- Terms defined here: input token, output token, cost per successful task, cached input token, cache write token.
Overview
A price sheet gives a model's price per million tokens, the word pieces it reads and writes. Your budget needs something else: what one customer conversation costs.
Brightline, a made-up home-internet provider, runs a support assistant on its website that answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. Its team compares two configurations, orbit-flash-3 at low effort and orbit-pro-3 at medium effort (made-up models with made-up prices of the kind providers publish; effort is a request setting for how much working text a model writes before it answers), called flash-low and pro-medium below. The pro model charges five times as much per token.
You will price one call from its token counts, turn calls into a cost per task and divide by the tasks that met the quality bar. That last number is the one to compare, and it is not five times. The quality bar and the time limit first decide which configurations may compete.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- What a call is billed for
- Pricing one call
- From one call to one task
- Cost per successful task
- Lines the simple sum leaves out
- Choosing on cost
- Common mistakes
- Sources
- Check yourself, 13 questions