{"servers":[{"url":"https://api.modellix.ai/api/v1/alibaba/wan2.7-i2v"}],"post":{"description":"[Core Function] Wan 2.7 I2V is Alibaba's flagship multimodal image-to-video model. [Strengths] It supports multimodal input (text, image, audio, video) for first-frame, start-and-end-frame (FL2V), and video continuation tasks. [Best For] Highly recommended for: complex image animation, cinematic transitions, and video extension workflows. [Limitations] Do NOT use this model if you only need a quick, simple animation where HappyHorse might be faster. [Routing] Use this model by default for complex image-to-video or video continuation tasks.","operationId":"wan27I2vAsync","requestBody":{"content":{"application/json":{"examples":{"continuation_mode":{"summary":"Video continuation mode","value":{"duration":15,"first_clip":"https://example.com/input-clip.mp4","last_frame":"https://example.com/target-last-frame.png","prompt":"续写视频并在结尾过渡到尾帧画面"}},"first_frame_mode":{"summary":"First-frame generation","value":{"duration":5,"first_frame":"https://example.com/first.png","prompt":"让画面中的人物自然转身并微笑","resolution":"1080P"}},"first_last_frame_mode":{"summary":"First-last-frame generation with audio","value":{"driving_audio":"https://example.com/voice.mp3","duration":10,"first_frame":"https://example.com/first.png","last_frame":"https://example.com/last.png","prompt":"从首帧平滑过渡到尾帧并与音频节奏同步","prompt_extend":true,"resolution":"720P"}}},"schema":{"anyOf":[{"required":["first_frame"]},{"required":["first_clip"]}],"description":"Flattened media parameters for Wan 2.7 I2V. Task mode must be one of: first_frame, first_frame+last_frame, first_frame+driving_audio, first_frame+last_frame+driving_audio, first_clip, first_clip+last_frame.","properties":{"driving_audio":{"description":"Optional driving audio URL (HTTP/HTTPS/OSS).","pattern":"^(https?://|oss://)","type":"string"},"duration":{"default":5,"description":"Video duration in seconds.","maximum":15,"minimum":2,"type":"integer"},"first_clip":{"description":"Optional first clip URL for continuation mode (HTTP/HTTPS/OSS).","pattern":"^(https?://|oss://)","type":"string"},"first_frame":{"description":"First frame image URL. Supports HTTP/HTTPS URL, OSS URL, or image base64 data URI.","examples":["https://example.com/first.png","oss://dashscope-instant/example/first.png","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="],"pattern":"^(https?://|oss://|data:image/)","type":"string"},"last_frame":{"description":"Optional last frame image URL. Supports HTTP/HTTPS URL, OSS URL, or image base64 data URI.","pattern":"^(https?://|oss://|data:image/)","type":"string"},"negative_prompt":{"description":"Optional negative prompt, max 500 chars.","maxLength":500,"type":"string"},"prompt":{"description":"Optional text prompt, max 5000 chars.","maxLength":5000,"type":"string"},"prompt_extend":{"default":true,"description":"Enable prompt intelligent rewrite.","type":"boolean"},"resolution":{"default":"1080P","description":"Output resolution tier.","enum":["720P","1080P"],"type":"string"},"seed":{"description":"Random seed for reproducibility.","maximum":2147483647,"minimum":0,"type":"integer"}},"required":[],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"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":{"description":"HTTP method","example":"GET","type":"string"},"url":{"description":"Full URL to query the task result","example":"https://api.modellix.ai/api/v1/tasks/task-abc123","type":"string"}},"type":"object"},"model_id":{"description":"Model ID","example":"model-123","type":"string"},"status":{"description":"Task status","enum":["pending","processing"],"example":"pending","type":"string"},"task_id":{"description":"Unique task identifier","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"}},"summary":"Wan 2.7 I2V","x-mint":{"href":"alibaba/wan-2-7-i2v"}}}