惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
MyScale Blog
MyScale Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
V
V2EX
MongoDB | Blog
MongoDB | Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - 三生石上(FineUI控件)
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
H
Help Net Security
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
T
The Blog of Author Tim Ferriss
C
Check Point Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Vercel News

Vercel Open Source Program: Winter 2026 cohort How Notion Workers run untrusted code at scale with Vercel Sandbox How we run Vercel's CDN in front of Discourse From idea to secure checkout in minutes with Stripe Building Slack agents can be easy Scaling redirects to infinity on Vercel Advancing Python typing Gamma builds design-first agents with Vercel How Avalara turns pipe dreams into patent-pending with v0 Keeping community human while scaling with agents How OpenEvidence built a healthcare AI that physicians actually trust Security boundaries in agentic architectures Skills Night: 69,000+ ways agents are getting smarter Video Generation with AI Gateway We Ralph Wiggumed WebStreams to make them 10x faster How Stably ships AI testing agents in hours, not weeks How we built AEO tracking for coding agents Anyone can build agents, but it takes a platform to run them Introducing Geist Pixel The Vercel AI Accelerator is back with $6m in credits Making agent-friendly pages with content negotiation The Vercel OSS Bug Bounty program is now available Introducing the new v0 Run untrusted code with Vercel Sandbox, now generally available How Stripe built a game-changing app in a single flight with v0 How Sensay went from zero to product in six weeks AGENTS.md outperforms skills in our agent evals Agent skills explained: An FAQ Testing if "bash is all you need" AWS databases are now live on the Vercel Marketplace and v0
AI Gateway supports OpenAI's Responses API - Vercel
Authors · 2026-03-06 · via 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.

Link to headingWhat 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 headingGetting started

Install the OpenAI SDK and point it at AI Gateway.

import OpenAI from 'openai';

const client = new OpenAI({

apiKey: process.env.AI_GATEWAY_API_KEY,

baseURL: 'https://ai-gateway.vercel.sh/v1',

});

Link to headingBasic example: text generation

Send a prompt and get a response from any supported model.

const response = await client.responses.create({

model: 'openai/gpt-5.4',

input: 'What is the best restaurant in San Francisco?',

});

Link to headingStructured output with reasoning

Combine reasoning levels with a JSON schema to get structured responses.

const response = await client.responses.create({

model: 'anthropic/claude-sonnet-4.6',

input: 'Build a Next.js app with auth and a dashboard page.',

reasoning: { effort: 'high' },

text: {

format: {

type: 'json_schema',

name: 'app_plan',

strict: true,

schema: {

type: 'object',

properties: {

files: { type: 'array', items: { type: 'string' } },

summary: { type: 'string' },

},

required: ['files', 'summary'],

additionalProperties: false,

},

},

},

});

To learn more about the Responses API, read the documentation.