Wan Videos
curl --request POST \
--url https://api.acedata.cloud/wan/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.6-i2v"
}
'import requests
url = "https://api.acedata.cloud/wan/videos"
payload = { "model": "wan2.6-i2v" }
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-i2v'})
};
fetch('https://api.acedata.cloud/wan/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"state": "completed",
"prompt": "Astronauts shuttle from space to volcano",
"success": true,
"task_id": "5636d6ba-957f-475e-a98a-718a07ee89a6",
"video_id": "b4ef4c5e-9680-41c8-a678-0ce2ce6194de",
"video_url": "https://cdn.acedata.cloud/43a57990c0.mp4",
"video_width": 1552,
"video_height": 656,
"thumbnail_url": "https://cdn.acedata.cloud/4hfydw.jpg",
"thumbnail_width": 1552,
"thumbnail_height": 656
}{
"error": {
"code": "bad_request",
"message": "The json payload is not valid to request the API"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "forbidden",
"message": "Sorry! Our Al moderators feel your prompt might be against our community standards."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "too_many_requests",
"message": "You have exceeded the rate limit."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "api_error",
"message": "Internal server error."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "timeout",
"message": "Timeout to generate the image."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}API Reference
Wan Videos
POST
/
wan
/
videos
Wan Videos
curl --request POST \
--url https://api.acedata.cloud/wan/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.6-i2v"
}
'import requests
url = "https://api.acedata.cloud/wan/videos"
payload = { "model": "wan2.6-i2v" }
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-i2v'})
};
fetch('https://api.acedata.cloud/wan/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"state": "completed",
"prompt": "Astronauts shuttle from space to volcano",
"success": true,
"task_id": "5636d6ba-957f-475e-a98a-718a07ee89a6",
"video_id": "b4ef4c5e-9680-41c8-a678-0ce2ce6194de",
"video_url": "https://cdn.acedata.cloud/43a57990c0.mp4",
"video_width": 1552,
"video_height": 656,
"thumbnail_url": "https://cdn.acedata.cloud/4hfydw.jpg",
"thumbnail_width": 1552,
"thumbnail_height": 656
}{
"error": {
"code": "bad_request",
"message": "The json payload is not valid to request the API"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "forbidden",
"message": "Sorry! Our Al moderators feel your prompt might be against our community standards."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "too_many_requests",
"message": "You have exceeded the rate limit."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "api_error",
"message": "Internal server error."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "timeout",
"message": "Timeout to generate the image."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Auktoriseringar
API token from https://platform.acedata.cloud
Kropp
application/json
Svar
Wan Videos Response 200
Var denna sida till hjälp?

