POST/v1/videos

動画を作成

非同期の動画ジョブを開始し、status: queuedの状態でただちに返します。completedになるまでGET /v1/videos/{video_id}をポーリングし、その後/contentをダウンロードします。

JSONまたはマルチパートで送信します。任意の参照画像はファイルパートまたはdata: URL(JPEG、PNG、WebP、最大10MiB)で指定し、リモートURLは拒否されます。再生時間とサイズはモデルによって異なります。

認証: AuthorizationヘッダーにBearer形式のAPIキー

リクエストボディ

  • modelstring必須

    動画モデルのスラッグ。

  • promptstring必須
  • secondsstring | integer

    再生時間(1〜20、既定値は4)。モデルによって範囲が狭まり、Veoは4、6、8のいずれかです。

  • sizeenum
    "854x480""480x854""1280x720""720x1280""1920x1080""1080x1920""3840x2160""2160x3840"
    既定値: "720x1280"
  • input_referenceany

    参照画像:ファイルパート、または{"image_url": "data:image/png;base64,..."}。

レスポンス

  • 200

    新しいジョブ。

    レスポンス
    • idstring
    • objectstring
    • modelstring
    • statusenum
      "queued""in_progress""completed""failed"
    • progressinteger

      0〜100。

    • created_atinteger
    • completed_atinteger | null
    • expires_atinteger | null

      保存された動画の有効期限。

    • secondsstring
    • sizestring
    • errorobject | null

      ジョブが失敗した場合の{code, message}。

    • remixed_from_video_idnull
  • 400

    不正なリクエスト。paramはフィールド名を、codeは理由(invalid_parameter、unsupported_parameter、unsupported_capability、refusal、previous_response_not_found)を示します。課金されません。

    レスポンス
    • errorobject
      error
      • messagestring

        問題の内容と解決方法。

      • typestring

        例:invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。

      • codestring

        安定したエラーコード。

      • paramstring | null

        該当する場合、問題のあるリクエストフィールド。

      • refusal_reasonenum

        code: refusalの場合にのみ含まれます。

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 401

    キーがないか、形式が不正か、期限切れか、取り消されています。

    レスポンス
    • errorobject
      error
      • messagestring

        問題の内容と解決方法。

      • typestring

        例:invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。

      • codestring

        安定したエラーコード。

      • paramstring | null

        該当する場合、問題のあるリクエストフィールド。

      • refusal_reasonenum

        code: refusalの場合にのみ含まれます。

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 402

    組織での対応が先に必要です(card_required、email_unverified、org_under_review、free_tier_requires_payment、promotion_ended)。メッセージに手順が示されます。再試行しても解決しません。

    レスポンス
    • errorobject
      error
      • messagestring

        問題の内容と解決方法。

      • typestring

        例:invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。

      • codestring

        安定したエラーコード。

      • paramstring | null

        該当する場合、問題のあるリクエストフィールド。

      • refusal_reasonenum

        code: refusalの場合にのみ含まれます。

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"
  • 429

    insufficient_quota(クレジット不足、支出上限の超過、またはモデルに購入が必要)とpromo_credits_now(無料プロモーションの使い切り):クレジットを追加してください。メッセージに手順が示されます。rate_limit_exceeded、free_limit_reached、admission_capacity_exceeded:Retry-Afterの秒数だけ待って再試行してください。

    レスポンス
    • errorobject
      error
      • messagestring

        問題の内容と解決方法。

      • typestring

        例:invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。

      • codestring

        安定したエラーコード。

      • paramstring | null

        該当する場合、問題のあるリクエストフィールド。

      • refusal_reasonenum

        code: refusalの場合にのみ含まれます。

        "cyber_policy""cbrn""content_policy""recitation""data_inspection""unspecified"

リクエスト

curl https://api.experientiallabs.ai/v1/videos \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"model": "veo-3.1-generate-preview", "prompt": "A paper boat drifting down a rainy street", "seconds": "8", "size": "1280x720"}'

レスポンス

{
  "id": "video_4e8a1c7b2f9d4053a6e1b8c3d7f2a910",
  "object": "video",
  "model": "veo-3.1-generate-preview",
  "status": "queued",
  "progress": 0,
  "created_at": 1795132800,
  "completed_at": null,
  "expires_at": null,
  "seconds": "8",
  "size": "1280x720",
  "error": null,
  "remixed_from_video_id": null
}

https://api.experientiallabs.ai/v1/videos