1 min read
You can now access OpenAI's latest GPT-5.2 models with Vercel's AI Gateway and no other provider accounts required.
These models perform better than the GPT-5.1 model series, with noted improvements in professional knowledge work, coding, and long-context reasoning. Other highlights include fewer hallucinations, more accurate vision to interpret graphs and visualizations, strong complex front-end work capabilities, and better information retention working with long documents.
There are 3 models available on AI Gateway:
GPT-5.2 Chat (
openai/gpt-5.2-chat) is the model used in ChatGPT, best suited for everyday work and learning.GPT-5.2 (
openai/gpt-5.2) is for deeper work and complex tasks involving coding or long documents.GPT-5.2 Pro (
openai/gpt-5.2-pro) is best suited for the most difficult questions and tasks with large amounts of reasoning.
To use the GPT-5.2 models with the AI SDK, set the model to the respective model slug (noted above):
import { streamText } from 'ai';
const result = streamText({ model: 'openai/gpt-5.2-pro', prompt: `Create a single-page aurora sky visualizer app in a single HTML file. It should display a realistic animated aurora borealis night sky. Change solar activity level, color palette (green/purple/mixed), and sky clarity (haze, clear, light clouds). The UI should feel tranquil, immersive, and visually realistic, with smooth transitions and subtle ambient motion.` providerOptions: { openai: { reasoningSummary: 'detailed', reasoningEffort: 'high', }, },});AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.
Learn more about AI Gateway, view the AI Gateway model leaderboard or try it in our model playground.
AI Gateway: Track top AI models by usage
The AI Gateway model leaderboard ranks the most used models over time by total token volume across all traffic through the Gateway. Updates regularly.
View the leaderboard