Skip to main content
POST
cURL
Combine 1–20 public HTTPS references across image_urls (0–10, <30 MB), video_urls (0–5 MP4, 2–30s each, ≤30s total), and audio_urls (0–5, ≤15 MB, 2–30s each, ≤30s total—audio-only requests are supported). Reference items in order as @image_1, @video_1, and @audio_1. Billing is flat per requested output second; 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-r2v"
prompt
string
required

Required, up to 8000 characters. Reference assets in order as @image_1, @video_1, @audio_1.

Required string length: 1 - 8000
image_urls
string[]

Optional. 0-10 public HTTPS image URLs (<30 MB each). Combined references must be 1-20.

Maximum array length: 10

Public HTTPS image URL.

video_urls
string[]

Optional. 0-5 public HTTPS MP4 video URLs (2-30s each, <=30s total).

Maximum array length: 5

Public HTTPS MP4 video URL.

audio_urls
string[]

Optional. 0-5 public HTTPS audio URLs (<=15 MB, 2-30s each, <=30s total). Audio-only reference is supported.

Maximum array length: 5

Public HTTPS audio URL.

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.

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