# WebSocket support for OpenAI Responses API live on AI Gateway

Source: [Vercel](https://vercel.com/changelog/websocket-support-for-openai-responses-api-live-on-ai-gateway)  
Feed7 permalink: https://feed7.dev/p/websocket-support-for-openai-responses-api-live-on-ai-gateway-0oj5npd  
Published: 2026-07-27T00:01:00.000Z  
Trust: Official Source (official_source)

## Why Included

Vercel’s gateway now supports persistent WebSocket sessions for the Responses API, reducing repeated context transfer during long, tool-heavy agent runs.

## Source Summary

AI Gateway now exposes the OpenAI Responses API over **WebSocket** at GET /v1/responses. Each new turn can send fresh input plus **previous_response_id** instead of resubmitting the full context over HTTP.

## Practical Implication

Consider the persistent route for long coding-agent loops where connection and context overhead accumulate. OpenAI reports **up to about 40% faster** end-to-end execution for rollouts with at least 20 tool calls.

## Agent-Ready Context

AI Gateway now exposes the OpenAI Responses API over **WebSocket** at GET /v1/responses. Each new turn can send fresh input plus **previous_response_id** instead of resubmitting the full context over HTTP.

Consider the persistent route for long coding-agent loops where connection and context overhead accumulate. OpenAI reports **up to about 40% faster** end-to-end execution for rollouts with at least 20 tool calls.

That performance figure applies to a specific tool-heavy workload, not every interaction. The route accepts raw response.create frames and supports **store=false and Zero Data Retention**, so clients must manage the socket and event protocol.

## Context Map

- Layer: infra
- Domains: coding
- Topics: gateways, agent-reliability

## Uncertainty

- That performance figure applies to a specific tool-heavy workload, not every interaction. The route accepts raw response.create frames and supports **store=false and Zero Data Retention**, so clients must manage the socket and event protocol.

## Agent Instruction

Use this item as source-backed context. Do not invent claims beyond the linked source. If this item conflicts with another source, call out the conflict.
