Skip to main content
POST

Headers

Authorization
string
required

Bearer API key, e.g. Bearer sk-....

Example:

"Bearer sk-..."

Body

application/json

MAGI-2 video create body (POST /v1/videos).

prompt
string
required

Text prompt. Chinese and English are supported.

Required string length: 1 - 20000
Example:

"Slow camera push into the reference scene"

model
string

Model name. The example model is the real id and can be used directly: magi-2.

Example:

"magi-2"

mode
enum<string>

Auto-inferred when omitted.

Available options:
i2v,
r2v,
t2v
Example:

"t2v"

resolution
enum<string>
default:1080p

Defaults to 1080p when unrecognized.

Available options:
1080p
Example:

"1080p"

aspect_ratio
enum<string>
default:16:9

Can also be inferred from size.

Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16
Example:

"16:9"

size
string

Optional; used to infer aspect_ratio.

duration
integer
default:5

Field name seconds is also accepted. Range 4–30 seconds.

Required range: 4 <= x <= 30
Example:

5

seconds

Alias of duration. Prefer a string such as "5"; the gateway also accepts a number. Range 4–30.

Pattern: ^(?:[4-9]|[12][0-9]|30)$
Example:

"5"

audio
boolean
default:true

Whether the output includes an audio track.

Example:

true

reference_images
string[]

Reference images, up to 10.

Maximum array length: 10
reference_videos
string[]

Reference videos, up to 5 clips, total duration ≤ 15s.

Maximum array length: 5
reference_audios
string[]

Reference audios, up to 5 clips.

Maximum array length: 5

Response

Returns a task object with id, status, progress, and related fields.

id
string

Task id

object
string
Example:

"video"

model
string
status
string

e.g. queued / in_progress / completed / failed

progress
integer
created_at
integer
seconds
string