Skip to main content
Reference to video generates a new shot that carries a subject, outfit or style from your own media. You give Viggle H3 a reference video, reference images, or both, plus a prompt for the new shot. Unlike the frame modes, no reference is pinned to a specific frame. Output is a 5–15 second MP4 with native audio. Use it to keep a character consistent across shots, or to put a product or person from your photos into a scene you describe. To replace the people in an existing video while keeping its motion, use Viggle Remake instead.

What you send

POST /v1/videos as multipart/form-data. Sending any reference field selects this mode. resolution, aspect_ratio, enhance, seed and watermark work as in every mode; see Common parameters.
References can’t be combined with first_frame_image or last_frame_image fields (400). Sending driving_video or character_image fields switches the request to Viggle Remake.

Media limits

Price

Same as every Viggle H3 mode: per second of output by resolution, plus $0.01 per second with `enhance` on. With `low` or `high`, references are free, and a long reference video costs the same as a short one. With [`ultrafast`](/v1/video/generate-video#ultrafast), each second of reference video is billed, reference videos must be 2–15 seconds, and reference images past the fifth cost extra. 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 send a sample character image hosted by Viggle as the only reference; swap in your own media when you’re ready. Each script polls every 5 seconds and prints the video URL. The cURL version needs jq.
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.

Other ways to send references

Repeat a field to send several values. Files and URLs can mix, as long as the totals stay within 1 video and 6 images.

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.
More than 1 reference video or 6 reference images, or references mixed with frame fields, is rejected at create with 400 INVALID_REQUEST. See Task lifecycle and Errors.

Next steps

Viggle Remake

Keep a video’s motion and replace the people in it.

First frame to video

Pin the opening frame to an exact image.

Viggle H3 overview

All four modes, common parameters and prices.

Create a video (API reference)

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