curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "flux-3-max/text-to-video",
"input": {
"prompt": "A red panda walks through a sunlit forest",
"duration": 5,
"resolution": "720p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1792468800-example",
"status": "not_started",
"created_time": "2026-10-20T12:00:00"
}
}{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}Flux
Flux 3 Max
Create videos from text, starting and ending images, or positioned keyframes, with optional audio.
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-max/text-to-video",
"input": {
"prompt": "A red panda walks through a sunlit forest",
"duration": 5,
"resolution": "720p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1792468800-example",
"status": "not_started",
"created_time": "2026-10-20T12:00:00"
}
}{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"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 response result through the unified Query Task Status endpoint.
Models
- flux-3-max/text-to-video — Video generation from text
- flux-3-max/image-to-video — Video generation from a starting image and an optional ending image
- flux-3-max/keyframes-to-video — Video generation from positioned keyframes
Features
- Generate 5–20 seconds of video at 720p or 1080p.
- Generate audio alongside the video or disable it with
sound: false. - Guide transitions with a starting and ending image or up to 10 positioned keyframes.
Input modes
| Model | Required media input |
|---|---|
flux-3-max/text-to-video | None |
flux-3-max/image-to-video | 1–2 ordered URLs in image_urls |
flux-3-max/keyframes-to-video | 1–10 objects in keyframes |
image_urls only, with the starting image first and the optional ending image second. Keyframe mode accepts keyframes only.
Required parameters
prompt(string): Non-empty description of the video, including motion, camera behavior, and desired audio.image_urls(array of strings): Required for image mode only. Supply one starting image URL, optionally followed by one ending image URL.keyframes(array of objects): Required for keyframe mode only. Supply 1–10 objects containingimage_urlandframe_index.
Optional parameters
duration(integer): Output duration from 5 through 20 seconds. Defaults to 5.resolution(string):720p(default) or1080p.aspect_ratio(string):auto(default),21:9,2:1,16:9,4:3,1:1,3:4, or9:16.sound(boolean): Generate audio. Defaults totrue.
Examples
The OpenAPI examples cover text generation, a starting image, starting and ending images, and positioned keyframes. For a transition between two images, selectflux-3-max/image-to-video and supply both URLs in image_urls in starting-frame then ending-frame order.
For positioned images, select flux-3-max/keyframes-to-video. Set each frame_index on a 24 fps timeline. For a 5-second video, positions can range from 0 through 120, inclusive.
Notes
Image URLs must be publicly accessible HTTP(S) URLs for PNG, JPEG, or WebP images. Each keyframe position must be unique and cannot exceedduration × 24.
With aspect_ratio: "auto", text mode uses 16:9; image and keyframe modes follow the first image. Keep media fields inside input and callback_url at the request’s top level.Authorizations
Use Authorization: Bearer PoYo_API_KEY.
Body
application/json
Create videos from text, starting and ending images, or positioned keyframes, with optional generated audio.
Public model identifier.
Available options:
flux-3-max/text-to-video, flux-3-max/image-to-video, flux-3-max/keyframes-to-video Parameters for the selected model. Media fields are required only for their corresponding mode.
Show child attributes
Show child attributes
Webhook URL for finished or failed task notifications.
