Video Generation

Generate videos from text prompts (T2V) or images (I2V).

Available Endpoints

Provider
Endpoint
Type
Model
Max Duration

Wan 2.5

/v2/video/wan-25/t2v

T2V

Wan-AI/Wan2.5-T2V

10s

Wan 2.5

/v2/video/wan-25/i2v

I2V

Wan-AI/Wan2.5-I2V

10s

Wan 2.6

/v2/video/wan-26/t2v

T2V

Wan-AI/Wan2.6-T2V

15s

Wan 2.6

/v2/video/wan-26/i2v

I2V

Wan-AI/Wan2.6-I2V

15s

Kling

/v2/video/kling-26/t2v

T2V

KlingTeam/v2.6-T2V

10s

Kling

/v2/video/kling-26/i2v

I2V

KlingTeam/v2.6-I2V

10s

Sora 2

/v2/video/sora-2/t2v

T2V

openai/sora-2-T2V

20s

Sora 2

/v2/video/sora-2/i2v

I2V

openai/sora-2-I2V

20s

Sora 2 Pro

/v2/video/sora-2-pro/t2v

T2V

openai/sora-2-pro-T2V

20s

Sora 2 Pro

/v2/video/sora-2-pro/i2v

I2V

openai/sora-2-pro-I2V

20s


Wan 2.5

T2V

POST /v2/video/wan-25/t2v
Parameter
Type
Default
Description

prompt

string

required

Video description (max 2000 chars)

size

string

1280x720

1280x720, 720x1280, 832x480, 480x832

duration

int

5

5 or 10 seconds

negative_prompt

string

-

What to avoid

audio_url

string

-

Audio to include

prompt_extend

bool

true

AI prompt enhancement

seed

int

-

Random seed

Response: videos (URL array)

I2V

Parameter
Type
Default
Description

prompt

string

required

Video description

first_frame_url

string

required

URL of first frame image

resolution

string

720p

480p, 720p, 1080p

duration

int

5

5 or 10 seconds

negative_prompt

string

-

What to avoid

enable_prompt_expansion

bool

true

AI prompt enhancement

seed

int

-

Random seed

Response: videos (URL array)


Wan 2.6

T2V

Parameter
Type
Default
Description

prompt

string

required

Video description (max 2000 chars)

size

string

1280x720

1280x720, 720x1280, 1920x1080, 1080x1920

duration

int

5

5, 10, or 15 seconds

negative_prompt

string

-

What to avoid

audio_url

string

-

Audio to include

prompt_extend

bool

true

AI prompt enhancement

shot_type

string

-

single or multi

seed

int

-

Random seed

Response: urls (URL array)

I2V

Parameter
Type
Default
Description

prompt

string

required

Video description

first_frame_url

string

required

URL of first frame image

resolution

string

1080P

720P, 1080P

duration

int

5

5, 10, or 15 seconds

negative_prompt

string

-

What to avoid

prompt_extend

bool

true

AI prompt enhancement

shot_type

string

-

single or multi

seed

int

-

Random seed

Response: urls (URL array)


Kling

T2V

Parameter
Type
Default
Description

prompt

string

required

Video description (max 2000 chars)

aspect_ratio

string

16:9

16:9, 9:16, 1:1

duration

int

5

5 or 10 seconds

negative_prompt

string

-

What to avoid

seed

int

-

Random seed

Response: urls (URL array)

I2V

Parameter
Type
Default
Description

prompt

string

required

Video description

image

string

required

Source image URL

image_tail

string

-

Ending frame URL

aspect_ratio

string

16:9

16:9, 9:16, 1:1

duration

int

5

5 or 10 seconds

negative_prompt

string

-

What to avoid

seed

int

-

Random seed

Response: urls (URL array)


Sora 2

T2V

Parameter
Type
Default
Description

prompt

string

required

Video description

size

string

1280x720

Various sizes up to 1280x720

duration

int

5

5, 8, 12, 16, 20 seconds

Response: videos (URL array)

I2V

Parameter
Type
Default
Description

first_frame_url

string

required

Source image URL

prompt

string

-

Optional guidance prompt

duration

int

5

5, 8, 12, 16, 20 seconds

Response: videos (URL array)


Sora 2 Pro

Higher quality version of Sora 2.

T2V

Parameter
Type
Default
Description

prompt

string

required

Video description

size

string

1280x720

Various sizes up to 1792x1024

duration

int

5

5, 8, 12, 16, 20 seconds

Response: videos (URL array)

I2V

Parameter
Type
Default
Description

first_frame_url

string

required

Source image URL

prompt

string

-

Optional guidance prompt

resolution

string

720p

720p, 1080p

duration

int

5

5, 8, 12, 16, 20 seconds

Response: videos (URL array)


Video generation takes 2-20 minutes. Always use "async": true.

Response (202):

Poll: GET /v2/tasks/{task_address}


Notes

  • Processing time: 2-20 minutes depending on resolution and duration

  • Longer videos take proportionally more time

  • Videos returned as downloadable MP4 URLs

  • Credits charged on completion

Last updated