Lấy kết quả tạo video
Sử dụng GET /grok/v1/videos/ để thăm dò trạng thái tạo video của xAI và lấy URL video cuối cùng sau khi xử lý hoàn tất.
Sử dụng endpoint này sau khi bạn đã có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. Endpoint này cho bạn biết liệu tác vụ xAI vẫn đang chạy hay không và trả về metadata video cuối cùng khi đã sẵn sàng.
Kiểm tra các trường này trước
codevàmessagecho các lỗi cấp cao nhấtdata.statuscho trạng thái tác vụ CometAPIdata.data.statuscho trạng thái lồng nhau của nhà cung cấpdata.data.video.urlkhi quá trình render hoàn tất
Vòng lặp thăm dò
Tạo hoặc chỉnh sửa video trước
request_id được trả về.Tiếp tục thăm dò cho đến khi trạng thái lồng nhau hoàn tất
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Tham số đường dẫn
Deferred request id returned by the create or edit endpoint.
Phản hồi
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.