This page documents all configuration options available for video generation with Decart models.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.
Standard Settings
These settings are part of the AI SDK’s standard video generation API:aspectRatio
Controls the aspect ratio of the generated video.Supported values:
16:9- Landscape orientation9:16- Portrait orientation
aspectRatio value is converted to an orientation field for the API:
16:9→orientation: "landscape"9:16→orientation: "portrait"
src/decart-video-model.ts:110-122
resolution
Sets the video resolution.Supported values:
1280x720- 720p (high quality)854x480- 480p (faster generation)
- Height 720 →
"720p" - Height 480 →
"480p"
- Conversion:
src/decart-video-model.ts:42-49 - Validation:
src/decart-video-model.ts:125-135
Unsupported resolutions will generate a warning and be ignored.
seed
Random seed for reproducible video generation.Using the same seed with identical parameters produces the same output.
src/decart-video-model.ts:152-154
Unsupported Settings
These standard AI SDK settings are not supported by Decart models and will generate warnings:Frames per second - Not supportedSource Reference:
src/decart-video-model.ts:138-140Video duration - Not supportedSource Reference:
src/decart-video-model.ts:141-143Provider-Specific Options
Decart-specific options are passed viaproviderOptions.decart:
trajectory
Motion trajectory for
lucy-motion model.Each point specifies:frame- Frame number (0-based)x- Horizontal position (0.0 to 1.0)y- Vertical position (0.0 to 1.0)
lucy-motion- Type definition:
src/decart-video-model.ts:18-22 - Processing:
src/decart-video-model.ts:169-171
See the Motion Control guide for detailed trajectory usage.
orientation
Override orientation directly instead of deriving from
aspectRatio.Values:landscape- Horizontal orientationportrait- Vertical orientation
aspectRatio if both are specified.- Type definition:
src/decart-video-model.ts:24-28 - Processing:
src/decart-video-model.ts:111-122
pollIntervalMs
Time in milliseconds between status checks during video generation.Lower values check more frequently but increase API calls.
- Type definition:
src/decart-video-model.ts:31-33 - Usage:
src/decart-video-model.ts:196
pollTimeoutMs
Maximum time in milliseconds to wait for video generation.Default: 300000 (5 minutes)Increase this for complex videos or slow network conditions.
- Type definition:
src/decart-video-model.ts:35-38 - Usage:
src/decart-video-model.ts:197,211-216
Complete Configuration Example
Here’s a video generation call using all available settings:Settings by Model
| Setting | lucy-pro-t2v | lucy-pro-i2v | lucy-dev-i2v | lucy-motion |
|---|---|---|---|---|
| aspectRatio | ✅ | ✅ | ✅ | ✅ |
| resolution | ✅ | ✅ | ✅ | ✅ |
| seed | ✅ | ✅ | ✅ | ✅ |
| trajectory | ❌ | ❌ | ❌ | ✅ |
| orientation | ✅ | ✅ | ✅ | ✅ |
| pollIntervalMs | ✅ | ✅ | ✅ | ✅ |
| pollTimeoutMs | ✅ | ✅ | ✅ | ✅ |
Response Structure
ThegenerateVideo function returns:
src/decart-video-model.ts:247-261
Best Practices
Aspect Ratio Selection
Aspect Ratio Selection
- Use
16:9for landscape scenes (nature, cityscapes, wide shots) - Use
9:16for portrait content (people, tall subjects, mobile-first) - Match the aspect ratio to your input image dimensions for I2V models
- Consider the target platform (web, mobile, social media)
Resolution Choice
Resolution Choice
- Use
1280x720(720p) for production and final output - Use
854x480(480p) for faster iteration during development - Higher resolution increases generation time
- Both resolutions maintain the same aspect ratio
Seed Usage
Seed Usage
- Set a seed for reproducible results in testing
- Omit seed for variety in production
- Document seed values for successful generations
- Same seed ≠ same result if other parameters change
Polling Configuration
Polling Configuration
- Increase
pollIntervalMsto reduce API calls - Increase
pollTimeoutMsfor complex generations - Lower
pollIntervalMsfor faster response times - Monitor timeout errors to adjust timeout values
Next Steps
View All Models
Explore model-specific capabilities
See Examples
Browse complete working examples
Motion Control
Learn trajectory-based generation
Text-to-Video
Generate videos from text