获取 Kling 文生视频任务状态
curl --request GET \
--url https://api.omnimux.ai/kling/v1/videos/text2video/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.omnimux.ai/kling/v1/videos/text2video/{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/kling/v1/videos/text2video/{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/kling/v1/videos/text2video/{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_id": "abcd1234efgh",
"status": "completed",
"url": "https://example.com/video.mp4",
"format": "mp4",
"metadata": {
"duration": 5,
"fps": 30,
"width": 1280,
"height": 720,
"seed": 20231234
},
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Video (Kling)
获取 Kling 文生视频任务状态
查询 Kling 文生视频任务的状态和结果。
GET
/
kling
/
v1
/
videos
/
text2video
/
{task_id}
获取 Kling 文生视频任务状态
curl --request GET \
--url https://api.omnimux.ai/kling/v1/videos/text2video/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.omnimux.ai/kling/v1/videos/text2video/{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/kling/v1/videos/text2video/{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/kling/v1/videos/text2video/{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_id": "abcd1234efgh",
"status": "completed",
"url": "https://example.com/video.mp4",
"format": "mp4",
"metadata": {
"duration": 5,
"fps": 30,
"width": 1280,
"height": 720,
"seed": 20231234
},
"error": {
"code": 123,
"message": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}授权
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
路径参数
任务 ID
响应
成功获取任务状态
⌘I