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 byresolution, 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
ExportVIGGLE_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.
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 avid_ 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.
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.