O

OpenAI

Major Foundation Lab69 Canonical Models

OpenAI foundation models, inference API endpoints, and pricing.

Official Provider Docs
•Package: @ai-sdk/openai•Env Key: OPENAI_API_KEY

Models by OpenAI

Specifications, context windows, and pricing for OpenAI models

69 models
GPT-5.6 Sol
openai/gpt-5.6-sol•OpenAI
1.1M ctx

Frontier GPT-5.6 model for complex professional work, coding, and agentic workflows

128K out maxVisionPDFSWE-Bench Pro: 64.6 resolve rate
In: $4.00 • Out: $20.00
OpenAI
GPT-5.4 Pro
openai/gpt-5.4-pro•OpenAI
1.1M ctx

More exact GPT-5.4 tier for demanding professional reasoning and agent tasks

128K out maxVisionGPQA Diamond: 94.4 accuracy
In: $30.00 • Out: $180.00
OpenAI
GPT-5.6 Terra
openai/gpt-5.6-terra•OpenAI
1.1M ctx

Balanced GPT-5.6 model for capable, cost-efficient everyday work

128K out maxVisionPDFSWE-Bench Pro: 63.4 resolve rate
In: $2.00 • Out: $12.00
OpenAI
GPT-6 Luna
openai/gpt-6-luna•OpenAI
1.1M ctx

OpenAI's most efficient model for focused, high-volume tasks

128K out maxVisionPDFDeepSWE: 66.6 score
In: $0.10 • Out: $0.50
OpenAI
GPT-5.5
openai/gpt-5.5•OpenAI
1.1M ctx

Default frontier GPT for coding, computer use, research, and knowledge work

128K out maxVisionPDFSWE-Bench Pro: 58.6 resolve rate
In: $5.00 • Out: $30.00
OpenAI
GPT-5.4
openai/gpt-5.4•OpenAI
1.1M ctx

Agent-ready GPT for coding and computer-use workflows at a lower cost

128K out maxVisionPDFSWE-Bench Pro: 59.1 resolve rate
In: $2.50 • Out: $15.00
OpenAI
GPT-5.5 Pro
openai/gpt-5.5-pro•OpenAI
1.1M ctx

Highest-accuracy GPT-5.5 tier for slower, precision-heavy reasoning and coding

128K out maxVisionPDFBrowseComp: 90.1 accuracy
In: $30.00 • Out: $180.00
OpenAI
GPT-5.6 Luna
openai/gpt-5.6-luna•OpenAI
1.1M ctx

Cost-efficient GPT-5.6 model for fast, high-volume workloads

128K out maxVisionPDFSWE-Bench Pro: 62.7 resolve rate
In: $0.20 • Out: $1.20
OpenAI
GPT-6 Astra
openai/gpt-6-astra•OpenAI
1.1M ctx

GPT-6 Astra is OpenAI's most capable model for complex reasoning, coding, computer use, research, and document creation.

128K out maxVisionPDFAgents' Last Exam: 59.3 (unit not reported)
In: $10.00 • Out: $50.00
OpenAI
GPT-6 Astra (Fast)
openai/gpt-6-astra-fast•OpenAI
1.1M ctx

Fast variant of GPT-6 Astra for low-latency assistance and high-volume workloads.

128K out maxVisionPDF
In: $20.00 • Out: $100.00
OpenAI
GPT-6.1 Sol
openai/gpt-6.1-sol•OpenAI
1.1M ctx

Near-Astra performance for complex coding, computer use, and professional work at a lower cost.

128K out maxVisionPDF
In: $2.00 • Out: $10.00
OpenAI
GPT-6 Sol
openai/gpt-6-sol•OpenAI
1.1M ctx

OpenAI model for complex coding and agentic workflows

128K out maxVisionPDFDeepSWE: 68.8 score
In: $2.00 • Out: $10.00
OpenAI
GPT-4.1
openai/gpt-4.1•OpenAI
1M ctx

Long-lived GPT workhorse for coding, instruction following, and production apps

32.8K out maxVisionPDFAider Polyglot: 52.4 percent correct
In: $2.00 • Out: $8.00
OpenAI
GPT-4.1 nano
openai/gpt-4.1-nano•OpenAI
1M ctx

Tiny GPT-4.1 option for classification, routing, and very high-volume tasks

32.8K out maxVisionAider Polyglot: 8.9 percent correct
In: $0.10 • Out: $0.40
OpenAI
GPT-4.1 mini
openai/gpt-4.1-mini•OpenAI
1M ctx

Affordable GPT-4.1 lane for fast coding help and structured extraction

32.8K out maxVisionPDFAider Polyglot: 32.4 percent correct
In: $0.40 • Out: $1.60
OpenAI
GPT-5.6 Cyber
openai/gpt-5.6-cyber•OpenAI
400K ctx

Cybersecurity model for authorized vulnerability research and security testing

128K out maxVision
In: Free • Out: Free
OpenAI
GPT-5.3 Codex
openai/gpt-5.3-codex•OpenAI
400K ctx

Coding-optimized GPT model for repository edits, reviews, and agentic software work

128K out maxVisionPDFSWE-Atlas Codebase QnA: 32.6 score
In: $1.75 • Out: $14.00
OpenAI
GPT-5 Image
openai/gpt-5-image•OpenAI
400K ctx

Image model for prompt-driven generation, editing, and visual design workflows

128K out maxVisionPDF
In: $10.00 • Out: $10.00
OpenAI
GPT-5.4 mini
openai/gpt-5.4-mini•OpenAI
400K ctx

Strong small GPT for coding subagents, quick tool use, and high-volume work

128K out maxVisionSWE-Bench Pro: 54.4 resolve rate
In: $0.75 • Out: $4.50
OpenAI
GPT-5.1
openai/gpt-5.1•OpenAI
400K ctx

Sharper GPT-5 generation for coding, product work, and tool-assisted tasks

128K out maxVision
In: $1.25 • Out: $10.00
OpenAI
GPT-5 Mini
openai/gpt-5-mini•OpenAI
400K ctx

Small GPT-5 for responsive agents, coding help, and everyday automation

128K out maxVision
In: $0.25 • Out: $2.00
OpenAI
GPT-5 Image Mini
openai/gpt-5-image-mini•OpenAI
400K ctx

Image model for prompt-driven generation, editing, and visual design workflows

128K out maxVisionPDF
In: $2.50 • Out: $2.00
OpenAI
GPT-5.2 Pro
openai/gpt-5.2-pro•OpenAI
400K ctx

Higher-accuracy GPT-5.2 variant for tougher reasoning and review workflows

128K out maxVision
In: $21.00 • Out: $168.00
OpenAI
GPT-5 Pro
openai/gpt-5-pro•OpenAI
400K ctx

Higher-accuracy GPT-5 tier for tough analysis, coding reviews, and planning

272K out maxVision
In: $15.00 • Out: $120.00
OpenAI
GPT-5-Codex
openai/gpt-5-codex•OpenAI
400K ctx

Coding-optimized GPT model for repository edits, reviews, and agentic software work

128K out maxVisionArtificial Analysis Coding Index: 38.9 index
In: $1.10 • Out: $9.00
OpenAI
GPT-5.2 Codex
openai/gpt-5.2-codex•OpenAI
400K ctx

Code-specialist GPT for repository edits, reviews, and long-running software agents

128K out maxVisionPDFSWE-Bench Pro: 41.04 resolve rate
In: $0.14 • Out: $1.14
OpenAI
GPT-5.1 Codex
openai/gpt-5.1-codex•OpenAI
400K ctx

Codex GPT for repository edits, code review, and practical software agents

128K out maxVision
In: $1.25 • Out: $10.00
OpenAI
GPT-5 Nano
openai/gpt-5-nano•OpenAI
400K ctx

Tiny GPT-5 lane for routing, extraction, classification, and bulk jobs

128K out maxVision
In: $0.05 • Out: $0.40
OpenAI
GPT-5.2
openai/gpt-5.2•OpenAI
400K ctx

Reliable GPT generation for broad coding, writing, and tool-assisted product work

128K out maxVisionSWE-Bench Pro: 29.94 resolve rate
In: $1.75 • Out: $14.00
OpenAI
GPT-5
openai/gpt-5•OpenAI
400K ctx

Original GPT-5 workhorse for reasoning, coding, writing, and tool workflows

128K out maxVisionAider Polyglot: 88 percent correct
In: $1.25 • Out: $10.00
OpenAI
GPT-5.1 Codex Max
openai/gpt-5.1-codex-max•OpenAI
400K ctx

Coding-optimized GPT model for repository edits, reviews, and agentic software work

128K out maxVision
In: $2.50 • Out: $20.00
OpenAI
GPT-5.5 Instant
openai/gpt-5.5-instant•OpenAI
400K ctx

Compact GPT model for low-latency assistance and high-volume workloads

128K out maxVisionPDF
In: $5.00 • Out: $30.00
OpenAI
GPT-5 Chat (latest)
openai/gpt-5-chat-latest•OpenAI
400K ctx

Chat-tuned GPT model for conversational assistance, writing, and tool workflows

128K out maxVision
In: $1.25 • Out: $10.00
OpenAI
GPT-5.4 nano
openai/gpt-5.4-nano•OpenAI
400K ctx

Cheapest GPT-5.4 lane for simple routing, extraction, and bulk automation

128K out maxVisionSWE-Bench Pro: 52.4 resolve rate
In: $0.20 • Out: $1.25
OpenAI
GPT-5.1 Codex mini
openai/gpt-5.1-codex-mini•OpenAI
400K ctx

Coding-optimized GPT model for repository edits, reviews, and agentic software work

128K out maxVision
In: $0.25 • Out: $2.00
OpenAI
GPT-5.4 Image 2
openai/gpt-5.4-image-2•OpenAI
272K ctx

Image model for prompt-driven generation, editing, and visual design workflows

128K out maxVisionPDF
In: $11.00 • Out: $20.63
OpenAI
o4-mini
openai/o4-mini•OpenAI
200K ctx

Fast o-series model for compact reasoning, coding, and tool use

100K out maxVisionAider Polyglot: 72 percent correct
In: $1.10 • Out: $4.40
OpenAI
o1-pro
openai/o1-pro•OpenAI
200K ctx

O-series reasoning model for hard analysis, math, coding, and planning

100K out maxVision
In: $150.00 • Out: $600.00
OpenAI
o4-mini-deep-research
openai/o4-mini-deep-research•OpenAI
200K ctx

Research model for long-horizon investigation, synthesis, and analytical reports

100K out maxVision
In: $1.80 • Out: $7.20
OpenAI
o3-mini
openai/o3-mini•OpenAI
200K ctx

Smaller o-series reasoner for economical coding, math, and planning tasks

100K out maxAider Polyglot: 60.4 percent correct
In: $1.10 • Out: $4.40
OpenAI
o3-pro
openai/o3-pro•OpenAI
200K ctx

High-effort o3 tier for difficult technical reasoning and careful answers

100K out maxVisionAider Polyglot: 84.9 percent correct
In: $20.00 • Out: $80.00
OpenAI
o3-deep-research
openai/o3-deep-research•OpenAI
200K ctx

Research model for long-horizon investigation, synthesis, and analytical reports

100K out maxVision
In: $9.00 • Out: $36.00
OpenAI
o3
openai/o3•OpenAI
200K ctx

Deliberate o-series reasoner for hard math, coding, and multi-step analysis

100K out maxVisionPDFAider Polyglot: 81.3 percent correct
In: $2.00 • Out: $8.00
OpenAI
o1
openai/o1•OpenAI
200K ctx

O-series reasoning model for hard analysis, math, coding, and planning

100K out maxVisionPDFAider Polyglot: 61.7 percent correct
In: $15.00 • Out: $60.00
OpenAI
GPT OSS Safeguard 120B
openai/gpt-oss-safeguard-120b•OpenAI
131.1K ctx

Safety model for policy screening, moderation, and risk-aware routing workflows

32.8K out max
In: $0.18 • Out: $0.70
OpenAI
GPT OSS 120B
openai/gpt-oss-120b•OpenAI
131.1K ctx

Open GPT reasoning model for self-hosted agents and controllable deployments

32.8K out max
In: $0.09 • Out: $0.45
OpenAI
GPT OSS 20B
openai/gpt-oss-20b•OpenAI
131.1K ctx

Open GPT reasoning model for self-hosted agents and controllable deployments

32.8K out max
In: $0.04 • Out: $0.17
OpenAI
GPT OSS Safeguard 20B
openai/gpt-oss-safeguard-20b•OpenAI
131.1K ctx

Safety model for policy screening, moderation, and risk-aware routing workflows

131.1K out max
In: $0.07 • Out: $0.30
OpenAI
GPT-Image-1.5
openai/gpt-image-1.5•OpenAI
128K ctx

Image model for prompt-driven generation, editing, and visual design workflows

4.1K out maxVision
In: $5.00 • Out: $32.00
OpenAI
GPT-4o
openai/gpt-4o•OpenAI
128K ctx

Omni-era GPT for multimodal chat, practical coding, and general assistants

16.4K out maxVisionPDFAider Polyglot: 23.1 percent correct
In: $2.50 • Out: $10.00
OpenAI
GPT-Image-2
openai/gpt-image-2•OpenAI
128K ctx

Image model for prompt-driven generation, editing, and visual design workflows

4.1K out maxVision
In: $5.00 • Out: $30.00
OpenAI
GPT-5.1 Chat
openai/gpt-5.1-chat-latest•OpenAI
128K ctx

Chat-tuned GPT-5.1 for polished assistants, writing, and product conversations

16.4K out maxVision
In: $1.25 • Out: $10.00
OpenAI
GPT-Realtime-2.1
openai/gpt-realtime-2.1•OpenAI
128K ctx

Realtime speech-to-speech model with configurable reasoning, tool use, and robust voice-agent behavior

32K out maxVision
In: $4.00 • Out: $24.00
OpenAI
GPT-4o (2024-11-20)
openai/gpt-4o-2024-11-20•OpenAI
128K ctx

GPT model for general reasoning, writing, coding, and tool-assisted tasks

16.4K out maxVisionAider Polyglot: 18.2 percent correct
In: $2.50 • Out: $10.00
OpenAI
GPT-5.3 Chat (latest)
openai/gpt-5.3-chat-latest•OpenAI
128K ctx

Chat-tuned GPT model for conversational assistance, writing, and tool workflows

16.4K out maxVision
In: $1.75 • Out: $14.00
OpenAI
GPT Image 2.5 Sunburst
openai/gpt-image-2.5-sunburst•OpenAI
128K ctx

Image model for prompt-driven generation, editing, and visual design workflows

4.1K out maxVision
In: $5.00 • Out: $30.00
OpenAI
GPT-5.3 Codex Spark
openai/gpt-5.3-codex-spark•OpenAI
128K ctx

Coding-optimized GPT model for repository edits, reviews, and agentic software work

32K out maxVisionPDF
In: $1.75 • Out: $14.00
OpenAI
GPT Image 2.5 Flare
openai/gpt-image-2.5-flare•OpenAI
128K ctx

Image model for prompt-driven generation, editing, and visual design workflows

4.1K out maxVision
In: $5.00 • Out: $30.00
OpenAI
GPT-4o (2024-08-06)
openai/gpt-4o-2024-08-06•OpenAI
128K ctx

GPT model for general reasoning, writing, coding, and tool-assisted tasks

16.4K out maxVisionAider Polyglot: 23.1 percent correct
In: $2.50 • Out: $10.00
OpenAI
GPT-4 Turbo
openai/gpt-4-turbo•OpenAI
128K ctx

Compact GPT model for low-latency assistance and high-volume workloads

4.1K out maxVisionArtificial Analysis Coding Index: 21.5 index
In: $10.00 • Out: $30.00
OpenAI
GPT-5.2 Chat
openai/gpt-5.2-chat-latest•OpenAI
128K ctx

Chat-tuned GPT model for conversational assistance, writing, and tool workflows

16.4K out maxVision
In: $1.75 • Out: $14.00
OpenAI
GPT-Image-1
openai/gpt-image-1•OpenAI
128K ctx

OpenAI image model for production generation, edits, and brand-safe visual workflows

4.1K out maxVision
In: $5.00 • Out: $32.00
OpenAI
GPT-4o (2024-05-13)
openai/gpt-4o-2024-05-13•OpenAI
128K ctx

GPT model for general reasoning, writing, coding, and tool-assisted tasks

4.1K out maxVisionArtificial Analysis Coding Index: 24.2 index
In: $5.00 • Out: $15.00
OpenAI
GPT-4o mini
openai/gpt-4o-mini•OpenAI
128K ctx

Small omni GPT for cheap multimodal assistance and production-scale traffic

16.4K out maxVisionPDFAider Polyglot: 3.6 percent correct
In: $0.15 • Out: $0.60
OpenAI
GPT-3.5-turbo
openai/gpt-3.5-turbo•OpenAI
16.4K ctx

Compact GPT model for low-latency assistance and high-volume workloads

4.1K out maxArtificial Analysis Coding Index: 10.7 index
In: $0.50 • Out: $1.50
OpenAI
GPT Realtime Whisper
openai/gpt-realtime-whisper•OpenAI
16K ctx

Streaming speech-to-text model for low-latency transcript deltas from live audio

2K out max
In: Free • Out: Free
OpenAI
GPT-4
openai/gpt-4•OpenAI
8.2K ctx

GPT model for general reasoning, writing, coding, and tool-assisted tasks

8.2K out maxArtificial Analysis Coding Index: 13.1 index
In: $30.00 • Out: $60.00
OpenAI
Whisper 3 Large
openai/whisper-large-v3•OpenAI
448 ctx

Open Whisper checkpoint for robust multilingual transcription and captioning

4.1K out max
In: $0.02 • Out: Free
OpenAI
Whisper Large v3 Turbo
openai/whisper-large-v3-turbo•OpenAI
448 ctx

Speech transcription model for accurate audio-to-text and captioning workflows

448 out max
In: $0.00 • Out: $0.00
OpenAI