Skip to main content
POST
Stores one media file in Vidgen and returns an asset object that you can paste directly into references on POST /api/v1/generate. This endpoint uses multipart/form-data, not JSON.

Authorizations

string
required
API key formatted Bearer vg_....

Form data

binary (multipart)
required
A single file. Images JPG/PNG/WebP, video MP4/WebM, or audio MP3/WAV. Maximum 100 MB; empty files are rejected. The format is recognized from the file contents, not from the extension or Content-Type.
string
Target model id. Not required, but it decides which rules the server applies:
  • Motion control models: the reference video duration range is loosened to 3–30 seconds and the video is not trimmed automatically.
  • Other models: video longer than 15 seconds is trimmed to about 14.5 seconds, and audio must be 2–15 seconds.
  • Some storage paths store files differently per model.
If you upload a reference video for motion control without model, the server treats it as a general video and trims it to 14.5 seconds.

Responses

boolean
required
true when the file was stored.
object
required
Carry this object whole into the references field.

Limits enforced here

Assets have no client-facing expiry date. If you need to reuse the same reference for weeks, keep the original file in your own storage and upload it again when needed.