> Markdown copy of https://makernice.com/blog/image-to-video-and-first-last-frame/ for AI tools. The HTML page is the canonical version.

[← All posts](https://makernice.com/blog/)

Guides

# How Do You Make a First and Last Frame AI Video With an API?

Makernice Team · 2026-10-03 · Updated 2026-12-03

Prices as of December 3, 2026 (price list v18).

## Key takeaways

-   Image-to-video (mode i2v) needs image\_url; first and last frame (mode flf) needs both image\_url and last\_image\_url, each a public https URL of up to 2,048 characters.
-   13 of the 14 video models on Makernice support image-to-video; first and last frame is supported by 12, all except Happy Horse 1.1 and Kling 3.0 4K.
-   Only Seedance 2.5, 2.0 and 2.0 Fast accept aspect\_ratio in i2v and flf; every other model, Seedance 2.5 Flash included, rejects the field in these modes.
-   Sending last\_image\_url in i2v mode, or leaving it out in flf mode, fails with 400 invalid\_request.
-   GET /v1/models needs no API key and shows, per mode, whether a first image and a last image are required.

To make a first and last frame AI video on Makernice, send mode flf with image\_url for the opening frame and last\_image\_url for the closing frame, and the model generates the motion between them. Image-to-video (i2v) animates one still you supply, using it as the first frame. First and last frame (flf), also called start and end frame, takes two images and generates the motion that connects them. On Makernice, both modes work with Alibaba's Wan 3.0, ByteDance's Seedance 2.5, Kuaishou's Kling 3.0 Pro and most other video models; Happy Horse 1.1 does i2v only, and Kling 3.0 4K does neither. Use text-to-video when all you have is a prompt; use image-to-video when the composition, a character or a product has to match a picture you already have, because a scene generated from text alone can drift.

## Which video models support image-to-video and first-last frame?

13 of the 14 video models on Makernice support image-to-video and 12 support first and last frame; Kling 3.0 4K supports neither and Happy Horse 1.1 has no first and last frame. Each model page lists that mode's price per resolution, such as [Wan 3.0](https://makernice.com/models/wan-3-0/), [Seedance 2.5](https://makernice.com/models/seedance-2-5/), [Kling 4.0](https://makernice.com/models/kling-4-0/) and [MiniMax H3](https://makernice.com/models/minimax-h3/).

| Model | Image-to-video | First and last frame | aspect\_ratio in these modes |
| --- | --- | --- | --- |
| Seedance 2.5 | Yes | Yes | Eight ratios, including adaptive |
| Seedance 2.0, 2.0 Fast | Yes | Yes | Six ratios; flf also adaptive |
| Seedance 2.5 Flash | Yes | Yes | Not accepted (follows the input image) |
| MiniMax H3, H3 Max, H3 Max Turbo | Yes | Yes | Not accepted |
| Wan 3.0, Wan 3.0 Prime | Yes | Yes | Not accepted |
| Kling 3.0 Pro, Standard | Yes | Yes | Not accepted |
| Kling 4.0 | Yes | Yes | Not accepted |
| Kling 3.0 4K | No  | No  | Text-to-video only |
| Happy Horse 1.1 | Yes | No  | Not accepted |

Check mode support before you build a user interface around it. A model picker that offers first and last frame for Happy Horse 1.1, or any image mode for Kling 3.0 4K, will only produce errors. GET /v1/models lists each model's modes, and for every mode a needs object says whether image and lastImage are required. It needs no API key, so you can drive your picker from it instead of hard-coding a table.

To pick a first and last frame model, start from the clip you need. For more than 15 seconds, use Wan 3.0 or Wan 3.0 Prime (2 to 30 seconds), Seedance 2.5 or Seedance 2.5 Flash (4 to 30 seconds) or Kling 4.0 (3 to 30 seconds); the others stop at 15. For 4k, use Seedance 2.5, or MiniMax H3, whose 2k and 4k are upscaled from 768p. For a silent clip, set `generate_audio` to false on any of these models, at the same price. To set aspect\_ratio, use Seedance 2.5, 2.0 or 2.0 Fast; no other model accepts it in this mode.

## How do you turn an image into a video with an image-to-video API?

A Makernice image-to-video request sets mode to i2v and passes the picture as image\_url, which becomes the first frame of the clip. Images must be public https URLs of up to 2,048 characters; there is no upload endpoint, so host the file first. Duration and resolution follow the model: Wan 3.0 takes 2 to 30 seconds and 480p, 720p or 1080p.

```
{
  "model": "wan-3.0",
  "mode": "i2v",
  "prompt": "The camera slowly pushes in as the lantern flame flickers and the paper blinds sway",
  "image_url": "https://example.com/lantern.jpg",
  "duration": 5,
  "resolution": "720p"
}
```

## How do you use first and last frame images with an AI video API?

A first and last frame request on Makernice sets mode to flf and passes both image\_url for the opening frame and last\_image\_url for the closing frame. The server rejects fields a mode does not use, so sending last\_image\_url in i2v mode, or omitting it in flf mode, fails with 400 invalid\_request.

```
{
  "model": "wan-3.0",
  "mode": "flf",
  "prompt": "Time passes over the harbor, light shifting from dawn to dusk while the boats stay at anchor",
  "image_url": "https://example.com/harbor-dawn.jpg",
  "last_image_url": "https://example.com/harbor-dusk.jpg",
  "duration": 5,
  "resolution": "720p"
}
```

Each frame must be a public https URL that serves a still JPEG, PNG or WebP image of up to 10 MB directly at that URL, because redirects are not followed; animated WebP and GIF are not supported. If a frame can't be used, the generation fails with invalid\_request, error.input names image\_url or last\_image\_url, and the hold is released, so replace that image and create a new generation.

First and last frame bridges two pictures; image-to-video runs forward from one.

## Can you set aspect\_ratio or resolution in image-based modes?

On Makernice, only Seedance 2.5, Seedance 2.0 and Seedance 2.0 Fast list aspect ratios for image-to-video (i2v) and first and last frame (flf). Seedance 2.5 takes eight values (adaptive, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 and 9:21) in both modes; Seedance 2.0 and Seedance 2.0 Fast take six (21:9, 16:9, 4:3, 1:1, 3:4 and 9:16), and their flf also allows adaptive. Every other model, including Seedance 2.5 Flash, has no aspect\_ratio for these modes (the clip follows the shape of the input image), so leave the field out or the request is rejected. Resolution is model-specific too: Seedance 2.0 Fast and the Kling 3.0 models take no resolution field, while Seedance 2.5, Seedance 2.5 Flash, Seedance 2.0, Kling 4.0, MiniMax, Wan and Happy Horse list their own options.

## How do you get better results from image-to-video?

Better image-to-video and first and last frame results come from a prompt about motion, two frames that belong to the same shot, and image URLs that stay reachable:

-   Use the prompt to describe the motion, not the picture. The image already shows what is there.
-   For first and last frame, choose two frames of the same scene and subject with similar framing; very different pictures give the model little to bridge.
-   For first and last frame, write the prompt about the change between the two frames: what moves, in which direction, how the camera travels and how fast, as in the harbor example above. Don't describe either image again, and keep the change small enough to happen within the duration you request.
-   Host images at stable public addresses for the whole generation, since the model needs to fetch them.
-   Always quote with the same image fields you will create with.

To steer a clip with several pictures instead of one or two, read the reference-to-video guide; to plan length and sharpness, read the post on duration and resolution limits.

[Every Makernice image-to-video model, with browser and API steps and example prices →](https://makernice.com/image-to-video/)

## Frequently asked questions

#### Does Happy Horse 1.1 support first and last frame?

No. Happy Horse 1.1 supports text-to-video, image-to-video and reference-to-video. For first and last frame, use Wan 3.0, Seedance 2.5, Kling 3.0 Pro or another model that lists flf.

#### Can Kling 3.0 4K animate an image?

No. Kling 3.0 4K only does text-to-video. Kling 3.0 Pro and Kling 3.0 Standard support both image-to-video and first and last frame.

#### Can I upload a local file as image\_url?

No. image\_url and last\_image\_url must be public https URLs of up to 2,048 characters, and the API has no upload endpoint. Host the image somewhere the model can fetch it for the whole generation.

#### How long can a Wan 3.0 image-to-video clip be?

Wan 3.0 accepts 2 to 30 seconds in image-to-video, with a default of 5 seconds, at 480p, 720p or 1080p.

#### Is first and last frame video generation free?

No. Makernice has no free credits. A first and last frame run is billed per second of the duration you request; on the page of each model that supports first and last frame, the price table lists that mode's price per resolution, and a quote shows the exact amount before you run it. Failed runs aren't charged. Note: if a finished output is blocked by output moderation for a policy violation, the run is still charged. You can contact support for a manual review.

## Models in this post

Video

### Wan 3.0

\-21%

The widest duration range on Makernice — 2 to 30 seconds — at 480p, 720p or 1080p, with every input mode and up to 10 references.

By AlibabaFrom $0.0394/s

https://makernice.com/models/wan-3-0/

Video

### Seedance 2.5

ByteDance's flagship for long takes: up to 30 seconds, 480p to 4K, and up to 16 reference images to keep every shot on-model. Audio is on by default.

By ByteDanceFrom $0.1152/s

https://makernice.com/models/seedance-2-5/

Video

### Kling 3.0 Pro

\-4%

Video that ships with sound: Kuaishou's Kling 3.0 Pro adds audio to every 3–15 second clip by default, from text, a still or first and last frames. 1080p tier.

By KuaishouFrom $0.1612/s

https://makernice.com/models/kling-3-0-pro/

Video

### Happy Horse 1.1

Alibaba's Happy Horse 1.1: a focused model for text, image and reference-driven clips — 3–15 seconds at 720p or 1080p, up to 9 references.

By AlibabaFrom $0.168/s

https://makernice.com/models/happy-horse-1-1/
