Skip to main content
POST
Generate video

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:
auto,
21:9,
2:1,
16:9,
4:3,
1:1,
3:4,
9:16
duration
enum<integer>
required

Fixed duration

Available options:
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
image
string
required

Input image for generation, it can be data URL or image URL

model
enum<string>
required

Model name to use for the request

Available options:
black-forest-labs/flux-3-i2v
prompt
string
required

Text prompt for generation

size
enum<string>
required

Size

Available options:
720p,
1080p
audio_enable
boolean

Whether to generate audio along with video

safety_tolerance
integer

Safety tolerance level, higher values allow more permissive content

Required range: 0 <= x <= 4

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