Equation 6 · Actually Building with the Grok API
What does this equation mean?
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 a bound: one expression must stay on the indicated side of the other 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
Symbol n_i
is an argument of the function-like quantity on the left; its role is set by that function’s stated inputs.
Symbol n_o
is an argument of the function-like quantity on the left; its role is set by that function’s stated inputs.
Symbol p_o^L
is one of the signed contributions combined to compute the quantity on the left.
Symbol T
T is one of the signed contributions combined to compute the quantity on the left.
Symbol p_i^H
is one of the signed contributions combined to compute the quantity on the left.
Symbol p_o^H
is one of the signed contributions combined to compute the quantity on the left.
=
The expressions on both sides represent the same quantity under the stated assumptions.
See an illustrated explanation →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.
superscript
A raised number can be a power. When it is a label or bound, it selects a case or the upper limit of a sum; the formula’s structure distinguishes these uses.
See an illustrated explanation →How to interpret it
Read it with the definitions, units, and assumptions supplied by the article.
What the article says around this equation
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 and output tokens against a threshold T = 200{,}000 , with low-tier prices , and high-tier prices , : . For…
Read the full surrounding passage
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 and output tokens against a threshold T = 200{,}000 , with low-tier prices , and high-tier prices , : . For grok-4.6 that means a 199,999-token prompt is billed at two dollars per million input tokens, and a 200,001-token prompt — one token longer — is billed at four dollars per million input tokens and twelve dollars per million output tokens for the whole request, not a blended rate [ 1 ] . A retrieval-augmented pipeline that occasionally pads a prompt with one extra chunk of context can cross that line without any change in what the request is actually asking for, and the bill for that request roughly doubles. This is a discontinuity, not a slope, and it is the kind of detail a cost estimate built from a single “price per million tokens” figure will get wrong in exactly the requests that matter most, because long-context requests are disproportionately the expensive ones to mis-price.
Sources cited in the surrounding passage
These citations give research context. Read each source to check which claims it supports.
Return to Actually Building with the Grok API