Igor's Techno Club

How To Get Access To OpenAI o1-mini

How To Get Access To OpenAI o1-mini

It took me a while to get this information from the official press release, so this is how you can get the access:

  1. As of now, you must be a tier 5 API user, which in short means that you are spending at least 1000$ per month on the API

  2. Check the available models you have by running curl:

curl https://api.openai.com/v1/models -H "Authorization: Bearer $OPENAI_API_KEY"

in the response you should see o1-preview or o1-mini.

  1. If you have the model available, you can start using it:
curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d "{
    \"model\": \"o1-preview\",
    \"messages\": [
      {
        \"role\": \"user\",
        \"content\": \"Write a bash script that takes a matrix represented as a string with format '[1,2],[3,4],[5,6]' and prints the transpose in the same format.\"
      }
    ]
  }"

Alternative way for everyone

As you can see for most people o1-mini is not widely available. Good thing is that you can already get you hands on it via paid providers like Openrouter

#AI