MaiopcMaiopc
Maiopc

Seedance2.0 Official Discount - Create Task

Create Seedance2.0 official-discount video tasks with totalTokens for reconciliation

POST/kyyReactApiServer/v1/seedance-discount/videos

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.
cURL
Authorization: Bearer {{key}}

Request Parameters

modelstringrequired
Model name. The model code includes model type, resolution, and whether video reference is used.
  • sd_2.0_discount_480p
  • sd_2.0_discount_720p
  • sd_2.0_discount_1080p
  • sd_2.0_discount_480p_with_video_ref
  • sd_2.0_discount_720p_with_video_ref
  • sd_2.0_discount_1080p_with_video_ref
  • sd_2.0_fast_discount_480p
  • sd_2.0_fast_discount_720p
  • sd_2.0_fast_discount_480p_with_video_ref
  • sd_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.
resolutionstring
Optional. The full model code already includes resolution. If provided, it must match the resolution in model.
ratiostring
Aspect ratio. Default: 16:9.
durationinteger
Duration in seconds. Default: 5. Range: 4-15.
generate_audioboolean
Whether to generate audio. Default: true.
return_last_frameboolean
Whether 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.
toolsarray
Advanced tool configuration. Default: not sent. Supported tools depend on the enabled model capabilities.
seedinteger
Random seed. Default: -1, which lets the model service choose a random seed. A fixed value improves reproducibility, but generation is still probabilistic.
contentarrayrequired
Content array. One type=text prompt is required.
content[].typestringrequired
text, image_url, video_url, or audio_url.
content[].rolestring
first_frame, last_frame, reference_image, reference_video, or reference_audio.
content[].image_url.urlstring
Image URL. Public URL or assetId://{assetId}.
For real-person or avatar images, upload the asset first and reference it with assetId://{assetId}.

Response Parameters

idstring
Video task ID used to query task status and result.
objectstring
Object type, fixed as video.
createdinteger
Task creation timestamp.
modelstring
Model used by this request.
statusstring
Task 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 and video_url is available from the query API.
  • failed: the task failed and error is 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"
      }
    }
  ]
}