Vercel AI Gateway ζ―ζ OpenAI Responses API
Source: Vercel News
OpenAI's Responses API is now available through AI Gateway. The Responses API is a modern alternative to the Chat Completions API. Point your OpenAI SDK to AI Gateway's base URL and use the creator/model names to route requests. TypeScript and Python are both supported. All of the functionality in the Responses API was already accessible through AI Gateway via the AI SDK and Chat Completions API, but you can now use the Responses API directly.
What you can do
Text generation and streaming: Send prompts, get responses, stream tokens as they arrive
Tool calling: Define functions the model can invoke, then feed results back
Structured output: Constrain responses to a JSON schema
Reasoning: Control how much effort the model spends thinking with configurable effort levels
Getting started
Install the OpenAI SDK and point it at AI Gateway.
Basic example: text generation
Send a prompt and get a response from any supported model.
Structured output with reasoning
Combine reasoning levels with a JSON schema to get structured responses.
To learn more about the Responses API, read the documentation.