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
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
promptRequiredDescribe the changes you want to make to the image. Be specific about what to modify, add, or remove while preserving other elements.
dataRequiredThe image you want to edit. Supports JPEG, PNG, and WebP formats up to 5MB.
resolutionOptionalOutput image resolution. Higher resolutions provide more detail but take slightly longer to process. (default: 720p) (options: 480p, 720p)
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
Video models are charged per second of generated video. Final cost depends on video duration and selected resolution.