MAGI-2 Image to video API
Start from your frame, or plan where the shot ends
Send an image and MAGI-2 uses it as the first frame of a 4 to 30 second 1080p video with sound. Add a last frame and it directs the shot from one to the other.
Live playground
Try MAGI-2 Image to video in your browser
Run a real video generation with your imageat account, then preview and download the result without leaving this page.
Output
Example outputFirst frame
Your image is the opening frame, so the subject, framing and look stay exactly as uploaded. The output follows its shape.
Optional last frame
Add firstFrameUrl and lastFrameUrl to set where the shot ends: a reveal, a pose change or a product turn.
Motion from the prompt
Describe what moves, how the camera travels and what we hear. The prompt drives the motion, the frames fix the look.
Quickstart
MAGI-2 image 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 camera pushes in slowly as she turns toward the window and smiles",
"firstFrameUrl": "https://example.com/first.jpg",
"lastFrameUrl": "https://example.com/last.jpg",
"duration": "6s"
}'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. |
| imageUrl | One of | public https URL | The first frame. Use this for a single start image. |
| firstFrameUrl + lastFrameUrl | One of | public https URLs | Start and end frames; MAGI-2 animates the transition between them. |
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 image to video questions
Can I set both a first and a last frame with MAGI-2?
Yes. Send firstFrameUrl and lastFrameUrl and MAGI-2 generates the motion between them. Send only imageUrl to animate from a single start frame.
Which aspect ratio does MAGI-2 image to video use?
It follows the shape of your first frame, so crop the image to the ratio you want before you send it.
How much does the MAGI-2 image 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 image to video
Your existing imageat API key and balance work here.