Skip to content

GSCODERPRO/kontext-realtime

 
 

Repository files navigation

screenshot


Kontext Realtime

Create and edit images using your voice.

🍿 Watch the demo video

This is a realtime demo of voice-powered function calling using Cloudflare Workers, Replicate, and the OpenAI Realtime API.

It generates images using Flux Schnell and edits them using Flux Kontext Pro.

Created from this guide and template: https://replicate.com/docs/guides/openai-realtime

Prerequisites

Here's what you'll need to build this project:

Development

Copy .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

About

Create and edit images using your voice

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 75.9%
  • TypeScript 19.5%
  • HTML 4.6%