MAGI-2 Reference to video API
Images, video and audio references in one request
Mix up to 10 reference images, 5 video clips and 5 audio files. MAGI-2 keeps the faces, products and places, follows the camera move of a clip, and matches a voice or beat, in 4 to 30 seconds of 1080p video with sound.
Live playground
Try MAGI-2 Reference to video in your browser
Run a real video generation with your imageat account, then preview and download the result without leaving this page.
Reference images up to 10
Reference videos up to 5 · optional
Reference audio up to 5 · optional
Mix up to 10 images, 5 videos and 5 audio clips. Name them in the prompt, e.g. “the woman from image 1 follows the camera move of video 1”.
1080p
Output
Example outputImages keep identity
Faces, outfits, products and locations from the reference images stay recognizable across the whole clip.
Clips set the motion
A reference video lends its camera move, choreography or pacing without copying its people.
Audio sets the sound
A voice sample or beat steers the generated audio. Name each input in the prompt: image 1, the reference video, audio 1.
Quickstart
MAGI-2 reference to video request
One POST to /api/v1/videos with model magi2. The response carries a taskId; poll the status endpoint until the MP4 is ready.
curl -X POST "https://imageat.com/api/v1/videos" \
-H "Authorization: Bearer $IMAGEAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi2",
"prompt": "The woman from image 1 walks through a neon night market, matching the camera move of the reference video. Street ambience, no music.",
"referenceImageUrls": ["https://example.com/woman.jpg"],
"referenceVideoUrls": ["https://example.com/camera-move.mp4"],
"duration": "10s",
"aspectRatio": "9:16"
}'Request parameters
| Parameter | Required | Values | Description |
|---|---|---|---|
| model | Yes | magi2 | Selects MAGI-2. |
| prompt | Yes | up to 15,000 characters | Subject, action, camera and sound. |
| duration | No | 4s–30s | Any whole second. Defaults to 5 seconds. Billed per requested second. |
| aspectRatio | No | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Frame shape. Defaults to 16:9. |
| referenceImageUrls | One of | up to 10 public URLs | Characters, products, outfits, style or places to keep. |
| referenceVideoUrls | One of | up to 5 public URLs | Motion and camera references, 2–30s each, 30s combined. |
| referenceAudioUrls | One of | up to 5 public URLs | Voice, music or sound references, 2–30s each, 30s combined. |
Pricing
$0.16 per second, audio included
5-second video
$0.80
or 15 credits in the studio
10-second video
$1.60
or 30 credits in the studio
30-second video
$4.80
or 90 credits in the studio
Same rate in every MAGI-2 mode. Failed generations are not charged.
Polling response
{
"status": "completed",
"url": "https://cdn.imageat.com/generated/video.mp4",
"generationId": "…"
}Production checklist
- Store IMAGEAT_API_KEY only on your server.
- Inputs must be public https URLs (or upload them to your own storage first).
- Persist taskId and generationId before polling.
- Poll every 10–15 seconds, or pass webhook_url.
MAGI-2 reference to video questions
How many references can MAGI-2 take?
Up to 10 images, 5 video clips and 5 audio files in one request. Each clip and audio file can be 2–30 seconds, with at most 30 seconds of reference video and 30 seconds of reference audio in total. At least one reference is required.
Are MAGI-2 references charged?
No. You pay only for the output seconds; reference images, clips and audio are free.
How much does the MAGI-2 reference to video API cost?
$0.16 per output second at 1080p with audio included: $0.80 for 5 seconds, $1.60 for 10 and $4.80 for a 30-second take. Inputs are not charged and failed generations are not billed. In the imageat studio the same run costs 3 credits per second.
How do I get the finished video?
POST /api/v1/videos returns a taskId and generationId. Poll GET /api/v1/videos/status?taskId=… every 10–15 seconds, or pass webhook_url to be called when it finishes. A completed response contains the MP4 URL on cdn.imageat.com. A short 1080p clip usually takes 2–4 minutes.
See every mode on the MAGI-2 API page, or make videos without code in the MAGI-2 video generator.
Build with MAGI-2 reference to video
Your existing imageat API key and balance work here.