max_tokens value is not an explanation of those rules. Tokens are the units used to count model input or generation; the relevant offering defines which kinds of tokens each limit includes.
Gateway · Approved models and planning
Reasoning and answer budgets
Allowing a model to think must not accidentally consume all the room reserved for its answer.
Some model offerings use generation capacity for both internal reasoning and the visible answer. A limit that looks large enough for an answer can still be too small once reasoning is included.
Gateway must plan with the offering’s actual accounting rules. A generic
An offering with a compatible 8,000-token ceiling can satisfy this capacity calculation, subject to the other request checks. A 7,000-token ceiling cannot. Gateway must not quietly reduce the answer allowance or switch reasoning off to make the request fit.
This calculation allows capacity; it does not promise that the model will produce exactly 2,000 useful visible tokens.