cURL
curl --request POST \ --url https://api.siray.ai/v1/video/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "duration": 5, "image": "example_value", "model": "alibaba/wan-2.6-i2v", "prompt": "example_value" } '
{ "code": "success", "data": { "task_id": "<string>" }, "message": "<string>" }
Generate a video using the Wan 2.6 i2v model
Bearer authentication using API key
Request payload
Request format for video generation models
Fixed duration
5
10
15
Input image for generation, it can be data URL or image URL
Model name to use for the request
alibaba/wan-2.6-i2v
Text prompt for generation
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