max_tokens
Meaning and placement
infer
Max output tokens · a literal non-negative integer: a${{ }} reference is refused at parse (spec/02-verbs.md §infer).
In the same object: model · prompt · schema · system · temperature · thinking · vision
Schema source (use the pointer above)
In a source template
Excerpt fromtemplates/agent-loop.nika, source lines 57–66. This is a fragment, not a runnable workflow.
illustration
Templates containing this field
These are literal key occurrences in the source files, not an execution or conformance claim. How to instantiate a template.
Contract and implementation
This page projects the named specification revision. Check released engine status and the validation workflow before running a file. An optional field is not evidence that every engine supports every value. Canonical identity:language:word:max_tokens. Spec revision: 5c40ba456c53.
How documentation stays connected.