WAN 2.7 (Reference-to-Video)

Alibaba WAN 2.7 video generation and editing via Bailian/DashScope. Text-to-video, image-to-video, reference-to-video, and video editing with synced audio, 720p / 1080p. · alibaba

All models
Parameters

Text prompt. Use [Image 1], [Image 2], etc. to refer to image_urls by order.

Video length in seconds. 2-15s for image-only references; 2-10s when video_urls are provided.

Add a watermark.

Reference voice URL(s) to set the main character voice; the first is used.

Reference image URLs. At least one of image_urls or video_urls is required; combined count <= 5.

Reference video URLs (MP4/MOV). At least one of image_urls or video_urls is required; combined count <= 5.

Enable prompt rewriting.

First-frame image URL; output follows its aspect ratio.

Negative prompt.

Pricing
200credits
5s
Per second40 credits/s
Result

Configure parameters and click Run to test the API.

Code Example
curl -X POST https://aivideoapi.ai/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2.7-reference-to-video",
  "input": {
    "duration": 5,
    "watermark": false,
    "resolution": "1080p",
    "aspect_ratio": "16:9",
    "prompt_extend": true
  }
}'