Submit an asynchronous video generation task using theDocumentation Index
Fetch the complete documentation index at: https://docs.xingchaoyiqing.com/llms.txt
Use this file to discover all available pages before exploring further.
starvideos_o3 model. The endpoint returns a task id immediately — you then poll the Query Video Task endpoint until the task completes. StarVideos O3 supports a rich set of generation modes: pure text-to-video, single or multi-image reference, first/last frame guidance, video reference, and combined image + video reference.
Base URL
Endpoint
Authentication
Model
This endpoint supports a single model:| Model | Duration | Aspect Ratios | Notes |
|---|---|---|---|
starvideos_o3 | 3–15s (default 3s) | 9:16, 1:1, 16:9 | Multi-mode: text, image ref, first/last frame, video ref |
Request Parameters
Model name. Must be
starvideos_o3.Text description of the video content, including subject, action, camera movement, and visual style.Example:
"Cyberpunk cityscape at night, camera slowly pushing forward"Output video duration in seconds. Applies to text-to-video, image reference, and first/last frame modes.
- Default:
3 - Supported range:
3–15seconds
When using
referenceVideos (video reference, image + video, or multi-image + video modes), the output duration and aspect ratio are determined by the reference video — this field is ignored.Output aspect ratio. Applies to text-to-video, image reference, and first/last frame modes.
- Default:
9:16 - Supported values:
9:16,1:1,16:9
When using
referenceVideos, the aspect ratio follows the reference video’s dimensions — this field is ignored.Image Reference Parameters
Array of image reference URLs. Used in image reference mode and combined image + video reference mode.Constraints:
- Image reference only (no video): up to 7 images
- Combined with
referenceVideos: up to 4 images
["https://example.com/ref1.jpg", "https://example.com/ref2.jpg"]First / Last Frame Parameters
URL of the first-frame image. For first/last frame mode — must be used together with
last_image.Cannot be combined with referenceImages or referenceVideos.URL of the last-frame image. For first/last frame mode — must be used together with
first_image.Cannot be combined with referenceImages or referenceVideos.Video Reference Parameters
Array of reference video URLs. Enables video reference mode. Maximum 1 video.
- Reference video duration must be 3–10 seconds
- When provided, output duration and ratio follow the reference video
- Can be combined with
referenceImages(up to 4 images)
["https://example.com/reference.mp4"]Generation Modes
StarVideos O3 supports the following mutually exclusive modes:| Mode | Required Fields | Optional Fields |
|---|---|---|
| Text-to-video | model, prompt | duration, ratio |
| Image reference | model, prompt, referenceImages (1–7) | duration, ratio |
| First/last frame | model, prompt, first_image, last_image | duration, ratio |
| Video reference | model, prompt, referenceVideos (1 video) | — duration/ratio from video |
| Image + Video | model, prompt, referenceImages (1–4), referenceVideos (1) | — duration/ratio from video |
Response Fields
Unique task identifier. Save this value — you’ll use it to poll the Query Video Task endpoint.
Object type. Always
"video".Unix timestamp of when the task was created.
The model name used for this task. Always
"starvideos_o3".Task status at creation. Always
"queued" on successful submission.Lifecycle values:queued— task accepted and waiting in queueprocessing— model is actively generatingcompleted— generation finished;video_urlis availablefailed— generation failed; seeerror
Error message.
null on successful submission.Code Examples
Example Response
Next Steps
After receiving the taskid, poll the Query Video Task endpoint to check status and retrieve video_url when generation completes.