https://api.floodgate.dev and Authorization: Bearer $FLOODGATE_API_KEY.
Choose a video API
Kling
Text or image input, generation versions and v4 reference video.
Seedance
Text, frame images and reviewed media references.
Veo
Text input through the compatible Videos API.
MiniMax H3
Text with optional first and last frames.
Wan and Happyhorse
Nested input and parameters for Alibaba video models.
Grok
Text input through the video generations endpoint.
Submit, poll and download
1
Submit once
Send the brand’s JSON request with your API key. Read
id from the submission response, or data.task_id for Kling. Keep this public ID.2
Poll the original task
Use the available status operation in the brand guide. Pending states mean wait and poll again. Stop on success or terminal failure. A client timeout does not cancel the task.
3
Download after success
Send your Authorization header to the reviewed owned-content endpoint. Save the response bytes before the result expires.
GET /v1/videos/{task_id}:
queued, in_progress, completed and failed. Only completed has a downloadable result. Native status envelopes differ by brand.
Result files
Results require authentication from the account that created the task. Download promptly; expiry varies. If you use an existing result-file URL, keep its public task and asset IDs. See the brand guide for the reviewed download operation and output format.Errors and retries
Inspect native response error fields even after HTTP 200. Failed tasks have no video to download. An unexpected status should stop your polling loop for inspection.
