ModelsVideo generation · API · Reference to video
Sand AI · magi2

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.

Made with MAGI-2 Reference to video API
4–30s
any whole second
1080p
with audio
20
references per request
$0.16/s
API price

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.

imageat playground—MAGI-2 Reference to video
Generation mode

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”.

Resolution

1080p

Loading…
Estimated cost: 15 credits3 credits / second

Output

Example output

Images 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 · reference to video
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

ParameterRequiredValuesDescription
modelYesmagi2Selects MAGI-2.
promptYesup to 15,000 charactersSubject, action, camera and sound.
durationNo4s–30sAny whole second. Defaults to 5 seconds. Billed per requested second.
aspectRatioNo16:9, 9:16, 1:1, 4:3, 3:4, 21:9Frame shape. Defaults to 16:9.
referenceImageUrlsOne ofup to 10 public URLsCharacters, products, outfits, style or places to keep.
referenceVideoUrlsOne ofup to 5 public URLsMotion and camera references, 2–30s each, 30s combined.
referenceAudioUrlsOne ofup to 5 public URLsVoice, 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.
Read full video API docs

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.

Get started

Build with MAGI-2 reference to video

Your existing imageat API key and balance work here.