maxOutputTokens property

int maxOutputTokens
final

Maximum number of tokens that can be generated in the response. A token is approximately four characters. 100 tokens correspond to roughly 60-80 words.

Specify a lower value for shorter responses and a higher value for longer responses.

Range: [1, 1024]

Implementation

final int maxOutputTokens;