Skip to content

Vidu Q4 Image 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/image-to-video. Default:"vidu-q4/image-to-video"。 Allowed values:vidu-q4/image-to-video。 Example:vidu-q4/image-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Text description of the motion and scene. Optional. Up to 20,000 characters. 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。
image_urlstringYesFirst-frame image URL (http/https). JPG, JPEG, PNG or WEBP, up to 50 MB. The video inherits this image's aspect ratio. minLength: 1. pattern: ^https?://.+.

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/image-to-video",
  "image_url": "https://example.com/reference.png",
  "prompt": "A paper boat drifting down a rainy street.",
  "duration": 5,
  "resolution": "720p",
  "audio": true
}'
json
{
  "model": "vidu-q4/image-to-video",
  "image_url": "https://example.com/reference.png",
  "prompt": "A paper boat drifting down a rainy street.",
  "duration": 5,
  "resolution": "720p",
  "audio": true
}

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.