Decart Logo
  • Home icon
    Home
  • Showcases icon
    Showcase
  • Api keys icon
    API Keys
  • Usage icon
    Usage
  • Credit card icon
    Billing
  • Cookbook icon
    Cookbook
  • Documentation icon
    Documentation

Real-time AIBecame Real

Decart's cutting edge infrastructure transforms video at unprecedented speed. What once took hours now takes seconds, letting you iterate faster, explore new styles, and bring ideas to life without delay.

import { createDecartClient, models } from "@decartai/sdk";

const client = createDecartClient({
  apiKey: process.env.DECART_API_KEY,
});

const model = models.realtime("lucy-2.1");
const stream = await navigator.mediaDevices.getUserMedia({
  video: {
    frameRate: model.fps,
    width: model.width,
    height: model.height,
  }
});

const realtimeClient = await client.realtime.connect(stream, {
  model,
  mirror: "auto",
  onRemoteStream: (editedStream) => {
    videoElement.srcObject = editedStream;
  },
  initialState: {
    prompt: { text: "Change the person's shirt to red" }
  }
});

// Update the edit dynamically after 5 seconds
setTimeout(() => {
  realtimeClient.setPrompt("Add sunglasses to the person");
}, 5000);

Real-time

Lucy

Realtime Video Editing

Lucy icon

Lucy Restyle

Realtime Video Restyling

Lucy Restyle icon

Video models

Lucy

Video to Video

Lucy icon

Lucy Restyle

Video to Video

Lucy Restyle icon

Image models

Lucy Image

Image to Image

Lucy Image icon

© 2026 Decart AI Platform. Powered by cutting-edge AI technology.

GitHubRedditTwitterHuggingFaceComfyUIDiscordOpen Source Discussion