Skip to content

Vidu Q4 Reference To Video ​

Endpoint ​

POST /videos/generations

Full URL: https://modelfold.ai/v1/videos/generations

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.

Input parameters for the generation task.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name used for generation. This endpoint must use vidu-q4/reference-to-video. Default:"vidu-q4/reference-to-video"。 Allowed values:vidu-q4/reference-to-video。 Example:vidu-q4/reference-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Text description of the video. Refer to inputs by order, e.g. "the man in reference image 2 says ... using reference audio 1". Up to 20,000 characters. minLength: 1. maxLength: 2000.
durationintegerNoVideo length in seconds. Integer from 3 to 16. Default:5。 minimum: 3. maximum: 16. Example:5。
resolutionstringNoOutput resolution. Default:"720p"。 Allowed values:540p / 720p / 1080p / 2k / 4k。 Example:720p。
audiobooleanNoGenerate synchronized audio (dialogue and sound effects). Set false for a silent video. Default:true。 Example:true。
reference_image_urlsarray&lt;string&gt;YesReference image URLs (http/https), 1 to 15. JPG, JPEG, PNG or WEBP. minItems: 1. maxItems: 15.
reference_audio_urlsarray&lt;string&gt;NoOptional reference audio URLs (http/https), up to 3. MP3 only, each 3-12 seconds and up to 50 MB. maxItems: 3.
aspect_ratiostringNoOutput aspect ratio. Default:"16:9"。 Allowed values:16:9 / 9:16 / 1:1 / 4:3 / 3:4。 Example:16:9。

Request Example ​

bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "vidu-q4/reference-to-video",
  "prompt": "A paper boat drifting down a rainy street.",
  "reference_image_urls": [
    "https://example.com/reference.png"
  ],
  "duration": 5,
  "resolution": "720p",
  "audio": true,
  "aspect_ratio": "16:9"
}'
json
{
  "model": "vidu-q4/reference-to-video",
  "prompt": "A paper boat drifting down a rainy street.",
  "reference_image_urls": [
    "https://example.com/reference.png"
  ],
  "duration": 5,
  "resolution": "720p",
  "audio": true,
  "aspect_ratio": "16:9"
}

Response ​

200 — Generation completed. usage contains actual billing details; result URLs are illustrative. ​

json
{
  "ok": true,
  "created": 1792134000,
  "data": [
    {
      "url": "https://modelfold.ai/uploads/outputs/result.mp4"
    }
  ],
  "usage": {}
}

ModelFold — one API for all the best AI models.