curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan3.0-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A kitten runs across a moonlit rooftop while neon signs glow in the distance.",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"audio": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1787654321-abcd1234",
"status": "not_started",
"created_time": "2023-11-07T05:31:56Z"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Wan
Wan 3.0
The Wan 3.0 API generates a 2–30 second video at 480p, 720p, or 1080p from text, start and end frames, or image, video, audio, document, and webpage references, with a controllable audio track.
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": "wan3.0-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A kitten runs across a moonlit rooftop while neon signs glow in the distance.",
"resolution": "720p",
"aspect_ratio": "16:9",
"duration": 5,
"audio": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1787654321-abcd1234",
"status": "not_started",
"created_time": "2023-11-07T05:31:56Z"
}
}{
"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
wan3.0-text-to-video— generates video from a required text promptwan3.0-image-to-video— generates video from one or two start/end frame imageswan3.0-reference-to-video— generates video from multimodal references, and edits or extends source videos
Features
- Duration: 2–30 seconds
- Resolution: 480p, 720p, or 1080p
- Start/End Frames: Use one or two
image_urlswith the image model - Generated Audio: Control the output audio track with
audio - Multimodal References: Use images, videos, audio clips, documents, or public webpages with the reference model
- Reference Labels: Mention inputs in the prompt as
Image1,Video1, orAudio1 - Video Editing: Pass a source video in
reference_video_urlsand describe the change in the prompt. The source keeps its subject, motion, and camera unless the prompt asks otherwise - Video Extension: Describe how the clip continues in the prompt to extend a source video
Examples
Video editing
Usewan3.0-reference-to-video. Pass the source video in reference_video_urls, call it Video1 in the prompt, and say what to change and what to keep.
{
"model": "wan3.0-reference-to-video",
"input": {
"prompt": "Edit Video1 into a handmade claymation stop-motion look: the whole scene becomes sculpted modeling clay with visible fingerprints and soft studio lighting. Keep the same red paper boat, its left-to-right drifting motion, the low camera angle, the composition and the stream flow unchanged.",
"reference_video_urls": ["https://example.com/source.mp4"],
"resolution": "720p",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": true
}
}
- Style: “Edit Video1 into a handmade claymation stop-motion look …” — source video and result
- Lighting: “Edit Video1 from daytime to golden-hour sunset …” — result
Notes
- Source videos: Use public HTTP or HTTPS URLs to mp4 or mov files, 1–15 seconds each, at 16 fps or higher. Up to 5 videos with a total of 15 seconds.
- Total length: The source video seconds plus the output
durationadd up to at most 30 seconds. - Frame size: Set
aspect_ratiotoadaptiveto follow the source video. - Prompt: Start with what to change, then name what stays the same, such as the subject, motion, camera angle, and composition.
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
Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.
200: Success400: Invalid request parameters401: Missing or invalid API key402: Insufficient credits403: Permission denied404: Resource not found408: Request timeout429: Rate limit exceeded500: Internal server error502: Upstream service error503: Service unavailable
See Error Codes for details.
Available options:
200, 400, 401, 402, 403, 404, 408, 429, 500, 502, 503 Example:
200