/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のいずれかです。
sizeenuminput_referenceany参照画像:ファイルパート、または
{"image_url": "data:image/png;base64,..."}。
レスポンス
200新しいジョブ。
レスポンス
idstringobjectstringmodelstringstatusenumprogressinteger0〜100。
created_atintegercompleted_atinteger | nullexpires_atinteger | null保存された動画の有効期限。
secondsstringsizestringerrorobject | nullジョブが失敗した場合の
{code, message}。remixed_from_video_idnull
400不正なリクエスト。paramはフィールド名を、codeは理由(invalid_parameter、unsupported_parameter、unsupported_capability、refusal、previous_response_not_found)を示します。課金されません。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
401キーがないか、形式が不正か、期限切れか、取り消されています。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
402組織での対応が先に必要です(card_required、email_unverified、org_under_review、free_tier_requires_payment、promotion_ended)。メッセージに手順が示されます。再試行しても解決しません。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
429insufficient_quota(クレジット不足、支出上限の超過、またはモデルに購入が必要)とpromo_credits_now(無料プロモーションの使い切り):クレジットを追加してください。メッセージに手順が示されます。rate_limit_exceeded、free_limit_reached、admission_capacity_exceeded:Retry-Afterの秒数だけ待って再試行してください。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
リクエスト
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