Skip to main content
GET
Get task result by taskId
Gemini 视频(Veo)图像(Nano Banana) 异步任务共用的查询端点。
通过生成视频生成图像创建任务后,使用返回的 taskId 轮询本端点,直到状态为 completedfailedtimeout

适用能力

任务状态值

建议每 3–5 秒轮询一次。图像任务通常快于视频;视频耗时取决于模型与时长。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

taskId
string
必填

响应

200 - application/json
taskId
string
必填

task id

status
enum<string>
必填

task status

可用选项:
pending,
ready,
assigned,
processing,
completed,
failed,
cancelled,
timeout
result

task result

errorMessage
string

error message

errorCode
number

error code

finishedAt
string<date-time>

task finished time

createdAt
string<date-time>

task created time

traceId
string

traceId