OpenAI o3 API

openai/o3-2025-04-16
OpenAI o3 is a reasoning-focused language model that delivers precise, context-aware answers.
Context
200K tokens
Input
$2 / 1M tokens
Output
$8 / 1M tokens
Released
Apr 16, 2025

Overview

СhatGPT o3 Description

OpenAI's o3 is an advanced AI reasoning model engineered for complex problem-solving and multi-step analysis. With simulated reasoning capabilities and integrated tool use, it delivers unprecedented performance in coding, mathematics, and scientific research.

‍Technical Specification

Performance Benchmarks

OpenAI o3 is optimized for reasoning, coding, and scientific problem-solving across multiple domains.

  • Context Window: 200k context with multi-modal processing with step-by-step reasoning chains
  • Reasoning Architecture: Simulated reasoning with internal reflection and self-analysis
  • Performance Benchmarks: SWE-bench Verified: 69.1%, AIME 2025: 88.9%, GPQA Diamond: 83.3%
  • API Pricing:
    • Input tokens: $2.6 per million tokens.
    • Output tokens: $10.4 per million tokens.

o3 Performance Metrics

The o3 model demonstrates strong performance across multiple domains, achieving 91.6% accuracy on AIME 2024 math competition, 88.9% on AIME 2025, 83.3% on PhD-level science questions (GPQA Diamond), 20.32% on expert-level questions across subjects (Humanity's Last Exam), and a 2706 ELO rating in coding competitions (Codeforces)

o3 benchmarks
o3 Benchmarks

Key Capabilities

OpenAI o3 delivers advanced reasoning capabilities for complex analytical workflows.

  • Simulated Reasoning: Internal reflection and step-by-step logical analysis before generating responses
  • Visual Reasoning Integration: Processes images directly within reasoning chains for multi-modal problem solving
  • Advanced Coding: Excels in software engineering with 69.1% accuracy on real-world coding benchmarks
  • Mathematical Excellence: Superior performance on competition-level mathematics with 88.9% AIME accuracy
  • Scientific Research: PhD-level science question handling with 83.3% accuracy on GPQA Diamond
  • Tool Integration: Native access to web browsing, Python execution, and file operations for agentic problem-solving
  • Self-Fact Checking: Built-in verification capabilities to improve response accuracy

Optimal Use Cases

  • Complex Problem-Solving: Multi-step analytical tasks requiring deep reasoning and logical deduction
  • Software Engineering: Large-scale coding projects, debugging, and architectural decision-making
  • Mathematical Research: Competition-level mathematics and advanced computational problems
  • Scientific Analysis: Research-grade scientific reasoning and hypothesis generation
  • Business Consulting: Strategic analysis requiring multi-faceted evaluation and critical thinking
  • Creative Ideation: Novel hypothesis generation in technical and creative domains

Code Samples

‍

Comparison with Other Models

  • Vs. OpenAI o1: 20% fewer major errors, superior coding performance (69.1% vs 48.9% SWE-bench), enhanced mathematical reasoning (88.9% vs 74.3% AIME)
  • Vs. GPT-4o: Specialized for reasoning tasks requiring deliberation time, integrated visual reasoning capabilities
  • Vs. Claude Opus 4: Competitive coding accuracy (69.1% vs 72.5% SWE-bench estimated), stronger mathematical performance, integrated tool use for agentic workflows

API Integration

Accessible via AI/ML API. Documentation: available here.

Uptime and performance

  • Uptime (24h): 100%
  • Uptime (7d): 88.0%
  • Availability (24h): 100%
  • Error rate (24h): 0%
  • End-to-end latency (24h median): 748ms
  • Throughput (24h median): 32.7 tok/s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

  • Software development automation including large codebase management
  • Scientific and mathematical research assistance
  • Business intelligence and complex decision-making support
  • Development of intelligent agents capable of autonomous problem solving
  • Educational tools with stepwise reasoning and explanation generation

‍

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 / 1M tokens
Output
$8 / 1M tokens
Cached input
$0.65 / 1M tokens

OpenAI o3 Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
SWE-bench Verified
69.1%
Resolving verified real GitHub issuesSourceJuly 8, 2026
GPQA Diamond
83.3%
Google-proof graduate science questions (hardest subset)SourceJuly 8, 2026
AIME 2025
88.9%
Competition mathematics (AIME), 2025SourceJuly 8, 2026
Intelligence
20.2
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 22, 2026
Math
88.3
Composite score across standardised mathematics evaluations, measured independently by Artificial AnalysisSourceSeptember 22, 2026

OpenAI o3 vs other models

ModelInputOutputContextBest for
OpenAI o3
This page
$2 / 1M tokens
$8 / 1M tokens
200K tokens
Reasoning + agents
$5 / 1M tokens
$30 / 1M tokens
1M tokens
Reasoning + agents
$2 / 1M tokens
$10 / 1M tokens
1M tokens
Balanced coding + agents
$3 / 1M tokens
$15 / 1M tokens
1M tokens
Long-context, multimodal & agentic workflows
$1.5 / 1M tokens
$9 / 1M tokens
1M tokens
Reasoning + agents

Frequently asked questions

OpenAI o3 has a 200,000 tokens context window and can return up to 100,000 tokens.

OpenAI o3 takes image, text as input and returns text.

Use openai/o3-2025-04-16 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

OpenAI o3 is priced at input $2.6 / 1M tokens, output $10.4 / 1M tokens, cached input $0.65 / 1M tokens.

Yes, OpenAI o3 can stream responses as they are generated.

Yes, OpenAI o3 accepts image input alongside text.

OpenAI o3 was built by OpenAI.

Start building with OpenAI o3

Get API Key
1000+ models, one API.