The Elements to Video API composes multiple visual elements into a single video. You can pass plain images, or pass subject inputs carrying subject metadata, allowing the model to jointly reference characters, objects, scenes, and action descriptions during generation. This endpoint is designed for creative video generation where multiple assets participate in the composition and subject consistency must be preserved.
Use Cases
Combine multiple assets — characters, products, backgrounds, props — into a single video.
Define the same character or object with multiple images to improve subject consistency.
Generate multi-element videos for ads, IP characters, storyboards, and product scenes.
Endpoint Information
Item
Description
Create task
POST /videos/elements2video
Query task
GET /videos/elements2video/{task_id}
Authentication
Bearer Token
The full request URL consists of the base URL and the endpoint path; see API Basics.
Create Task
Request Parameters
Parameter
Type
Required
Default
Description
reference_inputs
array
Yes
-
List of reference inputs, up to 9 elements; supports two types: image and subject
prompt
string
Yes
-
Video content description, up to 10,000 characters
negative_prompt
string
No
-
Content you do not want to appear in the video, up to 10,000 characters
resolution
string
Yes
-
Output resolution. Allowed values: 720p, 1080p
duration
integer
No
6
Video duration, range 1-6 seconds
aspect_ratio
string
No
16:9
Aspect ratio. Allowed values: 16:9, 9:16, 1:1
fps
integer
No
24
Video frame rate. Allowed values: 24, 30
generate_audio
boolean
No
false
Whether to generate audio
audio_prompt
string
No
-
Audio description, up to 200 characters; only effective when generate_audio=true
callback_url
string
No
-
Callback URL invoked when the task completes; must be an HTTP/HTTPS URL, up to 500 characters
seed
integer
No
-
Random seed, range 0-10000000; if omitted, handled by the system
Constraints: reference_inputs supports up to 9 elements; resolution is required; duration supports 1-6 seconds; fps only supports 24 and 30.
Time the task started processing, Unix timestamp in seconds
completed_at
number
Task completion time, Unix timestamp in seconds
video_url
string
Generated video URL
Notes
We recommend using Batch Upload first to obtain stable, accessible URLs for image assets.
reference_inputs supports a total of at most 9 items; for subject-type inputs, images must contain 2-4 images of the same subject.
prompt should describe the relationships between elements, the subject's actions, the scene, and the camera work — avoid simply listing asset names.
If you need a task completion notification, pass a callback_url — see Using Callbacks for the callback protocol; otherwise, retrieve the task status via the query endpoint.