Skip to main content
POST
/
v1
/
video
/
generations
Generate video
curl --request POST \
  --url https://api.siray.ai/v1/video/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "aspect_ratio": "adaptive",
  "audio_enable": false,
  "audios": [
    "example_value"
  ],
  "duration": 4,
  "images": [
    "example_value"
  ],
  "model": "bytedance/seedance-2.0-ref2v-spicy",
  "prompt": "example_value",
  "seed": -1,
  "size": "480p",
  "videos": [
    "example_value"
  ]
}
'
{
  "code": "success",
  "data": {
    "task_id": "<string>"
  },
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.siray.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication using API key

Body

application/json

Request payload

Request format for video generation models

aspect_ratio
enum<string>
required

Aspect ratio

Available options:
adaptive,
16:9,
4:3,
1:1,
3:4,
9:16,
21:9
duration
enum<integer>
required

Fixed duration

Available options:
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
images
string[]
required

Array of input images, which can be data URL or image URL

Required array length: 1 - 9 elements
model
enum<string>
required

Model name to use for the request

Available options:
bytedance/seedance-2.0-ref2v-spicy
prompt
string
required

Text prompt for generation

size
enum<string>
required

Size

Available options:
480p,
720p,
1080p
audio_enable
boolean

Whether to generate audio along with video

audios
string[]

Array of input audio URLs

Maximum array length: 3
seed
integer

Random seed for generation

Required range: -1 <= x <= 9999999999
videos
string[]

Array of input video URLs

Maximum array length: 3

Response

200 - application/json

Successful response

Standard async task creation response

code
string
required

Status code returned by the service

Example:

"success"

data
object
required

Response payload containing task details

message
string
required

Additional information about the request result