Query task (Seedance)
Video generation Seedance
Query task (Seedance)
This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats).
Used to create video generation tasks and query status and results via task ID.
Core fields for task creation:
model: Required. Model name.prompt: Required. Primary description for video generation.content: Optional, the Volcano Ark content array, mixing text, image, video, and audio materials.function_mode: Optional. Commonly used for advanced modes such as Omni-Reference.
Compatible input parameters:
mode:t2v / i2v / i2v_first_last / reference_images / reference_materialimage_url / image_urls / input_referenceend_image_url / last_image_urlvideo_urls / audio_urlsseconds / durationaspect_ratio / ratio / sizequality / resolutionfpsgenerate_audio / watermark
Call details:
- When using
mode=reference_materialorfunction_mode=omni_reference, it is recommended to pass text and reference materials viacontent. contenttext items are written as{ "type": "text", "text": "测试文字" }.contentimage, video, and audio material items use theimage_url,video_url, andaudio_urlobject formats respectively, for example{ "type": "image_url", "image_url": { "url": "https://example.com/ref.png" }, "role": "reference_image", "name": "1" }.rolecan be used to identify the purpose of the material, andnamecan be referenced by name in prompts.ratio,duration,resolution, andfpswill affect the final generation configuration.
Gemini Omni invocation:
gemini-omnican also be invoked through this Seedance task API.mode=t2vis used for text-to-video,mode=r2vfor generation with reference images/reference materials, andmode=editfor video editing.- Text can be placed in the
textitem ofpromptorcontent; images can be placed inimage_url / image_urls / reference_images / input_reference / content; videos can be placed invideo_urls / content. - The duration field can use
durationorseconds, and will be automatically mapped to the 4 / 6 / 8 / 10 second options.
Key fields in query results:
items[].statusitems[].content.video_urloritems[].video_urlitems[].erroritems[].progress
Error fields: error.code, error.message.
{
"error": {
"code": "invalid_request_error",
"message": "requires at least one image in `images`"
}
}
GET
Query task (Seedance)
Authorizations
Use Bearer Token authentication.
Format: Authorization: Bearer sk-xxxxxx
Path Parameters
?? ID
