replicate/getting-started-openai-realtime
JavaScript
Captured source
source ↗replicate/getting-started-openai-realtime
Description: A real-time demo app using OpenAI, Replicate, and Cloudflare that lets you run functions in your browser using your voice.
Language: JavaScript
Stars: 13
Forks: 2
Open issues: 0
Created: 2025-04-03T02:21:12Z
Pushed: 2025-06-21T05:10:34Z
Default branch: main
Fork: no
Archived: no
README:
Getting started with the OpenAI Realtime API
This is a real-time demo app that lets you run functions in your browser using your voice.
It's powered by OpenAI's Realtime API over WebRTC, runs on Cloudflare Workers, and uses Replicate models to generate images.
Check out the guide to running this app: replicate.com/docs/guides/openai-realtime
Prerequisites
Here's what you'll need to build this project:
- An OpenAI account. No special plan is required to use the Realtime API Beta.
- A Cloudflare account. You can sign up and run workers for free.
- A Replicate account.
- Node.js 20 or later.
- Git for cloning the project from GitHub.
Development
- Create a Replicate API token at replicate.com/account/api-tokens
- Create an OpenAI API key at platform.openai.com/api-keys
Copy [.dev.vars.example](./.dev.vars.example) to .dev.vars:
cp .dev.vars.example .dev.vars
Edit .dev.vars and add your OpenAI API key and Replicate API token:
OPENAI_API_KEY=... REPLICATE_API_TOKEN=...
Install dependencies
npm install
Run local server
npm run dev
Deploy
Upload your secrets
npx wrangler secret put OPENAI_API_KEY npx wrangler secret put REPLICATE_API_TOKEN
npm run deploy
Notability
notability 3.0/10Routine starter repo, low stars