Fetch generated Sora 2 video binary data via GET /v1/videos//content in CometAPI to download completed video outputs by video_id.
curl --request GET \
--url https://api.cometapi.com/v1/videos/{video_id}/content \
--header 'Authorization: Bearer <token>'"<string>"completed. Until then, it returns an error instead of a video file.
status: completedvideo_id from the create or remix stepCreate or remix the video
Poll for completion
completed.invalid_request_error JSON response, which is the behavior you should expect while a render is still running.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>"