xAI
動画生成結果を取得
GET /grok/v1/videos/ を使用して xAI の動画生成ステータスをポーリングし、処理完了後に最終的な動画 URL を取得します。
GET
Query an xAI video job
このエンドポイントは、すでにDocumentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
request_id を取得している場合に使用します。xAI のジョブがまだ実行中かどうかを確認し、準備ができたら最終的な動画メタデータを返します。
まずこれらのフィールドを確認してください
- タスクは受け付けられているものの、まだ結果の準備ができていない場合の
request_id - xAI ジョブの状態を示す
status。doneに達するまでポーリングを続けます - 返される場合の完了率を示す
progress - レンダリング完了時の
video.url
ポーリングループ
status が done になるまでポーリングを続けます
レスポンスが
request_id を返すだけの場合は、数秒待ってから再度ポーリングしてください。status が表示されたら、それを停止条件として使用します。承認
Bearer token authentication. Use your CometAPI key.
パスパラメータ
Deferred request id returned by the create or edit endpoint.
レスポンス
200 - application/json
Current xAI video task state.
Returned when the request is accepted but result metadata is not ready yet.
xAI video model id.
Generated video metadata. Present when the job has completed.
xAI job state. done means the video metadata is ready.
利用可能なオプション:
queued, processing, done, failed, expired Completion percentage when returned.
Error details when the job fails.