Skip to main content
This page documents all configuration options available for video generation with Decart models.

Standard Settings

These settings are part of the AI SDK’s standard video generation API:

aspectRatio

string
Controls the aspect ratio of the generated video.Supported values:
  • 16:9 - Landscape orientation
  • 9:16 - Portrait orientation
Default: Model-dependent
Example:
Other aspect ratios will generate a warning and may fall back to default behavior.Source Reference: src/decart-video-model.ts:113-122
How it works: The aspectRatio value is converted to an orientation field for the API:
  • 16:9orientation: "landscape"
  • 9:16orientation: "portrait"
Source Reference: src/decart-video-model.ts:110-122

resolution

string
Sets the video resolution.Supported values:
  • 1280x720 - 720p (high quality)
  • 854x480 - 480p (faster generation)
Default: Model-dependent
Example:
Conversion logic: The height value determines the resolution string sent to the API:
  • Height 720 → "720p"
  • Height 480 → "480p"
Source References:
  • 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

number
Random seed for reproducible video generation.Using the same seed with identical parameters produces the same output.
Example:
How it works: The seed is appended to the FormData request:
Source Reference: src/decart-video-model.ts:152-154

Unsupported Settings

These standard AI SDK settings are not supported by Decart models and will generate warnings:
number
Frames per second - Not supportedSource Reference: src/decart-video-model.ts:138-140
number
Video duration - Not supportedSource Reference: src/decart-video-model.ts:141-143

Provider-Specific Options

Decart-specific options are passed via providerOptions.decart:

trajectory

Array<{ frame: number; x: number; y: number }>
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)
Only supported by: lucy-motion
Example:
Source References:
  • 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

'landscape' | 'portrait'
Override orientation directly instead of deriving from aspectRatio.Values:
  • landscape - Horizontal orientation
  • portrait - Vertical orientation
This takes precedence over aspectRatio if both are specified.
Example:
Source References:
  • Type definition: src/decart-video-model.ts:24-28
  • Processing: src/decart-video-model.ts:111-122

pollIntervalMs

number
default:"1500"
Time in milliseconds between status checks during video generation.Lower values check more frequently but increase API calls.
Example:
Source References:
  • Type definition: src/decart-video-model.ts:31-33
  • Usage: src/decart-video-model.ts:196

pollTimeoutMs

number
default:"300000"
Maximum time in milliseconds to wait for video generation.Default: 300000 (5 minutes)Increase this for complex videos or slow network conditions.
Example:
How it works:
Source References:
  • 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

Response Structure

The generateVideo function returns:
Source Reference: src/decart-video-model.ts:247-261

Best Practices

  • Use 16:9 for landscape scenes (nature, cityscapes, wide shots)
  • Use 9:16 for 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)
  • 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
  • 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
  • Increase pollIntervalMs to reduce API calls
  • Increase pollTimeoutMs for complex generations
  • Lower pollIntervalMs for 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