Skip to main content
用于轮询 predictLongRunning 提交的视频任务状态。

认证

  • x-goog-api-key: <Token>
export BASE_URL="https://models.rivus.cn"
export TOKEN="oh-xxxxxxxxxxxxxxxx"
export OP_ID="abc123xyz"  # 创建时返回的 operations/{id}

cURL 示例

curl "$BASE_URL/gemini/v1beta/operations/$OP_ID" \
  -H "x-goog-api-key: $TOKEN"
完成后响应会包含 response.generateVideoResponse.generatedSamples[0].video.uri 与可选的 metadata(如 durationSecondssize)。
若你的客户端需要按秒计费,可从 metadata.durationSeconds 读取;若缺失,可在业务侧用任务上下文回填。