

Playground
No presets found.
Examples
Share preset
Anyone who has this link and an OpenAI account will be able to view this.
We're writing to [inset]. Congrats from OpenAI!
Save preset
This will save the current playground state as a preset which you can access later or share with others.
View code
You can use the following code to start integrating your current prompt and settings into your application.
import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
response = openai.Completion.create(
model="davinci",
prompt="",
temperature=0.9,
max_tokens=5,
top_p=1,
frequency_penalty=0,
presence_penalty=0,
)Your API Key can be found here. You should use environment variables or a secret management tool to expose your key to your applications.
Content filter preferences
The content filter flags text that may violate our content policy. It's powered by our moderation endpoint which is free to use to moderate your OpenAI API traffic. Learn more.
Playground Warnings
Are you absolutely sure?
This action cannot be undone. This preset will no longer be accessible by you or others you've shared it with.