Skip to main content
With the Decart API, you can transform and edit existing videos using text prompts. Simply upload a video and describe the changes you want to make, and LucyEdit will intelligently modify your video while preserving important motion and temporal consistency. LucyEdit excels at style transfers, object modifications, character replacements, and visual transformations. Our models maintain the core motion and structure of your original video while applying your desired edits with high precision.

Quick start

Here’s a simple example using LucyEdit, our advanced video editing model.
curl -X POST https://api.decart.ai/v1/generate/lucy-pro-v2v \
  -H "X-API-KEY: $DECART_API_KEY" \
  -F "data=@input-video.mp4" \
  -F "prompt=Change the car to a vintage motorcycle" \
  --output edited-video.mp4

Parameters

  • data (required) — Input video file to edit.
  • prompt (required) — Text description of the changes to apply.
  • resolution (optional) — Output resolution: 480p or 720p (default: 720p).

Video Requirements

  • Format: MP4 (H.264 or VP8 codec)
  • Aspect Ratio: 16:9 (landscape) or 9:16 (portrait)
  • Duration: Up to 5 seconds
  • File Size: Maximum 10MB
  • Output Resolution:
    • 480p: 480×832 (portrait) or 832×480 (landscape)
    • 720p: 720×1280 (portrait) or 1280×720 (landscape)
For complete API documentation including response formats and error codes, see the API Reference.

Available Models and Options

Decart provides different editing models to balance precision, creativity, and cost depending on your use case. We currently offer:
  • LucyEdit — our flagship editing model for precise, high-quality video transformations.
  • LucyEdit-Dev — a faster model optimized for simple edits and quick iterations.

Model Comparison

ModelQualitySpeedBest For
LucyEditExcellentStandardProduction quality, complex edits
LucyEdit-DevGoodFastQuick prototypes, simple changes

Prompt Engineering for Video Edits

Video editing requires different prompt strategies than generation. Your prompts should clearly describe what to change while implicitly indicating what to preserve. LucyEdit interprets your instructions in the context of the existing video and maintains temporal consistency. Effective editing prompts are specific about changes (what to modify), clear about scope (which elements to transform), and descriptive about the target result. Unlike generation, you don’t need to describe the entire scene—focus only on what needs to change. LucyEdit excels at motion preservation, temporal consistency, and prompt adherence. Pro tip: Detailed prompts (20–40 words) describing style, appearance, and context produce significantly better results than short instructions.

Supported Edit Types

✅ Best Performance

1. Clothing & Costume Changes

LucyEdit excels at swapping outfits while preserving motion and identity throughout the video.
  • Example: “Change the casual outfit to a formal black tuxedo with bow tie”
  • Example: “Replace the modern clothes with medieval knight armor”

2. Character/Object Replacement

Strong results when transforming objects or characters while maintaining original motion patterns.
  • Example: “Replace the car with a futuristic hoverbike, metallic finish”
  • Example: “Transform the dog into a tiger with striped orange fur”

3. Style Transfer

Reliable for applying consistent visual styles across all frames.
  • Example: “Transform to anime style with vibrant colors and cel shading”
  • Example: “Apply film noir aesthetic with high contrast black and white”

⚠️ Mixed Reliability

4. Background Replacement

Works well but may affect foreground elements. Best with clear subject-background separation.
  • Example: “Change the city street to a tropical beach with palm trees”
  • Tip: Specify what should remain unchanged for better results

5. Weather & Atmosphere

Can add environmental effects but intensity may vary across frames.
  • Example: “Add heavy rain and storm clouds with lightning”
  • Example: “Make it a foggy morning with soft diffused lighting”

6. Color Grading

Sometimes subtle, sometimes dramatic. Works best with specific descriptions.
  • Example: “Apply warm sunset color grade with orange and pink tones”
  • Tip: Specify exact moods and color palettes for consistency

Additional Optimization Tips

  • Motion preservation: The model excels at maintaining original movement patterns
  • Detail improves results: Include style, materials, colors, and textures in your prompts
  • Batch similar edits: Process videos with similar edits together for more consistent results
Bottom line: LucyEdit performs best with detailed prompts that clearly describe the desired changes. Focus on clothing swaps, character replacements, and style transfers for the most reliable results.

Endpoint and Full API Reference

Next steps

Now that you know the basics of video editing, you might want to check out one of these resources next.
I