Skip to content

Openai Realtime Api Nextjs

OpenAI Realtime API Next.js is a comprehensive starter template built with Next.js 16, TypeScript, OpenAI Realtime API, WebRTC, Tailwind CSS, shadcn/ui, and Framer Motion, designed for building Voice AI applications with real-time voice interaction capabilities and advanced tool-calling features.

Openai Realtime Api Nextjs — preview
Updated

Live preview

Live Preview

Interact with the actual deployed template — every section, every interaction, no mockups.

openai-rt-shadcn.vercel.app

Open in a new tab (opens in a new tab)

Loading preview…

About

About OpenAI Realtime API Next.js

This robust framework provides WebRTC-based voice AI streaming for low-latency audio, Next.js server-side rendering for optimal performance, modern UI with smooth animations via Framer Motion, abstracted WebRTC handling through custom React hooks, six example tool-calling functions demonstrating capabilities like getCurrentTime, partyMode, and changeBackground, and multilingual support for English, Spanish, French, and Chinese with strict TypeScript checking ensuring type safety. Supporting both Deno and Node.js runtimes and deployable to Vercel with one-click setup, the template emphasizes ease of use and developer experience while enabling sophisticated voice AI interactions.

Perfect for customer service applications with voice-based support, accessibility tools enabling voice control, educational platforms with conversational tutoring, productivity applications supporting voice commands, or any interface where voice interaction provides more natural engagement than traditional text inputs. The custom hook abstraction simplifies WebRTC complexity, enabling developers to focus on application logic and AI capabilities rather than connection management and audio streaming protocols, while the example tool-calling functions demonstrate how voice AI can trigger application actions, creating interactive experiences that respond to user speech in real-time.

Get started

Free, open source, and ready to ship.

Clone the repo, install dependencies, and start customising. OpenAI Realtime API Next.js is free and open source: its license is in the repository.

  1. Clone the OpenAI Realtime API Next.js repository from GitHub.
  2. Run npm install or pnpm install to install all required packages.
  3. Run npm run dev to start the development server and begin customizing.
  4. Check the repository’s README and license before you ship.

Terminal

$ git clone https://github.com/cameronking4/openai-realtime-api-nextjs
$ cd openai-realtime-api-nextjs
$ npm install
$ npm run dev

Included in Pro

More Templates

Hand-built premium templates from shadcn.io — production-ready and bundled in Pro.

Every template, every block. One Pro plan unlocks all 14, with 6,000+ blocks and MCP for your AI editor.

Get Pro

Pricing

Every premium template, with Pro

All 14 premium templates come with every Pro plan, with 6,000+ blocks and the MCP server. Pick the seats you need.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

Everything you need to know before you ship with OpenAI Realtime API Next.js.

4.9 out of 5 from 150+ developers

Ship your next site this weekend

14 premium templates, 6,000+ blocks and MCP in every Pro plan. OpenAI Realtime API Next.js and the other 214 open source templates stay free.

Get Pro