curl --request POST \ --url https://api.poyo.ai/api/generate/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "wan2.5-text-to-video", "callback_url": "https://your-domain.com/callback", "input": { "prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.", "aspect_ratio": "832*480", "duration": 5, "seed": 426 }}'
import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "wan2.5-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.",
"aspect_ratio": "832*480",
"duration": 5,
"seed": 426
}
}
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.5-text-to-video',
callback_url: 'https://your-domain.com/callback',
input: {
prompt: 'A cinematic time-lapse of a bustling city street transitioning from day to night.',
aspect_ratio: '832*480',
duration: 5,
seed: 426
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
Wan 2.5 Text-to-Video API 可根据文本生成 5 或 10 秒、480p、720p 或 1080p 的视频,可选传入音频 URL。
POST
/
api
/
generate
/
submit
提交 Wan 2.5 Text-to-Video 任务
curl --request POST \ --url https://api.poyo.ai/api/generate/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "wan2.5-text-to-video", "callback_url": "https://your-domain.com/callback", "input": { "prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.", "aspect_ratio": "832*480", "duration": 5, "seed": 426 }}'
import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "wan2.5-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.",
"aspect_ratio": "832*480",
"duration": 5,
"seed": 426
}
}
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.5-text-to-video',
callback_url: 'https://your-domain.com/callback',
input: {
prompt: 'A cinematic time-lapse of a bustling city street transitioning from day to night.',
aspect_ratio: '832*480',
duration: 5,
seed: 426
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));