Decart Logo
  • Real-time
  • Mirage LSD
    Mirage LSDRealtime Video Restyling
  • Lucy Edit Live
    Lucy Edit LiveRealtime Video Editing
  • LipSync Live
    LipSync LiveRealtime Lips movement
  • Video models
  • Lucy
    LucyText/Image to Video
  • Lucy Edit
    Lucy EditVideo to Video
  • Image models
  • Lucy Image
    Lucy ImageText to Image
  • Lucy Image Edit
    Lucy Image EditImage to Image
  • Cookbook icon
    Cookbook
  • Documentation icon
    Documentation
  1. Models
  2. Lucy Edit Live
Lucy Edit Live icon

Lucy Edit Live

Edit video in realtime with controlled, targeted prompts

Edit video in realtime with controlled, targeted prompts

Documentation
2 Credits Per Second
2 Credits Per Second

Input

Press play to start with camera

Select video input*

or start with asset

Output

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

const model = models.realtime("lucy_v2v_720p_rt");

// Get user's camera stream with model specifications
const stream = await navigator.mediaDevices.getUserMedia({
  audio: true,
  video: {
    frameRate: model.fps,
    width: model.width,
    height: model.height,
  }
});

// Create a client
const client = createDecartClient({
  apiKey: "your-api-key-here"
});

// Connect and edit the video stream
const realtimeClient = await client.realtime.connect(stream, {
  model,
  onRemoteStream: (editedStream) => {
    // Display the edited video
    const videoElement = document.querySelector("#video-output");
    videoElement.srcObject = editedStream;
  }
});

// Apply different edits on the fly
realtimeClient.setPrompt("Change the person's shirt to red");

// Disconnect when done
realtimeClient.disconnect();

Available Endpoints

Request Parameters

promptRequired
Type:string

Edit description for live transformation

streamRequired
Type:File

Video stream (WebRTC)

Parameter
Type
Required
Description
promptstringYesEdit description for live transformation
streamFileYesVideo stream (WebRTC)

Lucy Edit Live

Edit video in realtime with controlled, targeted prompts

LucyEdit-Live enables targeted video edits, modifying specific elements while preserving the rest. Edit infinite long videos in realtime, with zero latency, and see your changes as you type.

Pricing

Model
pro
720p
2 Creditsper 1s

Video models are charged per second of generated video. Final cost depends on video duration and selected resolution.

Examples