Menu

AI Gateway supports OpenAI's Responses API - Vercel
📰
0

AI Gateway supports OpenAI's Responses API - Vercel

Vercel News·Rohan Taneja·4 days ago
#f539H6jE
#vercel#responses#openai#model#gateway#type
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More