Query Video Task
curl --request GET \
--url https://api.omnimux.ai/v1/video/generations/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.omnimux.ai/v1/video/generations/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.omnimux.ai/v1/video/generations/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/v1/video/generations/{task_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Task management
Query Video Task
GET /v1/video/generations/ · poll video generation
GET
/
v1
/
video
/
generations
/
{task_id}
Query Video Task
curl --request GET \
--url https://api.omnimux.ai/v1/video/generations/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.omnimux.ai/v1/video/generations/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.omnimux.ai/v1/video/generations/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnimux.ai/v1/video/generations/{task_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
- Query endpoint for
task_idvalues created byPOST /v1/video/generations, including nativevideo_generationsvariants exposed in an account’seffective_video- For tasks created by
POST /v1/videos, useGET /v1/videos/{task_id}instead;/contentdownload is a separate endpoint- Plugin-line (type 65) video models keep creating on
POST /v1/videosand pollingGET /v1/videos/{task_id}- A task keeps the protocol recorded when it was accepted; query it through the route for that protocol even if the catalog or group rules change later
- Auth:
Authorization: Bearer sk-...
Protocol-specific query routes
For an account-level grouped video capability, read the selected variant’sgateway_protocol (or inherit the model-level contract.gateway_protocol):
| Protocol | Query |
|---|---|
video_generations | GET /v1/video/generations/{task_id} |
openai_video | GET /v1/videos/{task_id} |
openai_video must not be polled through /v1/video/generations/{task_id}, and vice versa. If a model defaults to openai_video but an explicitly selected group exposes a native video_generations variant, create the task with POST /v1/video/generations and X-OmniMux-Video-Protocol: video_generations, then poll it with GET /v1/video/generations/{task_id}.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
task_id | string | yes | Id from the create response |
Response (summary)
| Field | Notes |
|---|---|
status | e.g. queued / in_progress / completed / failed (live) |
task_id / id | Task id |
| Result fields | May include output URLs when completed; shape varies by model |
https://api.omnimux.ai
See Connection and usage and Cost optimization (402).