Seedance 2.5 image-to-video: animate a still through the API
Turn one image into a clip with Seedance 2.5: the first_frame request, image limits, resolution and duration choices, motion prompts, and the errors to expect.

On this page
To animate a still with Seedance 2.5, send the image in the content array with role: "first_frame" and a text prompt that describes the motion. The video starts from your image, runs 4 to 30 seconds, and comes with generated sound unless you switch it off. The same request shape works on seedance-2.5 and on seedance-2.5-flash.
This guide covers that one mode. The create-and-poll walkthrough is in the Seedance 2.5 API guide, so it only gets a short section here. Facts come from the Seedance 2.5 image-to-video docs page, the shared Seedance guide and our model catalog.
What the first-frame input does#
A Seedance request has a content array. It must hold at least one text item, and it may hold images. The mode is derived from what you put in: text only is text-to-video, one image with role: "first_frame" is image-to-video, a first_frame plus a last_frame is a transition, and several reference_image items are multi-image reference.
With a first frame, the video begins on that image. Two consequences follow from the docs:
- The output follows the image's aspect ratio.
ratiohas no effect, so you do not need to set it. - The prompt should describe movement, not content. The docs say there is no need to restate what the image shows.
Reference images are a different mode. They tell the model what a subject or style looks like, but the video does not have to start from them. If you want the opening frame to be your picture, use first_frame. For the two-image version see Seedance 2.5 first and last frame control.
The request#
The endpoint is POST https://api.dreamto.ai/api/v3/contents/generations/tasks. The path includes the /api prefix; without it you get a 404. Authenticate with Authorization: Bearer $DREAMTO_API_KEY (see authentication).
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": "Slow push-in, the person smiles, hair gently moving in the breeze, cinematic lighting" }, { "type": "image_url", "image_url": { "url": "https://example.com/portrait.jpg" }, "role": "first_frame" } ], "duration": 5, "resolution": "720p" }'A successful call returns HTTP 200 with a task id and a request_id. When you contact support, include the task id and the X-Request-Id response header.
{ "id": "task_8c1d2e3f4a5b6c7d8e9f0a1b", "request_id": "req_3f9a1c2b7d4e5f60718293a4"}To run it on the cheaper tier, change model to seedance-2.5-flash and nothing else.
Wait for the result#
Tasks are asynchronous. Poll GET /api/v3/contents/generations/tasks/{id} until status is succeeded (in progress is running, failure is failed), then read content.video_url. A complete script that does this and keeps the image-to-video request in one place:
import osimport timeimport requestsURL = "https://api.dreamto.ai/api/v3/contents/generations/tasks"HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY']}"}payload = { "model": "seedance-2.5", "content": [ {"type": "text", "text": "Slow push-in, the person smiles, hair gently moving in the breeze, cinematic lighting"}, {"type": "image_url", "image_url": {"url": "https://example.com/portrait.jpg"}, "role": "first_frame"}, ], "duration": 5, "resolution": "720p",}resp = requests.post(URL, headers=HEADERS, json=payload, timeout=60)if resp.status_code != 200: raise RuntimeError(resp.json()["error"]["message"])task_id = resp.json()["id"]started = time.time()while True: task = requests.get(f"{URL}/{task_id}", headers=HEADERS, timeout=30).json() if task["status"] == "succeeded": break 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)# The video URL is a direct link: do not send the Authorization header.video = requests.get(task["content"]["video_url"], timeout=300)with open(f"{task_id}.mp4", "wb") as f: f.write(video.content)print("saved", f"{task_id}.mp4")The script follows the polling schedule the docs recommend (3 s, then 5 s, then 10 s). Copy the file to your own storage soon after it finishes; the URL is not permanent. If you would rather be notified, pass callback_url; the docs advise keeping a slow poll as a fallback, and smart duration and task callbacks covers that.
Image requirements#
The shared guide lists these limits for image material. They apply to a first frame the same way as to any other image.
| Property | Limit |
|---|---|
| Formats | jpeg, png, webp, bmp, tiff, gif |
| Aspect ratio | 0.4 to 2.5 |
| Side length | 300 to 6000 px |
| File size | 30 MB at most per image |
| Count on Seedance 2.5 | Up to 30 images across all roles |
| Count on Seedance 2.5 Flash | Up to 10 images across all roles |
The url can be a public http or https URL, an asset://<asset Id> reference to the asset library, or inline Base64 in the form data:image/png;base64,.... Seedance 2.5 Flash does not accept asset:// references. Base64 is limited to 45 MB per item after decoding and 64 MB for the whole request body. A public URL is the simpler choice for anything large.
A very wide banner or a very tall strip falls outside the 0.4 to 2.5 aspect range, and a thumbnail under 300 px on a side is out of range too, so crop and resize first. Because the output follows the image ratio, crop to the shape you want for the video before uploading.
Choosing duration and resolution#
Both are validated against the model. A value outside the range returns 400 and no task is created, so nothing is billed.
| Parameter | Default | Seedance 2.5 | Seedance 2.5 Flash |
|---|---|---|---|
duration | -1 (smart duration) | integer 4 to 30, or -1 | integer 4 to 30, or -1 |
resolution | 720p | 480p, 720p, 1080p, 4k | 480p, 720p |
generate_audio | true | true or false | true or false |
Two defaults to know about. If you omit duration, you get smart duration: the model picks a length between 4 and 30 seconds and you are billed for actual usage. Set an integer when you need a predictable clip length or cost. And generate_audio is on by default, so pass false if you want a silent file.
A workable routine for stills: iterate at 480p with a 4 or 5 second duration, settle on the image and the prompt, then re-run the keeper at 1080p or 4k on seedance-2.5. Flash stops at 720p, which makes it a good fit for the iteration loop or for batches where 720p is the delivery size. See Seedance 2.5 Flash vs Seedance 2.5 for that choice and Seedance 2.5 4K video for the top resolution.
What it costs#
Image-to-video with a first frame has no reference video, so the "no reference video" rows of the price table apply. As of December 2026, these are the prices on our prices page, after the current discount:
| Model | 480p | 720p | 1080p | 4K |
|---|---|---|---|---|
| Seedance 2.5 | $0.10794 per second | $0.242676 per second | $0.597051 per second | $0.959364 per second |
| Seedance 2.5 Flash | $0.070615 per second | $0.15876 per second | not available | not available |
A 5-second 720p clip on Seedance 2.5 is 5 × $0.242676, about $1.21. The same clip on Seedance 2.5 Flash is 5 × $0.15876, about $0.79. Check the page before you budget a batch; Seedance 2.5 API pricing goes deeper.
Writing the motion prompt#
The image already fixes the subject, the lighting and the composition. The prompt's job is to say what moves and how the camera behaves. The shared guide's prompt tips are a good base: build the prompt from subject plus motion, background plus motion, and camera plus motion; name camera moves such as push in, pull out or orbit; and swap abstract wording for concrete description when a result is off. Prompts can be 3 to 20,000 characters.
Here are three prompts to adapt. Run each with model: "seedance-2.5", duration: 5 and resolution: "720p" first, then scale up.
The camera pushes in slowly toward the cup. Steam rises and curls to the left. The curtain behind it moves a little in a draft. Soft ambient room sound, a faint clink of ceramic at the start.This one gives the camera one move and names two separate things that move, so the model does not have to decide what should be alive. The sound line is there because audio is on by default.
Keep the camera still. The woman turns her head toward the window and her scarf shifts in the wind. Leaves in the background drift from right to left. No cut.A locked camera isolates the subject motion, and "No cut" asks for a single continuous shot.
Aerial view descending slowly over the harbour. Boats rock on the water, flags flutter, and the camera finishes at a low angle above the pier.The camera path has a start and an end point, which matters more as duration grows. For longer clips, the structured prompt templates and the Seedance 2.5 prompt guide show how to lay out beats; camera movement prompts lists a vocabulary.
One habit to avoid is describing the image back to the model. Spend the prompt on the verbs.
Errors you are likely to hit#
Validation failures return 400 with error.code set to invalid_parameter and error.param naming the field; nothing is billed. A task that fails during generation is returned by the query endpoint with HTTP 200, status: failed and error.code: task_failed.
| Symptom | Cause | Fix |
|---|---|---|
| 404 on create | Missing /api in the path, or the model is not enabled for your account | Use /api/v3/contents/generations/tasks; check model |
400, resolution must be one of: 480p, 720p, 1080p, 4k | A resolution outside the list, such as 2k | Use a listed value, lowercase |
400, duration must be an integer from 4 to 30 seconds, or -1 (smart duration) | A float, a value under 4, or a value over 30 | Send a whole number from 4 to 30 |
| 400, unsupported parameter | A field the API does not accept, for example frames | Use only documented fields; use duration for length |
| 400, invalid base64 | Broken data: URL | Re-encode the image, or use a public URL |
| 400, over 45 MB | Base64 image larger than 45 MB after decoding | Use an http or https URL |
400 on Flash, real_person_mode | Flash does not support real_person_mode | Remove the field |
Task ends failed | Image outside the format, size or aspect limits | Fix the image against the table above and resubmit |
| 402 | Insufficient balance | Top up and retry |
| 429 | Rate limit | Back off and retry |
Enum values are case-sensitive. The full list of codes is on the errors page, and Seedance 2.5 API errors and how to fix them goes further.
Two points are easy to miss. First, real_person_mode defaults to true on seedance-2.5: when on, real people in reference images or videos are converted to virtual likenesses before generation. The docs do not say more than that, so do not assume the face in a portrait first frame will be reproduced exactly. Second, if you are submitting many stills, read Automating Seedance 2.5 before writing the loop.
For the same idea on other video models see Image-to-Video API Guide: First Frame, Last Frame, Webhooks. You can also try a still first in the Seedance 2.5 playground or the Seedance 2.5 Flash playground, and browse the model pages at /seedance-2-5, /seedance-2-5-flash and /models.
FAQ#
How do I animate an image with the Seedance 2.5 API?#
Add an image_url item with role: "first_frame" to the content array, next to a text item that describes the motion. Post it to /api/v3/contents/generations/tasks with model set to seedance-2.5, then poll the task until status is succeeded and read content.video_url.
Do I need to set the aspect ratio for image-to-video?#
No. With a first frame the output follows the image ratio and ratio has no effect. Crop the image to the shape you want before you send it.
What image sizes and formats does Seedance 2.5 accept?#
The docs list jpeg, png, webp, bmp, tiff and gif, with an aspect ratio between 0.4 and 2.5, sides between 300 and 6000 px, and up to 30 MB per image. You can send a public URL, an asset:// reference or inline Base64.
Can I use Seedance 2.5 Flash for image-to-video?#
Yes. The request is identical except for model: "seedance-2.5-flash". Flash outputs 480p or 720p, accepts up to 10 images, and does not support real_person_mode.
How long can an image-to-video clip be?#
Between 4 and 30 seconds on both Seedance 2.5 and Seedance 2.5 Flash, as a whole number of seconds. If you omit duration or send -1, the model chooses the length and you are billed for actual usage.


