Seedance 2.5 Long Video: 30-Second Clips and Video Extend
Make Seedance 2.5 videos longer than 15 seconds: set duration up to 30, continue a clip with extend, or chain tasks on the last frame. Requests and prices.

On this page
Seedance 2.0 stops at 15 seconds per task. Seedance 2.5 gives you two ways past that: ask for a single clip of up to 30 seconds by setting duration to a value from 16 to 30, or continue a clip you already have with omni_reference_task_type: extend. Both go through the same create-task endpoint.
This guide covers which route fits which job, the parameters and limits of each, how to keep continuity across several tasks, and what a long clip costs. For the basic request shapes, start with the Seedance 2.5 API guide.
Long-video mode or extend: which to use#
| Long-video mode | Video extend | |
|---|---|---|
| What you send | A prompt, optionally with reference images, videos or audio | A prompt and one reference video to continue |
| Key parameters | duration: 16 to 30 | omni_reference_task_type: "extend", ratio: "adaptive" |
What duration means | Total length of the clip | Length of the newly generated part |
| Use it for | One planned piece with a beginning, middle and end | Continuing footage that already exists |
| Output | One new video | New footage that continues the input video |
seedance-2.5 accepts a duration of up to 30 seconds, and so does Seedance 2.5 Flash (seedance-2.5-flash) at 480p and 720p. The Seedance 2.0 models stop at 15 and return a 400 beyond that. Every example here uses seedance-2.5, which the catalog describes as generating up to 30 seconds in one pass and extendable over multiple rounds. Longer videos take longer to generate and cost more; prices are in the last section.
Long-video mode: one task, up to 30 seconds#
Long-video mode is the normal create-task call with a larger duration; there is no separate endpoint. The long-video example in the docs sends one reference image of a traveler and a prompt that covers a whole journey.
curl -X POST "https://api.dreamto.ai/api/v3/contents/generations/tasks" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.5", "content": [ { "type": "text", "text": "The traveler in image 1 sets off from the foot of the mountain at dawn, passes through a forest and a stream, and reaches the summit at sunrise; the camera follows all the way" }, { "type": "image_url", "image_url": { "url": "https://example.com/traveler.jpg" }, "role": "reference_image" } ], "ratio": "16:9", "duration": 20, "resolution": "1080p", "omni_reference_task_type": "reference" }'A successful call returns HTTP 200 with the task id and a request_id that equals the X-Request-Id response header. Keep both for support requests.
{ "id": "task_8c1d2e3f4a5b6c7d8e9f0a1b", "request_id": "req_3f9a1c2b7d4e5f60718293a4"}Then poll GET /api/v3/contents/generations/tasks/{id} with the same Authorization header until status is succeeded, and read content.video_url.
The parameters that matter for a long clip:
durationmust be an integer from 4 to 30, or-1. Decimals, strings and out-of-range values return a 400 with the message "duration must be an integer from 4 to 30 seconds, or -1 (smart duration)". No task is created and nothing is billed.omni_reference_task_type: "reference"tells the model to generate a new video from the reference media. If you omit the field, the value is derived from what is incontent.resolutioncan be480p,720p,1080por4k, and defaults to720p. Higher resolutions take longer and cost more.- One task takes up to 30 images, 10 videos and 10 audio clips as references. Cite them in the prompt by order: "image 1", "video 1", "audio 1".
Write the prompt as a sequence of beats#
The catalog's tip for longer clips is to give each beat a single main action and the sound it needs, and to specify the event order first, then the framing for each planned cut. It also says to leave enough time for a movement to resolve on screen before cutting away.
Wide shot, dawn. The traveler in image 1 stands at the foot of a mountain trail and adjusts a backpack strap. Cut to a medium shot as the traveler walks into a pine forest, light in thin bars through the trunks. The camera follows from behind, then drifts alongside as the traveler crosses a shallow stream on flat stones. Final beat: a slow rise to the summit as the sun clears the ridge, the traveler turning to face the light. Footsteps, running water, a low wind that grows at the top.This prompt has four beats in order, each with its own framing, and every sound belongs to an action on screen. For more on structure, see the Seedance 2.5 prompt guide.
Let the model pick the length#
If you do not know how long a scene needs, set duration: -1. The model chooses a length between 4 and 30 seconds, you are billed for actual usage, and the actual length comes back as duration when you query the task. Omitting duration has the same effect, because -1 is the default on this model.
Video extend: continue a clip you already have#
Extend takes a reference video, a prompt that says what happens next and how the camera moves, and omni_reference_task_type: "extend". This is the video extension example from the docs:
curl -X POST "https://api.dreamto.ai/api/v3/contents/generations/tasks" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedance-2.5", "content": [ { "type": "text", "text": "Keep the original camera move; the person keeps walking out of frame to the right as the light turns to dusk" }, { "type": "video_url", "video_url": { "url": "https://example.com/clip.mp4" }, "role": "reference_video" } ], "ratio": "adaptive", "duration": 5, "resolution": "720p", "omni_reference_task_type": "extend" }'Two rules differ from a normal request.
duration is the length of the newly generated part, not the total: duration: 5 asks for five new seconds that continue the input. The docs do not say whether the returned file also contains the input footage, so check the duration reported on the finished task before you cut the pieces together.
The ratio follows the input video, so ratio must be adaptive. That value is applied when you omit the field, and any other value returns a 400 without charge.
The extend example lists no separate duration range, so the model's general rule applies: an integer from 4 to 30, or -1. extend also needs a reference video in content.
Limits on the input video#
The reference-video limits in the docs apply to the clip you extend:
| Property | Limit |
|---|---|
| Container | mp4 or mov |
| Resolution | 480p or 720p |
| Length | 2 to 15 seconds |
| Frame rate | 24 to 60 FPS |
| File size | 50 MB maximum per video |
The model enforces these limits, and a clip outside them makes the task end as failed with the reason. A 1080p or 4K render is outside the listed input resolutions, so generate the clip you plan to extend at 720p or lower, or downscale it first. To continue a 25-second result, trim its last seconds into a separate file and extend that. The same limits apply on every further round.
Media can be a public http(s) URL, an asset://<asset Id> reference, or inline Base64 data of up to 45 MB per item after decoding. The docs recommend URLs for large videos and audio.
Describing the continuation#
Treat the prompt as a handover: say what stays the same, then what changes.
Keep the original camera move and the grading of video 1. The courier keeps walking toward the right edge of the frame and exits, leaving the empty street for a beat. The streetlights switch on one after another as the sky goes from amber to deep blue. Distant traffic hum, no dialogue.The first sentence anchors the existing footage, the next two give one action and one change of light, and the last sets the sound. A five-second extension is a single beat, so give it one main action.
Keeping continuity across several tasks#
When one 30-second task is not enough, or you want to approve a shot before building on it, three parts of the API help.
Return the last frame#
Set return_last_frame: true and a succeeded task includes content.last_frame_url next to content.video_url. Send it back as an image_url item with role: "first_frame" and the next video starts from that image. The field appears only when a frame is available, so check for it before you use it.
Fix the seed#
seed is an integer. The same seed with the same parameters usually gives similar results, but an identical video is not guaranteed. The task object returns the seed that was actually used, so you can pass it to a new task even if you did not set one.
Keep your references constant#
The catalog's tips for this model say to preserve approved decisions: keep the character reference, setting, ratio and accepted actions in place, and rewrite only the direction that needs work. For a sequence, send the same reference images in the same order for every clip, so "image 1" is always the courier.
A two-clip chain in Python#
This script creates a clip, waits for it, then creates a second clip that starts from the first one's last frame. It polls on the schedule the docs suggest: every 3 seconds for the first 30 seconds, every 5 seconds up to 2 minutes, then every 10 seconds.
import osimport timeimport requestsBASE = "https://api.dreamto.ai/api/v3/contents/generations/tasks"HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}def create(payload): r = requests.post(BASE, headers=HEADERS, json=payload, timeout=60) r.raise_for_status() return r.json()["id"]def wait(task_id): started = time.time() while True: r = requests.get(f"{BASE}/{task_id}", headers=HEADERS, timeout=60) r.raise_for_status() task = r.json() if task["status"] == "succeeded": return task if task["status"] == "failed": raise RuntimeError(task["error"]["message"]) elapsed = time.time() - started time.sleep(3 if elapsed < 30 else 5 if elapsed < 120 else 10)first = wait(create({ "model": "seedance-2.5", "content": [{ "type": "text", "text": "A courier in a yellow jacket cycles down a rainy neon street, the camera tracking alongside", }], "ratio": "16:9", "duration": 15, "resolution": "720p", "seed": 20261204, "return_last_frame": True,}))print("clip 1:", first["content"]["video_url"])last_frame = first["content"].get("last_frame_url")if not last_frame: raise RuntimeError("the task returned no last frame")second = wait(create({ "model": "seedance-2.5", "content": [ { "type": "text", "text": "The courier brakes outside a corner shop, steps off the bike and walks inside as the neon reflections settle on the wet road", }, { "type": "image_url", "image_url": {"url": last_frame}, "role": "first_frame", }, ], "duration": 10, "resolution": "720p", "seed": 20261204,}))print("clip 2:", second["content"]["video_url"])The second request has no ratio: with a first frame the output follows the image's ratio and ratio has no effect. Download both files soon after the tasks succeed: content.video_url is a direct download link, not a long-term URL, and you fetch it without the Authorization header. The API returns two separate videos; joining them is your own editing step.
A first-frame chain hands over one image, not the direction or speed of movement at the cut. End each prompt on a beat where the motion has settled, and open the next with the action that resumes. When the motion itself has to continue, use extend, which takes the input clip as its reference. The image-to-video guide covers first and last frames in more detail.
Callbacks for long tasks#
Add callback_url and DreamTo sends a POST to it when the task ends, whether it succeeded or failed. The body below is the smart duration and callback example from the docs, which combines duration: -1, return_last_frame and a callback. Send it to the same create endpoint as the earlier requests.
{ "model": "seedance-2.5", "content": [ { "type": "text", "text": "Waves crash on the rocks at sunset; the camera slowly moves from a wide shot to a close-up of the spray" } ], "ratio": "16:9", "duration": -1, "resolution": "1080p", "seed": 20261111, "return_last_frame": true, "bitrate_mode": "high", "callback_url": "https://your-server.example.com/dreamto/callback"}The callback body is shaped differently from the query response. Its status is success or failed, where the query endpoint says succeeded or failed, and the video URL arrives in a result array. Any 2xx response counts as delivered. A failed delivery is retried after 1, 5 and 30 minutes, so deduplicate on taskId. Callbacks are signed with HMAC-SHA256 once you have generated a webhook signing secret in the console.
A callback only speeds up notification, so keep low-frequency polling as a fallback. The signature algorithm and verification code are in the task callback docs.
Errors and limits to plan for#
- Validation errors return HTTP 400 with
error.codeset toinvalid_parameteranderror.paramnaming the field, for exampleduration. No task is created and nothing is billed. - The request body accepts only documented fields. Any other field returns a 400 "unsupported parameter" error.
- A task that fails during generation is not an HTTP error. The query endpoint returns 200 with
status: "failed"and anerrorobject whosecodeis alwaystask_failed; the reason is inerror.message. - 401 means a missing or invalid API key; see authentication. 402 means insufficient balance. 429 and 5xx responses can be retried with exponential backoff. The full table is on the errors page.
- Prompts must be 3 to 20,000 characters.
What a long clip costs#
Seedance 2.5 is billed per second of video. The rate depends on the output resolution and on whether the request includes a reference video. These are DreamTo's list prices in USD as of December 2026, after the 30% discount the catalog currently shows:
| Resolution | No reference video, per second | With a reference video, per second |
|---|---|---|
| 480p | $0.10794 | $0.064562 |
| 720p | $0.242676 | $0.145152 |
| 1080p | $0.597051 | $0.35721 |
| 4K | $0.959364 | $0.591948 |
Prices change, so check /prices before you budget. Multiplied out, a 30-second clip with no reference video comes to about $3.24 at 480p, $7.28 at 720p, $17.91 at 1080p and $28.78 at 4K. With duration: -1 the total depends on the length the model picks.
An extend request always carries a reference video, so the right-hand column applies. Do not estimate it from the new seconds alone: run one extension at your target resolution and check what it was charged before you queue a batch.
The docs call 480p the fastest and cheapest setting, suited to previews and quick iteration. Settle the beats there, then render the approved version at 1080p or 4k. A different resolution is a new generation, so expect a similar result, not the same frames.
The model page is /seedance-2-5, you can test requests in the playground, and every model is listed at /models. Seedance 2.5 vs Seedance 2.0 covers what changed from the previous generation, and Kling 4.0 vs Seedance 2.5 compares inputs, limits and price.
FAQ#
How long can a Seedance 2.5 video be?#
A single task can run up to 30 seconds. Set duration to an integer from 4 to 30, or to -1 to let the model choose within that range. seedance-2.5 and seedance-2.5-flash accept values above 15; the Seedance 2.0 models return a 400.
How do I extend a video with Seedance 2.5?#
Send the existing clip as a video_url item with role: "reference_video", set omni_reference_task_type to extend, and leave ratio as adaptive. duration is the length of the new part. The input must be an mp4 or mov at 480p or 720p, 2 to 15 seconds long and up to 50 MB.
Why does my extend request return a 400 error?#
Check error.param in the response to see which field failed. For extend, the documented cause is a ratio other than adaptive, because the ratio follows the input video. Rejected requests are not charged.
Can I make a continuous video longer than 30 seconds?#
Not in one task. Chain several tasks, either by passing the previous clip's content.last_frame_url as the next first_frame, or by extending a clip that fits the 15-second input limit. Keep the same references, ratio and seed across the sequence.
How much does a 30-second Seedance 2.5 video cost?#
As of December 2026, with no reference video, 30 seconds comes to about $7.28 at 720p and $17.91 at 1080p at the list rates. Requests that include a reference video have their own per-second rates. See /prices for the current numbers.


