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 - 使用
status確認 xAI 工作狀態;持續輪詢直到它變成done - 當有回傳時,使用
progress查看完成百分比 - 當轉譯完成時,查看
video.url
輪詢迴圈
授權
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.