Skip to main content

Playground

The Playground is an interactive model testing environment where you can try a model and tune its settings live before committing to its API. The Playground provides a testing interface matched to each model type; the following uses a chat model as an example.

caution

Trying models in the Playground is also billed.

Try a model

  1. Go to Gen AI Studio > Playground and select the chat model you want to try.
  2. Choose an API key from the dropdown, then start chatting with the model.
  3. Adjust advanced settings (such as Temperature) as needed to find the parameter combination that suits your application.

From trial to code

  1. Click View code in the top-right corner of the configuration panel; the "Setup and chat as code" panel opens on the right.
  2. Parameters you adjusted during the trial (such as Temperature) are synced directly into the code sample.
  3. Copy the sample and replace your-api-key-here with your API key.

Expand Details to view the model provider, model type, and description.

Next steps