Prompt Writing Guide
Writing high-quality prompts is key to getting excellent videos. Here are detailed explanations for each element:Prompt Structure
- Subject Description
- Actions & Behavior
- Environment & Scene
- Camera Movement
- Visual Style
Clearly describe the main object or character in the videoGood Examples:
- “A small orange cat”
- “A young girl wearing a red dress”
- “A silver sports car”
- “Something”
- “Some animals”
Excellent Prompt Examples
Prompt Enhancement Feature
Enabling
enhance_prompt allows AI to automatically optimize your prompts and improve generation qualityWhen to Use Prompt Enhancement
Recommended
- First time using the API
- Simple prompts
- Want better results
- Unsure how to describe
Can Disable
- Need precise control
- Already have well-crafted prompts
- Specific style requirements
- Technical descriptions
Reference Image Usage
Image Requirements
| Requirement | Description |
|---|---|
| Format | JPG, PNG, WebP |
| Size | Single image not exceeding 10MB |
| Quantity | Maximum 5 images |
| Resolution | Recommended 1024x1024 or higher |
| Content | Clear, relevant reference materials |
Usage Tips
1
Choose High-Quality Images
Use clear, high-resolution images as references
2
Maintain Style Consistency
Multiple images should maintain visual style consistency
3
Relevance First
Choose reference images most relevant to the target video
4
Avoid Conflicts
Image content should not conflict with text description
Polling Strategy
Recommended Polling Implementation
Polling Parameters Recommendations
- Initial Interval: 5 seconds
- Maximum Interval: 60 seconds
- Backoff Factor: 1.5
- Maximum Wait: 30 minutes
Error Handling
Retry Strategy
Common Error Handling
- Network Errors
- API Errors
- Task Failure
Performance Optimization
Batch Processing
When generating multiple videos, batch processing is recommended:Resource Management
Note concurrent limit: Maximum 10 tasks simultaneously
Cost Optimization
Model Selection Strategy
Testing Recommendations
Use
veo3 or veo3-fast for testing during development, choose appropriate model based on needs in productionMonitoring and Logging
Recommended Logging
Monitoring Metrics
- Task success rate
- Average generation time
- API response time
- Error rate statistics
- Cost tracking