AI LLM endpoint params Google
AI LLM endpoint params Google object.
Top-K changes how the model selects tokens for output. A low top-K means the next selected token is the most probable among all tokens in the model's vocabulary (also called greedy decoding), while a high top-K means that the next token is selected from among the three most probable tokens by using temperature.
Required range:
0.1 <= x <= 2Example:
1
Last modified on January 23, 2026