GlobalAiOpc
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. Supported values: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive.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.toolsarrayTool configuration. Default: not sent. Currently only the Seedance 2.0 web search tool is exposed:
{"type":"web_search"}.tools[].typestringTool type. Currently supported value:
web_search. Other tool types are not supported.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[].textstringRequired when
content[].type=text. The text prompt.content[].rolestringfirst_frame, last_frame, reference_image, reference_video, or reference_audio.content[].image_url.urlstringImage URL. Public URL or uploaded asset reference:
assetId://{assetId}. Base64 input is not supported.content[].video_url.urlstringVideo URL. Public URL or uploaded asset reference:
assetId://{assetId}.content[].audio_url.urlstringAudio URL. Public URL or uploaded asset reference:
assetId://{assetId}. Base64 input is not supported.For real-person or avatar media, upload the asset first and confirm that its
status is ACTIVE through the asset detail API before referencing it with assetId://{assetId} and creating a task. Do not create a task while the asset is in any other status.Unsupported Fields
The edition-specific API currently does not pass through
callback_url, priority, safety_identifier, service_tier, execution_expires_after, frames, camera_fixed, watermark, or draft. Do not depend on these fields in requests. If they are exposed later, this documentation will state it explicitly.Media And Scenario Limits
- Text prompt: Chinese prompts should be within 500 characters, and English prompts within 1000 words.
- Image input: jpeg, png, webp, bmp, tiff, gif, heic, and heif are supported. Each image must be under 30 MB, with aspect ratio
(0.4, 2.5)and width/height(300px, 6000px). - Image counts: first-frame mode uses 1 image; first-and-last-frame mode uses 2 images with
first_frameandlast_frame; multi-modal reference mode uses 1-9reference_imageitems. - Video input: mp4 and mov are supported. Each video must be
[2, 15]seconds, up to 3 reference videos, with total video duration no more than 15 seconds; each video must be under 50 MB, with FPS[24, 60]. - Audio input: wav and mp3 are supported. Each audio item must be
[2, 15]seconds, up to 3 reference audio items, with total audio duration no more than 15 seconds; each audio item must be under 15 MB. - Scenario exclusivity: first-frame, first-and-last-frame, and multi-modal reference scenarios cannot be mixed. Audio cannot be provided alone; include at least one reference image or video.
- This system does not support image/audio base64 input. Use a public URL or an
assetIdreturned by the asset upload API.
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"
}
]
}
Web search
{
"model": "sd_2.0_fast_discount_720p",
"ratio": "16:9",
"duration": 5,
"tools": [
{
"type": "web_search"
}
],
"content": [
{
"type": "text",
"text": "Create a technology product promo video using recent EV launch information"
}
]
}
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"
}
}
]
}
