SeeDance Videos Generation API Integration Guide

This article introduces a SeeDance Videos Generation API integration guide, which can generate official SeeDance videos by entering custom parameters.

Application Process

To use the SeeDance Videos Generation API, first obtain your API Token from the Ace Data Cloud Console and save it for later use.

If you have not logged in or registered, you will be automatically redirected to the login page to register and log in. Once completed, you will be automatically returned to the current page.

A general application's API Key can be used for services enabled for the account; a dedicated application's Key can be used within that application's service scope. Please check the Key's permissions, validity period, and quota, and confirm that the application balance is sufficient to pay for this request. Available trial credits are subject to what is displayed in your account. If the balance is insufficient, click the "Recharge" button.

📘 Full documentation: SeeDance Videos Generation API →

Basic Usage

First, let's look at the basic usage: enter the prompt content.text, the type content.type=text, and the model model to obtain the processed result. The details are as follows:

As you can see, we have set the Request Headers here, including:

  • accept: The format in which you want to receive the response. Here it is set to application/json, meaning JSON format.
  • authorization: The key for calling the API. After applying for it, you can select it directly from the dropdown.

We have also set the Request Body, including:

  • model: The model used to generate the video.
    • Seedance 1.x series: doubao-seedance-1-0-pro-250528, doubao-seedance-1-0-pro-fast-251015, doubao-seedance-1-5-pro-251215, doubao-seedance-1-0-lite-t2v-250428, doubao-seedance-1-0-lite-i2v-250428.
    • Seedance 2.0 series (supports character and audio/video multimodal references): doubao-seedance-2-0-260128 (Standard), doubao-seedance-2-0-fast-260128 (Fast), doubao-seedance-2-0-mini-260615 (Lightweight).
    • Seedance 2.5: doubao-seedance-2-5-260628, supports up to 30 seconds, audio-only references, more media assets, and video editing and extension.
  • content: Input content array. type can be text (prompt), image_url (reference image), audio_url (reference audio), or video_url (reference video). The purpose of an image can be specified through role: first_frame (first frame) / last_frame (last frame) / reference_image (character / subject reference).
  • resolution: Output resolution, with options 480p / 720p / 1080p / 4k. 2.5 supports 480p, 720p, and 1080p; 2.0 Fast/Mini supports 480p and 720p; 2.0 Standard supports up to 4k.
  • ratio: Aspect ratio, with options 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive.
  • duration: Video duration (seconds, integer). 1.0 series: 2–12; 1.5 Pro: 4–12; 2.0 series: 4–15; 2.5: 4–30. 1.5/2.x supports -1 (automatic duration).
  • seed: Random seed, an integer from -1 to 4294967295.
  • camerafixed: Whether to fix the camera, true / false.
  • watermark: Whether to add a watermark, true / false.
  • generate_audio: Whether to generate a video with sound, true / false. Supported by Seedance 1.5 Pro and the 2.x series.
  • return_last_frame: Whether to return the URL of the video's last frame image in the result.
  • omni_reference_task_type: 2.5 only; auto / reference / edit / extend.
  • output_format: 2.5 only; mp4 / mov, defaults to mp4.
  • tools: 2.5 only; currently supports the web_search online search tool, with limits on the number of results, number of keywords, and search sources.
  • priority: Optional task priority for 2.5, an integer from 0–9, defaults to 0.
  • safety_identifier: A stable, anonymous end-user identifier of up to 64 characters; please use a hash or internal anonymous ID, and do not pass in a name, email address, or phone number.
  • execution_expires_after: Task timeout period (seconds), ranging from 3600–259200.
  • callback_url: Asynchronous callback address. When set, the API immediately returns a task_id and POSTs the result to this address when the task is completed.
  • async: Optional. When set to true, the API immediately returns a task_id without requiring a callback_url. The result can then be retrieved by polling the corresponding task query endpoint.

After making the selections, you can see that the corresponding code is also generated on the right, as shown below:

Click the "Try" button to test it. As shown above, we obtained the following result here:

{
  "success": true,
  "task_id": "9777f36b-4f44-47ff-962d-45cd2f7aeaa8",
  "trace_id": "ce5da2ca-6695-4459-9d2c-2ef9f86db752",
  "data": {
    "task_id": "7e4e1773-510a-4a73-9ab4-98dd1a0b2a7f",
    "status": "succeeded",
    "model": "doubao-seedance-2-0-fast-260128",
    "duration": 5,
    "resolution": "720p",
    "ratio": "16:9",
    "video_url": "https://cdn.acedata.cloud/assets/examples/seedance/036f24ed-a9b1-49b3-92c4-30049a3bc152-102bf9f98e35.mp4"
  }
}

The returned result contains multiple fields, described as follows:

  • success, the status of the video generation task.
  • task_id, the ID of the video generation task.
  • trace_id, the tracking ID for the video generation.
  • data, the list of results for the video generation task.
    • task_id, the server-side ID of the video generation task.
    • video_url, the video link for the video generation task.
    • status, the status of the video generation task.
      • model, the model used to generate the video.

As you can see, we have obtained satisfactory video information. We only need to use the video link in data in the result to retrieve the generated SeeDance video.

Additionally, if you want to generate the corresponding integration code, you can copy the generated code directly. For example, the CURL code is as follows:

curl -X POST 'https://api.acedata.cloud/seedance/videos' \
-H 'authorization: Bearer ${bearer_token}' \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
  "content": [{"type":"text","text":"A white ceramic coffee mug on a glossy marble countertop with soft morning window light. The camera slowly orbits 360 degrees around the mug, steam gently rising."}],
  "model": "doubao-seedance-2-0-fast-260128",
  "resolution": "720p",
  "ratio": "16:9",
  "duration": 5
}'

Inline Parameter Description

At the end of the content[].text prompt, generation parameters can be passed by appending them in the form --parameter value (the old method, with weak validation; default values are automatically used when values are incorrect). The complete parameter list is as follows:

Inline parameter Corresponding field Description Allowed values
--rs resolution Output resolution 480p / 720p / 1080p
--rt ratio Aspect ratio 16:9 / 4:3 / 1:1 / 3:4 / 9:16 / 21:9 / adaptive
--dur duration Video duration (seconds) 2–12
--frames frames Video frame count Integers in [29, 289] satisfying 25+4n (only supported by the 1.0 series)
--fps framespersecond Frame rate Only 24 is supported
--seed seed Random seed -1 to 4294967295
--cf camerafixed Whether to fix the camera true / false
--wm watermark Whether to add a watermark true / false

Recommended practice: Use the corresponding top-level fields directly in the Request Body (such as resolution, ratio, etc.). This uses strong validation, and explicit error messages are returned when parameter values are incorrect, making issues easier to troubleshoot.

Generating Videos with Audio

The Seedance 1.5 Pro and 2.x series support generating videos with audio through the generate_audio parameter:

{
  "model": "doubao-seedance-1-5-pro-251215",
  "content": [
    {
      "type": "text",
      "text": "A girl holds a fox, the wind blows her hair, you can hear the sound of the wind"
    }
  ],
  "generate_audio": true,
  "ratio": "16:9",
  "duration": 5
}

The 1.0 series does not support this parameter.

Seedance 2.5 Omnimodal Generation, Editing, and Extension

doubao-seedance-2-5-260628 supports 480p / 720p / 1080p, 4–30 seconds or automatic duration, and raises the input limits to 30 reference images, 10 reference videos, and 10 reference audio clips (up to 50 in total). 2.5 also supports passing reference audio alone, without requiring an image or video.

For normal omnimodal generation, omni_reference_task_type can be omitted, set to auto, or explicitly set to reference. Video editing and extension require reference_video:

{
  "model": "doubao-seedance-2-5-260628",
  "content": [
    {"type": "text", "text": "Replace the sky with a warm sunset while preserving the subject and camera motion."},
    {"type": "video_url", "role": "reference_video", "video_url": {"url": "https://cdn.acedata.cloud/input.mp4"}}
  ],
  "resolution": "720p",
  "ratio": "adaptive",
  "duration": -1,
  "omni_reference_task_type": "edit",
  "output_format": "mov"
}
  • reference: Pass at least one reference_image, reference_video, or reference_audio; 2.5 supports passing reference audio alone.
  • edit: Must use ratio: adaptive and duration: -1; the output duration is billed based on the actual result.
  • extend: Must use ratio: adaptive; duration can be 4–30 or -1.
  • auto: The model automatically selects generation, editing, or extension based on the prompt and inputs.
  • When the task type does not match the inputs or prompt, the task will fail and return a parameter error that can be used to identify the issue; please adjust according to the constraints above and resubmit.

First Frame for Image-to-Video

If you want an image-to-video task, first the content parameter must contain an item with type set to image_url, and the image_url field must be in object format: {"url": "https://..."} or Base64 format {"url": "data:image/png;base64,..."}.

Note: image_url does not support passing a string directly (such as "image_url": "https://cdn.acedata.cloud/e724d7f13d.png"). You must use the object format "image_url": {"url": "https://..."}, otherwise a 400 error will be returned.

The corresponding code:

import requests

url = "https://api.acedata.cloud/seedance/videos"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "content": [
        {
            "type": "image_url",
            "image_url": {
                "url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/i2v_foxrgirl.png"
            }
        },
        {
            "type": "text",
            "text": "A girl holds a fox in her arms. She opens her eyes and gazes tenderly at the camera, while the fox affectionately holds her back. As the camera slowly pulls away, her hair is gently blown by the wind. --ratio adaptive  --dur 5"
        }
    ],
    "model": "doubao-seedance-1-0-pro-250528"
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

Click Run, and you will see that a result is returned immediately, as follows:

{
    "success": true,
    "task_id": "dc7cceb5-3c12-4de7-a5f4-abcbba3e8e39",
    "trace_id": "b3b09de3-b7fa-4bb0-88b5-aad4b4a96fd4",
    "data": {
        "task_id": "cgt-20251222072003-x2259",
        "status": "succeeded",
        "video_url": "https://platform.cdn.acedata.cloud/seedance/6afb78b8-5ba8-424f-adcd-69423a700b50.mp4",
        "model": "doubao-seedance-1-0-pro-250528"
    }
}

As you can see, the generated result is an image-to-video output, similar to the result above.

First and Last Frames for Image-to-Video

If you want to use first and last frames for image-to-video, first the content parameter must include items of type image_url, with role set to first_frame and last_frame respectively, allowing you to specify the following:

  • role: Specifies the first or last frame.
  • image_url
    • url: Image link At the same time, content also needs an input of type text as the prompt.

The corresponding code:

import requests

url = "https://api.acedata.cloud/seedance/videos"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
   "model": "doubao-seedance-1-0-pro-250528",
    "content": [
         {
            "type": "text",
            "text": "360-degree shot"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seepro_first_frame.jpeg"
            },
            "role": "first_frame"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seepro_last_frame.jpeg"
            },
            "role": "last_frame"
        }
    ]
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

Click Run, and you will see a result immediately, as shown below:

{
    "success": true,
    "task_id": "f7096c6c-9430-4392-8201-d259632d7afd",
    "trace_id": "4a4a3721-00fb-43d2-aff2-3b516ac01a8a",
    "data": {
        "task_id": "cgt-20251222073134-54qcw",
        "status": "succeeded",
        "video_url": "https://platform.cdn.acedata.cloud/seedance/95f9f5f0-fc50-4c71-bc6f-e154582c141e.mp4",
        "model": "doubao-seedance-1-0-pro-250528"
    }
}

As you can see, the generated result is a character-generated video, similar to the result above.

Character and Audio-Video Multimodal References (Seedance 2.0)

The Seedance 2.0 series (doubao-seedance-2-0-260128, doubao-seedance-2-0-fast-260128, doubao-seedance-2-0-mini-260615) supports reference_image, reference_audio, and reference_video. You can use your own or authorized material to maintain consistency in characters, subjects, actions, camera movements, voices, and pacing.

Please upload only real-person and character material that you own or are authorized to use. Different models support real-person material differently; the request format remains unchanged, and a clear error will be returned if the material does not meet the requirements.

Key points:

  • Only Seedance 2.0 series models support reference_image; for 1.x models, use first_frame / last_frame (first and last frames for image-to-video generation).
  • Image-to-video with a first frame, image-to-video with first and last frames, and multimodal reference are three mutually exclusive scenarios: first_frame / last_frame cannot be combined with reference_image / reference_video / reference_audio.
  • To specify first and last frames in a multimodal reference, mark the images as reference_image and state in the prompt “use image 1 as the first frame” or “use image 2 as the last frame”; if you need to strictly lock the first and last frames, use only first_frame / last_frame.
  • Multimodal reference limits: up to 9 image_url images; 2.0 also supports audio_url (role is reference_audio, up to 3 files) and video_url (role is reference_video, up to 3 files).
  • Reference audio (audio_url) requirements: formats wav / mp3; each file must be 2–15 seconds long, with up to 3 files and a total duration of no more than 15 seconds; each file must be no larger than 15 MB. Files outside the duration range will fail during material processing.
  • Reference video (video_url) requirements: formats mp4 / mov; each file must be 2–15 seconds long, with up to 3 files and a total duration of no more than 15 seconds.
  • For reference images, clear, unobstructed, front-facing photos of a single person are recommended; the clearer the face, the higher the similarity.

Example 1: A Close-Up That Preserves the Person’s Appearance

Provide a face photo and have the person smile and wave at the camera. The corresponding code:

import requests

url = "https://api.acedata.cloud/seedance/videos"

headers = {
    "accept": "application/json",
    "authorization": "Bearer {token}",
    "content-type": "application/json"
}

payload = {
    "model": "doubao-seedance-2-0-fast-260128",
    "content": [
        {
            "type": "text",
            "text": "The woman looks at the camera, gives a warm natural smile and waves her hand, soft studio lighting, gentle camera push-in."
        },
        {
            "type": "image_url",
            "role": "reference_image",
            "image_url": {
                "url": "https://cdn.acedata.cloud/assets/examples/nanobanana/8e075897-0f50-4443-8500-666751791c6c-4346f66287c0.jpg"
            }
        }
    ],
    "resolution": "480p",
    "ratio": "9:16",
    "duration": 5
}

response = requests.post(url, json=payload, headers=headers)
print(response.text)

The result is shown below; the person in the generated video remains consistent with the reference photo:

{
  "success": true,
  "task_id": "895eb5ea-bbe1-41a3-a9e9-48608e03f93a",
  "trace_id": "83544791-7a84-44de-b8d2-afe171a1c0e4",
  "data": {
    "task_id": "458abf29-cc39-4fd0-bcea-24f89a70d8de",
    "status": "succeeded",
    "video_url": "https://cdn.acedata.cloud/assets/examples/seedance/e71d3cc5-27e7-4719-be34-1f0e254eccaf-a56b2736a4e0.mp4",
    "model": "doubao-seedance-2-0-fast-260128",
    "resolution": "480p",
    "ratio": "9:16",
    "duration": 5
  }
}

Example 2: Put the Same Person in a Completely New Scene

The power of reference_image lies in retaining only the person’s identity, while the scene, clothing, and actions are determined entirely by the prompt. Below, the same face photo is used to have the person walk through an autumn park wearing a beige coat:

{
  "model": "doubao-seedance-2-0-fast-260128",
  "content": [
    {
      "type": "text",
      "text": "The same woman wearing a beige coat walks through a sunny autumn park, golden leaves falling around her, she smiles softly at the camera, cinematic tracking shot."
    },
    {
      "type": "image_url",
      "role": "reference_image",
      "image_url": {
        "url": "https://cdn.acedata.cloud/assets/examples/nanobanana/8e075897-0f50-4443-8500-666751791c6c-4346f66287c0.jpg"
      }
    }
  ],
  "resolution": "720p",
  "ratio": "9:16",
  "duration": 5
}

The result is shown below; the person’s appearance is preserved, while the scene has changed to an autumn park:

{
  "success": true,
  "task_id": "00872de7-16b7-431f-b4f7-6bf38ae86157",
  "trace_id": "577a07c3-4f5f-4cc7-86fe-535bb8332614",
  "data": {
    "task_id": "32fe1537-ba3e-452a-8749-3ef8890d37fd",
    "status": "succeeded",
    "video_url": "https://cdn.acedata.cloud/assets/examples/seedance/44f47593-556b-4fda-afa5-7a71eefcd228-2161efa5dd09.mp4",
    "model": "doubao-seedance-2-0-fast-260128",
    "resolution": "720p",
    "ratio": "9:16",
    "duration": 5
  }
}

💡 To make the person precisely replicate the composition in the photo (rather than being “the same person in a different setting”), you can use first_frame (the first frame for image-to-video generation) instead, so that the video starts moving from this photo.

Asynchronous Callback

Since the SeeDance Videos Generation API takes a relatively long time to generate videos (approximately 1–2 minutes), you can use asynchronous mode through the callback_url field to avoid keeping the HTTP connection occupied for an extended period.

Overall process: The client specifies callback_url when sending a request, and the API immediately returns a response containing task_id; once the task is complete, the platform sends the generated result to callback_url as POST JSON, and the result also contains task_id for correlation.

{
  "task_id": "f7096c6c-9430-4392-8201-d259632d7afd"
}

When the task is complete, the platform pushes the following content to callback_url:

{
  "success": true,
  "task_id": "f7096c6c-9430-4392-8201-d259632d7afd",
  "trace_id": "4a4a3721-00fb-43d2-aff2-3b516ac01a8a",
  "data": {
    "task_id": "cgt-20251222073134-54qcw",
    "status": "succeeded",
    "video_url": "https://platform.cdn.acedata.cloud/seedance/95f9f5f0-fc50-4c71-bc6f-e154582c141e.mp4",
    "model": "doubao-seedance-1-0-pro-250528"
  }
}

The task_id field in the result matches the one returned when the request was made, and this field can be used to correlate the task.

Error Handling

When calling the API, if an error occurs, the API returns the corresponding error code and message. For example:

  • 400 bad_request: The request used an unsupported combination of parameters, such as specifying 1080p or 4k for Seedance 2.0 Fast/Mini. Please use 480p or 720p instead.
  • 400 token_mismatched: Bad request, possibly due to missing or invalid parameters.
  • 400 api_not_implemented: Bad request, possibly due to missing or invalid parameters.
  • 401 invalid_token: Unauthorized, invalid or missing authorization token.
  • 429 too_many_requests: Too many requests, you have exceeded the rate limit.
  • 500 api_error: Internal server error, something went wrong on the server.

Error Response Example

{
  "success": false,
  "error": {
    "code": "api_error",
    "message": "fetch failed"
  },
  "trace_id": "2cf86e86-22a4-46e1-ac2f-032c0f2a4e89"
}

Conclusion

Through this document, you have learned how to use the Seedance Videos Generation API for text-to-video, first- and last-frame, and multimodal reference generation, as well as how to use Seedance 2.5 to edit or extend videos. We hope this document helps you complete your API integration; if you have any questions, please contact technical support.