# WebSocket support for OpenAI Responses API live on AI Gateway

DevFeed: [WebSocket support for OpenAI Responses API live on AI Gateway](<https://devfeed.tech/articles/websocket-support-for-openai-responses-api-live-on-ai-gateway-1197.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/websocket-support-for-openai-responses-api-live-on-ai-gateway>)

Author: Jerilyn Zheng

Published: 2026-07-27T00:01:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-gateway](<https://devfeed.tech/tags/ai-gateway.md>), [api](<https://devfeed.tech/tags/api.md>), [data](<https://devfeed.tech/tags/data.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [http](<https://devfeed.tech/tags/http.md>), [openai](<https://devfeed.tech/tags/openai.md>), [support](<https://devfeed.tech/tags/support.md>)

## AI overview

AI Gateway adds persistent WebSocket connections for the OpenAI Responses API. Clients can continue turns with new input items and a previous response ID rather than resending full context over HTTP.

## Source excerpt

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, instead of re-sending the full context over a fresh HTTP request every turn. OpenAI reports up to ~40% faster end-to-end execution on WebSockets for agentic rollouts with 20 or more tool calls. Route Responses API traffic over WebSocket The Responses route opens at GET /v1/responses and accepts raw response.create frames over a persistent WebSocket connection. The mode is compatible with store=false and Zero Data Retention, and follows OpenAI's WebSocket mode specification upstream. See the AI Gateway documentation for setup and the full route list. Read more