AIO Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIO. - OpenRouter AI >

AIO Commands

AIO.SetMaxTok

Previous Top Next


MiniRobotLanguage (MRL)

 

AIO.SetMaxTok

 

Description

Sets the maximum number of tokens to generate.

 

Syntax

AIO.SetMaxTok|$$TOKENS

 

Parameters

$$TOKENS

Maximum token count (1 to model limit, default 4096)

 

Example

Sets the maximum tokens to generate to 2048:

AIO.SetMaxTok|2048

 

See Also

AIO.SetModel

AIO.SetTemp

AIO.SetTopP

 

Remarks

One token is roughly 4 characters for English text.

Input + output cannot exceed model's context window.

GPT-4o: 128k context, 4k-16k output depending on model variant.