o1 API

New AI model from OpenAI for complex reasoning in science, coding, and mathematics.
Context
128K tokens
Input
$19.5 / 1M
Output
$78 / 1M
Released
Aug 7, 2025

How to use o1 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to openai/o1-2024-12-17.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "openai/o1-2024-12-17",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "openai/o1-2024-12-17",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/o1-2024-12-17","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

o1 API Pricing

TypePrice
Input
$19.5 / 1M tokens
Output
$78 / 1M tokens

o1 Benchmarks

No items found.
BenchmarkScoreWhat it measures

o1 is best for

o1 vs other models

No items found.
ModelInputOutputContextBest for
o1
This page
$19.5 / 1M
$78 / 1M
128K tokens
Reasoning + agents

Frequently asked questions

No items found.

Related chat models

No items found.

Related blog posts

No items found.

Start building with o1

Get API Key
600+ models, one API.