curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.5",
"input": {
"prompt": "A cinematic aerial view of a city at night",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
"generate_audio": true
}
}
'{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Seedance
Seedance 2.5
The Seedance 2.5 API generates a 4–30 second video from text, first and last frames, or image, video, and audio references at 480p, 720p, or 1080p.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedance-2.5",
"input": {
"prompt": "A cinematic aerial view of a city at night",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9",
"generate_audio": true
}
}
'{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
Models
Useseedance-2.5 for text-to-video, first/last-frame generation, and multimodal reference-to-video.
Input modes
- Omit media fields for text-to-video.
- Use
image_urlswith one starting frame and an optional ending frame. - Use
reference_image_urls,reference_video_urls, andreference_audio_urlsfor multimodal references. Mention them in the prompt as@Image1,@Video1, or@Audio1.
Notes
prompt,duration, andresolutionare required.durationaccepts integer values from 4 to 30 seconds.resolutionaccepts480p,720p, or1080p.image_urlsaccepts at most two images, cannot be combined with reference media, and usesaspect_ratio: auto.- Reference mode accepts up to 30 images, 10 videos, and 10 audio files, with at most 50 files in total.
- Audio references require at least one reference image or video.
aspect_ratioacceptsauto,21:9,16:9,4:3,1:1,3:4, or9:16.- All media URLs must be publicly accessible and directly downloadable.
Authorizations
All API endpoints require Bearer Token authentication.
Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
Task submitted successfully