https://router.flatkey.ai
Flatkey generates video through one asynchronous endpoint. You submit a task, poll it until it finishes, then download the MP4. This page covers what is shared across every video model. For a model’s own options, continue to Seedance or MiniMax H3.
One async workflow
Create the task with
POST /v1/videos, poll it with GET /v1/videos/{task_id}, and download the MP4 from metadata.url.Two request shapes
Some models take a
content array, others take a prompt string. Sending the wrong one returns 400.Find a video model
List every model and keep the ones whosetype is video:
Pick the right request shape
The endpoint accepts two different shapes, and each model takes exactly one of them.
Sending a
content array to a prompt model returns:
The content shape
image_url entry to interpolate between frames or supply a reference. Field names differ by model, so follow the model’s own guide.
The prompt shape
Resolutions differ by model
There is no shared set of resolution values. Sending an unsupported one returns400 before the task is created.
Request parameters
Poll the task
A successful submission returns a task immediately:
Poll about every 15 seconds. A five-second clip usually finishes in two to four minutes.
Download the MP4
The download URL arrives inmetadata.url, and it needs the same authorization header:
End-to-end example
Troubleshooting
prompt is required
You sent a content array to a model that expects prompt. Check the table in Pick the right request shape.
unsupported resolution or resolution must be 768P or 2K
The value is valid for a different model. See Resolutions differ by model.
No available channel for model ...
The model is not routable right now. Pick another video model rather than retrying — this error does not clear on its own. Check the model directory for current availability.
duration must be between 4 and 15
MiniMax-H3 requires a duration in that range. Send one explicitly.
The task stays queued
Video generation takes minutes, not seconds. Keep polling at a 15-second interval before treating it as stuck.
Model guides
Seedance
Text-to-video plus the virtual and real-person asset library.
MiniMax H3
First and last frame control, reference media, and task settings.