POST
/
tongyi
/
video
curl -X POST https://api.example.com/tongyi/video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A peaceful bamboo forest swaying in the breeze",
    "model": "wanx-video-1",
    "duration": 5,
    "resolution": "1080p"
  }'
{
  "request_id": "req_123456",
  "task_id": "tongyi_task_abc123",
  "status": "pending",
  "created_at": "2024-01-01T00:00:00Z"
}
Create a video generation task using the Tongyi Wanxiang model.

Request Parameters

prompt
string
required
Video description prompt.
model
string
Model version. Default: wanx-video-1.
duration
integer
Video duration in seconds. Default: 5.
resolution
string
Video resolution. Options: 720p, 1080p.
image_url
string
Reference image URL for image-to-video generation.
curl -X POST https://api.example.com/tongyi/video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A peaceful bamboo forest swaying in the breeze",
    "model": "wanx-video-1",
    "duration": 5,
    "resolution": "1080p"
  }'
{
  "request_id": "req_123456",
  "task_id": "tongyi_task_abc123",
  "status": "pending",
  "created_at": "2024-01-01T00:00:00Z"
}