{"servers":[{"url":"https://api.modellix.ai/api/v1/vidu/viduq4-r2v"}],"post":{"description":"[Core Function] Vidu Q4 R2V is the preview reference-to-video model that composes a new 3-16 second clip from 1 to 15 reference images while keeping subject appearance consistent. [Strengths] It supports 540p through 4K, aspect ratios including 3:4 and 4:3, synchronized audio, and up to three reference audio clips. [Best For] Highly recommended for: multi-image character consistency, vertical 3:4 portraits, and scenes that combine reference images with spoken audio. [Limitations] Do NOT use this model to animate one image exactly as the first frame; use Vidu Q4 I2V for that. Do NOT omit the prompt. Do NOT send more than 15 images or more than 3 audio files. Subject-library invocation is not supported. [Routing] Use this model when the user supplies reference images and a prompt for a newly composed shot. Use Vidu Q4 I2V for a single start frame.","operationId":"viduQ4R2VAsync","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"One reference image","value":{"prompt":"The character waves hello.","reference_images":["https://example.com/subject.jpg"]}},"portrait":{"summary":"Portrait ratio with reference audio","value":{"aspect_ratio":"3:4","audio":true,"audio_urls":["https://example.com/voice.mp3"],"duration":3,"prompt":"The character speaks to the camera.","reference_images":["https://example.com/subject.jpg"],"resolution":"540p"}}},"schema":{"description":"Vidu Q4 Preview reference-to-video request. Requires a prompt and 1-15 reference images.","properties":{"aspect_ratio":{"default":"16:9","description":"Output aspect ratio. Default 16:9.","enum":["16:9","9:16","1:1","3:4","4:3"],"example":"3:4","type":"string"},"audio":{"default":true,"description":"Whether to generate audio with the video. Default true. Set false for a silent video.","example":true,"type":"boolean"},"audio_urls":{"description":"Optional reference audio URLs, up to 3 mp3 files.","example":["https://example.com/voice.mp3"],"items":{"minLength":1,"type":"string"},"maxItems":3,"type":"array"},"duration":{"default":5,"description":"Video duration in seconds. Default 5. Allowed range: 3-16.","example":5,"maximum":16,"minimum":3,"type":"integer"},"prompt":{"description":"Required scene description, up to 20000 characters. Reference tokens such as [@reference_image_1] are passed through unchanged.","example":"In the scene, the character waves hello.","maxLength":20000,"minLength":1,"type":"string"},"reference_images":{"description":"Reference image URLs, 1 to 15. Appearance is preserved while the prompt defines the new action.","example":["https://example.com/subject.jpg"],"items":{"minLength":1,"type":"string"},"maxItems":15,"minItems":1,"type":"array"},"resolution":{"default":"720p","description":"Video resolution. Default 720p. Allowed values: 540p, 720p, 1080p, 2K, 4K.","enum":["540p","720p","1080p","2K","4K"],"example":"720p","type":"string"},"seed":{"description":"Random seed. Omit or use 0 for a random seed.","example":1,"type":"integer"}},"required":["prompt","reference_images"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"code":0,"data":{"get_result":{"method":"GET","url":"https://api.modellix.ai/api/v1/tasks/task-vidu-q4-r2v-001"},"model_id":"vidu/viduq4-r2v","status":"pending","task_id":"task-vidu-q4-r2v-001"},"message":"success"},"schema":{"properties":{"code":{"description":"Response code, 0 indicates success","example":0,"type":"integer"},"data":{"description":"Detailed data about the submitted asynchronous task.","properties":{"get_result":{"description":"API information to query the task result","properties":{"method":{"example":"GET","type":"string"},"url":{"example":"https://api.modellix.ai/api/v1/tasks/task-abc123","type":"string"}},"type":"object"},"model_id":{"description":"Model ID in `provider/model` format","example":"vidu/viduq3-pro-fast-i2v","type":"string"},"status":{"description":"Task status","enum":["pending","processing"],"example":"pending","type":"string"},"task_id":{"description":"Unique task identifier for polling","example":"task-abc123","type":"string"}},"required":["status","task_id","model_id"],"type":"object"},"message":{"description":"Response message","example":"success","type":"string"}},"required":["code","message","data"],"type":"object"}}},"description":"Task submitted successfully"},"400":{"content":{"application/json":{"example":{"code":400,"message":"Invalid parameters: parameter 'first_frame_image' is required"},"schema":{"properties":{"code":{"example":400,"type":"integer"},"message":{"example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Invalid request parameters"},"401":{"content":{"application/json":{"example":{"code":401,"message":"Authentication failed: invalid API key"},"schema":{"properties":{"code":{"example":400,"type":"integer"},"message":{"example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Unauthorized - Invalid or missing API Key"},"429":{"content":{"application/json":{"example":{"code":429,"message":"Rate limit exceeded: 100 requests per minute, retry after 60 seconds"},"schema":{"properties":{"code":{"example":400,"type":"integer"},"message":{"example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Too many requests - Rate limit exceeded","headers":{"X-RateLimit-Limit":{"description":"Maximum requests per minute","schema":{"example":100,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Remaining quota in current window","schema":{"example":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Rate limit window reset time (Unix timestamp)","schema":{"example":1704067260,"type":"integer"}}}},"500":{"content":{"application/json":{"example":{"code":500,"message":"Internal server error"},"schema":{"properties":{"code":{"example":400,"type":"integer"},"message":{"example":"Invalid parameters: parameter 'first_frame_image' is required","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"Vidu Q4 R2V","x-mint":{"href":"vidu/viduq4-r2v"}}}