Skip to main content
POST
MAGI-2 Reference to Video

Headers

Authorization
string
required

Body

application/json
model
enum<string>
required
Available options:
magi-2-refs
image_urls
string<uri>[]
required

Reference images, up to 30 MB each.

Required array length: 1 - 10 elements
Pattern: ^https://
prompt
string

Optional when references are supplied.

Required string length: 1 - 15000
duration
integer
default:5

Requested output duration in seconds.

Required range: 4 <= x <= 30
resolution
enum<string>
default:1080p

Output resolution. The quality alias is accepted.

Available options:
1080p
ratio
enum<string>
default:16:9

Output aspect ratio. The aspect_ratio alias is accepted.

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

Generate synchronized audio.

seed
integer

Seed for more repeatable results.

Required range: 0 <= x <= 4294967295
custom_callback_url
string<uri>

Public URL that receives task updates.

video_urls
string<uri>[]

MP4 or MOV, 2–30 seconds and up to 200 MB each. Up to 30 seconds total across all video references.

Required array length: 1 - 5 elements
Pattern: ^https://
audio_urls
string<uri>[]

WAV or MP3, 2–30 seconds and up to 15 MB each. Up to 30 seconds total across all audio references.

Required array length: 1 - 5 elements
Pattern: ^https://

Response

Task submitted or application-level error.

code
integer
required
msg
string
required
data
object