Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Use your APIPod API key as a Bearer token in the Authorization header.

Body

application/json
model
string
required

Public APIPod model ID.

Allowed value: "seedance-2.5-i2v"
prompt
string
required

The generation videos prompt. Up to 500 Chinese characters or 1000 English words.

Maximum string length: 1000
image_urls
string[]

First frame image URL; a second URL is used as the last frame constraint. 1 to 2 images are supported.

Required array length: 1 - 2 elements
duration
enum<integer>
default:4

Video duration in seconds, from 4 to 30.

Available options:
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
Required range: 4 <= x <= 30
resolution
enum<string>
default:720p

Generate video resolution.

Available options:
480p,
720p
aspect_ratio
enum<string>
default:adaptive

Aspect ratio of the generated video,When the ratio is configured as adaptive, the model will automatically adapt the aspect ratio according to the generation scenario.

Available options:
adaptive,
16:9,
4:3,
1:1,
3:4,
9:16,
21:9
generate_audio
boolean
default:true

Controls whether the generated video contains audio synchronized with the visuals.

return_last_frame
boolean
default:false

Whether to return the last frame image of the generated video. Using this parameter enables the generation of multiple consecutive videos: taking the last frame of the previous generated video as the first frame of the next video task to quickly generate multiple consecutive videos, and the first item in the returned result is this image.

Response

200 - application/json

Task accepted

Standard response for task submission

code
integer
required
data
Task Submit Data · object
required

Data content for task submission

message
string
required