cURL
curl --request GET \ --url https://api.mulerun.com/vendors/openai/v1/sora/generation/{task_id} \ --header 'Authorization: Bearer <token>'
{ "task_info": { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "completed", "created_at": "2025-09-21T00:00:00.000Z", "updated_at": "2025-09-21T00:00:00.000Z" }, "videos": [ "https://mulerouter.muleusercontent.com/public/123e4567-e89b-12d3-a456-426614174000/video.mp4" ] }
Retrieve the status and result of a Sora video generation task
status
{ "task_info": { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "completed", "created_at": "2025-09-21T00:00:00Z", "updated_at": "2025-09-21T00:05:30Z" }, "videos": [ "https://mulerouter.muleusercontent.com/public/123e4567-e89b-12d3-a456-426614174000/video.mp4" ] }
{ "task_info": { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "processing", "created_at": "2025-09-21T00:00:00Z", "updated_at": "2025-09-21T00:02:00Z" } }
{ "task_info": { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "failed", "created_at": "2025-09-21T00:00:00Z", "updated_at": "2025-09-21T00:01:30Z", "error": { "code": 3001, "title": "Task Execution Error", "detail": "Video generation failed: Prompt contains restricted content" } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Task completed successfully
Show child attributes
URL of the generated video
[ "https://mulerouter.muleusercontent.com/public/123e4567-e89b-12d3-a456-426614174000/video.mp4"]