Skip to main content

Interface

Decart video models support additional provider-specific options that control motion, orientation, and polling behavior. These options are passed via the providerOptions.decart parameter.

Options

trajectory

Array<{ frame: number; x: number; y: number }>
Trajectory array for motion control (used with lucy-motion model).Each point in the array defines:
  • frame - Frame number (0-based)
  • x - Horizontal coordinate (0.0 to 1.0, normalized)
  • y - Vertical coordinate (0.0 to 1.0, normalized)
The trajectory defines how the camera or subject moves across frames.
Coordinate System:
  • x: 0.0 = Left edge
  • x: 1.0 = Right edge
  • y: 0.0 = Top edge
  • y: 1.0 = Bottom edge
  • x: 0.5, y: 0.5 = Center

orientation

'landscape' | 'portrait'
Override orientation directly instead of deriving from aspectRatio.Values:
  • "landscape" - Horizontal/wide orientation (equivalent to 16:9)
  • "portrait" - Vertical/tall orientation (equivalent to 9:16)
This option takes precedence over the aspectRatio parameter.
When to use:
  • Use orientation when you want to directly specify the orientation
  • Use aspectRatio (standard parameter) when working with standard AI SDK conventions
  • If both are specified, orientation takes precedence

pollIntervalMs

number
default:"1500"
Polling interval in milliseconds.Controls how frequently the SDK checks if video generation is complete.
  • Lower values = more frequent checks = faster response when complete
  • Higher values = less frequent checks = lower API load
Default: 1500ms (1.5 seconds)

pollTimeoutMs

number
default:"300000"
Polling timeout in milliseconds.Maximum time to wait for video generation to complete before throwing an error.Default: 300000ms (5 minutes)

Usage Examples

Motion Control with lucy-motion

Custom Polling Configuration

Portrait Orientation Override

Combined Options

Error Handling

Timeout Errors

Abort Signal with Polling