PoYo AI API Documentation
PoYo AI provides state-of-the-art image and video generation APIs with a unified, asynchronous architecture.Base URL
All API requests should be made to:Authentication
PoYo AI uses API key authentication. Include your API key in theAuthorization header:
Get Your API Key
Visit the API Console to generate your API key
API Architecture
Unified Endpoints
PoYo AI uses a simple two-endpoint architecture for all generation types:Submit Task
task_id.
Query Status
Asynchronous Processing
All generation tasks follow this workflow:1
Submit Task
POST to
/api/generate/submit with model and parameters2
Receive Task ID
API returns
task_id immediately with status not_started3
Poll or Wait
Either poll
/api/generate/status/{task_id} or receive webhook callback4
Retrieve Results
When status is
finished, get generated files from responseResponse Format
All endpoints return JSON with a consistent structure:Submit Response
Status Response
Task Status Values
Error Response
HTTP Status Codes
Task Management Options
Option 1: Polling (Simple)
Poll the status endpoint periodically:Option 2: Webhooks (Recommended)
Provide acallback_url to receive automatic notifications:
Webhook Documentation
Learn how to implement webhook callbacks
Important Notes
Rate Limits: API rate limits vary by account type. Check your console dashboard for current limits.
