Lucy Edit
Lucy Edit is a model that edits videos from text descriptions.
Lucy Edit is a model that edits videos from text descriptions.
Documentationimport { readFile } from "node:fs";
import { createDecartClient, models } from "@decartai/sdk";
const client = createDecartClient({
apiKey: "--your-api-key--"
});
const video = await readFile("/path/to/input.mp4");
const result = await client.process({
model: models.video("lucy-pro-v2v"),
prompt: "Change their shirt to black and shiny leather",
data: video,
});Available Endpoints
Request Parameters
promptRequiredDescribe the changes you want to make to the video. Be specific about what elements to modify while preserving temporal consistency and motion.
dataRequiredThe video you want to edit. Supports MP4, WebM, and QuickTime formats up to 100MB.
resolutionOptionalOutput video resolution. Higher resolutions provide more detail but take longer to process. Dev version only supports 720p. (default: 720p) (options: 480p, 720p)
promptstringYesDescribe the changes you want to make to the video. Be specific about what elements to modify while preserving temporal consistency and motion.dataFileYesThe video you want to edit. Supports MP4, WebM, and QuickTime formats up to 100MB.resolutionstringNoOutput video resolution. Higher resolutions provide more detail but take longer to process. Dev version only supports 720p. (default: 720p) (options: 480p, 720p)Lucy Video Edit
Edit videos with text prompts for controlled results
LucyEdit enables controlled video edits. Modify specific elements - like clothing changes and character replacements - with flawless motion consistency, preserving the rest of the scene. Available in pro for even higher quality results.
Pricing
Video models are charged per second of generated video. Final cost depends on video duration and selected resolution.