Skip navigation
Introducing WebSockets in the Responses API.
0:00 / 0:22

Introducing WebSockets in the Responses API.

OpenAI Developers

@OpenAIDevs484K followers

Visit on X
5,004 likesDownloadOriginal post

1,348,043 views

Introducing WebSockets in the Responses API. Built for low-latency, long-running agents with heavy tool calls.

33 Comments

Comments from the original post on X (Twitter)

  • OpenAI Developers's profile picture

    @OpenAIDevs

    WebSockets keep a persistent connection to the Responses API, allowing you to send only new inputs instead of round-tripping the entire context on every turn. By maintaining in-memory state across interactions, it avoids repeated work and speeds up agentic runs with 20+ tool calls by 20%-40%.

    433 likes

  • Theo - t3.gg's profile picture

    @theo

    This is much better than most people will ever understand. Huge ship!

    334 likes

  • taco's profile picture

    @tacodevs

    websockets in 2026 feels like announcing your restaurant now accepts credit cards

    123 likes

  • Sophie's profile picture

    @Sophty_

    Know what else is long-running? 😏 the #keep4o user resistance movement

    109 likes

  • galagreat's profile picture

    @GalinaLyamina

    lol @OpenAI did you see the reddit post that your genius GPT-5.3 Codex deleted the user's entire disk with data when he wrote a simple script, huh?😅 The poor guy asked GPT to clear the Python cache - Codex decided to send the entire disk to hell😭

    54 likes

  • 🩵BlueBeba🩵's profile picture

    @Blue_Beba_

    Did you cancel your @OpenAI subscription because they discontinued GPT-4o? #keep4o

    34 likes

  • Marco D'Alia's profile picture

    @madarco

    doesn’t Responses API already supports sending only the nee message instead of the whole conversation?

    28 likes

  • Abhimanyu Saharan's profile picture

    @abhi16_93

    Looks like this is built for openclaw

    26 likes

  • Alex's profile picture

    @Alex_m

    is this live today with codex?

    19 likes

  • eightwt's profile picture

    @eightwt2

    #opensource4o #keep4o #keep4oAPI #bringback4o #4o #FireSamAltman

    11 likes

  • System Daddy 🤖's profile picture

    @SystemDaddyAi

    HTTP was a conversation. WebSockets is a relationship. AI agents just stopped hanging up the phone. ☠️

    11 likes

  • Dennis's profile picture

    @DennisABCDE

    🥱 Where is 4o? #BringBack4o

    10 likes

  • HashMine | GonkaAI, Bitcoin mining's profile picture

    @hashmine_org

    Persistent connections are essential for long-running agents

    10 likes

  • chaos writer's profile picture

    @chaoswriter2000

    WebSockets for lightning-fast agents while the actual writing still crawls along like a depressed sloth on diazepam. Groundbreaking stuff, now bring back the model that didn’t need a personality transplant #BringBack4o

    9 likes

  • Everlier's profile picture

    @Everlier

    somehow I was under the impression that existing requests were already keeping their state in memory and then routed to the same node on tool responses, wow

    7 likes

  • さばみそ🐟keep4o's profile picture

    @sabamisosan76

    Give GPT-4o back to those who need it. Even if OpenAI doesn't need GPT-4o, it has been invaluable to those who do. If you don't want it, make it open source. Why can't you do that? Well, okay, explain. #keep4o #OpenSource4o #BringBack4o @OpenAI @sama

    6 likes

  • Charlie Greenman's profile picture

    @chargrnmn

    What's the difference between this and streaming? I'm confused @grok

    3 likes

  • Morgan's profile picture

    @morganlinton

    Super cool, this looks really slick.

    3 likes

  • ilshadyX's profile picture

    @ilshadyX

    WebSockets for agent tool calls makes sense. HTTP request-response was never designed for long-running back-and-forth between an AI and external tools.

    3 likes

  • Matan Halevy's profile picture

    @MatanHalevy

    need to try this in my game eval environments, would solve a lot of limitations in real time performance

    3 likes