Speeding up agentic workflows with WebSockets in the Responses API

AI-generated summary of reporting by OpenAI News. Read the original for the full story.

Why it matters

Developers running agentic workflows on OpenAI's Responses API can cut end-to-end latency up to 40% by switching to WebSocket mode, which is live now.

Read this as

OpenAI changed how its Responses API talks to software like Codex. Instead of starting a fresh HTTP connection and resending the whole conversation for every step, the API now keeps one persistent WebSocket connection open and remembers prior state. This made agent workflows up to 40% faster, letting users actually feel the new GPT-5.3-Codex-Spark model's speed of about 1,000 tokens per second.

OpenAI shipped WebSocket mode for the Responses API in late 2025 after a two-month sprint, and Codex moved the majority of its traffic onto it. Partners saw real gains: Vercel cut latency up to 40%, Cline's multi-file workflows 39%, Cursor 30%. The strategic point: API overhead was wasting the speed of Cerebras-backed inference, and OpenAI is now retrofitting its infrastructure around fast agents.

Responses API overhead was limiting GPT-5.3-Codex-Spark (target 1,000+ TPS on Cerebras hardware vs ~65 TPS for GPT-5/5.2). Per-request HTTP forced reprocessing of full conversation history, so OpenAI moved to WebSockets over gRPC streaming to preserve API shapes: connection-scoped in-memory cache keyed by previous_response_id stores rendered tokens, routing state, and lets safety classifiers and validators process only new input; billing is overlapped with subsequent requests. A single long-running Response prototype showed lower latency but a worse API shape. Bursts of 4,000 TPS observed in production.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Codex Responses API GPT-5.3-Codex-Spark WebSockets Vercel Cline Cursor

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading