{"servers":[{"url":"https://api.modellix.ai/api/v1/vidu/viduq4-i2v"}],"post":{"description":"[Core Function] Vidu Q4 I2V is the preview flagship image-to-video model that animates one starting frame into a 3-16 second clip with synchronized audio and automatic camera switching. [Strengths] It keeps the supplied image as the opening frame, supports 540p through 4K, and can generate dialogue and sound effects in the same pass. [Best For] Highly recommended for: animating a key still, product or character shots that must begin from a specific image, and short clips that need native sound. [Limitations] Do NOT send more than one image. Do NOT use this model for multi-image subject reference or a chosen output aspect ratio; the frame follows the first image. Do NOT use a duration under 3 seconds or over 16 seconds. Recommended-prompt mode is on by default, so a prompt is optional. [Routing] Use this model when the user provides a single start frame. Use Vidu Q4 R2V when the user provides reference images and wants a newly composed shot with a chosen aspect ratio.","operationId":"viduQ4I2VAsync","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"Start frame only","value":{"first_frame_image":"https://example.com/start-frame.jpg"}},"with_prompt":{"summary":"User prompt, silent","value":{"audio":false,"duration":3,"first_frame_image":"https://example.com/start-frame.jpg","is_rec":false,"prompt":"The astronaut waved and the camera moved up.","resolution":"540p"}}},"schema":{"description":"Vidu Q4 Preview image-to-video request. One start frame. Prompt is optional because recommended-prompt mode defaults to true.","properties":{"audio":{"default":true,"description":"Whether to generate audio with the video. Default true. Set false for a silent video.","example":true,"type":"boolean"},"duration":{"default":5,"description":"Video duration in seconds. Default 5. Allowed range: 3-16.","example":5,"maximum":16,"minimum":3,"type":"integer"},"first_frame_image":{"description":"Start-frame image URL. Exactly one image. png, jpeg, jpg, and webp are accepted.","example":"https://example.com/start-frame.jpg","minLength":1,"type":"string"},"is_rec":{"default":true,"description":"Use the recommended prompt. Default true. Set false to follow the user prompt only.","example":true,"type":"boolean"},"prompt":{"description":"Optional motion description, up to 20000 characters.","example":"The astronaut waved and the camera moved up.","maxLength":20000,"minLength":1,"type":"string"},"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":["first_frame_image"],"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-i2v-001"},"model_id":"vidu/viduq4-i2v","status":"pending","task_id":"task-vidu-q4-i2v-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 I2V","x-mint":{"href":"vidu/viduq4-i2v"}}}