MAGI-2 API

1080p video generation with synchronized sound from text, frames, or references (4–30s)

Generate 1080p videos from 4 to 30 seconds with native synchronized audio enabled by default. Choose text_to_video, image_to_video (first and optional last frame), or reference_to_video with up to 10 images, 5 videos, and 5 audio clips.

1080p with native sound4–30s integer duration6 explicit aspect ratiosText, image & reference modes
Input
Resolution
1080p
30s
Aspect ratio
Count
The Playground always screens prompts and input images. To disable screening via the API, set nsfw_check to false.
OutputCreator example
Download MP4
0:00 / 0:00
/ Features

MAGI-2 API Features

1080p output across all modes

Every MAGI-2 request renders at 1080p with a single predictable per-second rate of 16 credits/s ($0.080/s).

Synchronized audio included by default

generate_audio defaults to true and produces ambient sound, effects, or speech alongside video at no extra charge; set false for silent output.

Long single-take duration (4–30s)

Request any integer duration from 4 to 30 seconds (default 5s) and pay strictly duration × 16 credits.

Three explicit generation modes

Select text_to_video, image_to_video, or reference_to_video explicitly via input.mode so invalid cross-mode fields are caught upfront.

First and optional last frame control

In image_to_video mode, anchor the opening shot with first_frame_url and optionally guide the ending composition with last_frame_url.

Multimodal omni-reference inputs

In reference_to_video mode, combine up to 10 images, 5 videos (2–30s each, ≤30s total), and 5 audio clips (≤30s total) and target them with @Image1, @Video1, and @Audio1.

Six explicit aspect ratios

Choose 21:9, 16:9 (default), 4:3, 1:1, 3:4, or 9:16 to target cinema screens, desktop players, square feeds, or vertical mobile placements.

Async API with signed webhooks

Submit once and receive a signed webhook when the video is ready—closing the browser never cancels a running task.

/ Use cases

MAGI-2 API Use Cases

Cinematic widescreen storytelling

Generate 21:9 or 16:9 1080p narrative shots up to 30 seconds long with synchronized ambient sound and camera movement.

Vertical short-form ads with sound

Produce 9:16 1080p vertical ad concepts with synchronized sound effects from a single English prompt.

Keyframe-to-keyframe transitions

Supply first_frame_url and last_frame_url in image_to_video mode to animate smooth visual transitions between two storyboard frames.

Product photography animation

Turn a studio hero shot into a 1080p product showcase video with lighting shifts and subtle foley audio.

Multi-reference character scenes

Attach multiple character and setting images in reference_to_video mode and direct scenes using @Image1, @Image2… inside the prompt; review visual consistency across shots.

Audio- and motion-guided scenes

Combine reference video clips and audio tracks in reference_to_video mode to guide pacing, rhythm, and soundscape.

Long-form concept trailers

Draft 15–30 second proof-of-concept pitches at 1080p without stitching together short 5-second clips.

Batch background video pipelines

Trigger MAGI-2 jobs from backend workflows via callback_url so renders complete asynchronously without holding connections open.

/ Examples

MAGI-2 API Examples

Explore 8 authorized showcase examples, including the 30-second vertical creator example preloaded in the workbench above. Edited montages, truncated prompt excerpts, and reverse-engineered prompts are labeled explicitly.

Sunlit street & multi-style launch reel
Edited montage

Sunlit street & multi-style launch reel

Edited launch montage (not a single 4–30s generation) · Reverse-engineered opening segment prompt

In a lively sunlit street, a young adult with short orange hair and a small monkey on their shoulder turns toward the camera, then hurries past market stalls. Use cinematic close-ups and a following camera, with natural street ambience. This reconstructs an opening segment of the longer narrative montage.

306 chars
Running shoe UGC creator ad
Text to video30s · 9:16

Running shoe UGC creator ad

Published original prompt (prompt specifies 30s, 9:16, audio; exact API mode & references unconfirmed)

Create a polished, highly realistic 30-second UGC-style advertisement for ASICS Gel Nimbus running shoes. A young, attractive woman named Maya is the presenter. She should look and sound like a real lifestyle content creator recording a genuine product recommendation, not a professional actress reading a script. Scene 1: Doorway hook (0–6 sec) Maya stands at her apartment doorway, holding her ASICS Gel Nimbus shoes. She looks directly into the camera with an excited but natural expression. Dialogue: “Okay, I think I just found my new favourite running shoes. Look at these!” She brings the teal ASICS Gel Nimbus close to the camera, showing the design. Scene 2: First impressions (6–14 sec) Cut to Maya sitting down and putting on the shoes. Show close-up shots of the teal upper, cushioning, ASICS logo, and sole. Dialogue: “These are the ASICS Gel Nimbus, and first of all, they’re so comfortable. I love how they feel on my feet.” Scene 3: Lifestyle montage (14–23 sec) Maya walks out onto the sidewalk, followed by shots of her jogging through a beautiful green park. Capture natural movement, shoe close-ups, and a few candid moments. Voiceover: “They feel soft, supportive, and honestly, I love how they look too. Perfect for my everyday walks and running sessions.” Scene 4: Final recommendation (23–30 sec) Maya stops on a park pathway, looks into the camera, and smiles. Dialogue: “If you’re looking for a pair that feels as good as it looks, definitely check these out.” End with a premium close-up hero shot of the teal ASICS Gel Nimbus and the ASICS logo. Production requirements: Natural female voice with conversational delivery. Accurate lip synchronization. Authentic UGC filming style mixed with premium commercial shots. Consistent Maya appearance and identical shoes throughout. Teal ASICS Gel Nimbus prominently visible. Realistic outdoor lighting and natural skin textures. Soft upbeat background music mixed below the dialogue. Natural ambient sounds during the outdoor montage. No robotic voice, exaggerated expressions, or artificial-looking movements. Vertical 9:16 format, 30 seconds. Finished ad direction: A genuine creator-style product recommendation with a strong opening hook, natural praise, lifestyle footage, and a clear product reveal.

2299 chars
Brand & e-commerce feature montage
Edited montage

Brand & e-commerce feature montage

Edited commercial montage (not a single 4–30s generation) · Reverse-engineered segment prompt

A young adult skateboarder wearing a light jacket and dark trousers glides through a spacious modern concrete concourse. Track alongside the skateboard at low height, with soft daylight through the glass roof and natural wheel sounds. A smooth continuous shot. This reconstructs the skateboard segment of the promotional montage.

329 chars
Stylized 3D animated short story
Edited short

Stylized 3D animated short story

Multi-shot edited short (not a single 4–30s generation) · Reverse-engineered segment prompt

Stylized 3D animated short scene in warm daylight. On a city sidewalk, a caring rescuer kneels beside an injured pedestrian while passersby pause nearby, then cut to an expressive close-up of a woman with round glasses speaking gently in a bright classroom. Smooth cinematic camera pans, rich Pixar-inspired lighting, and soft ambient city and room audio. This reconstructs a segment of the multi-shot animated short.

417 chars
Timed multi-character room cuts
Reference to video12s · 4:3

Timed multi-character room cuts

Truncated on-frame prompt excerpt (ending unpublished) · Replace placeholders with @Image1… and add your own reference images

SHOT — waiting room / <<<image_1>>> with <<<image_7>>> <<<image_2>>> <<<image_6>>> <<<image_3>>> <<<image_5>>> <<<image_4>>> Style: ARRI large-format cinematic, 8K, razor-sharp, high dynamic range, true-to-life colour with real film density, faint organic film grain. Precise, restrained, nothing accidental. Strictly photoreal, no CGI feel. TIMING (mandatory, absolute — total length 12 seconds): 0.0–3.0s — PHASE 1, the wide high-corner shot. 3 seconds, locked off. 3.0–8.0s — PHASE 2, medium close-up of <<<image_7>>>. 5 seconds, the longest hold in the film, locked off. 8.0–10.0s — PHASE 3, medium close-up of <<<image_2>>>. 2 seconds, locked off. 10.0–12.0s — PHASE 4, medium close-up of <<<image_6>>>. 2 seconds, locked off, holding to the last frame. The three transitions happen INSTANTLY at 3.0s, 8.0s and 10.0s, each lasting only a handful of frames and taken out of the incoming shot's...

900 chars
Three-reference blue-lit stage performance
Reference to video

Three-reference blue-lit stage performance

Presentation clip with reference header · Reverse-engineered prompt — add your own reference images

Combine the full-length black gown costume from @Image1, the performer's face from @Image2, and the stark backlit corridor stage from @Image3 into a moody theatrical performance bathed in deep cobalt-blue light. Alternate between a dramatic silhouetted wide shot down the illuminated runway, an intimate close-up with atmospheric haze, and a low tracking shot following the sweeping hem across tiled floors, accompanied by brooding cinematic sound. This reconstructs the generated performance, not the input-reference header layout.

532 chars
Tokyo night street race & drift
Text to video

Tokyo night street race & drift

Reverse-engineered from observed video · Original prompt & API settings unpublished

Stylized 3D animated Tokyo night street race. Start inside the cabin of a retro orange sports car where a cool driver in dark sunglasses exchanges banter with a young passenger in a white hoodie as neon highway lights streak past the windows. Cut to an aerial tracking shot of the orange car weaving through highway traffic alongside a black rival with purple underglow, then swing low around a wide asphalt overlook as both cars execute a smoky 360-degree drift against the glowing Tokyo skyline. Energetic engine revs, tire screech, and dialogue audio.

554 chars
Night industrial street-dance duet
Text to video30s · 16:9

Night industrial street-dance duet

Reverse-engineered from observed video (public spec: 30s, 16:9; full original prompt unavailable)

Wide locked-off and subtle push-in shot down the center of an empty nighttime industrial city street lit by cool overhead streetlights. Two young women perform a hip-hop street dance duet in contrasting outfits—one in an all-black jacket and cargo trousers, the other in a light blue cropped zip hoodie and cream wide-leg pants—building from alternating call-and-response grooves into tightly synchronized choreography, with crisp rhythmic dance music and subtle outdoor acoustics.

481 chars

MAGI-2 API · Pricing

One flat 1080p per-second rate across text-to-video, image-to-video, and reference-to-video. Synchronized audio, aspect ratio, and reference media do not change the price.

+10%
Top up $1,500+ and get 10% bonus credits.
View top-up options
Version / tierResolutionStandardWaveSpeedfal
All modes (Text / Image / Reference)1080pWith bonus ≈ $0.073 / sRegular $0.080 / s16.0 credits / s$0.08 / s10% more-
/ API

Integrate the MAGI-2 API

The request follows the form. The website uses your session; API clients use your API key. See the docs for parameters, task creation and task queries.

  1. Choose an input

    Select a mode, write a prompt, and attach keyframes or references when needed.

  2. Review the request

    Confirm the duration (4–30s), aspect ratio, audio toggle, and optional callback_url.

  3. Read the result

    Receive the signed webhook via callback_url, or query the task ID for the video URL.

Parameter
Description
modelmagi-2
input1080p video input object validated strictly by mode.
input.modeGeneration mode: text_to_video, image_to_video, or reference_to_video.
input.promptRequired scene description (1–8,000 chars; English recommended).
input.resolutionFixed 1080p output resolution.
input.aspect_ratioOutput aspect ratio: 21:9, 16:9 (default), 4:3, 1:1, 3:4, or 9:16.
input.durationInteger output duration from 4 to 30 seconds (default 5).
input.generate_audioGenerate synchronized audio alongside video (default true).
input.reference_image_urlsUp to 10 reference images for reference_to_video.
{
  "model": "magi-2",
  "input": {
    "nsfw_check": true,
    "output_count": 1,
    "prompt": "Create a polished, highly realistic 30-second UGC-style advertisement for ASICS Gel Nimbus running shoes.\n\nA young, attractive woman named Maya is the presenter. She should look and sound like a real lifestyle content creator recording a genuine product recommendation, not a professional actress reading a script.\n\nScene 1: Doorway hook (0–6 sec)\n\nMaya stands at her apartment doorway, holding her ASICS Gel Nimbus shoes. She looks directly into the camera with an excited but natural expression.\n\nDialogue:\n\n“Okay, I think I just found my new favourite running shoes. Look at these!”\n\nShe brings the teal ASICS Gel Nimbus close to the camera, showing the design.\n\nScene 2: First impressions (6–14 sec)\n\nCut to Maya sitting down and putting on the shoes. Show close-up shots of the teal upper, cushioning, ASICS logo, and sole.\n\nDialogue:\n\n“These are the ASICS Gel Nimbus, and first of all, they’re so comfortable. I love how they feel on my feet.”\n\nScene 3: Lifestyle montage (14–23 sec)\n\nMaya walks out onto the sidewalk, followed by shots of her jogging through a beautiful green park. Capture natural movement, shoe close-ups, and a few candid moments.\n\nVoiceover:\n\n“They feel soft, supportive, and honestly, I love how they look too. Perfect for my everyday walks and running sessions.”\n\nScene 4: Final recommendation (23–30 sec)\n\nMaya stops on a park pathway, looks into the camera, and smiles.\n\nDialogue:\n\n“If you’re looking for a pair that feels as good as it looks, definitely check these out.”\n\nEnd with a premium close-up hero shot of the teal ASICS Gel Nimbus and the ASICS logo.\n\nProduction requirements:\n\nNatural female voice with conversational delivery.\nAccurate lip synchronization.\nAuthentic UGC filming style mixed with premium commercial shots.\nConsistent Maya appearance and identical shoes throughout.\nTeal ASICS Gel Nimbus prominently visible.\nRealistic outdoor lighting and natural skin textures.\nSoft upbeat background music mixed below the dialogue.\nNatural ambient sounds during the outdoor montage.\nNo robotic voice, exaggerated expressions, or artificial-looking movements.\nVertical 9:16 format, 30 seconds.\n\nFinished ad direction: A genuine creator-style product recommendation with a strong opening hook, natural praise, lifestyle footage, and a clear product reveal.",
    "resolution": "1080p",
    "aspect_ratio": "9:16",
    "duration": 30,
    "generate_audio": true,
    "mode": "text_to_video"
  }
}
/ Compare

Compare Genjutsu & MAGI-2 API

Use one API key across video-to-video editing (Genjutsu 1.0 / 1.0 Lite) and 1080p audio-video generation (MAGI-2).

ModelWorkflows & strengthsResolutionDuration / billingStarting rate
Genjutsu 1.0 / Lite APIVideo-to-video motion transfer (1.0) and object replacement (1.0 & 1.0 Lite) using a source video plus reference images.1.0: 480p / 720p / 1080p · Lite: 720p / 1080pSource video ≤30s (replace_object 4–30s)23.4 credits ($0.117) / s
MAGI-2 APICurrent pageText, first/last frame, and multimodal reference-to-video at 1080p with synchronized sound for 4–30 second clips.1080p4–30s integer · audio on by default16.0 credits ($0.080) / s
/ FAQ

MAGI-2 API FAQ

Find answers about pricing, generation results, and API access.

What generation modes does MAGI-2 support?

MAGI-2 requires an explicit input.mode: text_to_video (prompt only, no media), image_to_video (first_frame_url required, last_frame_url optional), or reference_to_video (at least one reference image, video, or audio clip).

What are the reference media limits in reference_to_video mode?

You can attach up to 10 images (reference_image_urls), up to 5 videos (reference_video_urls, each 2–30 seconds and ≤30 seconds combined), and up to 5 audio clips (reference_audio_urls, ≤30 seconds combined). At least one media item is required.

How do I reference uploaded assets inside the prompt?

Use @Image1, @Image2…, @Video1, @Video2…, and @Audio1, @Audio2… matching each array’s 1-based order. Prompts can be up to 8,000 characters, and English prompts are recommended.

How is MAGI-2 priced?

MAGI-2 uses one flat rate of 16 credits/second ($0.080/second) at 1080p across all modes. Total cost equals 16 × duration (4–30 integer seconds). Audio, aspect ratio, and reference media do not add extra charges.

Does turning off generate_audio reduce the price?

No. generate_audio defaults to true and is included in the flat 16 credits/s rate whether enabled or disabled.

Which resolutions and aspect ratios are supported?

Resolution is fixed at 1080p. Supported aspect ratios are 21:9, 16:9 (default), 4:3, 1:1, 3:4, and 9:16. Auto/adaptive aspect ratio is not accepted.

What duration values are accepted?

duration must be an integer from 4 to 30 seconds (default 5). Non-integer values or durations outside 4–30 return HTTP 400.

Can I pass first_frame_url or reference URLs in text_to_video mode?

No. Each mode enforces a strict schema—supplying media fields in text_to_video, or mixing image_to_video and reference_to_video fields, returns HTTP 400.

What happens if a MAGI-2 task fails or never finishes?

Failed tasks or tasks still unfinished after 24 hours are marked failed at 0 credits and all reserved credits are released automatically.

How long are generated videos stored?

Generated videos archived by APIstable remain available for 14 days. Download and archive outputs you need long-term.

Does MAGI-2 support seed, multiple outputs per request, or official fallback?

Seed and official fallback are not available. Set `output_count` from 1 to 4 to get up to 4 independent videos per request; each successful video is billed on its own and failed ones cost 0.

Who makes MAGI-2, and is this the final release or the 114B Preview?

MAGI-2 is developed by Sand.ai. This endpoint accesses the full MAGI-2 release (480B total / ~28B active parameters) remotely via API, rather than the earlier 114B Preview.

Why might a 4-second output video be slightly longer, and what limitations should I test for?

Generated files can include roughly 0.24 seconds of padding, while billing remains strictly on your requested integer duration. Sand.ai notes occasional artifacts in high-speed motion and complex layered audio, so test target scenes before scaling.

CREATE VIDEO

Try MAGI-2 now

Enter a prompt and generate a video in the workbench.