Skip to content
Guides

Image to Video API: Animate a Still in One Call

Turn a picture into a clip by API: a first frame, first and last frames or reference pictures, which models take each, the request and what it costs.

Updated 5 min read

An image to video API takes a picture and a prompt and returns a clip that starts on the picture, lands on it, or keeps the people and things it shows. On Frameport every video model uses the same three fields for that, reference_images, end_image and reference_mode, on one API key, from $0.02 per second, and a clip that fails costs nothing.

This guide covers the three ways to start from a picture, which models take each, a first request with a local file, how to prompt motion, and what a clip costs.

Three ways to start from a picture

WayFieldsWhat the model doesWhat the prompt says
First framereference_images with one pictureThe clip opens on the pictureOnly the motion, the camera and the sound
First and last framereference_images and end_imageIt opens on the first picture and lands on the secondWhat happens in between
Reference picturesreference_images with "reference_mode": "identity"It keeps the people, products or places shown and builds a new scene around themThe scene and the action

Frame mode is the default. In it, a model reads one picture as the first frame, and a request with more is refused with 400 invalid_request before anything is held. Identity mode does not combine with end_image, because its pictures are references, not frames. The videos reference has a body for each way.

A picture can be:

  • an https URL;
  • a base64 data URI (PNG, JPEG, WebP or GIF), for small pictures: a request body is 16 MB at most;
  • an upload (upl_…), the way to send a file from disk;
  • one of your own image outputs (file_…), so an image you generated becomes the first frame with nothing to download.

Which models take a first or last frame

All of the models below take a first frame. They differ on the last frame, on reference pictures, on length and on price:

ModelWhat it doesReference picturesLengthsFrom
Frameport Motion 1Text to video, Image to video and First + last frame45 to 15 seconds$0.02 / s
Seedance 2.5Text to video, Image to video and First + last frame44 to 30 seconds$0.12 / s
Seedance 2.0Text to video, Image to video and First + last frame44 to 15 seconds$0.08 / s
Seedance 2.0 FastText to video, Image to video and First + last frame44 to 15 seconds$0.063 / s
Seedance 2.0 MiniText to video, Image to video and First + last frame44 to 15 seconds$0.041 / s
Veo 3.1Text to video, Image to video and First + last frame34, 6 or 8 seconds$0.235 / s
Veo 3.1 FastText to video, Image to video and First + last frame34, 6 or 8 seconds$0.093 / s
Veo 3.1 LiteText to video, Image to video and First + last frame04, 6 or 8 seconds$0.036 / s
Hailuo 3Text to video, Image to video and First + last frame35 to 15 seconds$0.15 / s
Hailuo 3 MaxText to video, Image to video and First + last frame05 to 15 seconds$0.06 / s
Wan 3.0Text to video and Image to video32 to 30 seconds$0.06 / s
Grok ImagineText to video and Image to video01 to 15 seconds$0.093 / s
Runway Gen-4.5Text to video and Image to video02 to 10 seconds$0.14 / s

"First + last frame" means the model takes end_image. A model with 0 reference pictures takes a picture only as a frame. On Hailuo 3 and Grok Imagine, each picture you send adds a fixed fee to the clip, shown on their model pages. Frameport Motion 1 renders a clip with reference pictures at fewer resolutions than its own, listed in options.identity_resolutions of GET /v1/models.

Your first image to video API request

Upload the picture once, then send its id as the first frame. Set aspect_ratio to the shape of your picture: a request without one gets 16:9 wherever the model offers it.

# 1. Upload the picture (or skip this and pass an https URL)
curl "https://frameport.ai/v1/uploads?filename=still.jpg" \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: image/jpeg" \
  --data-binary @still.jpg

# 2. Submit: the picture is the first frame
curl https://frameport.ai/v1/videos/generations \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2-5",
    "prompt": "She turns from the window and smiles as the curtains lift in the breeze, slow push-in, birdsong outside",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "9:16",
    "reference_images": ["upl_7Rk2PqV9wXm4Tn8Lc1BdZe"]
  }'

# 3. Poll until "succeeded", then download outputs[0].url
curl https://frameport.ai/v1/videos/generations/$GENERATION_ID \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"
202 Accepted
{
  "id": "gen_9sLq2VbX7mN4kR1tYc8WpE",
  "object": "generation",
  "type": "video",
  "model": "seedance-2-5",
  "status": "queued",
  "input": {
    "prompt": "She turns from the window and smiles as the curtains lift in the breeze, slow push-in, birdsong outside",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "9:16",
    "audio": true,
    "reference_images": 1,
    "reference_mode": "frame",
    "end_image": false
  },
  "reserved_usd": 1.35,
  "cost_usd": null,
  "outputs": [{ "id": "file_2Tn7XcQ9vLm4Ra8Ws1KbZd", "status": "queued" }],
  "error": null,
  "created_at": "2026-11-28T10:00:00.000Z",
  "completed_at": null
}

An upload works for 24 hours, and a picture is 10 MB at most. To land the clip on a second picture, add "end_image" with another URL, upload or file id, on a model that takes a last frame.

Prompting motion, not the subject

With a frame, the picture already sets the subject, the wardrobe, the set and the light. Whatever the prompt says about them competes with the picture. Spend the words on what the picture cannot say:

  • What moves, and how. "She turns from the window and smiles" rather than "a woman with brown hair in a blue dress".
  • The camera. A slow push-in, an orbit, a crane up: one move per clip.
  • The sound, on models that render it: birdsong, traffic, a line of dialogue in quotes.
  • Between two frames, the transition: "the sketch fills with colour until it becomes the finished painting".
  • With reference pictures, the opposite: the scene is new, so describe it fully, and name who comes from which picture ("the woman from the first picture").

One action per clip reads better than three: a 5-second clip with several beats tends to rush them. For more on writing for video models, see the text to video API guide.

What image to video costs

A clip from a picture costs its seconds, like any clip; Hailuo 3 and Grok Imagine add their fee per picture. A 6-second clip on a few models:

ModelResolutionPer second6 s clip
Frameport Motion 1480p$0.02$0.12
Seedance 2.0 Mini480p$0.041$0.246
Wan 3.0720p$0.12$0.72
Seedance 2.5720p$0.27$1.62
Veo 3.1 Fast, with sound1080p$0.14$0.84
Runway Gen-4.5720p$0.14$0.84

Frameport Motion 1, our own video model, starts at $0.02 per second, and the lowest price of a second of video in the catalog is $0.02. The price is held when you submit and charged only when the clip succeeds; a failed clip gives the hold back. To price an exact body, pictures included, send it to POST /v1/generations/quote first: nothing is held. Pricing explains the balance.

What a clip from a picture costs on each model is in image to video API pricing. To set the closing frame too, see first and last frame AI video by API. Pictures that show who appears rather than how a shot opens are explained in what reference to video is, and a series of panels in storyboard to video. Your own picture as the first frame, by link, base64 or upload, is covered in upload image to API.

FAQ

Which models can turn an image into a video?

All 13 video models in the catalog take a first frame. Seedance, Veo, Hailuo and Frameport Motion 1 also take a last frame, and several take reference pictures; the table above lists each.

Can I set both the first and the last frame?

Yes, on models that list "First + last frame": send the first picture in reference_images and the last in end_image, and describe what happens in between.

How do I send a picture from my computer?

Upload it with POST /v1/uploads and send the upl_… id it returns, or send it inline as a base64 data URI. An image you generated on Frameport goes by its file_… id.

What is the cheapest image to video API?

On Frameport, Frameport Motion 1 starts at $0.02 per second, so a 6-second clip at 480p costs $0.12. Every price is per second, with no subscription.

Is there a free image to video API?

The account and the API key are free, and quotes cost nothing. Clips are paid from a prepaid balance, topped up from $10, and a clip that fails costs nothing. You can try a model by hand first in the Studio.

Start building.

Your API key is free. Top up from $10 when you are ready.