Documentation Index
Fetch the complete documentation index at: https://wisdom-docs.juheapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
videos is OpenAI Sora’s video generation interface that creates video generation tasks through text prompts or optional reference image inputs.
After creation, you need to use the query interface to get the generation status. Once the task is completed, you can proceed with subsequent operations such as remixing and downloading.
For more information about the Sora generation interface, please refer to OpenAI Official Documentation.
Supported Models
Currently supported model IDs:sora-2(default)sora-2-proveo-3.1doubao-seedance-2(see Seedance 2.0 docs)
Important Notes
Auto-Generated DocumentationThe request parameters and response format are automatically generated from the OpenAPI specification. All parameters, their types, descriptions, defaults, and examples are pulled directly from
openapi.json. Scroll down to see the interactive API reference.Quick Start
Basic Example: Text-to-Video
Example with Image Reference
Best Practices
1. Prompt Optimization
Use specific, detailed descriptions including scene, action, lighting and other details: Good prompt:2. Duration Control
Choose appropriate duration based on content complexity; shorter durations typically yield better quality:- Sora 2: Supports 10s, 15s
- Sora 2 Pro: Supports 10s, 15s, 25s
- Veo 3.1:
- 4 seconds: Best for simple scenes, fastest generation
- 8 seconds: Good for moderate complexity scenes
- 12 seconds: For complex scenes, longer generation time
3. Resolution Selection
Choose appropriate resolution based on use case, balancing quality and generation time:720x1280(default): Vertical format, good for mobile/social media1280x720: Horizontal format, standard widescreen1024x1792: High vertical resolution1792x1024: High horizontal resolution
4. Image Preprocessing
When using image guidance, ensure input images are:- Clear and well-composed
- Reasonable file size (not too large)
- In supported formats (JPEG, PNG)
5. Error Handling
Implement comprehensive retry and error handling mechanisms:Storyboard Mode
The API supports Storyboard functionality for creating sequential multi-shot videos. When using storyboard mode, the prompt must strictly follow this format:Format Requirements
- Each shot starts with
Shot N:(N is the shot number) - Use
duration: Xsecto specify shot duration - Use
Scene:to describe the shot content - Separate shots with blank lines
Storyboard Example
FAQ
How long does video generation take?
Typically takes several minutes to over ten minutes, depending on video duration, resolution, and server load. If there’s no response for a long time or failure occurs, please contact customer service.What resolutions are supported?
Default support for720x1280. Supported resolutions:
720x1280(default) - Vertical1280x720- Horizontal1024x1792- High vertical1792x1024- High horizontal
How long can generated videos be?
Default is 4 seconds. Maximum duration depends on model limitations:sora-2: Supports 10, 15 secondssora-2-pro: Supports 10, 15, 25 secondsveo-3.1: Supports 4, 8, 12 seconds
How to improve generation quality?
- Use detailed prompts: Include scene, action, lighting, camera angles, and style
- Choose appropriate duration: Shorter durations (4-8 seconds) typically yield better quality
- Provide high-quality reference images: Clear, well-composed images guide better results
- Use Storyboard mode: For complex multi-shot videos, use the storyboard format
How to check video generation status?
After creating a video, use the returnedid to query status:
How to download the generated video?
Once the status iscompleted, get the download URL from meta_data.url in the status response: