You can now access gpt-oss-20b and gpt-oss-120b by OpenAI, open-weight reasoning models designed to push the open model frontier, 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:
Then set the model to either openai/gpt-oss-20b
or openai/gpt-oss-120b
:
Includes built-in observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.
To deliver high performance and reliability to gpt-oss, AI Gateway leverages multiple model providers under the hood, including Groq, Baseten, Cerebras, and Huggingface.
Learn more about AI Gateway and view the new AI Gateway model leaderboard.