Skip to main content
GET
이미 request_id가 있는 경우 이 엔드포인트를 사용하세요. xAI 작업이 아직 실행 중인지 알려주고, 준비되면 최종 비디오 메타데이터를 반환합니다.

먼저 이 필드를 확인하세요

  • 작업이 수락되었지만 결과가 아직 준비되지 않은 경우 request_id
  • xAI 작업 상태를 나타내는 status; done에 도달할 때까지 계속 폴링하세요
  • 반환되는 경우 완료 비율을 나타내는 progress
  • 렌더링이 완료되면 video.url

폴링 루프

1

먼저 비디오를 생성하거나 편집하세요

Create an xAI video 또는 Create an xAI video edit부터 시작한 다음, 반환된 request_id를 복사하세요.
2

status가 done이 될 때까지 계속 폴링하세요

응답이 request_id만 그대로 반환하는 경우 몇 초 기다렸다가 다시 폴링하세요. status가 나타나면 이를 중지 조건으로 사용하세요.
3

완성된 파일을 저장하세요

최종 video.url은 xAI 문서에서 임시 URL로 안내하고 있으므로 즉시 다운로드하거나 복사하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

경로 매개변수

request_id
string
필수

Deferred request id returned by the create or edit endpoint.

응답

200 - application/json

Current xAI video task state.

request_id
string

Returned when the request is accepted but result metadata is not ready yet.

model
string

xAI video model id.

usage
object

Billing metadata. cost_in_usd_ticks reports the cost in provider ticks.

video
object

Generated video metadata. Present when the job has completed.

status
enum<string>

xAI job state. done means the video metadata is ready.

사용 가능한 옵션:
queued,
processing,
done,
failed,
expired
progress
integer

Completion percentage when returned.

error

Error details when the job fails.