cURL
curl --request POST \ --url https://api.unifically.com/sora-2/generate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "<string>", "duration": 123, "aspect_ratio": "<string>", "image_url": "<string>" } '
{ "code": 200, "data": { "status": "pending", "task_id": "01k76z3k5yfq9rd4mkr2bz7716" } }
Generate videos with OpenAI’s Sora 2 model
curl --location 'https://api.unifically.com/sora-2/generate' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --data '{ "prompt": "dancing robot", "aspect_ratio": "16:9", "image_url": "https://example.com/image.jpg", "duration": 15 }'
10
15
25
"16:9"
"9:16"
"https://example.com/reference.jpg"
pending
processing
completed
failed
task_id