curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "flux-3/text-to-video",
"input": {
"prompt": "A red panda walks through a sunlit forest",
"duration": 5,
"resolution": "720p"
}
}
'{
"code": 200,
"data": {
"task_id": "<string>",
"status": "not_started",
"created_time": "2023-11-07T05:31:56Z"
}
}Flux
Flux 3 Video Generation
Create, guide, and extend videos with Flux 3
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": "flux-3/text-to-video",
"input": {
"prompt": "A red panda walks through a sunlit forest",
"duration": 5,
"resolution": "720p"
}
}
'{
"code": 200,
"data": {
"task_id": "<string>",
"status": "not_started",
"created_time": "2023-11-07T05:31:56Z"
}
}The submit endpoint returns a
task_id. Use the unified Query Task Status endpoint, or provide callback_url to receive the finished or failed result.Flux 3 Video Generation
Select a model based on the source media you want to provide:| Model | Required media input |
|---|---|
flux-3/text-to-video | None |
flux-3/image-to-video | One image in image_urls |
flux-3/first-last-frame-to-video | Two ordered images in image_urls |
flux-3/extend-video | One MP4 in video_url |
flux-3/keyframes-to-video | 1-10 items in keyframes |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Flux 3 workflow to use. The selected model determines which media input field is required.
Available options:
flux-3/text-to-video, flux-3/image-to-video, flux-3/first-last-frame-to-video, flux-3/extend-video, flux-3/keyframes-to-video Show child attributes
Show child attributes
Webhook URL that receives the finished or failed result.
