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 Image Edit
Lucy Image Edit icon

Lucy Image Edit

Lucy Image Edit is a model that edits images from text descriptions.

Lucy Image Edit is a model that edits images from text descriptions.

Documentation
Studio Output
import { readFile } from "node:fs";
import { createDecartClient, models } from "@decartai/sdk";

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

const image = await readFile("/path/to/input.jpg");

const result = await client.process({
  model: models.image("lucy-pro-i2i"),
  prompt: "Add a rainbow in the sky and make it more vibrant",
  data: image,
});

Available Endpoints

Request Parameters

promptRequired
Type:string

Describe the changes you want to make to the image. Be specific about what to modify, add, or remove while preserving other elements.

dataRequired
Type:File

The image you want to edit. Supports JPEG, PNG, and WebP formats up to 5MB.

resolutionOptional
Type:string

Output image resolution. Higher resolutions provide more detail but take slightly longer to process. (default: 720p) (options: 480p, 720p)

Parameter
Type
Required
Description
promptstringYesDescribe the changes you want to make to the image. Be specific about what to modify, add, or remove while preserving other elements.
dataFileYesThe image you want to edit. Supports JPEG, PNG, and WebP formats up to 5MB.
resolutionstringNoOutput image resolution. Higher resolutions provide more detail but take slightly longer to process. (default: 720p) (options: 480p, 720p)

Lucy Image Edit

Edit images with text prompts for controlled results

Lucy Image Edit enables fast, controlled image editing - input an image, prompt the changes, and get back your finished product. Iterate rapidly.

Pricing

Model
pro
480p
2 Credits
720p
3 Credits

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

Examples