Get xAI video results
Use GET /grok/v1/videos/ to poll xAI video generation status and retrieve the final video URL once processing completes.
request_id. It tells you whether the xAI job is still running and returns the final video metadata when ready.
Check these fields first
request_idwhen the task has been accepted but the result is not ready yetstatusfor the xAI job state; keep polling until it reachesdoneprogressfor completion percentage when it is returnedvideo.urlwhen the render is complete
Polling loop
Create or edit the video first
request_id.Keep polling until status is done
request_id, wait a few seconds and poll again. Once status appears, use it as the stop condition.Authorizations
Bearer token authentication. Use your CometAPI key.
Path Parameters
Deferred request id returned by the create or edit endpoint.
Response
Current xAI video task state.
Returned when the request is accepted but result metadata is not ready yet.
xAI video model id.
Billing metadata. cost_in_usd_ticks reports the cost in provider ticks.
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.