Отримуйте двійкові дані згенерованого відео Sora 2 через GET /v1/videos//content у CometAPI, щоб завантажувати готові результати відео за video_id.
curl --request GET \
--url https://api.cometapi.com/v1/videos/{video_id}/content \
--header 'Authorization: Bearer <token>'"<string>"completed. До цього моменту він повертатиме помилку замість відеофайлу.
status: completedvideo_id з кроку створення або remixСтворіть або remix відео
Перевіряйте завершення
completed.invalid_request_error, і саме такої поведінки слід очікувати, поки рендеринг усе ще триває.Bearer token authentication. Use your CometAPI key.
Completed video id.
Optional content variant such as the main video, thumbnail, or spritesheet when supported by the provider.
Binary video content.
The response is of type file.
curl --request GET \
--url https://api.cometapi.com/v1/videos/{video_id}/content \
--header 'Authorization: Bearer <token>'"<string>"