Veo 任务查询
curl --request GET \
--url https://www.geeknow.top/v1/videos/{task_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "<string>"
}
'import requests
url = "https://www.geeknow.top/v1/videos/{task_id}"
payload = { "task_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '<string>'})
};
fetch('https://www.geeknow.top/v1/videos/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.geeknow.top/v1/videos/{task_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'task_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.geeknow.top/v1/videos/{task_id}"
payload := strings.NewReader("{\n \"task_id\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.geeknow.top/v1/videos/{task_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"task_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.geeknow.top/v1/videos/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "video_abc123",
"object": "video",
"model": "veo_3_1-fast",
"status": "in_progress",
"progress": 50,
"created_at": 1735689600,
"completed_at": 0,
"expires_at": 1735776000,
"seconds": "8",
"size": "720x1280",
"remixed_from_video_id": "",
"error": {
"message": "",
"code": ""
},
"video_url": ""
}
{
"id": "video_abc123",
"object": "video",
"model": "veo_3_1-fast",
"status": "completed",
"progress": 100,
"created_at": 1735689600,
"completed_at": 1735689900,
"expires_at": 1735776000,
"seconds": "8",
"size": "720x1280",
"remixed_from_video_id": "",
"error": {
"message": "",
"code": ""
},
"video_url": "https://example.com/video.mp4"
}
Veo 视频
Veo 任务查询
使用 GET /v1/videos/{task_id} 查询 Veo 视频任务状态与结果。
GET
https://www.geeknow.top
/
v1
/
videos
/
{task_id}
Veo 任务查询
curl --request GET \
--url https://www.geeknow.top/v1/videos/{task_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "<string>"
}
'import requests
url = "https://www.geeknow.top/v1/videos/{task_id}"
payload = { "task_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '<string>'})
};
fetch('https://www.geeknow.top/v1/videos/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.geeknow.top/v1/videos/{task_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'task_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.geeknow.top/v1/videos/{task_id}"
payload := strings.NewReader("{\n \"task_id\": \"<string>\"\n}")
req, _ := http.NewRequest("GET", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.geeknow.top/v1/videos/{task_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"task_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.geeknow.top/v1/videos/{task_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "video_abc123",
"object": "video",
"model": "veo_3_1-fast",
"status": "in_progress",
"progress": 50,
"created_at": 1735689600,
"completed_at": 0,
"expires_at": 1735776000,
"seconds": "8",
"size": "720x1280",
"remixed_from_video_id": "",
"error": {
"message": "",
"code": ""
},
"video_url": ""
}
{
"id": "video_abc123",
"object": "video",
"model": "veo_3_1-fast",
"status": "completed",
"progress": 100,
"created_at": 1735689600,
"completed_at": 1735689900,
"expires_at": 1735776000,
"seconds": "8",
"size": "720x1280",
"remixed_from_video_id": "",
"error": {
"message": "",
"code": ""
},
"video_url": "https://example.com/video.mp4"
}
Veo 任务查询
Veo 系列提交后同样通过GET /v1/videos/{task_id} 查询。对外返回仍然是 OpenAI 风格 video 对象。
- 查询路径是
GET /v1/videos/{task_id}。 - 任务完成后通常可从
video_url读取视频结果。 - 查询结果返回任务状态、进度、完成时间和视频地址。
方法与路径
GET /v1/videos/{task_id}
请求示例
curl https://www.geeknow.top/v1/videos/video_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
import requests
resp = requests.get(
"https://www.geeknow.top/v1/videos/video_abc123",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(resp.json())
const response = await fetch("https://www.geeknow.top/v1/videos/video_abc123", {
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
console.log(await response.json());
响应示例
{
"id": "video_abc123",
"object": "video",
"model": "veo_3_1-fast",
"status": "in_progress",
"progress": 50,
"created_at": 1735689600,
"completed_at": 0,
"expires_at": 1735776000,
"seconds": "8",
"size": "720x1280",
"remixed_from_video_id": "",
"error": {
"message": "",
"code": ""
},
"video_url": ""
}
{
"id": "video_abc123",
"object": "video",
"model": "veo_3_1-fast",
"status": "completed",
"progress": 100,
"created_at": 1735689600,
"completed_at": 1735689900,
"expires_at": 1735776000,
"seconds": "8",
"size": "720x1280",
"remixed_from_video_id": "",
"error": {
"message": "",
"code": ""
},
"video_url": "https://example.com/video.mp4"
}
认证
Authorization: Bearer YOUR_API_KEY
Path Parameters
视频任务 ID。
Response
任务 ID。
固定为
video。任务状态,常见值包括
queued、in_progress、completed、failed。进度百分比。
输出时长。
输出尺寸。
视频结果地址。
相关接口
⌘I