Wan
curl --request POST \
--url https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesisimport requests
url = "https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body视频
Wan
POST
/
v3
/
aliyun
/
api
/
v1
/
services
/
aigc
/
video-generation
/
video-synthesis
Wan
curl --request POST \
--url https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesisimport requests
url = "https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body官方参考文档:万相-视频生成API参考
参数及使用方式已对齐官方,详细参数可直接参考官方文档。
一、支持模型
| 模型 |
|---|
wan3.0-video |
wan3.0-video-prime |
二、视频生成 API
创建任务
POST https://{api_domain}/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis
curl -X POST 'https://{api_domain}/v3/aliyun/api/v1/services/aigc/video-generation/video-synthesis' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "wan3.0-video",
"input": {
"prompt": "一只小猫在月光下的屋顶上奔跑,城市的霓虹灯在远处闪烁,电影级画质,流畅运镜。"
},
"parameters": {
"resolution": "720P",
"ratio": "16:9",
"duration": 5
}
}'
查询任务
GET https://{api_domain}/v3/aliyun/api/v1/tasks/{task_id}
curl -X GET 'https://{api_domain}/v3/aliyun/api/v1/tasks/0385dc79-5ff8-4d82-bcb6-xxxxxx' \
-H 'Authorization: Bearer <YOUR_API_KEY>'
最后修改于 2026年11月24日