{"slug": "websocket-support-for-openai-responses-api-live-on-ai-gateway", "title": "WebSocket support for OpenAI Responses API live on AI Gateway", "summary": "Vercel's AI Gateway now supports WebSocket mode for the OpenAI Responses API, enabling persistent connections that send only new input items plus previous_response_id per turn instead of full context over fresh HTTP requests. OpenAI reports up to ~40% faster end-to-end execution on WebSockets for agentic rollouts with 20 or more tool calls.", "body_md": "[AI Gateway](https://vercel.com/ai-gateway) now supports WebSocket mode for the OpenAI Responses API. You can keep a persistent connection open and continue each turn by sending only new input items plus `previous_response_id`\n\n, instead of re-sending the full context over a fresh HTTP request every turn.\n\n[OpenAI reports](https://developers.openai.com/api/docs/guides/websocket-mode) up to ~40% faster end-to-end execution on WebSockets for agentic rollouts with 20 or more tool calls.\n\nThe Responses route opens at `GET /v1/responses`\n\nand accepts raw `response.create`\n\nframes over a persistent WebSocket connection. The mode is compatible with `store=false`\n\nand [Zero Data Retention](https://vercel.com/docs/ai-gateway/security-and-compliance/zdr), and follows OpenAI's [WebSocket mode](https://developers.openai.com/api/docs/guides/websocket-mode) specification upstream.\n\nSee the [AI Gateway documentation](https://vercel.com/docs/ai-gateway/sdks-and-apis/responses/websockets) for setup and the full route list.", "url": "https://wpnews.pro/news/websocket-support-for-openai-responses-api-live-on-ai-gateway", "canonical_source": "https://vercel.com/changelog/websocket-support-for-openai-responses-api-live-on-ai-gateway", "published_at": "2026-07-27 00:01:00+00:00", "updated_at": "2026-07-27 18:08:29.576930+00:00", "lang": "en", "topics": ["ai-infrastructure", "developer-tools", "ai-products"], "entities": ["Vercel", "AI Gateway", "OpenAI", "OpenAI Responses API"], "alternates": {"html": "https://wpnews.pro/news/websocket-support-for-openai-responses-api-live-on-ai-gateway", "markdown": "https://wpnews.pro/news/websocket-support-for-openai-responses-api-live-on-ai-gateway.md", "text": "https://wpnews.pro/news/websocket-support-for-openai-responses-api-live-on-ai-gateway.txt", "jsonld": "https://wpnews.pro/news/websocket-support-for-openai-responses-api-live-on-ai-gateway.jsonld"}}