CometAPI で GET /v1/videos//content を使用して生成された Sora 2 動画のバイナリデータを取得し、video_id によって完成した動画出力をダウンロードします。
curl --request GET \
--url https://api.cometapi.com/v1/videos/{video_id}/content \
--header 'Authorization: Bearer <token>'"<string>"completed に達した後に完成した Sora の出力をダウンロードするために使用します。それまでは、動画ファイルではなくエラーが返されます。
status: completed を返すまで待機しますvideo_id を渡します動画を作成またはリミックス
完了までポーリング
completed に到達するまで Retrieve Video を使用します。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>"