GPT 5.2
import { streamText } from 'ai'
const result = streamText({ model: 'openai/gpt-5.2', prompt: 'Why is the sky blue?'})Playground
Try out GPT 5.2 by OpenAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
GPT 5.2
Providers
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|
P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the docs for more info.
P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.
Direct request success rate on AI Gateway and per-provider. Visit the docs for more info.
More models by OpenAI
| Model |
|---|
About GPT 5.2
GPT 5.2 became available on December 11, 2025 on AI Gateway as the GPT-5.2 generation of OpenAI's general-purpose model series. It builds on the GPT-5 and GPT-5.1 generations with further improvements across reasoning depth, coding capability, instruction following, and multimodal understanding.
As the standard tier in the GPT-5.2 family, it provides the balance of capability and accessibility that most demanding applications require. The context window of 400K tokens supports extensive inputs, and the model handles text, image, and mixed-modality inputs with GPT-5.2 generation quality.
If you already use GPT-5 or GPT-5.1, GPT 5.2 offers an upgrade path with measurable improvements across key benchmarks.
What To Consider When Choosing a Provider
- Configuration: GPT 5.2 builds on the GPT-5 and GPT-5.1 generations with further improvements across reasoning, coding, and instruction following.
- Configuration: It launches alongside chat, codex, and pro variants, each specialized for different workloads while sharing the same generational improvements.
- Zero Data Retention: AI Gateway supports Zero Data Retention for this model via direct gateway requests (BYOK is not included). To configure this, check the documentation.
- Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.
When to Use GPT 5.2
Best for
- Complex reasoning: Analytical and strategic tasks that benefit from GPT-5.2 generation improvements
- Advanced code generation: Strong coding performance for development tools and agents
- Multimodal applications: Vision, text, and mixed-modality workflows with GPT-5.2 generation improvements
- Research and analysis: Deep document analysis, research synthesis, and complex question answering
- New projects: Applications that benefit from GPT-5.2 generation capability over GPT-5 or GPT-5.1
Consider alternatives when
- Cost optimization: GPT-5 mini or GPT-5.1 instant for production workloads where cost efficiency matters
- Specialized coding: GPT-5.2 codex for autonomous software engineering workflows
- Pure reasoning: O3 for chain-of-thought mathematical and scientific reasoning
- High-volume lightweight tasks: Nano-tier models for classification and routing
Conclusion
GPT 5.2 advances the GPT-5 series with measurable improvements in reasoning, coding, and multimodal capability. Available through AI Gateway, it is the standard tier of the GPT-5.2 family for general-purpose workloads.