TheDocumentation 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-t2v model generates videos directly from text descriptions without requiring an input image. This is ideal for creating videos from scratch based on natural language prompts.
Basic Usage
Generate Video
Call Source Reference:
generateVideo with the lucy-pro-t2v model and your text prompt:examples/tasks/video-generation-t2v.ts:7-10Complete Example
Customizing Output
Aspect Ratio
Control video orientation with theaspectRatio parameter:
The
aspectRatio parameter is converted to an orientation value (landscape or portrait) in the API request.Source Reference: src/decart-video-model.ts:110-122Resolution
Set video resolution using theresolution parameter:
Reproducible Results
Use theseed parameter to generate reproducible videos:
Using the same prompt, seed, and settings will produce the same video output.Source Reference:
src/decart-video-model.ts:152-154Advanced Configuration
Custom Polling Behavior
Video generation is asynchronous. Customize the polling behavior:Time in milliseconds between status checks during video generation.Source Reference:
src/decart-video-model.ts:196Maximum time in milliseconds to wait for video generation (default: 5 minutes).Source Reference:
src/decart-video-model.ts:197Abort Signal
Cancel long-running video generation requests:src/decart-video-model.ts:204-209
Writing Effective Prompts
Prompt Best Practices
Prompt Best Practices
- Be specific about the subject, action, and environment
- Include motion or camera movement descriptions
- Specify lighting, weather, or atmosphere when relevant
- Keep prompts concise but descriptive (1-2 sentences)
- “A golden retriever running through a sunny meadow with wildflowers”
- “Aerial view of a city at sunset, camera slowly panning across skyscrapers”
- “Close-up of raindrops falling on a window with a blurred cityscape behind”
- “A dog” (too vague)
- “A detailed scene with a dog running in a field with flowers and trees and mountains in the background on a sunny day…” (too long)
Response Structure
ThegenerateVideo function returns a result object:
src/decart-video-model.ts:247-261
Error Handling
Common errors include timeout (exceeding 5 minutes), job failure, or network issues.Source References:
- Timeout error:
src/decart-video-model.ts:211-216 - Job failure:
src/decart-video-model.ts:230-235
Next Steps
Image-to-Video
Animate existing images into videos
Motion Control
Control camera and subject movement
Settings Reference
View all configuration options
Examples
Browse complete working examples