Submit a video generation request
Submits a video generation request and returns a polling URL to check status
Authorizations
API key as bearer token in Authorization header
Body
Aspect ratio of the generated video
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21 "16:9"
URL to receive a webhook notification when the video generation job completes. Overrides the workspace-level default callback URL if set. Must be HTTPS.
"https://example.com/webhook"
Duration of the generated video in seconds
x >= 18
Images to use as the first and/or last frame of the generated video. Each image must specify a frame_type of first_frame or last_frame.
Whether to generate audio alongside the video. Defaults to the endpoint's generate_audio capability flag, false if not set.
true
Reference assets to guide video generation. Accepts image, audio, and video references. Audio and video references are only honored by providers that support them (currently BytePlus Seedance 2.0); other providers use image references and ignore the rest.
A reference asset used to guide video generation. Image references are supported by all providers; audio and video references are only honored by providers that support them (currently BytePlus Seedance 2.0).
- Option 1
- Option 2
- Option 3
{
"image_url": { "url": "https://example.com/image.png" },
"type": "image_url"
}Provider-specific passthrough configuration
Resolution of the generated video
480p, 720p, 1080p, 1K, 2K, 4K "720p"
If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers.
Exact pixel dimensions of the generated video in "WIDTHxHEIGHT" format (e.g. "1280x720"). Interchangeable with resolution + aspect_ratio.
"1280x720"
Response
Video generation request accepted
pending, in_progress, completed, failed, cancelled, expired The generation ID associated with this video generation job. Available once the job has been processed.
Usage and cost information for the video generation. Available once the job has completed.
{ "cost": 0.5, "is_byok": false }