← Back to article

Equation 1 · Building on Frontier Model APIs: Effort, Context, Caching, and Failure Handling

What does this equation mean?

creq=cin (tfresh+α tcached)+creason treason+cout tout,c_{\mathrm{req}} = c_{\mathrm{in}}\,(t_{\mathrm{fresh}} + \alpha\, t_{\mathrm{cached}}) + c_{\mathrm{reason}}\, t_{\mathrm{reason}} + c_{\mathrm{out}}\, t_{\mathrm{out}},

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

creqc_{\mathrm{req}}

Symbol c_req

crc_req is part of the quantity the equation computes from the expression on the right.

Understand this part →

cinc_{\mathrm{in}}

Symbol c_in

cic_in is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

tfresht_{\mathrm{fresh}}

Symbol t_fresh

tft_fresh is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

α\alpha

Symbol α

the discount applied to cached prefix tokens.

Understand this part →

tcachedt_{\mathrm{cached}}

Symbol t_cached

tct_cached is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

creasonc_{\mathrm{reason}}

Symbol c_reason

crc_reason is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

treasont_{\mathrm{reason}}

Symbol t_reason

trt_reason is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

coutc_{\mathrm{out}}

Symbol c_out

coc_out is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

toutt_{\mathrm{out}}

Symbol t_out

tot_out is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
addition

addition

Add the term after the plus sign to the term or group before it.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

How to interpret it

Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

Write the per-request cost as three separate terms rather than one blended figure: creq=cin (tfresh+α tcached)+creason treason+cout toutc_{\mathrm{req}} = c_{\mathrm{in}}\,(t_{\mathrm{fresh}} + \alpha\, t_{\mathrm{cached}}) + c_{\mathrm{reason}}\, t_{\mathrm{reason}} + c_{\mathrm{out}}\, t_{\mathrm{out}}. where α\alpha is the discount applied to cached prefix tokens. Three things become obvious the moment it is written this way.

Read the equation in its article →

Sources cited in the article section

These citations give research context. Read each source to check which claims it supports.

Return to Building on Frontier Model APIs: Effort, Context, Caching, and Failure Handling

See this formula across 1 published context →

Browse the mathematical compendium →