查询视频任务
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))
}任务管理
查询视频任务
GET /v1/video/generations/ · 轮询视频生成任务
GET
/
v1
/
video
/
generations
/
{task_id}
查询视频任务
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))
}
- 仅用于 视频系列 创建接口
POST /v1/video/generations返回的task_id- 不是 OpenAI Videos 的
/v1/videos/{id}或/content下载路径- 鉴权:
Authorization: Bearer sk-...
路径参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
task_id | string | 是 | 创建任务响应中的 id |
响应(摘要)
| 字段 | 说明 |
|---|---|
status | 如 queued / in_progress / completed / failed(以线上为准) |
task_id / id | 任务标识 |
| 结果字段 | 完成后可能含产物 URL 等,结构因模型而异 |
https://api.omnimux.ai
更多错误语义见 连接与使用 与 成本优化(402)。