Skip to main content

Set the creativity level

Adjust the creativity of the language model with two parameters: Temperature and Top P. As a rule of thumb, higher values means more creativity.

  1. In the Gemini for Docs sidebar, click Settings.

gemini docs

  1. Set Temperature from 0 to 1. You can refer to the following:

gemini docs

  1. (Optional) Set Top P from 0 for a focused output to 1 for most creativity.

gemini docs

NOTE

  • Set Temperature to 1 when the value for Top P is lower than 1.
  • Set Top P to 1 if the value for Temperature is lower than 1.