OpenAI o3 API

OpenAI o3 is a frontier reasoning model with exceptional performance on complex scientific, math, and coding tasks.
Context
200K tokens
Input
$2.6 / 1M
Output
$10.4 / 1M

How to use OpenAI o3 API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to openai/o3-2025-04-16.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "openai/o3-2025-04-16",
      "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/o3-2025-04-16",
    "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/o3-2025-04-16","messages":[{"role":"user","content":"Hello!"}]}'

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

OpenAI o3 API Pricing

TypePrice
Input
$2.6 / 1M tokens
Output
$10.4 / 1M tokens

OpenAI o3 Benchmarks

BenchmarkScoreWhat it measures
SWE-bench Verified
69.1%
Resolving verified real GitHub issues
GPQA Diamond
83.3%
Google-proof graduate science questions (hardest subset)
AIME 2025
88.9%
Competition mathematics (AIME), 2025

Start building with OpenAI o3

Get API Key
1000+ models, one API.