Skip to content

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\
outputCost no number (double) Gets the output token cost, or 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\
currency no string Gets the currency, taken from AgentPrism:Pricing:Currency.
source yes PricingSource Gets where the price came from.