Skip to main content
Floodgate video requests run as background tasks. Choose the brand guide for your model, submit once, and keep the public task ID for status checks and downloads. Use only operations currently available for the exact model and routing group in Model Square. A model name alone does not establish support. All requests use 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.
The compatible status endpoint, when available, is GET /v1/videos/{task_id}:
Compatible states are 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.

Limits and billing

Use the selected model/group’s published limits and configuration combinations. A null constraint is undocumented. Do not combine options from different configuration rows. Floodgate reserves funds before submission. Follow-ups retain the original task’s group and pricing. Depending on the brand, settlement uses completed requests, verified output seconds or completion tokens. Brand guides explain the unit; Model Square shows current rates. A confirmed failed task releases its reservation. Missing final usage can leave settlement pending. Check Task Logs before retrying a timed-out submission: submitting again can create another task and charge.