Seedance Video Generation API: Text-to-Video, Image-to-Video, First and Last Frames, and Real-Person References, All in One API
Seedance is a video generation model in ByteDance's Doubao family. It's practical for Chinese content scenarios: it understands Chinese prompts well, produces stable image-to-video results, and supports using photos of real people as "character references," letting the same person appear in an entirely new scene.
This article explains how to use the Seedance API on Ace Data Cloud. The endpoint is POST https://api.acedata.cloud/seedance/videos, and the documentation is at platform.acedata.cloud/documents/seedance-videos. Get a Token from the console and you can call it. Before running, check your application's balance, permissions, and current pricing.
For images or videos involving real people, please use authorized materials. Support for reference inputs, duration, and resolution varies by model, so first check the documentation for the model you select.
¶ First, look at a real finished video and its actual cost
The clip below is a cinematic short generated with Seedance (a shot of a paper boat drifting on the water). The actual cost recorded by the platform for this call was 5.7 credits—not an estimate, but the amount actually deducted for this request.
📹 https://cdn.acedata.cloud/de34c29169.mp4
¶ Basic usage: text-to-video
Seedance's input structure is slightly different from other video APIs—prompts, reference images, and reference audio and video all go in a single content array, with each item identified by type. The simplest text-to-video request contains just one type: text item:
curl -X POST 'https://api.acedata.cloud/seedance/videos' \
-H 'authorization: Bearer {token}' \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
"model": "doubao-seedance-2-0-fast-260128",
"content": [
{"type": "text", "text": "A white paper boat drifts on a calm dark water surface at dusk, cinematic reflection, gentle ripples, slow dolly-in, moody lighting."}
],
"resolution": "720p",
"ratio": "16:9",
"duration": 5,
"async": true
}'
Video generation takes 1–2 minutes; add "async": true to get a task_id immediately:
{
"success": true,
"task_id": "dc7cceb5-3c12-4de7-a5f4-abcbba3e8e39",
"trace_id": "b3b09de3-b7fa-4bb0-88b5-aad4b4a96fd4"
}
Then poll /seedance/tasks. When the task is complete, data.status is succeeded, and data.video_url is the finished video:
curl -X POST 'https://api.acedata.cloud/seedance/tasks' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{"id": "dc7cceb5-3c12-4de7-a5f4-abcbba3e8e39", "action": "retrieve"}'
{
"success": true,
"task_id": "dc7cceb5-3c12-4de7-a5f4-abcbba3e8e39",
"data": {
"task_id": "cgt-20251222072003-x2259",
"status": "succeeded",
"video_url": "https://cdn.acedata.cloud/assets/examples/seedance/036f24ed-a9b1-49b3-92c4-30049a3bc152-102bf9f98e35.mp4",
"model": "doubao-seedance-2-0-fast-260128"
}
}
¶ Image-to-video: first frame / first and last frames
To bring an image to life, add an item with type: image_url to content. Note that image_url must be in object format, {"url": "https://..."}; you cannot pass a string directly, or you'll get a 400 error.
Pass one image → first-frame mode, where the video starts moving from that image. Pass two images and label them role: first_frame and role: last_frame respectively → first-and-last-frame mode, where the video transitions from the first image to the second:
{
"model": "doubao-seedance-1-0-pro-250528",
"content": [
{"type": "text", "text": "360-degree shot"},
{"type": "image_url", "role": "first_frame", "image_url": {"url": "https://.../first.jpg"}},
{"type": "image_url", "role": "last_frame", "image_url": {"url": "https://.../last.jpg"}}
]
}
¶ Omnimodal references and video editing (Seedance 2.0 / 2.5)
The Seedance 2.0 series can combine character, audio, and video references; Seedance 2.5 (doubao-seedance-2-5-260628) further supports up to 30 reference images, 10 videos, 10 audio clips, audio-only references, and editing or extending reference videos.
{
"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://.../portrait.jpg"}}
],
"resolution": "720p",
"ratio": "9:16",
"duration": 5
}
A few key points:
- The three scenarios—first frame, first and last frames, and omnimodal references—are mutually exclusive:
first_frame/last_framecannot be mixed withreference_image/reference_video/reference_audio; - In 2.5,
omni_reference_task_typecan be set toauto,reference,edit, orextend; - Please upload only materials featuring real people or characters, and audio or video materials, that you own or are authorized to use.
If you want the person to precisely reproduce the composition in the photo (rather than be "the same person in a different scene"), use first_frame instead to make the video start moving from that photo.
¶ Quick reference for common parameters
model: 1.x, 1.5, 2.0, anddoubao-seedance-2-5-260628;resolution:480p/720p/1080p; 2.0 Standard also supports4k;ratio:16:9/9:16/1:1/4:3/3:4/21:9/adaptive;duration: 4–15 seconds for 2.0, 4–30 seconds for 2.5; both support-1for automatic duration;generate_audio: 1.5 Pro and 2.x support generating video with sound;callback_url: asynchronous callback address; the platform sends the result there via POST when the task is complete (you can also useasync+ polling).
¶ What to make with it
- Vertical short videos: Use
ratio: 9:16to directly produce vertical videos suited to Douyin/Xiaohongshu. Combined with 2.0's real-person reference, it allows you to produce content in batches featuring a consistent on-camera persona; - E-commerce and products: Use first-frame mode to make a product image rotate or be showcased, or use first-and-last-frame mode to demonstrate "form changes";
- Short films with sound: Use
doubao-seedance-1-5-pro-251215+generate_audioto produce a film with ambient sound in one step.
Among these uses, "short videos featuring a consistent real person on camera" are especially valuable—it is one of the hardest things for content accounts to supply consistently. Put a link to the tool you use on your profile and, through the Ace Data Cloud Affiliate Program, earn commissions when users who register through you make purchases, creating an income stream beyond your content; or package this asynchronous generation workflow as a tool and sell it to merchants who need to make short videos in batches, with the cost being the platform's usage-based charges (such as the 5.7 credits for the example above).
¶ Reference Links
- Documentation: https://platform.acedata.cloud/documents/seedance-videos
- API:
POST https://api.acedata.cloud/seedance/videos - Get a Token: https://platform.acedata.cloud/console/applications
After confirming the selected model, fees, and balance, first run a text-to-video generation. Obtain the appropriate authorization before using a real-person reference.
