Prompting & Interaction
Max Tokens
The upper limit you set on how long the AI's response can be.
Definition
Max tokens is a parameter you can set when using an AI API that caps the length of the generated response. This is useful for controlling costs, ensuring responses fit a particular format (like a short summary), or preventing the model from rambling. If a model hits the max token limit mid-sentence, the response will be cut off, so setting an appropriate limit for the task is important.
Related Terms
Heard enough terminology — ready to talk outcomes?
We translate AI concepts into measurable business results. No upfront fees — you pay only when independently verified results are delivered.
Disclaimer
This definition is provided for educational and informational purposes only. It represents a general explanation of a technical concept and does not constitute professional, technical, or investment advice. Artificial intelligence is a rapidly evolving field; terminology, techniques, and capabilities change frequently. Coaley Peak Ltd makes no warranty as to the accuracy, completeness, or currency of the information provided. Nothing on this page should be relied upon as the sole basis for commercial, technical, legal, or investment decisions without independent professional advice.
Document reference: ISO_webpage_knowledge-base_glossary_v1
Last modified: 29 March 2026
Knowledge Base·Prompting & Interaction·Max Tokens