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.
Link to heading 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
Link to heading Getting started
Install the OpenAI SDK and point it at AI Gateway.
import OpenAI from 'openai' ;
const client = new OpenAI ( {
apiKey : process . env .…