{ "model_id": "alibaba/wan-2.7-i2v", "provider_id": "alibaba", "name": "Wan 2.7 I2V", "description": "Alibaba's Wan 2.7 image-to-video model that generates videos from a reference image with optional text prompts. Supports 720P and 1080P output with durations from 2 to 15 seconds.", "task": "Image-to-Video", "tags": [ "Image-to-Video", "Video Generation" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Default (per second)": 0.1, "@720p (per second)": 0.1, "@1080p (per second)": 0.15 }, "examples": [ { "name": "Simple Image-to-Video", "description": "Generate a video from a reference image", "input": { "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png", "prompt": "A gentle camera push-in on the scene with soft ambient lighting" }, "output": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/simple-image-to-video.mp4" }, "raw_response": { "state": "Completed", "result": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/simple-image-to-video.mp4" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.7-i2v',\n {\n image:\n 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png',\n prompt: 'A gentle camera push-in on the scene with soft ambient lighting',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.7-i2v\",\n \"input\": {\n \"image\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png\",\n \"prompt\": \"A gentle camera push-in on the scene with soft ambient lighting\"\n }\n}'" } ] }, { "name": "High Resolution", "description": "Generate at 1080P with a longer duration", "input": { "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png", "prompt": "Subject begins rapping confidently, head bobbing to the beat", "duration": 10, "resolution": "1080P" }, "output": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/high-resolution.mp4" }, "raw_response": { "state": "Completed", "result": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/high-resolution.mp4" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.7-i2v',\n {\n image:\n 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png',\n prompt: 'Subject begins rapping confidently, head bobbing to the beat',\n duration: 10,\n resolution: '1080P',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.7-i2v\",\n \"input\": {\n \"image\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png\",\n \"prompt\": \"Subject begins rapping confidently, head bobbing to the beat\",\n \"duration\": 10,\n \"resolution\": \"1080P\"\n }\n}'" } ] }, { "name": "With Negative Prompt", "description": "Guide generation away from unwanted artifacts", "input": { "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png", "prompt": "Subject slowly turns their head and smiles", "duration": 5, "negative_prompt": "blurry, distorted face, extra limbs", "resolution": "720P" }, "output": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/with-negative-prompt.mp4" }, "raw_response": { "state": "Completed", "result": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/with-negative-prompt.mp4" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.7-i2v',\n {\n image:\n 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png',\n prompt: 'Subject slowly turns their head and smiles',\n duration: 5,\n negative_prompt: 'blurry, distorted face, extra limbs',\n resolution: '720P',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.7-i2v\",\n \"input\": {\n \"image\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png\",\n \"prompt\": \"Subject slowly turns their head and smiles\",\n \"duration\": 5,\n \"negative_prompt\": \"blurry, distorted face, extra limbs\",\n \"resolution\": \"720P\"\n }\n}'" } ] }, { "name": "Reproducible Output", "description": "Use a fixed seed for reproducibility", "input": { "image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png", "prompt": "Camera orbits slowly around the subject under streetlamp light", "duration": 8, "resolution": "720P", "seed": 42 }, "output": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/reproducible-output.mp4" }, "raw_response": { "state": "Completed", "result": { "video": "https://examples.aig.cloudflare.com/alibaba/wan-2.7-i2v/reproducible-output.mp4" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'alibaba/wan-2.7-i2v',\n {\n image:\n 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png',\n prompt: 'Camera orbits slowly around the subject under streetlamp light',\n duration: 8,\n resolution: '720P',\n seed: 42,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"alibaba/wan-2.7-i2v\",\n \"input\": {\n \"image\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png\",\n \"prompt\": \"Camera orbits slowly around the subject under streetlamp light\",\n \"duration\": 8,\n \"resolution\": \"720P\",\n \"seed\": 42\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://wan.video/", "terms": "https://www.alibabacloud.com/help/en/legal", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/alibaba/wan-2.7-i2v.png", "metadata": { "Input": "Image URL (no base64)", "Max Duration": "15 seconds", "Resolutions": "720P, 1080P" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "alibaba", "pricing": { "default": 0.1, "720p": 0.1, "1080p": 0.15 } } ], "banner": null, "created_at": "2026-05-29 20:29:17", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "type": "string", "format": "uri" }, "prompt": { "type": "string" }, "negative_prompt": { "type": "string" }, "resolution": { "type": "string", "enum": [ "720P", "1080P" ] }, "duration": { "type": "integer", "minimum": 2, "maximum": 15 }, "seed": { "type": "integer", "minimum": 0, "maximum": 2147483647 }, "watermark": { "type": "boolean" } }, "required": [ "image" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "video": { "type": "string", "format": "uri" } }, "required": [ "video" ], "additionalProperties": false } } }