← Mathematical compendium

Published equation contexts

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}}

Why this formula appears here

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 full article-specific guide →

Read the representative guide

creqc_{\mathrm{req}}

Symbol c_req

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

Read this term in its guide →
cinc_{\mathrm{in}}

Symbol c_in

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

Read this term in its guide →
tfresht_{\mathrm{fresh}}

Symbol t_fresh

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

Read this term in its guide →
tcachedt_{\mathrm{cached}}

Symbol t_cached

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

Read this term in its guide →
creasonc_{\mathrm{reason}}

Symbol c_reason

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

Read this term in its guide →
treasont_{\mathrm{reason}}

Symbol t_reason

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

Read this term in its guide →
coutc_{\mathrm{out}}

Symbol c_out

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

Read this term in its guide →
toutt_{\mathrm{out}}

Symbol t_out

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

Read this term in its guide →

How to interpret it

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

Research cited beside this formula

Published contexts (1)

A symbol can carry a different meaning in another article. Each occurrence keeps its own guide and term definitions.

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}},

Equation 1 · Foundation Models

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

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions.

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.

Meanings in this article

  • α\alpha: the discount applied to cached prefix tokens.
Equation guide → · Article →