查询视频生成状态
curl --request GET \
--url https://api.maxapi.ai/veo/v1/api/video/status/{taskId}import requests
url = "https://api.maxapi.ai/veo/v1/api/video/status/{taskId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.maxapi.ai/veo/v1/api/video/status/{taskId}', 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.maxapi.ai/veo/v1/api/video/status/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/veo/v1/api/video/status/{taskId}")
.asString();{
"success": true,
"data": {
"taskId": "veo3:a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "processing",
"progress": {
"upstreamStatus": "video_generating",
"videoGenerationStatus": "MEDIA_GENERATION_STATUS_ACTIVE",
"retryCount": 0,
"maxRetries": 3
},
"message": "视频生成中,预计还需2-5分钟"
}
}根据任务ID查询视频生成状态和结果
GET
https://api.maxapi.ai
/
veo
/
v1
/
api
/
video
/
status
/
{taskId}
查询视频生成状态
curl --request GET \
--url https://api.maxapi.ai/veo/v1/api/video/status/{taskId}import requests
url = "https://api.maxapi.ai/veo/v1/api/video/status/{taskId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.maxapi.ai/veo/v1/api/video/status/{taskId}', 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.maxapi.ai/veo/v1/api/video/status/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/veo/v1/api/video/status/{taskId}")
.asString();{
"success": true,
"data": {
"taskId": "veo3:a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "processing",
"progress": {
"upstreamStatus": "video_generating",
"videoGenerationStatus": "MEDIA_GENERATION_STATUS_ACTIVE",
"retryCount": 0,
"maxRetries": 3
},
"message": "视频生成中,预计还需2-5分钟"
}
}路径参数
任务ID(从提交接口返回)
示例:
"veo3:a1b2c3d4-e5f6-7890-abcd-ef1234567890"
响应
查询成功
请求是否成功
Hide child attributes
Hide child attributes
任务ID
示例:
"veo3:a1b2c3d4-e5f6-7890-abcd-ef1234567890"
任务状态
可用选项:
processing, completed, failed 示例:
"completed"
生成结果(仅在completed状态时返回)
错误信息(仅在failed状态时返回)
示例:
"提示词内容不符合要求"
状态描述
示例:
"视频生成完成"