Maiopc
Seedance2.0 Official Discount - Create Task
Create Seedance2.0 official-discount video tasks with totalTokens for reconciliation
Seedance2.0 Official Discount Create Task
Use a full model code to create a video task. The create API returns
id; poll the query API for the final video. Completed official-discount tasks return totalTokens for reconciliation.认证
获取 KeycURL
Authorization: Bearer {{key}}
Request Parameters
modelstringrequiredModel name. The model code includes model type, resolution, and whether video reference is used.
sd_2.0_discount_480psd_2.0_discount_720psd_2.0_discount_1080psd_2.0_discount_480p_with_video_refsd_2.0_discount_720p_with_video_refsd_2.0_discount_1080p_with_video_refsd_2.0_fast_discount_480psd_2.0_fast_discount_720psd_2.0_fast_discount_480p_with_video_refsd_2.0_fast_discount_720p_with_video_ref
When using a
_with_video_ref model, content must include a video_url item with role=reference_video.resolutionstringOptional. The full model code already includes resolution. If provided, it must match the resolution in
model.ratiostringAspect ratio. Default:
16:9.durationintegerDuration in seconds. Default:
5. Range: 4-15.generate_audiobooleanWhether to generate audio. Default:
true.return_last_framebooleanWhether to return the last-frame image. Default:
false. When set to true and the task generates a last frame, read last_frame_url from the query API.toolsarrayAdvanced tool configuration. Default: not sent. Supported tools depend on the enabled model capabilities.
seedintegerRandom seed. Default:
-1, which lets the model service choose a random seed. A fixed value improves reproducibility, but generation is still probabilistic.contentarrayrequiredContent array. One
type=text prompt is required.content[].typestringrequiredtext, image_url, video_url, or audio_url.content[].rolestringfirst_frame, last_frame, reference_image, reference_video, or reference_audio.content[].image_url.urlstringImage URL. Public URL or
assetId://{assetId}.For real-person or avatar images, upload the asset first and reference it with
assetId://{assetId}.Response Parameters
idstringVideo task ID used to query task status and result.
objectstringObject type, fixed as
video.createdintegerTask creation timestamp.
modelstringModel used by this request.
statusstringTask status, usually
queued or processing after creation.Status
queued: the task has been created and is waiting to be processed.processing: the task is being processed.completed: the task succeeded andvideo_urlis available from the query API.failed: the task failed anderroris available from the query API.
Request Body Examples
Text to video
{
"model": "sd_2.0_fast_discount_720p",
"ratio": "16:9",
"duration": 5,
"return_last_frame": true,
"generate_audio": false,
"content": [
{
"type": "text",
"text": "A cute kitten playing on the grass, slow push-in camera, bright natural lighting"
}
]
}
First and last frame
{
"model": "sd_2.0_discount_1080p",
"ratio": "16:9",
"duration": 5,
"return_last_frame": true,
"content": [
{
"type": "text",
"text": "The girl in the image says cheese to the camera, with a 360-degree orbit camera movement"
},
{
"type": "image_url",
"role": "first_frame",
"image_url": {
"url": "https://example.com/first.jpeg"
}
},
{
"type": "image_url",
"role": "last_frame",
"image_url": {
"url": "https://example.com/last.jpeg"
}
}
]
}

