1 min read
You can now access GPT-5, GPT-5-mini, and GPT-5-nano by OpenAI, models designed to push the frontier of reasoning and domain expertise, using Vercel's AI Gateway with no other provider accounts required.
AI Gateway lets you call the model with a consistent unified API and just a single string update, track usage and cost, and configure performance optimizations, retries, and failover for higher than provider-average uptime.
To use it with the AI SDK v5, start by installing the package:
pnpm i ai
Then set the model to either openai/gpt-5 or
openai/gpt-5-mini or openai/gpt-5-nano
:
import { streamText } from 'ai'
const result = streamText({ model: "openai/gpt-5", // or openai/gpt-5-mini or openai/gpt-5-nano prompt: "Generate an ansi animation of sutro tower" })
Includes built-in observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.
Learn more about AI Gateway and view the new AI Gateway model leaderboard.
Vercel is a launch partner for the release of gpt-5 models, and thank OpenAI for their collaboration in ensuring day 1 readiness for AI Gateway and its customers.
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