cURL
curl --request POST \ --url https://api.siray.ai/v1/video/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "duration": 4, "image": "example_value", "model": "openai/sora-2-pro-i2v-hd", "prompt": "example_value", "size": "1024x1792" } '
{ "code": "success", "data": { "task_id": "<string>" }, "message": "<string>" }
Generate a video using the Sora 2 Pro i2v (1024x1792) model
Bearer authentication using API key
Request payload
Request format for video generation models
Fixed duration
4
8
Model name to use for the request
openai/sora-2-pro-i2v-hd
Fixed size
1024x1792
1792x1024
Successful response
Standard async task creation response
Status code returned by the service
"success"
Response payload containing task details
Show child attributes
Additional information about the request result