Investing
Output price from the input multiple
Most providers quote the output rate as a multiple of the input rate. Multiplying by the multiple gives the output price in the same per-million units.
Last updated
The Formula
output price = input price x output multiple
Most providers quote the output rate as a multiple of the input rate. Multiplying by the multiple gives the output price in the same per-million units.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| p_in | Input price | currency | Cost per million prompt tokens. |
| m | Output multiple | multiplier | How many times the input rate output costs. |
| p_out | Output price | currency | Cost per million completion tokens. |
What Each Symbol Means
p_incurrency
Input price
Cost per million prompt tokens.
mmultiplier
Output multiple
How many times the input rate output costs.
p_outcurrency
Output price
Cost per million completion tokens.
See It Worked With Real Numbers
A formula on its own does not tell you which number goes where. The how to calculate ai api costs page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.
Where This Formula Appears
This equation is the working core of How To Calculate AI API Costs, filed under Finance. Every number the guide produces comes from substituting into this one line.
Common Questions
What is the formula for Output price from the input multiple?
The formula for Output price from the input multiple is output price = input price x output multiple. Most providers quote the output rate as a multiple of the input rate. Multiplying by the multiple gives the output price in the same per-million units.
What does each symbol in Output price from the input multiple stand for?
p_in is input price; m is output multiple; p_out is output price.
What units should I use with Output price from the input multiple?
Substitute p_in in money (any currency, as long as every money input uses the same one), m in multiplier, p_out in money (any currency, as long as every money input uses the same one). Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.
What is a common mistake when using Output price from the input multiple?
Using the input price for the output side. Output is commonly two to five times the input price, so using one rate for both understates the bill by however large the multiple is.