Skip to main content
First and last frame to video generates the shot between two images you supply. The clip opens on the first image, ends on the last, and the prompt describes how it gets from one to the other. Output is a 5–15 second MP4 with native audio. Use it for transitions, before-and-after reveals, or a move between two known poses or camera positions. If only the opening matters, use First frame to video.

What you send

POST /v1/videos as multipart/form-data. Sending both a first frame and a last frame selects this mode. Each frame is a file or a URL, not both, and the two frames can mix (for example an uploaded first frame and a hosted last frame). A last frame without a first frame is rejected with 400. resolution, enhance, seed and watermark work as in every mode; see Common parameters.

Image limits

Both frames follow the same rules. Frames can’t be combined with reference images or a reference video.

Price

Same as every Viggle H3 mode: per second by resolution, plus $0.01 per second with `enhance` on. The two images are free. The example below (5 seconds, 768p, enhance on) costs 10 credits ($0.10). See the rate table.

Generate a video

Export VIGGLE_API_KEY and run one of these as-is. To stay runnable with no files of your own, they use the same sample image as both frames, which makes a loop that starts and ends on one pose. Swap in your own two URLs when you’re ready. Each script polls every 5 seconds and prints the video URL. The cURL version needs jq.
To upload local files instead, send [email protected] and [email protected] in place of the URL fields.
If your balance can’t cover the job, the request is still accepted, and the job then ends failed with error.code: "INSUFFICIENT_CREDITS". Check GET /v1/credits before large batches.

Get the result

The create call returns a vid_ ID with status: "queued". Poll GET /v1/videos/{video_id} until status is ready, then download video_url.
  • The link is valid for one hour, and every read returns a fresh one.
  • The video is deleted 24 hours after the job finishes. Copy it to your own storage.
  • Only the API key that created the job can read it.
See Task lifecycle and Errors.

Next steps

First frame to video

Fix only the opening frame and let the prompt lead.

Reference to video

Keep a subject or style without fixing any frame.

Viggle H3 overview

All four modes, common parameters and prices.

Create a video (API reference)

Every field, limit and error for POST /v1/videos.