Wan 2.7 Image-to-Video
此内容尚不支持你的语言。
| Provider | Alibaba |
| Model name | wan2.7-i2v |
| Endpoint | /v1/videos |
| Resolution | 720p, 1080p |
| Duration | 3, 5, 8, 10, 15 seconds |
| Aspect Ratios | 16:9, 9:16, 1:1, 4:3, 3:4 |
| Credits | 100 per video |
Features
Section titled “Features”- Image animation
- First + Last frame control
- 720P/1080P output
- Up to 15 seconds
API Usage
Section titled “API Usage”curl -X POST https://api.hiapi.ai/v1/videos \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "wan2.7-i2v", "prompt": "The scene comes alive with gentle wind", "input_image": "https://example.com/photo.jpg", "seconds": 5 }'import requests
response = requests.post( "https://api.hiapi.ai/v1/videos", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "model": "wan2.7-i2v", "prompt": "The scene comes alive with gentle wind", "input_image": "https://example.com/photo.jpg", "seconds": 5 })
task_id = response.json()["data"]["task_id"]print(f"Task created: {task_id}")const response = await fetch("https://api.hiapi.ai/v1/videos", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ model: "wan2.7-i2v", prompt: "The scene comes alive with gentle wind", input_image: "https://example.com/photo.jpg", seconds: 5 })});
const data = await response.json();console.log("Task ID:", data.data.task_id);