
Verified technical specifications
Every parameter below is verified directly against Sand.ai’s MAGI-2 documentation and live Atlas Cloud OpenAPI definitions as of 2026-12-02. Wholesale API baseline is $0.08/s with native audio and full reference slots included.
| Specification | Verified Value | Engineering Note |
|---|---|---|
| Atlas Cloud Model ID | sand-ai/magi-2/image-to-video | Dedicated keyframe-conditioned endpoint on MAGI-2 Flagship 480B. |
| Opening Frame (image) | Required — HTTPS URL or Base64 data URI | Supports JPEG, PNG, and WebP. Output aspect ratio locks strictly to this image. |
| Closing Frame (last_image) | Optional — HTTPS URL or Base64 data URI | Must match the exact aspect ratio of the opening frame to prevent warping. |
| aspect_ratio Parameter | Not accepted on I2V | Pre-crop your start keyframe to 16:9, 9:16, 21:9, 4:3, 3:4, or 1:1 before upload. |
| Duration & Billing | 4–30s integer steps · 10 cr/s ($0.08/s API) | Adding last_image incurs zero extra credit multiplier. |
| Audio Conditioning | Prompt-driven dialogue, foley & ambience | For voice cloning via audio clip uploads, switch to Reference-to-Video (Omni-Reference). |
Live API parameter schema (sand-ai/magi-2/image-to-video)
| Field | Type | Required | Constraints & Behavior |
|---|---|---|---|
| model | string | Required | Literal "sand-ai/magi-2/image-to-video" Canonical Atlas Cloud model identifier for flagship MAGI-2 I2V. |
| image | string | Required | Public HTTPS image URL or Base64 data URI (JPEG/PNG/WebP) Opening keyframe. Output aspect ratio automatically follows this image. |
| last_image | string | Optional | Public HTTPS image URL or Base64 data URI matching start aspect ratio Optional closing keyframe for guided start-to-end camera and subject transitions. |
| prompt | string | Required | 1–15,000 characters Motion, camera choreography, dialogue, foley, and lighting progression between keyframes. |
| duration | integer | Optional (5) | Integer 4–30 (1-second steps) Requested clip duration in seconds. Billed per integer second. |
Why I2V inherits your start image geometry (and how to prepare plates)
Unlike Text-to-Video and Reference-to-Video, the live `sand-ai/magi-2/image-to-video` schema omits the `aspect_ratio` parameter completely. MAGI-2 reads the native pixel geometry of your opening `image` plate and maps it onto its corresponding 1080p-class latent grid. This eliminates accidental crop shifts on typography-heavy product packshots, architectural renders, or storyboard frames.
Before uploading to MagiAI Studio, always crop both `image` and optional `last_image` to identical target dimensions—for example 1920x1080 for desktop hero spots or 1080x1920 for vertical paid social—using clean lossless PNG or high-quality WebP. Avoid uploading screenshots containing phone status bars, black pillarbox bars, or watermarks, because MAGI-2 will faithfully treat those borders as part of the physical world and animate around them.
Directing start-to-end transitions with last_image
Supplying `last_image` transforms MAGI-2 from an open-ended animator into a precise bridge between two art-directed compositions. Commercial directors use first/last framing to move cleanly from an unlit matte-black product silhouette into a backlit studio hero pour, or to transition from an exterior doorway plate into an interior character reveal without losing geometry.
Keep the spatial gap between your first and last frame physically believable for the clip duration you request. A 180-degree camera orbit around a tabletop espresso cup fits naturally into 6–8 seconds; asking the model to teleport between two unrelated rooms in 4 seconds causes rubbery morphing rather than an intentional cut. When you need a hard cut across multiple distinct scenes, either chain separate I2V clips in your NLE or script multi-shot beats in Reference-to-Video.
- Match focal length and horizon line between `image` and `last_image` so camera interpolation glides like a real motion-control rig.
- Describe the intermediate physical physics in your prompt—how liquid pours, where steam drifts, when fabric settles—rather than merely describing the two static endpoints.
- For seamless web loops, set `last_image` identical to `image` and prompt a slow continuous orbit or subtle atmospheric cycle (steam, rain, flickering practical tungsten).
When to use Image-to-Video vs. Omni-Reference
Use Image-to-Video whenever you already have the exact opening frame (and optionally the exact closing frame) designed in Flux, Midjourney, Blender, or on-set photography and want pixel-faithful motion directly out of frame zero. It requires minimal setup and keeps framing razor-locked from the very first 1/25th of a second.
Switch to Omni-Reference (`reference-to-video`) when you need multi-shot cuts inside a single 15–30 second take, want to inject voice timbre via `@audio_1`, need camera motion transfer via `@video_1`, or must combine separate character, wardrobe, and environment plates that have never appeared together in one composite still.
Recommended studio workflow
Follow this four-step sequence to minimize retake waste and verify audio-visual continuity before spending credits on 15–30 second masters.
- STAGE 01Exact Ratio Lock
Pre-crop opening plate to clean target ratio
Export your start frame in clean JPEG, PNG, or WebP at exact 16:9, 9:16, 21:9, 4:3, 3:4, or 1:1 proportions with zero letterbox bars.
- STAGE 02Start -> End
Optionally attach matching last_image
Add a second keyframe of identical dimensions and compatible lighting when choreographing camera reveals, pours, or seamless loops.
- STAGE 03Motion + Foley
Direct motion physics & dry foley
Focus the prompt on camera path, subject movement speed, tactile surface sound effects, and explicit "no music" instead of re-describing static pixels already visible in the still.
- STAGE 0440–100 cr
Audition 4–6s before long transitions
Most I2V keyframe moves peak in realism between 4 and 10 seconds (40–100 credits). Test pacing short before stretching into longer beats.
Production prompt syntax & live Atlas JSON
Inspect a verified MAGI-2 director brief for Botanical Serum Tabletop Reveal (6s First/Last Frame) and launch it directly into MagiAI Studio with pre-configured duration, aspect ratio, and audio switches.
Controlled 100mm macro motion-control push-in gliding smoothly from the wide dark slate establishing still into the tight hero condensation close-up. A single bright droplet slowly detaches and slides cleanly down the frosted amber glass shoulder while warm tungsten side light rakes across wet volcanic stone. Audio: subtle studio room air, soft resonant water droplet glide against glass, crisp stillness, no music.
{
"endpoint": "https://api.atlascloud.ai/api/v1/model/generateVideo",
"method": "POST",
"body": {
"model": "sand-ai/magi-2/image-to-video",
"image": "https://assets.magiai.ai/examples/espresso-start.webp",
"last_image": "https://assets.magiai.ai/examples/espresso-pour-end.webp",
"prompt": "Macro 100mm locked push-in as tiger-striped espresso crema flows smoothly from a naked portafilter into a preheated stoneware demitasse. Steam rises against a dark slate background. Audio: pump hum, steady espresso drip, subtle ceramic resonance, no music.",
"duration": 6
}
}Common pitfalls & verified fixes
| Observed Symptom | Root Cause | Verified Fix |
|---|---|---|
| API rejects request or squashes closing frame during transition. | Uploading a 16:9 `image` paired with a 4:3 or 9:16 `last_image`, or supplying an unsupported HEIC/AVIF file. | Normalize both keyframes to identical pixel dimensions in PNG, JPEG, or WebP prior to upload. |
| Start frame drifts into generic cinematic camera shake instead of staying locked. | Prompt omitted explicit camera stabilization terms ("locked tripod", "smooth motorized slider"). | Lead the prompt with exact camera rigging language such as "locked 100mm macro tripod" or "slow vibration-free slider push-in". |
| Small label typography blurs during rapid orbital pans. | Fast 25fps lateral motion introduces motion blur across thin 8pt serif bottle copy. | Favor slow axial push-ins or gentle 15-degree arcs so packaging text stays perpendicular to the focal plane. |
Honest limitations & engineering trade-offs
MagiAI Studio documents where MAGI-2 shines and where real constraints require workflow planning so production teams never hit surprises mid-deadline.
Single-keyframe endpoint does not accept reference audio files
I2V synthesizes sound strictly from text descriptions and visual cues—no `@audio_1` voice cloning.
Mitigation: Use `reference-to-video` with your start still in `@image_1` and voice sample in `@audio_1` whenever exact voice timbre is required.
Extreme 120fps slow motion softens at 25fps native rate
Native 25fps temporal sampling looks sharpest at real-time or mild half-speed motion.
Mitigation: Direct crisp real-time macro motion rather than ultra-slow-motion splash explosions.