Authorization: Bearer ********************{
"model": "sora-2",
"prompt": "A realistic 1080p video of a surfer riding a wave at sunrise, ocean waves crash gently, golden light on the water, camera follows the surfer from behind, 30 seconds long, calm and peaceful atmosphere",
"duration": 30,
"resolution": "1080p",
"fps": 30,
"style_preset": "cinematic",
"aspect_ratio": "16:9",
"guidance_scale": 8.0,
"response_format": "mp4",
"num_variations": 1
}curl --location --request POST 'v1/videos' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "sora-2",
"prompt": "A realistic 1080p video of a surfer riding a wave at sunrise, ocean waves crash gently, golden light on the water, camera follows the surfer from behind, 30 seconds long, calm and peaceful atmosphere",
"duration": 30,
"resolution": "1080p",
"fps": 30,
"style_preset": "cinematic",
"aspect_ratio": "16:9",
"guidance_scale": 8.0,
"response_format": "mp4",
"num_variations": 1
}'{
"id": "video-8e7b9c2d1a3f4e5d8b7a6c9e8b7d6a5f",
"object": "video.completion",
"created": 1735689600,
"model": "sora-2",
"status": "completed",
"data": [
{
"video_id": "vid-1234567890abcdef",
"url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-xxxx/user-xxxx/video-8e7b9c2d1a3f4e5d8b7a6c9e8b7d6a5f.mp4?se=2026-02-13T08%3A00%3A00Z&sig=xxxx&sp=r&sr=b&sv=2021-08-06",
"expires_at": 1736899200,
"format": "mp4",
"metadata": {
"resolution": "1080p",
"duration": 30.0,
"fps": 30,
"aspect_ratio": "16:9",
"style_preset": "cinematic",
"camera_movement": "tracking",
"seed": 458921763,
"guidance_scale": 8.0
},
"size_bytes": 185423987,
"variation_index": 0
}
],
"usage": {
"prompt_tokens": 128,
"video_tokens": 45600,
"total_tokens": 45728,
"duration_seconds_billed": 30
},
"metadata": {
"prompt": "A realistic 1080p video of a surfer riding a wave at sunrise, ocean waves crash gently, golden light on the water, camera follows the surfer from behind, 30 seconds long, calm and peaceful atmosphere",
"generation_time_seconds": 45.2,
"model_version": "sora-2-202601"
},
"error": null
}