Create a video
Generates a Viggle H3 video (a tuned version of MiniMax H3) with
native audio, or a Viggle Remake video on a separate backend. multipart/form-data for every mode;
Remake mode also accepts a plain application/json
body. The fields supplied select one of five generation modes:
- Neither frame field nor any reference or Remake
field supplied: text-to-video from
promptalone. first_frame_image/first_frame_image_urlsupplied, no last frame: first-frame-to-video.- Both a first frame and a last frame supplied: first+last-frame-to-video.
- Any of
reference_video/reference_video_url/reference_image/reference_image_urlsupplied: reference-video (omni-reference) generation, carrying the subject/style of a reference video and/or up to 6 reference images into the new video. Mutually exclusive with the frame fields. driving_video/driving_video_urland/orcharacter_image/character_image_url/character_image_urlssupplied: Viggle Remake. Send a driving video and character images; a request without a driving video is rejected with400 INVALID_REQUEST. Image usage depends onenhance_modeand ordered target tags (seeCreateVideoForm). Mutually exclusive with every field above, includingquality. See the Viggle Remake guide.
quality=low generates faster for quicker iteration; quality=high
produces higher-fidelity output; quality=ultrafast is the fastest
tier, at 480p or 768p only, with its own price. low and high
are billed at the same price; resolution and enhance set it — see
CreateVideoForm below. Remake mode has no quality
tier and is billed by enhance_mode on the driving video’s
duration, rounded up, instead.
All five modes answer 200 with the same minimal acceptance shape;
poll GET /v1/videos/{video_id} for the final result.
Insufficient credits: Viggle Remake answers 402 at creation. A
Viggle H3 request is accepted (queued) and then fails with
INSUFFICIENT_CREDITS. 429 RATE_LIMITED applies to Remake only,
when the credit-reservation gate is busy; retry with backoff.
Videos are visible only to the API key that created them. Result
files are deleted 24 hours after the job finishes; video_url is
signed for 1 hour and re-signed on every read.
Authorizations
Headers
Body
Body of POST /v1/videos: H3 uses multipart/form-data; character
animation also accepts application/json and
application/x-www-form-urlencoded. Which fields are
supplied selects the generation mode:
- Neither
first_frame_image/first_frame_image_urlnorlast_frame_image/last_frame_image_urlnor any reference or Remake field supplied: text-to-video. - A first frame supplied, no last frame: first-frame-to-video.
- Both a first frame and a last frame supplied: first+last-frame-to-video.
- Any of
reference_video/reference_video_url/reference_image/reference_image_urlsupplied: reference-video (omni-reference) generation. driving_video/driving_video_urland/orcharacter_image/character_image_url/character_image_urlssupplied: Viggle Remake generation, dispatched to a separate backend from the four modes above. Send a driving video and character images; image usage depends onenhance_modeand target tags as described below. It has noqualitytier, noduration_s/resolution/aspect_ratio/seed, andpromptis optional rather than required; see below and the Viggle Remake guide (https://docs.viggle.ai/v1/video/remake) for its own fields, pricing, and constraints.
Within a frame slot, supply at most one of the file and the URL
form. Supplying both first_frame_image and first_frame_image_url
(or both last_frame_image and last_frame_image_url) answers
400 INVALID_REQUEST with "supply only one of first_frame_image or
first_frame_image_url" (or the last_frame_* equivalent). A last
frame requires a first frame; supplying a last frame with no first
frame answers 400 INVALID_REQUEST with "a last frame requires a
first frame".
Reference-video mode is selected purely by whether any of the four
reference fields is present — there is no separate source/mode
parameter, and no error if you meant to but forgot: supplying none
of reference_video/reference_video_url/reference_image/
reference_image_url simply generates text-to-video instead (the
first bullet above), the same way omitting first_frame_image/
last_frame_image falls back to text-to-video rather than
erroring. reference_video and reference_video_url are declared
as arrays for forward compatibility, but at most 1 reference video
is accepted today; supplying any combination of the two fields that
adds up to more than 1 (two files, two URLs, or one of each) answers
400 INVALID_REQUEST with "at most 1 reference video(s) allowed".
reference_image and reference_image_url may be mixed freely, but
their combined count cannot exceed 6; going over answers
400 INVALID_REQUEST with "at most 6 reference images are allowed".
Reference fields cannot be combined with
first_frame_image/last_frame_image (file or URL form); doing so
answers 400 INVALID_REQUEST with
"reference_video/reference_image cannot be combined with
first_frame_image/last_frame_image". The reference video itself
(independent of duration_s, the target duration of the generated
video) must be 0.5–600 seconds long and at least 64x64 with even
width and height, the same constraints enforced on uploaded video
elsewhere in this API, and at most 100 MiB whether uploaded or
fetched from reference_video_url.
Frame and reference images (first_frame_image, last_frame_image,
reference_image) may be up to 20 MiB each when uploaded, and up to
30 MiB when fetched from the matching *_url field. The format is
detected from the image bytes — JPEG, PNG, WebP, GIF, BMP, TIFF, or
HEIC/HEIF/AVIF — and there is no minimum or maximum dimension; an
image at or above 4K (long edge >= 3840 px or short edge >= 2160 px)
is downscaled to fit 1920x1080, keeping its aspect ratio. An
oversized upload answers 400 INVALID_REQUEST with "invalid or
oversized first_frame_image upload" (naming the field), an
undecodable one with "first_frame_image must be a valid image"; a
URL that can't be decoded answers "first_frame_image_url is not a
valid image", and an unreadable reference video URL answers
"reference_video_url is not a valid video".
Remake mode cannot be combined with quality or H3 frame/reference fields. For Remake, supply character images as
character_image uploads or character_image_url/
character_image_urls (uploads and URLs cannot be combined in the
same request).
Send the driving video as exactly one of driving_video (upload)
or driving_video_url (URL). One image replaces one target character.
Up to 10 images are accepted in every mode. Guidance: in planner
(default) or normal mode, replacing 2 or 3 characters works best
with ordered <Character1>, <Character2> (and <Character3>)
descriptions in prompt, one per image, describing targets in the
source video; without these tags, expect only the first image to be
used. In agent mode, 1-10 images are used in order as
Character1..N; tags are optional. The driving video supplies the source motion.
For planner and normal, use a driving video 5-16 seconds long.
For agent, use 5-60 seconds; agent checks duration after
truncating to whole seconds, so a 60.9-second video counts as 60.
A video outside its mode's range returns HTTP 400 INVALID_REQUEST.
Both uploads and URLs undergo API media validation with a 100 MiB
limit. Uploaded videos are staged to object storage; URL-form
sources are also fetched by the worker.
Billed per started second of duration_s, at a per-second rate set
by resolution alone (1 credit = $0.01): 1 credit at 480p and
768p, 2 at 1080p, 3 at 2k, 5 at 4k. enhance on (the
default) adds 1 credit per second. The rate is the same in
every H3 mode; quality (low or high) and aspect_ratio do not affect price.
quality=ultrafast is billed instead at 2.2 credits per second at
480p or 3 at 768p, on ceil(duration_s) plus the reference
video's duration rounded up, plus 1.1 (480p) or 1.5 (768p)
credits per reference image after the first 5, with the total
rounded up to a whole credit; enhance adds nothing.
Remake mode is billed by enhance_mode instead:
planner 5, normal 1 and agent 10 credits per second. It
reserves the driving video's measured duration
rounded up; on completion the charge is settled against the
finished video's duration, never above the reservation. It is not
tied to duration_s; see the Viggle Remake guide.
Every generated video includes native audio; there is no separate audio flag or field.
Generation quality tier. low generates faster, for quicker iteration; high generates slower but produces higher-fidelity output. Both are billed at the same price. ultrafast is the fastest tier: 480p or 768p only, no watermark, enhance not applied, each reference video 2-15 seconds, and its own price (see the description above). It answers 503 when the tier is temporarily unavailable. Required for every mode except Remake, which has no quality tiers and rejects this field outright if supplied.
low, high, ultrafast "low"
First-frame image uploaded directly. Mutually exclusive with first_frame_image_url. Supplying either switches on first-frame-to-video mode. Cannot be combined with any reference_video/reference_image field. Up to 20 MiB; JPEG, PNG, WebP, GIF, BMP, TIFF, or HEIC/HEIF/AVIF, detected from the file contents. An image with a long edge of 3840 px or more, or a short edge of 2160 px or more, is downscaled to fit 1920x1080, keeping its aspect ratio.
Publicly reachable http(s) URL of the first-frame image, or the image inline as a base64 data: URI (data:image/png;base64,…); the service fetches and re-hosts it. Mutually exclusive with first_frame_image. Cannot be combined with any reference_video/reference_image field. The fetched image may be up to 30 MiB, in the same formats and with the same downscaling as the upload form.
Last-frame image uploaded directly. Mutually exclusive with last_frame_image_url. Valid only alongside a first frame. Cannot be combined with any reference_video/reference_image field. Up to 20 MiB; JPEG, PNG, WebP, GIF, BMP, TIFF, or HEIC/HEIF/AVIF, detected from the file contents. An image with a long edge of 3840 px or more, or a short edge of 2160 px or more, is downscaled to fit 1920x1080, keeping its aspect ratio.
Publicly reachable http(s) URL of the last-frame image, or a base64 data: URI; the service fetches and re-hosts it. Mutually exclusive with last_frame_image. Valid only alongside a first frame. Cannot be combined with any reference_video/reference_image field. The fetched image may be up to 30 MiB, in the same formats and with the same downscaling as the upload form.
Reference video uploaded directly, for reference-video (omni-reference) generation. Declared as an array for forward compatibility, but at most 1 is accepted today — combined with reference_video_url. Not required if at least one reference image is supplied instead. Up to 100 MiB, in any container with a readable video stream (MP4, MOV, WebM, etc.). Must be 0.5–600 seconds long and at least 64x64 with even width/height. Cannot be combined with first_frame_image/last_frame_image.
1Publicly reachable http(s) URL of the reference video, or a base64 data: URI; the service fetches and re-hosts it. Declared as an array for forward compatibility, but at most 1 is accepted today — combined with reference_video. Same size, duration, and resolution constraints as reference_video.
1Reference images uploaded directly, for reference-video (omni-reference) generation. Up to 6 total, combined with reference_image_url. Can be freely mixed with reference_image_url. Up to 20 MiB; JPEG, PNG, WebP, GIF, BMP, TIFF, or HEIC/HEIF/AVIF, detected from the file contents. An image with a long edge of 3840 px or more, or a short edge of 2160 px or more, is downscaled to fit 1920x1080, keeping its aspect ratio.
6Publicly reachable http(s) URLs of reference images, or base64 data: URIs; the service fetches and re-hosts each one. Up to 6 total, combined with reference_image. Can be freely mixed with reference_image. Each fetched image may be up to 30 MiB, in the same formats and with the same downscaling as reference_image.
6How a Remake prepares the driving video for the
render, and sets the per-second price. planner adds a planning
pass that prepares the prompt and key frames; normal is the
lightest pass; agent hands the whole edit to an AI agent. Omit it for planner.
Remake only:
H3 generation ignores it and uses enhance.
planner, normal, agent Whether to run a low-effort AI Planner pass that rewrites only prompt before generation; any supplied frame or reference video/image is left unchanged. H3 modes only — not applicable to Remake mode. Defaults to true; pass false to use prompt exactly as given. true adds 1 credit per second in every H3 mode.
Response
Video generation accepted and queued.
Acceptance acknowledgment for POST /v1/videos, shared by all five
generation modes. This is a queued confirmation, not the final
result — poll GET /v1/videos/{video_id} (or watch it via
GET /v1/videos) until status reaches ready, then read
video_url from that response.