Describe the subjects, action, camera moves and sound; put dialogue in quotes. Up to 15,000 characters
0/15000Video 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
Explore different use cases and parameter configurations
Click to upload or drag and drop images. JPG / PNG / WEBP, up to 30 MB. The end frame is optional
Images: JPEG/JPG/PNG/WebP, Max 30MB
Optional: describe the motion, camera and sound. Leave empty to animate the frame on its own. Up to 15,000 characters
0/15000Video length in seconds: any whole number from 4 to 30. Price is per second
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
Explore different use cases and parameter configurations
Describe the subjects, action, camera moves and sound; put dialogue in quotes. Up to 15,000 characters
0/15000Click to upload or drag and drop
Supported formats: JPEG, PNG, WEBP Maximum file size: 30MB; Maximum files: 10
Reference images: up to 10 (JPG / PNG / WEBP, up to 30 MB each), kept in upload order. Provide at least one image, video or audio reference
Click to upload or drag and drop
Supported formats: MP4, QUICKTIME Maximum file size: 200MB; Maximum files: 5
Reference videos: up to 5 (MP4 / MOV, up to 200 MB each), each 2–30 s and 30 s in total
Click to upload or drag and drop
Supported formats: MPEG, WAV, X-WAV Maximum file size: 15MB; Maximum files: 5
Reference audio: up to 5 clips (MP3 / WAV, up to 15 MB each), each 2–30 s and 30 s in total
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
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
Generate 1080p clips of 4 to 30 seconds from a text prompt, a first frame with an optional last frame, or up to 10 reference images, 5 videos and 5 audio clips, with dialogue, sound effects and ambience generated together with the picture.

Key Capabilities of MAGI-2
MAGI-2 covers text to video, image to video and reference to video as three endpoints with the same duration, resolution, audio and seed settings.
Video and Synchronized Audio in One Pass
Every MAGI-2 endpoint generates sound together with the picture: spoken dialogue, sound effects and ambience arrive in the same 1080p clip, with no separate voiceover or sound pass. Put spoken lines in quotation marks and add a Sound: line describing what should be heard. Audio is on by default; set generate_audio to false when you only need silent footage.
Any Length from 4 to 30 Seconds
Set duration to any whole number of seconds from 4 to 30, with 5 seconds as the default. Each request returns one clip of that length, so a full 30-second scene and its soundtrack come from a single request.
Shot-by-Shot Prompts for Multi-Shot Scenes
Write the scene as numbered shots, such as Shot 1:, Shot 2: and Shot 3:, and describe the framing, action and sound of each one. A single MAGI-2 clip can hold several cuts and camera changes, which suits dialogue scenes, product reveals and short story beats. Repeat key appearance details in every shot so the subject stays recognizable across cuts.
First Frame and Optional Last Frame
magi-2/image-to-video starts from your first_frame_url image and can end on a last_frame_url image, which makes it easy to connect one shot to the next. The video takes the aspect ratio of the first frame, and the prompt is optional: describe the motion, camera and sound, or leave it empty to animate the frame on its own. Frames can be JPG, PNG or WEBP images.
Reference to Video: Up to 10 Images, 5 Videos and 5 Audio Clips
magi-2/reference-to-video takes a prompt plus at least one reference: up to 10 images, 5 video clips and 5 audio clips in one request. Use references to carry characters, products, wardrobe and locations into a new shot, and describe each one in the prompt by what it shows, such as "the robot character" or "the canvas tote bag"; a reference audio clip can serve as the background music. Each reference video or audio clip runs 2 to 30 seconds, with no more than 30 seconds of video and 30 seconds of audio in total.
Six Aspect Ratios at 1080p, with Seeds
Text to video and reference to video offer 21:9, 16:9 (default), 4:3, 1:1, 3:4 and 9:16, from cinematic widescreen to vertical feeds; image to video follows the shape of the first frame. Every clip is 1080p. Pass a seed from 0 to 2147483647 to fix the random seed, or leave it empty for a random one.
MAGI-2 API Parameters
Fields under input in a POST /api/v1/jobs/createTask request. Each endpoint accepts the inputs listed for it; duration, resolution, generate_audio and seed work on all three.
| Parameter | Values |
|---|---|
| model | magi-2/text-to-video, magi-2/image-to-video, magi-2/reference-to-video |
| prompt | Up to 15,000 characters; required for text to video and reference to video, optional for image to video |
| first_frame_url, last_frame_url | Image to video only: first frame required, last frame optional; JPG, PNG or WEBP |
| reference_image_urls | Reference to video: up to 10 images (JPG, PNG, WEBP) |
| reference_video_urls | Reference to video: up to 5 videos (MP4, MOV) of 2 to 30 seconds each, no more than 30 seconds in total |
| reference_audio_urls | Reference to video: up to 5 audio clips (MP3, WAV) of 2 to 30 seconds each, no more than 30 seconds in total |
| duration | Whole seconds from 4 to 30; default 5 |
| aspect_ratio | Text 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 |
| resolution | 1080p (default) |
| generate_audio | true (default) or false |
| seed | Optional integer from 0 to 2147483647; random when empty |
| callBackUrl | Optional top-level webhook URL that receives the result when the task finishes |
MAGI-2 Endpoints at a Glance
All three endpoints output 1080p video of 4 to 30 seconds with optional audio; they differ in the inputs you provide.
| Feature | Text to Video | Image to Video | Reference to Video |
|---|---|---|---|
| Model ID | magi-2/text-to-video | magi-2/image-to-video | magi-2/reference-to-video |
| Required inputs | prompt | first_frame_url | prompt and at least one reference image, video or audio clip |
| Optional inputs | None | last_frame_url, prompt | More references, up to 10 images, 5 videos and 5 audio clips |
| Aspect ratio | 21:9, 16:9 (default), 4:3, 1:1, 3:4, 9:16 | Follows the first frame | 21:9, 16:9 (default), 4:3, 1:1, 3:4, 9:16 |
| Duration | 4 to 30 seconds, default 5 | 4 to 30 seconds, default 5 | 4 to 30 seconds, default 5 |
| Resolution | 1080p | 1080p | 1080p |
| Audio | On by default, can be turned off | On by default, can be turned off | On by default, can be turned off |
How to Prompt MAGI-2
A four-step workflow from choosing an endpoint to a finished 1080p clip.
Step 1: Pick the Endpoint for Your Inputs
Step 2: Describe the Action, Camera and Sound
Step 3: Plan Longer Clips Shot by Shot
Step 4: Set Duration, Ratio, Audio and Seed
What You Can Build with MAGI-2
Typical uses for 1080p video with sound, up to 30 seconds per clip.
Short Dramas and Dialogue Scenes
Write a multi-shot scene with quoted dialogue and get a 1080p clip of up to 30 seconds with voices, effects and ambience already in place.
Product Videos from a Single Image
Start from a packshot as the first frame, add an ending frame if you need one, and turn it into an ad shot with motion, camera work and sound.
Series Built on the Same Characters and Products
Reuse the same character, product and location references across requests to build a campaign or an episodic series around them.
Vertical and Widescreen Social Cuts
Generate 9:16 clips for vertical feeds, 1:1 for grids and 21:9 for cinematic banners, each with its own soundtrack.
MAGI-2 on Kie.ai
Quick Start on Kie.ai
Try MAGI-2 in the playground on this page, then send a POST request to https://api.kie.ai/api/v1/jobs/createTask with an Authorization: Bearer YOUR_API_KEY header and a body such as {"model":"magi-2/text-to-video","input":{"prompt":"...","duration":5,"aspect_ratio":"16:9"}}. Poll the task status or set callBackUrl to receive the video URL.
Video Models in the Kie.ai Market
Browse more text-to-video models and image-to-video models in the Kie.ai market.
One Key Across the Kie.ai Market
All models in the Kie.ai market use the same authentication method: an Authorization: Bearer YOUR_API_KEY header with the key from your Kie.ai API Key Management page.
Pay As You Go
Kie.ai is pay-as-you-go with no subscription: credits never expire, and failed tasks are not charged.