OpenAI o1

How to Use OpenAI o1

Getting Started with OpenAI o1

OpenAI o1 is available through our API and in ChatGPT. To get started:

  1. Sign up for an OpenAI API account if you haven't already.
  2. Navigate to the API keys page to create an API key.
  3. Use the API key in your requests to authenticate with the API.

Using OpenAI o1 via API

Here's a simple example of how to use OpenAI o1 via the API:


import openai

openai.api_key = "your-api-key-here"

response = openai.ChatCompletion.create(
    model="o1-preview",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Explain the concept of quantum entanglement."}
    ]
)

print(response.choices[0].message.content)
            

This example sends a request to the o1-preview model asking it to explain quantum entanglement.

Using OpenAI o1 in ChatGPT

If you have access to ChatGPT, you can use OpenAI o1 directly in the chat interface:

  1. Go to chat.openai.com and log in to your account.
  2. Start a new chat or continue an existing one.
  3. In the model selector, choose "o1-preview" if available.
  4. Start chatting with o1 as you would with other ChatGPT models.

Best Practices

Limitations and Considerations