Skip to main content
POST

Authorizations

Authorization
string
header
required

Use Bearer Token authentication. Format: Authorization: Bearer sk-xxxxxx

Body

application/json
model
enum<string>
required

Required. The model name. Supported external models include Seedance, Kling 4.0, Vidu Q4, gemini-omni, minimax-h3, and hailuo-2.3.

Available options:
kling-4.0,
kling-4.0-1080p,
vidu-q4,
vidu-q4-540p,
magi-2-1080p,
sd-2-5,
doubao-seedance-1-0-lite-i2v-250428,
doubao-seedance-1-0-lite-t2v-250428,
doubao-seedance-1-0-pro-250528,
doubao-seedance-1-0-pro-fast-251015,
doubao-seedance-1-5-pro-251215,
doubao-seedance-2-0-260128,
doubao-seedance-2-0-fast-260128,
sd-2-5-4k,
sd-2-5-flash,
sd-2-5-flash-480p,
minimax-h3,
hailuo-2.3,
wan-3.0-prime,
wan-3.0-prime-1080p,
happyhorse-1.1,
happyhorse-1.1-1080p,
gemini-omni
Example:

"doubao-seedance-2-0-260128"

prompt
string

Optional; standard Seedance requests can provide text directly in a non-empty text item in content, or use the top-level prompt. The same applies to Kling 4.0; contents/settings/options are not required.

Example:

"参考素材生成一段剧情短视频"

content
object[]

Optional. The Volcano Ark content array, which interleaves text and media items in order. Text items use { "type": "text", "text": "..." }; image, video, and audio items use image_url, video_url, and audio_url objects respectively, with url placed inside them. These can be used together with role (such as reference_image, reference_video, and reference_audio) and name for text references.

contents
object[]

Kling 4.0 legacy envelope compatibility array. Not required for standard Seedance requests; use content directly.

Minimum array length: 1
settings
object

Legacy envelope compatibility settings; standard Seedance uses the top-level duration/resolution/ratio directly and does not need to be provided.

options
object

Legacy envelope compatibility field; not required for standard Seedance requests.

function_mode
string

Optional. Advanced feature mode, such as omni_reference for all-in-one reference.

mode
string

Optional. Compatibility-mode fields, such as t2v, i2v, i2v_first_last, reference_images, and reference_material; gemini-omni supports t2v, r2v, and edit. Kling 4.0 can use the Seedance format directly: content/duration/resolution/ratio/mode, or the OpenAI video format: prompt/seconds/size/input_reference. Neither requires additional contents/settings/options. The mode can be t2v (text only), i2v (single first frame), i2v_first_last (first and last frames), reference_images (standard reference images), or reference_material (all-purpose reference materials; audio requires a route that supports this capability). If mode is omitted and no tool is explicitly specified, reference_material is the default when reference materials are provided; t2v is the default when none are provided. Reference modes use the standard reference-image role and do not silently reinterpret explicitly specified first and last frames as reference images. For first and last frames, explicitly select i2v or i2v_first_last, and omit the aspect-ratio parameter. Kling 4.0 generates audio and video together by default. All-purpose reference mode supports publicly accessible audio URLs: use audio_urls with /v1/videos, and the audio_url item in content with Seedance. A route that supports audio materials is required. The three native dedicated endpoints do not currently accept reference-audio fields.

Example:

"reference_material"

image_url
string

Optional. URL of a single reference image.

image_urls
string[]

Optional. A list of URLs for multiple reference images.

input_reference
string

Optional. Compatible with reference input fields.

end_image_url
string

Optional. The URL of the last-frame reference image.

last_image_url
string

Optional. URL alias for the last frame reference image.

video_urls
string[]

Optional. List of reference video URLs.

audio_urls
string<uri>[]

Optional. List of reference audio URLs.

seconds

Optional. Video duration in seconds; compatible with duration.

duration

Optional. Video duration in seconds; compatible with seconds.

aspect_ratio
string

Optional. Aspect ratio, such as 16:9.

ratio
string

Optional. Aspect ratio aliases, such as 16:9.

size
string

Optional. Field for resolution or dimension compatibility.

quality
string

Optional. Generation quality configuration.

resolution
string

Optional. The output resolution.

fps
number

Optional. Frame rate.

generate_audio
boolean

Optional. Whether to generate audio.

watermark
boolean

Optional. Whether to add a watermark.

Response

200 - application/json

Task created successfully

id
string
required

Task ID.

Example:

"task_xxx"

status
enum<string>

Task status.

Available options:
queued,
running,
succeeded,
failed
created_at
string

Creation time (Unix seconds).

items
string