Prompt Writing Guide
Writing high-quality prompts is key to obtaining excellent videos. Below are detailed explanations of each element:Prompt Structure
- Subject Description
- Actions & Behaviors
- Environment & Scene
- Camera Movement
- Visual Style
- “An orange kitten”
- “A young girl in a red dress”
- “A silver sports car”
- “Something”
- “Some animals”
- “Walking slowly”
- “Running quickly”
- “Dancing gracefully”
- “Moving”
- “Doing something”
- “A sunny garden”
- “Rainy city streets at night”
- “A beach at sunset”
- “Some place”
- “Outside”
- “Camera following”
- “Overhead view”
- “360-degree rotation”
- “4K high definition, cinematic quality”
- “Animation style”
- “Vintage film aesthetic”
Excellent Prompt Examples
Prompt Enhancement Feature
Enablingenhance_prompt allows AI to automatically optimize your prompt, improving generation quality
When to Use Prompt Enhancement
Recommended
- First-time API usage
- Simple prompts
- Want better results
- Unsure how to describe
Can Disable
- Need precise control
- Already have comprehensive prompts
- Specific style requirements
- Technical descriptions
Using Reference Images
Image Requirements
| Requirement | Description |
|---|---|
| Format | JPG, PNG, WebP |
| Size | Max 10MB per image |
| Quantity | Max 5 images |
| Resolution | Recommended 1024x1024 or higher |
| Content | Clear, relevant reference material |
Usage Tips
1 Choose High-Quality Images Use clear, high-resolution images as references 2 Maintain Consistent Style Multiple images should maintain visual style consistency 3 Prioritize Relevance Select reference images most relevant to the target video 4 Avoid Conflicts Image content should not conflict with text descriptionsPolling Strategy
Recommended Polling Implementation
Polling Parameter Recommendations
- Initial interval: 5 seconds
- Max interval: 60 seconds
- Backoff factor: 1.5
- Max wait: 30 minutes
Error Handling
Retry Strategy
Common Error Handling
- Network Errors
- API Errors
- Task Failures
Performance Optimization
Batch Processing
When generating multiple videos, batch processing is recommended:Resource Management
Note concurrency limit: Maximum 10 tasks simultaneouslyCost Optimization
Model Selection Strategy
Testing Recommendations
Useveo3 or veo3-fast for testing during development, select appropriate models for production based on needs
Monitoring and Logging
Recommended Logging
Monitoring Metrics
- Task success rate
- Average generation time
- API response time
- Error rate statistics
- Cost tracking