← All parts of this equation

Equation 6 · Part 10 · Actually Building with the Grok API

addition

Cost(ni,no)={ni piL+no poL,ni<Tni piH+no poH,ni≥T\text{Cost}(n_i, n_o) = \begin{cases} n_i\, p_i^{L} + n_o\, p_o^{L}, & n_i < T \\ n_i\, p_i^{H} + n_o\, p_o^{H}, & n_i \geq T \end{cases}
addition

What this part means

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

Its job in the formula

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

The passage around this formula

The pricing structure has a feature worth building a mental model around before it costs you money in production: it is not a marginal rate that blends smoothly as a request grows, it is a cliff. Every model’s documented price list carries two tiers — one for requests under 200,000 tokens, and a materially higher one, roughly double across the board, once a request reaches that threshold — and the higher rate applies to the entire request, not just the tokens past the line [ 1 ] . Written as a cost function of input tokens nin_i and output tokens non_o against a threshold T = 200{,}000 , with low-tier prices piLp_i^{L}, poLp_o^{L} and high-tier prices piHp_i^{H}, poHp_o^{H} : Cost(ni,no)={ni piL+no poL,ni<Tni piH+no poH,ni≥T\text{Cost}(n_i, n_o) = \begin{cases} n_i\, p_i^{L} + n_o\, p_o^{L}, & n_i < T \\ n_i\, p_i^{H} + n_o\, p_o^{H}, & n_i \geq T \end{cases}. For…

Read this part in the article →

Learn the underlying idea

Addition combines quantities; subtraction measures the signed difference between them. Parentheses show what is combined before the rest of the expression is evaluated.

Open the illustrated addition and subtraction in an equation guide →

Sources cited in the surrounding passage

These citations provide research context; check each source for the exact claim it supports.