MAGI-2 is a video generation model from Sand AI. On Kie.ai it is available as three endpoints: text to video, image to video from a first frame with an optional last frame, and reference to video with up to 10 images, 5 videos and 5 audio clips. Every endpoint generates 1080p video of 4 to 30 seconds, with dialogue, sound effects and ambience created in the same pass.

Model Type:
Pricing: MAGI-2 Text to Video: 17.6 credits ($0.088) per second of 1080p video, audio included. High-tier top-ups come with bonus credits that lower the effective price by about 10%.
Input

Describe the subjects, action, camera moves and sound; put dialogue in quotes. Up to 15,000 characters

0/15000

Video length in seconds: any whole number from 4 to 30. Price is per second

Aspect ratio of the video

Output resolution. MAGI-2 outputs 1080p

Generate sound with the video (dialogue, effects, ambience, music). Turn off for a silent video; the price is the same

Random seed (0–2147483647). Leave empty for a random seed

Output
output typevideo
Examples

Explore different use cases and parameter configurations

README

Complete guide to using MAGI-2

MAGI-2 API for 1080p Video up to 30 Seconds with Native Audio

Original image
ParameterValues
modelmagi-2/text-to-video, magi-2/image-to-video, magi-2/reference-to-video
promptUp to 15,000 characters; required for text to video and reference to video, optional for image to video
first_frame_url, last_frame_urlImage to video only: first frame required, last frame optional; JPG, PNG or WEBP
reference_image_urlsReference to video: up to 10 images (JPG, PNG, WEBP)
reference_video_urlsReference to video: up to 5 videos (MP4, MOV) of 2 to 30 seconds each, no more than 30 seconds in total
reference_audio_urlsReference to video: up to 5 audio clips (MP3, WAV) of 2 to 30 seconds each, no more than 30 seconds in total
durationWhole seconds from 4 to 30; default 5
aspect_ratioText to video and reference to video: 21:9, 16:9 (default), 4:3, 1:1, 3:4, 9:16; image to video follows the first frame
resolution1080p (default)
generate_audiotrue (default) or false
seedOptional integer from 0 to 2147483647; random when empty
callBackUrlOptional top-level webhook URL that receives the result when the task finishes
FeatureText to VideoImage to VideoReference to Video
Model IDmagi-2/text-to-videomagi-2/image-to-videomagi-2/reference-to-video
Required inputspromptfirst_frame_urlprompt and at least one reference image, video or audio clip
Optional inputsNonelast_frame_url, promptMore references, up to 10 images, 5 videos and 5 audio clips
Aspect ratio21:9, 16:9 (default), 4:3, 1:1, 3:4, 9:16Follows the first frame21:9, 16:9 (default), 4:3, 1:1, 3:4, 9:16
Duration4 to 30 seconds, default 54 to 30 seconds, default 54 to 30 seconds, default 5
Resolution1080p1080p1080p
AudioOn by default, can be turned offOn by default, can be turned offOn by default, can be turned off

MAGI-2 is a video generation model from Sand AI. On Kie.ai it is available as three endpoints, magi-2/text-to-video, magi-2/image-to-video and magi-2/reference-to-video, which generate 1080p video of 4 to 30 seconds with dialogue, sound effects and ambience created in the same pass.

Use text to video when you start from a prompt alone, image to video when you have a first frame and optionally a last frame, and reference to video when characters, products or locations from up to 10 images, 5 videos and 5 audio clips should carry into the new clip.

Any whole number of seconds from 4 to 30, set with duration. The default is 5 seconds, and each request returns a single clip of the length you choose.

MAGI-2 outputs 1080p. Text to video and reference to video offer 21:9, 16:9 (default), 4:3, 1:1, 3:4 and 9:16; image to video follows the aspect ratio of the first frame.

Yes. Spoken dialogue, sound effects and ambience are generated together with the video by default on all three endpoints. Set generate_audio to false for silent clips.

Pass first_frame_url (required) and, if you want the clip to end on a specific image, last_frame_url (optional). Both accept JPG, PNG or WEBP images. The prompt is optional and can describe the motion, camera and sound; the video takes the aspect ratio of the first frame.

magi-2/reference-to-video accepts up to 10 images (JPG, PNG, WEBP), 5 videos (MP4, MOV) and 5 audio clips (MP3, WAV) per request, and needs at least one of them alongside the prompt. Each reference video or audio clip can be 2 to 30 seconds long, with no more than 30 seconds of video and 30 seconds of audio in total.

Create an API key on the Kie.ai API Key Management page, then send a POST request to https://api.kie.ai/api/v1/jobs/createTask with model set to magi-2/text-to-video, magi-2/image-to-video or magi-2/reference-to-video and your parameters under input. The request returns a taskId: poll GET https://api.kie.ai/api/v1/jobs/recordInfo?taskId=... or set callBackUrl to receive the video URL. See the Text to Video, Image to Video and Reference to Video API docs.

MAGI-2 is billed per second of generated video, at the same per-second rate on all three endpoints. Turning audio on or off and adding reference images, videos or audio do not change the rate, and failed tasks are not charged. Current rates are shown on the pricing card on this page.