Asynchronous video tasks
Submit video generation, query task status and save video results.
Video endpoints use asynchronous tasks. First choose a video model your current group can call in the model catalog; duration, resolution, sound, reference assets and other parameters follow that model's page. Your key's group determines pricing; do not send a group in the request body.
Submit and query
Call POST https://app.apipool.dev/v1/videos/generations with Authorization: Bearer YOUR_API_KEY and Content-Type: application/json. The request contains model, prompt and the parameters the model supports.
A successful submission returns 202 Accepted. Example response:
{
"id": "vidtask_TASK_ID",
"object": "video_generation.task",
"status": "submitted",
"model": "YOUR_VIDEO_MODEL"
}Save the id and call GET https://app.apipool.dev/v1/tasks/{id} with the same key. Query every 5 seconds; a successful submission does not mean the video has been generated.
| Status | Meaning and action |
|---|---|
submitted | Accepted and waiting to be processed |
processing | Generating |
submission_unknown | Submission status is pending confirmation; keep the task ID and contact support, and do not generate again |
meter_pending | Usage is being reconciled; query again later |
completed | Finished; all data results can be read |
failed | The task failed; check error.message |
Save videos
In a completed response, data is an array of video files. Each item contains url and expires_at, a Unix timestamp in seconds; result_expires_at is the earliest expiry time. Iterate over all files and save them before they expire. Links are not permanent storage, and recovery after expiry is not guaranteed.
The Video playground on a model page lets you submit, query and play results with an existing key. Closing the page does not cancel a submitted task; when you come back, you can keep querying tasks recorded in the current browser session.
Billing and limits
Billing is per request, per duration or per output token, as listed in the price details for the selected model and group. Fixed-duration tiers are billed by the requested tier; generation wait time and trailing frames from video packaging do not count as extra duration. Repeated queries after a successful generation are not charged again.
The endpoint only offers the modes listed on each model's page. Reference video, video editing, extension, draft enhancement and similar capabilities are not interchangeable between models; unavailable combinations are rejected before submission. If a request result is unclear, the network drops or a task runs for a long time, query the saved task ID first to avoid duplicate submissions that incur multiple generation charges.