メインコンテンツへスキップ
POST
/
v1beta
/
models
/
{model}
:predictLongRunning
Gemini predictLongRunning
curl --request POST \
  --url https://maas.apigo.ai/v1beta/models/{model}:predictLongRunning \
  --header 'Content-Type: application/json' \
  --header 'x-goog-api-key: <api-key>' \
  --data '
{
  "instances": [
    {
      "prompt": "一只小猫在花园中奔跑"
    }
  ],
  "parameters": {
    "durationSeconds": 5,
    "aspectRatio": "16:9"
  }
}
'
{
  "name": "operations/abc123",
  "done": false,
  "metadata": {
    "progressPercent": 0
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.apigo.ai/llms.txt

Use this file to discover all available pages before exploring further.

このエンドポイントを使用して、Veo スタイルの長時間実行ビデオ生成リクエストを送信します。
  • 一般的な認証パターンは x-goog-api-key: {API_KEY} ですが、クエリ文字列 API キーもサポートされています
  • このエンドポイントは、最終的なビデオ コンテンツではなく、長時間実行される操作ハンドルを返します。
  • 返された操作名または ID を後のポーリングのために保持します
  • 完了を追跡するには、/v1beta/operations/{operation_id} をポーリングする必要があります

承認

x-goog-api-key
string
header
必須

パスパラメータ

model
string
必須

Gemini model name.

:

"veo-3.0-generate-preview"

ボディ

application/json
instances
object[]
必須
parameters
object

レスポンス

Successful long-running operation creation response

name
string
metadata
object
done
boolean
response
object
error
object