Skip to main content
POST
cURL
Pass 1–2 public HTTPS image URLs in image_urls (first_frame required, optional last_frame, <30 MB, ≤16 MP, 16–10,000 px) and cite them in prompt as @first_frame and @last_frame. Always set aspect_ratio explicitly to match your first frame—MAGI-2 defaults to 16:9 and does not auto-adapt. Typical generation time is 13–20 minutes.

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: "magi-2-i2v"
prompt
string
required

Required, up to 8000 characters. Reference frames as @first_frame and @last_frame.

Required string length: 1 - 8000
image_urls
string[]
required

Required. 1-2 public HTTPS image URLs (first frame required, optional second image as last frame).

Required array length: 1 - 2 elements

Public HTTPS image URL (<30 MB, <=16 MP, 16-10000 px).

duration
integer
default:5

Output video duration in seconds (4-30, default 5).

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

Output resolution. MAGI-2 supports 1080p only.

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

Output aspect ratio. Does not auto-follow first frame; set explicitly to match your input image.

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

Generate synchronized native audio alongside the video.

callback_url
string

Optional webhook URL to receive task completion notifications.

Response

200 - application/json

Task accepted

code
integer
required
data
object
required
message
string
required