Pay as you go. No subscription, no hidden fees.
| Tier | PoYo price |
|---|---|
| 1080p | $0.080/sec 16 credits/sec 5-second video: $0.400 ·10-second video: $0.800 |
Charges are based on the final output.
Sand AI's 480B video model for 30-second 1080p takes with native sound
MAGI-2 API: 30-Second 1080p Video with Synchronized Audio
The MAGI-2 API is a video generation API that runs MAGI-2, the 480B-parameter video model Sand AI released on November 24, 2026, as one REST call on PoYo. Send a text prompt, a first frame with an optional last frame, or up to 10 reference images, 5 reference videos and 5 reference audio clips, and the MAGI-2 API returns a 4–30 second 1080p MP4 at 25 fps with dialogue, sound effects and ambience generated together with the picture.
Write a shot list with timings in a prompt of up to 15,000 characters, pick one of six aspect ratios from 9:16 to 21:9, and keep characters and locations consistent with references. Every output second costs 16 credits ($0.08) in every mode, so a 10-second clip is 160 credits ($0.80).
Available MAGI-2 API Modes on PoYo
MAGI-2 First and Last Frames (magi-2 + image_urls)
MAGI-2 Reference to Video (magi-2 + reference_*_urls)
Key Features of MAGI-2 API
What the MAGI-2 API is built for: long single takes, sound generated with the picture, and references that keep characters, scenes and music on track.
30-Second Takes with Timed Shot Cuts
Ads and short dramas need more than one shot, and stitching short clips breaks the rhythm. MAGI-2 generates up to 30 seconds in one request and follows a script-level timeline, so you can write each shot with its time range in the prompt. In Sand AI's example, a 30-second prompt lists 15 shots with a hard cut every 2 seconds, and the snowboard chase lands each cut on schedule, down to the officer's line "She's too fast."
- Up to 30 seconds per generation
- Shot lists with timings in one prompt
- Prompts of up to 15,000 characters
Synchronized Dialogue, Sound Effects and Ambience
Adding a voice-over, foley and room tone after the fact takes a second tool and rarely matches the lips. MAGI-2 generates audio and video in the same pass: write the spoken line in quotes and the character says it with matching mouth movement, while music, rain and footsteps follow the scene. In this PoYo test, a 5-second prompt for a street saxophonist in a rainy neon-lit alley returned the melody, the rain and his closing line in one MP4. Set generate_audio to false for a video-only file at the same price.
- Dialogue with lip sync from quoted lines
- Music, foley and ambience in one output
- Audio on by default, same price either way
Multi-Image References for Characters and Scenes
A recurring character only works if the face and costume survive every cut. Send up to 10 images in reference_image_urls and the MAGI-2 API keeps them in view across close-ups, low-angle POV shots and wide shots. In Sand AI's "Giant Flower World" example, reference images of one character and three locations (an iris hillside, a pink rose garden and a lily valley) produced a walk through all three, with leaves and petals used as transitions between scenes.
- Up to 10 reference images per task
- Same face and wardrobe across shots
- Several locations in one video
Style Transitions in One Continuous Shot
Music videos and title sequences often move from one look to the next inside a single shot. With five paintings as reference images, Sand AI's example walks along a riverbank in one 30-second continuous take and passes through the styles of The Starry Night, pointillism, Water Lilies, The Great Wave off Kanagawa and Klimt's gold leaf, while the first-person camera keeps moving forward smoothly. The MAGI-2 API accepts the same kind of style references through reference_image_urls.
- Five painting styles in one 30-second take
- Steady camera motion through every change
- Style references as plain images
Character and Music References Together
Reference audio lets a new clip pick up a voice or a melody you already have. The MAGI-2 API takes up to 5 MP3 or WAV clips in reference_audio_urls next to reference images and videos. In this PoYo test, one frame of the saxophonist and 5 seconds of his music from the earlier MAGI-2 clip were sent as references with an 8-second prompt; the result places the same musician on a seaside boardwalk with seagulls, playing along with the referenced music and speaking to the camera at the end.
- Up to 5 reference audio clips
- Mix images, videos and audio in one task
- Same performer in a new setting
Six Aspect Ratios from 9:16 to 21:9
One campaign often needs a vertical cut for social feeds and a wide one for the web or a cinema-style trailer. The MAGI-2 API outputs 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9; in PoYo's tests, 16:9 came back at 1920×1080, 9:16 at 1080×1920 and 21:9 at 2182×950. This 4-second 21:9 clip of a desert rider was generated with generate_audio set to false and a fixed seed, moving from a close-up to a silhouette against the sunset.
- Vertical, square, landscape and ultrawide
- 1080p-class frame size for every ratio
- Optional seed from 0 to 2147483647
Who Can Benefit from MAGI-2 API?
Short Drama and Film Previsualization
Writers and directors can turn a scene script into a 30-second take with timed cuts, spoken lines and ambience through the MAGI-2 API, and keep the same cast across episodes with reference images.
Advertising and Brand Campaigns
Agencies can generate spots with a voice line, music and sound design in one MAGI-2 API request, then render the same concept in 16:9, 9:16 and 1:1 for every placement.
Social Video and UGC
Creators and social teams can produce vertical 1080×1920 clips with a hook, dialogue and a reaction shot, and reuse a host or mascot from reference images to keep a series recognizable.
Music Videos and Performance Clips
Musicians and labels can send a track excerpt as reference audio and a performer image, and use the MAGI-2 API to place the performer in new scenes that move with the music.
AI Video Apps and Platforms
Developers of video editors, story apps and creator tools can add text-to-video, first-and-last-frame and reference-to-video generation through one MAGI-2 API model ID and one per-second price.
Education and Training Content
Course creators and L&D teams can script a presenter who speaks the lesson on camera, set the scene and timing in the prompt, and generate consistent lesson clips with the MAGI-2 API.
How to Use MAGI-2 API on PoYo
Step 1: Register & Create API Key
Sign in to PoYo and create an API key in the dashboard. The same key works for the MAGI-2 API and every other image, video, audio and 3D model on PoYo.
Create API Key →
Step 2: Top Up Credits
Add credits to your account. The MAGI-2 API costs 16 credits ($0.08) per output second in every mode: 80 credits ($0.40) for 5 seconds, 160 credits ($0.80) for 10 seconds and 480 credits ($2.40) for 30 seconds. Failed tasks are refunded automatically.
Add Credits →
Step 3: Call the MAGI-2 API
Send a POST request to https://api.poyo.ai/api/generate/submit, for example: curl -X POST https://api.poyo.ai/api/generate/submit -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"model": "magi-2", "input": {"prompt": "At dusk, a lighthouse keeper climbs a spiral staircase, opens the lamp room door and lights the lamp while waves crash against the rocks below.", "duration": 10, "aspect_ratio": "16:9"}}'. Add image_urls for first and last frames, or reference_image_urls, reference_video_urls and reference_audio_urls for references. In Python, send the same body with requests.post(url, headers=headers, json=payload); in JavaScript, with fetch(url, {method: "POST", headers, body: JSON.stringify(payload)}). Poll GET https://api.poyo.ai/api/generate/status/{task_id} with the returned task_id, or pass a callback_url to receive the MP4 when the task finishes.
View Documentation →
Frequently Asked Questions about MAGI-2 API
What is MAGI-2?
How much does the MAGI-2 API cost on PoYo?
How long can a MAGI-2 video be, and what resolution does it output?
Does MAGI-2 generate dialogue and sound?
How do first and last frames work in the MAGI-2 API?
How many reference images, videos and audio clips can I send?
Which aspect ratios does MAGI-2 support?
How do I control shots and cuts in a MAGI-2 prompt?
How long does a MAGI-2 generation take?
What is the difference between MAGI-2 and MAGI-2 Preview?
Is MAGI-2 open source?
How do I call the MAGI-2 API from Python or JavaScript?
Why Use PoYo for MAGI-2 API Access
One API Key for Every Model
Call the MAGI-2 API with the same request format and API key you use for image, video and audio models on PoYo, and send a generated image straight into MAGI-2 as a first frame or reference.
One Price per Second
Every MAGI-2 API task costs 16 credits per output second, whatever the mode, references or audio setting. The estimate is shown before you submit, and failed tasks are refunded automatically.
Playground with Video Preview
Try prompts, frames and references in the Playground, play the result with its sound, download the MP4, then copy the JSON request into your code.
Developer-Friendly Integration
Use the documented MAGI-2 API fields, asynchronous task polling and callback URLs, so 30-second generations run in the background of your application.







