Stream GPT-6 Astra responses from a Next.js route handler
Pipe OpenAI Responses API text deltas through a Next.js App Router endpoint so replies render token by token.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. What you paste stays in this tab. It is never sent to Wirestack or saved.
- OpenAI API keyOPENAI_API_KEYGet key
Click Create new secret key
$
npx wirestack add openai-stream-responses-nextjs-route@13Revision 13, checked Nov 15, 2026. Installs exactly
openai 7.57.0, creates the files and adds the key names to your .env. It shows everything first and asks before changing anything.Adapt to my stackProShowing the original (Next.js and Node.js and React). Pick your stack to see it rewritten.
Free accounts can open one adapted integration a month. Sign in to try it.
