Image-to-video generation animates static images into dynamic videos. Decart provides two models for this capability:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DecartAI/ai-sdk-provider/llms.txt
Use this file to discover all available pages before exploring further.
lucy-pro-i2v for production use and lucy-dev-i2v for development and testing.
Basic Usage
Generate Video
Pass the image and an optional text prompt:Source Reference:
examples/tasks/video-generation-i2v.ts:7-14Complete Example
Model Selection
lucy-pro-i2v (Production)
Uselucy-pro-i2v for high-quality, production-ready image-to-video generation:
Source Reference:
src/decart-video-settings.ts:3lucy-dev-i2v (Development)
Uselucy-dev-i2v for faster iteration during development:
The development model processes faster but may have lower quality compared to the production model.Source Reference:
src/decart-video-settings.ts:4Image Input Formats
Theimage field accepts different input types:
- Uint8Array
- URL
- Base64
The provider automatically handles image format conversion and appends it to the request.Source References:
- Image handling:
src/decart-video-model.ts:51-63 - Base64 conversion:
src/decart-video-model.ts:65-72 - FormData append:
src/decart-video-model.ts:164-166
Animation Guidance
Text Prompts for Animation
The text prompt guides how the image should be animated:Effective Animation Prompts
Effective Animation Prompts
Good Animation Prompts:
- “The character turns their head to the left”
- “Gentle wind blows through the trees”
- “The subject walks forward towards the camera”
- “Waves crash against the shore”
- “The person smiles and nods”
- Describe natural, plausible movements
- Keep motion descriptions simple and focused
- Consider the physics and constraints of the scene
- Specify direction and speed when relevant
Image-Only Generation
You can omit the text prompt to let the model determine appropriate animation:Customizing Output
Aspect Ratio
Supported aspect ratios:
16:9 (landscape) and 9:16 (portrait)Source Reference: src/decart-video-model.ts:113-122Resolution
src/decart-video-model.ts:42-49
Reproducible Results
Using the same image, prompt, seed, and settings will produce consistent results.
Advanced Options
Custom Polling
Image-to-video generation is asynchronous. Customize the polling behavior:- Poll interval:
src/decart-video-model.ts:196 - Poll timeout:
src/decart-video-model.ts:197
Direct Orientation Control
Override aspect ratio by setting orientation directly:src/decart-video-model.ts:27-28
Comparison: Production vs Development
| Feature | lucy-pro-i2v | lucy-dev-i2v |
|---|---|---|
| Quality | High | Standard |
| Speed | Standard | Faster |
| Use Case | Production | Development/Testing |
| API Interface | Identical | Identical |
| Settings Support | Full | Full |
Error Handling
Next Steps
Motion Control
Control precise movement with trajectories
Text-to-Video
Generate videos from text prompts
Settings Reference
View all configuration options
Examples
Browse complete working examples