Makernice
← All posts
A quiet harbor at dawn with small boats at anchor and a thin mist over the waterGuides

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

Makernice Team · ·

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

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, Seedance 2.5, Kling 4.0 and MiniMax H3.

ModelImage-to-videoFirst and last frameaspect_ratio in these modes
Seedance 2.5YesYesEight ratios, including adaptive
Seedance 2.0, 2.0 FastYesYesSix ratios; flf also adaptive
Seedance 2.5 FlashYesYesNot accepted (follows the input image)
MiniMax H3, H3 Max, H3 Max TurboYesYesNot accepted
Wan 3.0, Wan 3.0 PrimeYesYesNot accepted
Kling 3.0 Pro, StandardYesYesNot accepted
Kling 4.0YesYesNot accepted
Kling 3.0 4KNoNoText-to-video only
Happy Horse 1.1YesNoNot 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.

3D clay illustration of two picture frames joined by a dotted motion arc, with a small frame feeding out a film strip in front
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 →

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