OpenAI
OpenAI

O1 Mini

openai/o1-mini

The OpenAI o1-mini is a newly released smaller version of the o1 model, designed to optimize reasoning tasks, particularly in coding. It provides advanced reasoning capabilities similar to its larger counterpart, making it well-suited for generating and debugging complex code. However, it is 80% cheaper and faster, making it a cost-effective solution for developers who need reasoning power but don’t require broad world knowledge.

Context Window

128,000

Max Output Tokens

65,536

Using O1 Mini with Python API

Using O1 Mini with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="openai/o1-mini",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)