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

MAGI-2 Text to video API

Write the shot, get 1080p video with sound

Send a prompt and MAGI-2 renders 4 to 30 seconds of 1080p video with dialogue, effects and ambience generated in the same pass. Pick 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9.

Made with MAGI-2 Text to video API
4–30s
any whole second
1080p
with audio
6
aspect ratios
$0.16/s
API price

Live playground

Try MAGI-2 Text 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 Text to video
Generation mode
Resolution

1080p

Loading…
Estimated cost: 15 credits3 credits / second

Output

Example output

Describe the take

Write the action in order, the camera move, and the sounds. Put spoken lines in quotes so the audio matches the mouth.

One continuous shot

Up to 30 seconds render as one take, so the same people and place carry through without stitched cuts.

Sound included

Dialogue, effects and ambience come out of the same run. Write 'no music' if you will add your own track.

Quickstart

MAGI-2 text 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 · text 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": "Aerial shot: emperor penguins cross the ice at sunrise, wind and calls on the soundtrack",
    "duration": "10s",
    "aspectRatio": "16:9"
  }'

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.

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 text to video questions

What does the MAGI-2 text to video API return?

A 1080p MP4 of 4 to 30 seconds with synchronized audio, in the aspect ratio you set (16:9 by default).

How long can a MAGI-2 prompt be?

Up to 15,000 characters. Long, ordered descriptions work well on 20–30 second clips: give each beat its own sentence.

How much does the MAGI-2 text 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 text to video

Your existing imageat API key and balance work here.