Skip to main content
First frame to video starts the clip on an image you supply and animates it from there. The opening frame keeps your image’s subject, look and composition, and the prompt decides the motion and camera. Output is a 5–15 second MP4 with native audio. Use it to bring a product shot, an illustration or a generated image to life. If you also know how the shot should end, use First and last frame to video.

What you send

POST /v1/videos as multipart/form-data. Sending a first frame and no last frame selects this mode. Send the frame as a file or as a URL, not both. resolution, enhance, seed and watermark work as in every mode; see Common parameters.

Image limits

A first frame can’t be combined with reference images or a reference video. Those belong to Reference to video.

Price

Same as every Viggle H3 mode: per second by resolution, plus $0.01 per second with `enhance` on. The image is 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. They use a sample character image hosted by Viggle; swap in your own URL when you’re ready. Each script polls every 5 seconds and prints the video URL. The cURL version needs jq.
To upload a local file instead, replace the URL field with first_frame_image:
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.
A bad image (unreadable, too large, or both a file and a URL) is rejected at create with 400 INVALID_REQUEST, before anything is charged. See Task lifecycle and Errors.

Tips

  • Describe motion, not the picture. The image already sets the scene, so spend the prompt on what moves and how the camera behaves.
  • Set aspect_ratio to match the image. It defaults to 16:9 whatever shape the image is.

Next steps

First and last frame to video

Control where the shot starts and where it ends.

Reference to video

Keep a subject or style without fixing the opening 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.