Use GET /grok/v1/videos/ to poll xAI video generation status and retrieve the final video URL once processing completes.
curl --request GET \
--url https://api.cometapi.com/grok/v1/videos/{request_id} \
--header 'Authorization: Bearer <token>'{
"request_id": "f5f35814-953e-b094-5a2c-4a90014a58cb"
}Use this endpoint after you already have aDocumentation 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. It tells you whether the xAI job is still running and returns the final video metadata when ready.
request_id when the task has been accepted but the result is not ready yetstatus for the xAI job state; keep polling until it reaches doneprogress for completion percentage when it is returnedvideo.url when the render is completeCreate 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.Bearer token authentication. Use your CometAPI key.
Deferred request id returned by the create or edit endpoint.
Current xAI video task state.
Returned when the request is accepted but result metadata is not ready yet.
xAI video model id.
Show child attributes
Generated video metadata. Present when the job has completed.
Show child attributes
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.
curl --request GET \
--url https://api.cometapi.com/grok/v1/videos/{request_id} \
--header 'Authorization: Bearer <token>'{
"request_id": "f5f35814-953e-b094-5a2c-4a90014a58cb"
}