Skip to content
Tracon

RunCost

← All HTTP schemas

Cost of a run. It is computed and written once when the run ends (a price snapshot) — a later change to the price list does not change past values.

Shape: object

Property Required Type Description Rules
inputCost no number (double) Gets the input token cost, or null when the price is unknown. pattern `^-?(?:0\
inputPricePerMillionTokens no number (double) Gets the input price, per million tokens, that produced InputCost. null when the price is unknown. pattern `^-?(?:0\
outputCost no number (double) Gets the output token cost, or null when the price is unknown. pattern `^-?(?:0\
outputPricePerMillionTokens no number (double) Gets the output price, per million tokens, that produced OutputCost. null when the price is unknown. pattern `^-?(?:0\
cachedInputCost no number (double) Gets the cost of the input tokens that were served from the prompt cache, or null when no cache read was priced. pattern `^-?(?:0\
cachedInputPricePerMillionTokens no number (double) Gets the cache-read price, per million tokens, that produced CachedInputCost. null when no cache rate was applied — either the cache rate is undefined, or the provider reported no cache read at all. pattern `^-?(?:0\
currency no string Gets the currency, taken from Tracon:Pricing:Currency.
source yes PricingSource Gets where the price came from.