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
- Go to Gen AI Studio > Playground and select the chat model you want to try.
- Choose an API key from the dropdown, then start chatting with the model.
- Adjust advanced settings (such as Temperature) as needed to find the parameter combination that suits your application.
From trial to code
- Click View code in the top-right corner of the configuration panel; the "Setup and chat as code" panel opens on the right.
- Parameters you adjusted during the trial (such as Temperature) are synced directly into the code sample.
- Copy the sample and replace
your-api-key-herewith your API key.
Expand Details to view the model provider, model type, and description.
Next steps
- OpenAI-compatible API — wire the sample into your application
- Deploy a private endpoint — when you need dedicated resources