Create video task
curl --request POST \
--url https://api.ai.cc/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.6-t2v",
"input": {
"prompt": "An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \"cuteness\" and \"power\".",
"audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3"
},
"parameters": {
"size": "1280*720",
"prompt_extend": true,
"duration": 10,
"shot_type": "multi"
}
}
'import requests
url = "https://api.ai.cc/v1/video/generations"
payload = {
"model": "wan2.6-t2v",
"input": {
"prompt": "An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \"cuteness\" and \"power\".",
"audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3"
},
"parameters": {
"size": "1280*720",
"prompt_extend": True,
"duration": 10,
"shot_type": "multi"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'wan2.6-t2v',
input: {
prompt: 'An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: "Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered." Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of "cuteness" and "power".',
audio_url: 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3'
},
parameters: {size: '1280*720', prompt_extend: true, duration: 10, shot_type: 'multi'}
})
};
fetch('https://api.ai.cc/v1/video/generations', 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.ai.cc/v1/video/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'wan2.6-t2v',
'input' => [
'prompt' => 'An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: "Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered." Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of "cuteness" and "power".',
'audio_url' => 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3'
],
'parameters' => [
'size' => '1280*720',
'prompt_extend' => true,
'duration' => 10,
'shot_type' => 'multi'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ai.cc/v1/video/generations"
payload := strings.NewReader("{\n \"model\": \"wan2.6-t2v\",\n \"input\": {\n \"prompt\": \"An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \\\"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\\\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \\\"cuteness\\\" and \\\"power\\\".\",\n \"audio_url\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3\"\n },\n \"parameters\": {\n \"size\": \"1280*720\",\n \"prompt_extend\": true,\n \"duration\": 10,\n \"shot_type\": \"multi\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.ai.cc/v1/video/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"wan2.6-t2v\",\n \"input\": {\n \"prompt\": \"An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \\\"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\\\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \\\"cuteness\\\" and \\\"power\\\".\",\n \"audio_url\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3\"\n },\n \"parameters\": {\n \"size\": \"1280*720\",\n \"prompt_extend\": true,\n \"duration\": 10,\n \"shot_type\": \"multi\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ai.cc/v1/video/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"wan2.6-t2v\",\n \"input\": {\n \"prompt\": \"An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \\\"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\\\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \\\"cuteness\\\" and \\\"power\\\".\",\n \"audio_url\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3\"\n },\n \"parameters\": {\n \"size\": \"1280*720\",\n \"prompt_extend\": true,\n \"duration\": 10,\n \"shot_type\": \"multi\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "123456",
"object": "video",
"model": "wan2.6-t2v",
"status": "queued",
"progress": 0,
"created_at": 1764347090922,
"seconds": "8"
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Video
Create Video Generation Task
POST
/
v1
/
video
/
generations
Create video task
curl --request POST \
--url https://api.ai.cc/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.6-t2v",
"input": {
"prompt": "An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \"cuteness\" and \"power\".",
"audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3"
},
"parameters": {
"size": "1280*720",
"prompt_extend": true,
"duration": 10,
"shot_type": "multi"
}
}
'import requests
url = "https://api.ai.cc/v1/video/generations"
payload = {
"model": "wan2.6-t2v",
"input": {
"prompt": "An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \"cuteness\" and \"power\".",
"audio_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3"
},
"parameters": {
"size": "1280*720",
"prompt_extend": True,
"duration": 10,
"shot_type": "multi"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'wan2.6-t2v',
input: {
prompt: 'An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: "Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered." Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of "cuteness" and "power".',
audio_url: 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3'
},
parameters: {size: '1280*720', prompt_extend: true, duration: 10, shot_type: 'multi'}
})
};
fetch('https://api.ai.cc/v1/video/generations', 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.ai.cc/v1/video/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'wan2.6-t2v',
'input' => [
'prompt' => 'An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: "Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered." Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of "cuteness" and "power".',
'audio_url' => 'https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3'
],
'parameters' => [
'size' => '1280*720',
'prompt_extend' => true,
'duration' => 10,
'shot_type' => 'multi'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ai.cc/v1/video/generations"
payload := strings.NewReader("{\n \"model\": \"wan2.6-t2v\",\n \"input\": {\n \"prompt\": \"An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \\\"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\\\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \\\"cuteness\\\" and \\\"power\\\".\",\n \"audio_url\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3\"\n },\n \"parameters\": {\n \"size\": \"1280*720\",\n \"prompt_extend\": true,\n \"duration\": 10,\n \"shot_type\": \"multi\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.ai.cc/v1/video/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"wan2.6-t2v\",\n \"input\": {\n \"prompt\": \"An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \\\"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\\\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \\\"cuteness\\\" and \\\"power\\\".\",\n \"audio_url\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3\"\n },\n \"parameters\": {\n \"size\": \"1280*720\",\n \"prompt_extend\": true,\n \"duration\": 10,\n \"shot_type\": \"multi\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ai.cc/v1/video/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"wan2.6-t2v\",\n \"input\": {\n \"prompt\": \"An epic and adorable scene. A tiny, cute cartoon cat general, clad in intricately detailed golden armor and wearing a slightly oversized helmet, stands bravely on a cliff. Riding a small but valiant warhorse, he proclaims: \\\"Long clouds over Qinghai darken the snow-capped mountains, a lonely city gazes afar at the Jade Gate Pass. Through a hundred battles in the yellow sands, my golden armor is worn, I will not return until Lou Lan is conquered.\\\" Below the cliff, a vast, seemingly endless army of mice charges forward with makeshift weapons. This is a dramatic, large-scale battle scene inspired by ancient Chinese war epics. In the distance, dark clouds blanket the snow-capped mountains. The overall atmosphere is a humorous and epic blend of \\\"cuteness\\\" and \\\"power\\\".\",\n \"audio_url\": \"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250923/hbiayh/%E4%BB%8E%E5%86%9B%E8%A1%8C.mp3\"\n },\n \"parameters\": {\n \"size\": \"1280*720\",\n \"prompt_extend\": true,\n \"duration\": 10,\n \"shot_type\": \"multi\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "123456",
"object": "video",
"model": "wan2.6-t2v",
"status": "queued",
"progress": 0,
"created_at": 1764347090922,
"seconds": "8"
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Using models from different platforms requires passing their respective parameters.
Please refer to:
Authorizations
Authentication is done using Bearer Token.
Format: Authorization: Bearer sk-xxxxxx
Body
application/json
model name
Example:
"wan2.6-t2v"
Response
Successfully created video task
Video ID
object type
Model used
Task status
Progress percentage
Create timestamp
Video length
Completion timestamp
Expiration timestamp
Video size
OpenAI error message
Show child attributes
Show child attributes
Additional metadata
⌘I

