# o3

The next generation of OpenAI's reasoning model series, advancing chain-of-thought problem solving with stronger performance and greater efficiency than o1.

- **Model ID:** `openai/o3`
- **Type:** chat
- **Providers:** openai
- **Context window:** 200,000
- **Maximum output tokens:** 100,000
- **Pricing:** $2.0/1M input tokens, $8.0/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/o3

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'openai/o3',
  prompt: 'Why is the sky blue?'
})
```

## About

o3 was released on April 16, 2025 as the successor to o1 in OpenAI's reasoning model series. It advances the chain-of-thought paradigm introduced by o1-preview: the model generates internal reasoning tokens, working through problems step by step, checking its work, and trying alternative approaches before producing a final answer.

o3 improves on o1 across key reasoning benchmarks while using reasoning tokens more efficiently. It launches with the full set of production API features: function calling for tool use, structured outputs via JSON schema constrained decoding, vision input for reasoning over images and diagrams, and developer system messages for behavioral control.

The context window of 200K tokens accommodates the lengthy inputs that complex reasoning tasks demand. The model also supports the `reasoning_effort` parameter, letting you control how deeply it thinks on a per-request basis for efficient handling of mixed-difficulty workloads.

## What to consider

o3 generates internal reasoning tokens that work through problems step by step before producing a visible response. This trades latency for accuracy on hard problems.

Unlike earlier reasoning previews, o3 ships with function calling, structured outputs, vision, and system messages from day one.

## When to use

### Best For

- **Advanced mathematical reasoning:** Competition-level math, proofs, and quantitative analysis
- **Complex coding problems:** Algorithm design, optimization, and architectural reasoning
- **Scientific analysis:** Multi-step derivations in physics, chemistry, and biology
- **Agentic reasoning:** Agent backbones that need deep deliberation before acting
- **Hard problem solving:** Any task where extended chain-of-thought produces measurably better results

### Consider Alternatives When

- **General-purpose tasks:** GPT-5 or GPT-5.2 for conversational and generative workloads that don't need chain-of-thought
- **Cost-sensitive reasoning:** o4-mini for reasoning at a lower price point
- **Maximum reasoning compute:** o3-pro for the hardest problems that benefit from extended computation
- **Fast responses:** GPT-5.1 instant or GPT-4o when latency matters more than reasoning depth

## Best for

- **Advanced mathematical reasoning:** Competition-level math, proofs, and quantitative analysis
- **Complex coding problems:** Algorithm design, optimization, and architectural reasoning
- **Scientific analysis:** Multi-step derivations in physics, chemistry, and biology
- **Agentic reasoning:** Agent backbones that need deep deliberation before acting
- **Hard problem solving:** Any task where extended chain-of-thought produces measurably better results

## Consider alternatives

- **General-purpose tasks:** GPT-5 or GPT-5.2 for conversational and generative workloads that don't need chain-of-thought
- **Cost-sensitive reasoning:** o4-mini for reasoning at a lower price point
- **Maximum reasoning compute:** o3-pro for the hardest problems that benefit from extended computation
- **Fast responses:** GPT-5.1 instant or GPT-4o when latency matters more than reasoning depth

## Frequently asked questions

### How does o3 improve over o1?

It delivers stronger performance on reasoning benchmarks while using reasoning tokens more efficiently, resulting in better accuracy at comparable or lower cost per request.

### Does o3 support function calling?

Yes. It ships with function calling, structured outputs, vision input, and system messages, the full production API feature set.

### What is the `reasoning_effort` parameter?

It controls how deeply the model reasons per request. Low effort for simple queries saves cost; high effort for hard problems enables maximum deliberation.

### What context window does o3 support?

200K tokens, supporting lengthy inputs for complex reasoning tasks.

### How does AI Gateway handle authentication for o3?

AI Gateway accepts a single API key or OIDC token for all requests. You don't embed OpenAI credentials in your application; AI Gateway routes and authenticates on your behalf.

### When should I use o3 versus GPT-5?

Use o3 for problems that benefit from extended chain-of-thought reasoning (math, science, hard coding). Use GPT-5 for general-purpose tasks, creative writing, and conversational workloads.

### What are typical latency characteristics?

This page shows live throughput and time-to-first-token metrics measured across real AI Gateway traffic.

## Links

- [Model page](https://vercel.com/ai-gateway/models/o3)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://platform.openai.com/docs/models/o3)
- [Provider pricing](https://platform.openai.com/docs/pricing)
