'low']; } /** * Room for the thinking, on top of whatever the caller asked to have written. * * Even at low effort the reasoning costs a near-constant amount, and it is charged against * max_tokens. Measured on one section prompt across four budgets: * * budget 960 thinking ~800 -> 94 words, finish_reason "length" * budget 1600 thinking 855 -> 583 words, finish_reason "stop" * budget 2400 thinking 795 -> 606 words, finish_reason "stop" * budget 3600 thinking 785 -> 545 words, finish_reason "stop" * * The cost does not scale with the budget, so a flat reserve is the right shape. 900 rather * than 800 to leave the measurement some margin. */ public function tokenOverhead(): int { return 900; } }