Pricing
Each request is billed as Base generation + Reference fees (if reference media is used), deducted from your W credits balance (1 Credit = $0.0030; W credits and A credits are separate). All rates below are limited-time Black Friday discounts.
Base Generation
Billed per second of generated video by model and outputresolution.
Credit rates above are rounded to one decimal place for display; billing uses the exact unrounded rates.
Reference Fees
Added on top of base generation whenref_images, ref_audios, or ref_videos are provided.
- Audio: clip durations are combined and rounded up to the next 5-second block.
- Video: billed by combined reference video duration; the tier follows the output
resolution, not the source video’s resolution.
Purchase W credit packs
API Overview
Generate a video asynchronously with Vivix W1.2 (latest version — see the W1.2 changelog). One request carries a prompt, the requested duration and aspect ratio, and optionally reference images, audio and video. Submit one job to receive ajob_id, poll the job until it reaches a terminal state, and play the result from video_url. Reference material is uploaded first, so a job that uses references touches four endpoints:
POST /v1/files/images/POST /v1/files/audios/POST /v1/files/videos— upload reference material and keep the returnedurl(skip this for text-to-video);POST /v1/videos/jobs— submit a generation job;GET /v1/videos/jobs/{job_id}— query one job;POST /v1/videos/jobs/batch-get— query several jobs at once.
Model Selection
The latest version is W1.2 — see the W1.2 changelog for what’s new. Set the requestmodel field to one of the following W1.2 models. The models differ in generation speed and price. (Existing vivix-w1* model IDs remain supported for backwards compatibility and route to the same W1.2 backend.)
The examples below use
vivix-w1.2-fast. Choose vivix-w1.2 for the lowest base price, vivix-w1.2-ultrafast for the fastest generation, or vivix-w1.2-auto for automatic speed selection.Vivix W1.2 Auto
vivix-w1.2-auto automatically selects the fastest available W1.2 generation mode based on current throughput.
See Pricing above for per-second model rates and reference media fees.
For the complete Vivix model lineup, see Models.Reference Material
Upload every reference file to your workspace first, then pass theurl from the upload response in ref_images / ref_audios / ref_videos. The examples use our CDN URL format (static.vivi-x.ai); replace sample URLs with the URLs returned by your own uploads. Reference URLs must be publicly reachable over HTTP(S); the file_id is used by other endpoints and is not accepted here.
Each generation job supports up to 8 reference images, 4 reference audio files and 4 reference videos.
- Images: use a width-to-height ratio between 1:4 and 4:1.
- Audio: each file must be 15 seconds or shorter; the combined duration of all reference audio must be 20 seconds or less.
- Video: each file must be 15 seconds or shorter; the combined duration of all reference videos must be 20 seconds or less.
File type is detected from the file content, not from the file name. The server sniffs the leading bytes and compares the detected type with the declared
Content-Type; it must be one of the accepted types above and must match the declared value, or the upload returns 20008. Declare the real media type in your multipart Content-Type.
Upload an image
Upload response
Upload audio
Upload video
data.url from the upload response as the url in each ref_videos item.
First and Last Frame
To pin exactly how the video opens or ends, passfirst_frame_image / last_frame_image. Both take an uploaded url, exactly like reference material.
Keyframes and reference material are two different modes, so
first_frame_image / last_frame_image cannot be combined with ref_images / ref_audios / ref_videos; mixing them returns 20004.
Task Types
The task type is derived from the material you send — there is nomode field. prompt, duration and aspect_ratio apply to every type.
Text to video
- Write in natural language or in labelled fields — there is no fixed length or order.
- Add “one continuous shot” when you do not want cuts, and advance with first / then / finally.
- Speech, lyrics and on-screen text go in the finished language, in quotes, with the speaker named.
Image reference to video
- For a character: “Image 1 defines the character’s look, move the scene to a rainy street.”
- With several images, name the pairing: “Image 1 for the character, image 2 only for the bold line work and palette.”
- You do not have to list everything you are not referencing; only say so when it is easy to confuse.
Audio reference to video
- Borrowing a voice: “Audio 1 is the girl’s timbre for image 2; deliver the lines below verbatim.”
- Using the original track: name the purpose and entry point, for example “the first 8 seconds of audio 1 as the backing track”.
- Style only: write “reference the style, do not use the original track”.
Video reference to video
Image and audio reference to video
- Name the pairing: “Image 1 and image 2 are the traveler and the vehicle; audio 1 sets the pacing and mood.”
- State what changes and what stays: “keep the vehicle design from image 2 unchanged.”
- Add the camera and sound you want, and call out anything that must be excluded.
First and last frame to video
- Both frames: describe the path between them, for example “the character opens the umbrella and settles into the final pose and framing”.
- First frame only: write the action that follows. Last frame only: write the process that leads up to it.
- Say whether the camera slows, holds or stays in one continuous shot, and keep people and clothing consistent.
Generation Inputs
One job per request. The
jobs array must contain exactly one item, and unknown fields are rejected with 20004.Calling Conventions
These conventions apply to every endpoint on this page.Base URL
https://api.vivix.ai
Authentication
Every request must carry an API key:Authorization: Bearer $VIVIX_API_KEY.
Response Envelope
REST responses use the shared{code, message, data} envelope. Business fields are returned inside data.
Response envelope
code = 0means the request succeeded.- A non-zero
codeindicates an API-level error; the HTTP status is derived from it. - An accepted job can still fail later. Poll the job and inspect
statusanderror.
Task Lifecycle
- Submit
POST /v1/videos/jobsand store the returnedjob_id. - Poll
GET /v1/videos/jobs/{job_id}every few seconds while the job isqueuedorprocessing. - When the job reaches
succeeded, play or download the video fromvideo_url. Stop polling onfailedand readerror.
Submit a Generation Job
Creates an asynchronous W1.2 video generation job from a prompt and optional reference material. POST/v1/videos/jobs
Body Parameters
Required. The W1.2 model used for this job (legacy
vivix-w1* model IDs remain supported). vivix-w1.2-auto automatically selects the fastest available mode, from Normal to Ultra Fast, at the Auto base rate with no acceleration surcharge. See Model Selection and the W1.2 changelog for details.Optional. Defaults to
standard, which enhances the prompt in a single multimodal call. Choose enhanced for separate media analysis and prompt planning. This setting does not change video duration, resolution or inference mode.Optional. An integer from 0 to 2147483647. Omit or send null for a backend-generated random seed. When set, all tasks use the same seed, including zero. This controls video inference, not prompt enhancement randomness.
Optional. One of
"720p", "1080p" (1K) or "1440p" (2K). Defaults to "720p".Optional. Up to 8 reference images to guide subjects, objects or visual style.
- Each item contains only a
urlreturned byPOST /v1/files/images. - Maximum file size: 10MB.
- Image aspect ratio: 1:4 to 4:1.
- Cannot be combined with
first_frame_imageorlast_frame_image.
Optional. Up to 4 reference audio files to guide voice, music or ambience.
- Each item contains only a
urlreturned byPOST /v1/files/audios. - Maximum file size: 10MB.
- Maximum duration per file: 15 seconds.
- Maximum combined reference audio duration: 20 seconds. Audio and video totals are calculated separately.
- Cannot be combined with
first_frame_imageorlast_frame_image.
Optional. Up to 4 reference videos to guide motion, camera work or visual style.
- Each item contains only a
urlreturned byPOST /v1/files/videos. - Maximum file size: 20MB.
- Maximum duration per file: 15 seconds.
- Maximum combined reference video duration: 20 seconds. Audio and video totals are calculated separately.
- Cannot be combined with
first_frame_imageorlast_frame_image.
Optional. Defaults to
"mp4". The returned video_url points to an MP4 file you can download or play directly.Response Fields
Fields in the responsedata object:
Request
Response
Query a Job
Returns the current state of one job. See Task Lifecycle for terminal-state handling. GET/v1/videos/jobs/{job_id}
Path Parameters
Response Fields
Non-null only when the job failed.
error.code is generation_failed, generation_timeout or generation_cancelled.20005 (HTTP 404).
Request
Response
Failed job
Query Several Jobs
Returns the same job view for several ids in one call. Results follow the order ofjob_ids; unknown ids are omitted from items.
POST /v1/videos/jobs/batch-get
Body Parameters
Response Fields
Request
Response
Error Codes
API errors return the common response envelope withdata: null:
Error response
Two error layers. The envelope
code covers submission and query errors. A job accepted with code = 0 can still end as status = failed, carrying error.code.X-Request-Id and X-Trace-Id response headers.