API guides

Seedance 2.5 First and Last Frame Control Explained

Pin the start and end of a Seedance 2.5 clip with two images: the first_frame and last_frame request, image limits, what the prompt does, and the cost.

Amber honey pours in a thin stream from a tilted glass jar into a glowing pool on a dark marble counter, with steam curling nearby
On this page

With Seedance 2.5 you can fix both ends of a shot. You send two images in the same request, one marked first_frame and one marked last_frame, plus a prompt, and the model generates the video that connects them. The clip opens on your first image and is meant to arrive at your second. This works on seedance-2.5 and on seedance-2.5-flash, with the same request shape.

The facts here come from the Seedance 2.5 first and last frame docs page and the model catalog.

How the mode is chosen#

You do not switch to this mode with a parameter. A Seedance request has a content array with at least one text item, and the generation mode is derived from the material you put in it:

Material in contentMode
Text onlyText to video
One image_url with role: "first_frame"Image to video
first_frame plus last_frameFirst and last frame
Several role: "reference_image" itemsMulti-image reference

So adding a last_frame image to an image-to-video request is the whole change. If you have not made a first-frame request yet, start with Seedance 2.5 image-to-video, which covers the single-image version and the image requirements in more detail.

Reference images are a different thing from frames. A reference tells the model what a subject looks like; a frame is an exact state the video starts from or ends on. The catalog puts it as a decision you make per asset: does this image establish an exact scene state, or does it guide appearance and movement? Use first_frame and last_frame for the first kind.

The request#

Both images go in content as image_url items with a role. The endpoint is POST https://api.dreamto.ai/api/v3/contents/generations/tasks.

bash
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": "Smoothly transition from the first image to the second, steady push-in, soft light, cinematic transition"      },      {        "type": "image_url",        "image_url": { "url": "https://example.com/frame_start.jpg" },        "role": "first_frame"      },      {        "type": "image_url",        "image_url": { "url": "https://example.com/frame_end.jpg" },        "role": "last_frame"      }    ],    "duration": 5,    "resolution": "720p"  }'

The response is HTTP 200 with a task id and a request_id. Keep the request_id; support will ask for it. To run the same request on the cheaper tier, change model to seedance-2.5-flash.

Two details from the docs matter here:

  • Ratio is not yours to set. The output follows the input image ratio, and ratio has no effect. Crop both images to the shape you want before you upload.
  • The URL can be several things. A public http(s) URL or inline Base64 as data:image/png;base64,...; seedance-2.5 also accepts an asset://<asset Id> library reference, which Flash does not. Base64 is limited to 45 MB per item after decoding and 64 MB for the whole request body, so use URLs for anything large.

Create, poll, download#

Video generation is asynchronous, so the create call returns a task, not a video. This script sends the two-frame request, polls until the task ends and prints the file URL; it needs the requests package. The full polling guidance, including callbacks, is in the Seedance 2.5 API guide.

python
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": "Smoothly transition from the first image to the second, steady push-in, soft light",        },        {            "type": "image_url",            "image_url": {"url": "https://example.com/frame_start.jpg"},            "role": "first_frame",        },        {            "type": "image_url",            "image_url": {"url": "https://example.com/frame_end.jpg"},            "role": "last_frame",        },    ],    "duration": 5,    "resolution": "720p",}resp = requests.post(URL, headers=HEADERS, json=payload, timeout=60)resp.raise_for_status()task_id = resp.json()["id"]while True:    task = requests.get(f"{URL}/{task_id}", headers=HEADERS, timeout=30).json()    if task["status"] == "succeeded":        print(task["content"]["video_url"])        break    if task["status"] == "failed":        raise RuntimeError(task["error"]["message"])    time.sleep(5)

status is running, succeeded or failed. A task that fails during generation comes back from the query endpoint with HTTP 200 and status: failed, so check the field rather than the HTTP code.

What the two images need#

The docs give one rule specific to this mode: the closer the composition and subject of the two images, the smoother the transition. Beyond that, the general image limits for Seedance material apply to both frames.

PropertyLimit
Formatsjpeg, png, webp, bmp, tiff, gif
Aspect ratio0.4 to 2.5
Side length300 to 6000 px
File size30 MB at most per image

Read "the closer, the smoother" as a design rule: keep the subject, camera angle and light the same in both frames. A product on the same table in two poses is an easy pair. A kitchen counter and a mountain road are two different scenes, and the clip between them is a transformation you are asking the model to invent.

The sources do not say whether the two images must have the same size or ratio, or what happens if they differ, so keep them identical. Export both frames from the same crop, at the same pixel size, and you remove the question.

What the prompt does#

With both ends fixed, the prompt no longer describes what the scene is. The images already do that. It describes how to get from one to the other: the camera move, the pace, the light, and what happens in between. The docs example is a short instruction of this kind: a smooth transition from the first image to the second, a steady push-in, soft light.

A few habits follow from that.

Say what changes and what stays. If a cup fills, say the cup stays put and the liquid rises.

Name the camera. The docs recommend specifying moves such as push in, pull out or orbit; one steady move suits a bridge between two compositions. For vocabulary, see camera movement prompts for AI video.

The shared guide says to refer to material by position ("image 1", "video 1"). It does not spell out the numbering for two frames, so the examples here use the docs' own wording, "from the first image to the second".

Replace abstract wording with concrete description, which is the docs' own advice when a result is off. "A magical transformation" gives the model little; "the steam thins out and the glass clears" gives it an event.

Here is a prompt written for a pair of frames showing an empty glass jar and the same jar full of honey:

text
Fixed camera, slow push-in. Honey pours in a thin amber stream from above frame, fills the jar from the bottom, and settles level with the rim. Warm side light, steam rising faintly. The jar and the table do not move.

It names one moving thing, one camera move and what must stay still, and it describes the interval, not the endpoints. Run it on seedance-2.5 with duration: 6 and resolution: "720p".

What the model fills in between#

The sources are thin here. The docs describe the mode as generating "the transition between a first and a last frame". They do not describe how the model chooses its path, and they make no promise that a given pair will blend a certain way.

What you control is therefore the inputs, the prompt and the length. Duration is an integer from 4 to 30 seconds, or -1 for smart duration, where the model picks a length from 4 to 30 seconds and you are billed for actual usage. For frame pairs, set an integer: you know how long the move should take, and the cost then does not vary. The actual length is returned as duration when you query the task.

generate_audio is true by default; pass false for a silent file. The task returns the seed it used, and passing it in a new task reproduces a similar result, though not a guaranteed identical one.

Where it is useful#

Transitions between two states. Product reveals, before and after, day to night, open and closed. You own both images, so the video starts and ends where your design needs it to. A reveal built this way ends on a frame that is already approved, which is useful when the last frame has to carry a pack shot or leave room for text.

Joining generated stills. If you generate frames with an image model first, the two-frame request turns a pair of stills into motion without redrawing either. The route from stills to video is covered in Seedream 5.5 to Seedance 2.5 and storyboard frames to Seedance shots.

Continuous shots from several clips. Set return_last_frame: true on a request and a succeeded task returns content.last_frame_url, which the docs describe as usable as the next clip's first frame. Take that URL as the first_frame of the next request, and pair it with a new last_frame of your choice. Each clip then starts from the frame the previous one ended on. For clips longer than a single request allows, see Seedance 2.5 long video.

Loops. The sources do not document a loop mode. A clip that ends where it began would mean passing the same image as both first_frame and last_frame, but the docs do not describe that case, so test it on a short, cheap clip before building on it.

For how other video models handle two frames, see first and last frame video APIs compared.

What it costs#

Billing is per second of output. A first and last frame request has no reference video, so the "no reference video" prices apply. As of December 2026, after the current 30% discount, these are the prices on the prices page:

Model480p720p
Seedance 2.5$0.10794 per second$0.242676 per second
Seedance 2.5 Flash$0.070615 per second$0.15876 per second

Seedance 2.5 also offers 1080p and 4K; Flash stops at 720p. A 5-second 720p clip on Seedance 2.5 is 5 × $0.242676 = $1.21338. The same clip on Seedance 2.5 Flash is 5 × $0.15876 = $0.7938. The catalog positions Flash as a tier for review rounds, so a sensible routine is to test the pair and the prompt on Flash at 480p or 720p, then re-run the keeper on seedance-2.5 at a higher resolution. Seedance 2.5 Flash vs Seedance 2.5 compares the two.

Out-of-range values return 400, no task is created and nothing is billed. You can try the mode without code in the Seedance 2.5 playground, or read more on the model page and Flash page.

FAQ#

How do I set a first and last frame in the Seedance 2.5 API?#

Add two image_url items to the content array next to a text item. Give one role: "first_frame" and the other role: "last_frame", then post the request to /api/v3/contents/generations/tasks with model set to seedance-2.5. The mode is derived from the two roles, so no extra parameter is needed.

Does Seedance 2.5 Flash support first and last frame?#

Yes. The Flash docs have the same first and last frame page, with the same request and model set to seedance-2.5-flash. Flash is limited to 480p and 720p and up to 10 images per request.

Can I choose the aspect ratio with first and last frame?#

No. The output follows the ratio of the input images and the ratio parameter has no effect in this mode. Crop both images to the shape you want first, within an aspect ratio of 0.4 to 2.5.

How long can a first and last frame video be?#

duration takes an integer from 4 to 30 seconds, or -1 to let the model choose a length in that range and bill actual usage. The first and last frame docs example uses 5 seconds.

How do I make the transition smoother?#

The docs say the closer the composition and subject of the two images, the smoother the transition. Keep the same subject, angle and light in both frames, and describe one camera move in the prompt.

Can I continue a clip from where it ended?#

Yes. Set return_last_frame: true and a succeeded task returns content.last_frame_url, which the docs say can be used as the next clip's first frame.

  • Seedance 2.5
  • API Guide