MAGI-2 API
MAGI-2 API costs $0.0809 / sec on MartLLM (as of November 30, 2026), 8.1% below the official $0.088. Make videos with MAGI-2 through MartLLM.
Show more
Made by magi. MartLLM does not run this model. Here, sellers serve it through their own provider accounts.
MAGI-2 pricing
| Official price | % off list | Price |
|---|---|---|
| $0.088 / sec | 8.1% | $0.0809 / sec |
Request
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $MARTLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sand-ai/magi-2",
"prompt": "A traveler in a long coat walks into a neon-lit train station at night, slow tracking shot from behind, rain on the glass roof, reflections on the wet floor, cinematic lighting, the shot ends on the departure board",
"resolution": "1080p",
"duration_seconds": 5
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Set MARTLLM_API_KEY to your key. Ask /v1/video/generations/<job id> every 5 seconds until status is "succeeded", then download the file with your key. A job that fails says why and costs nothing. Full API guide
Options
- Tasks
- Text to video, Image to video, Reference pictures
- Resolutions
- 1080p
- Lengths
- 4 s, 5 s, 6 s, 7 s, 8 s, 9 s, 10 s, 11 s, 12 s, 13 s, 14 s, 15 s, 16 s, 17 s, 18 s, 19 s, 20 s, 21 s, 22 s, 23 s, 24 s, 25 s, 26 s, 27 s, 28 s, 29 s, 30 s
- Shapes
- 16:9, 9:16, 1:1, 4:3, 3:4, 21:9
- Sound
- Supported
- Input pictures
- Up to 2
- Billing unit
- per second of video
- Model id
sand-ai/magi-2
Try MAGI-2
Settings
Start picture (optional)
About $0.404 Before it starts you see the most it can cost. If it fails, you pay nothing.
What the MAGI-2 API is good at
- Clips up to 30 seconds long in one request.
- Sound made with the video, in the same request.
- An exact first frame from your picture.
- Up to 2 reference pictures for characters, products or places.
- Shapes: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9.
Examples to start from
01
A cinematic shot
A traveler in a long coat walks into a neon-lit train station at night, slow tracking shot from behind, rain on the glass roof, reflections on the wet floor, cinematic lighting, the shot ends on the departure board
Prompt only · 16:9 · 8 s
02
City timelapse
Locked-off timelapse of a city skyline from golden hour to blue hour, clouds drifting, windows lighting up one by one, no camera movement, no warped buildings
Prompt only · 16:9 · 6 s
03
Bring a photo to life
Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged
With your picture · 5 s
MAGI-2 API parameters
| Parameter | Type | What it does |
|---|---|---|
| model | sand-ai/magi-2 | Required |
| prompt | string | Required. What to make. |
| image_url | string | Optional. The first frame: an https:// link or a data: URI. |
| input_images | array<string>, Up to 2 | Optional. Several pictures (https:// links or data: URIs). |
| resolution | 1080p | Optional |
| duration_seconds | 4 to 30 | Optional. Length in seconds. Left out: the model's shortest. |
| aspect_ratio | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Optional. Shape of the video. |
| audio | boolean | Optional. Add a sound track. |
Read from GET https://api.martllm.com/v1/models/sand-ai/magi-2: the same rules the API checks every request against.
MAGI-2 models compared
| Model | Model id | From, a second | Up to | Longest |
|---|---|---|---|---|
| MAGI-2 | sand-ai/magi-2 | $0.0809 | 1080p | 30 s |
| MAGI-2 Reference to Video | sand-ai/magi-2-reference-to-video | $0.0809 | 1080p | 30 s |
MAGI-2 API FAQ
How much does MAGI-2 cost per second?
On November 30, 2026, MAGI-2 costs from $0.0809 per second of video through MartLLM, 8.1% below its list price of $0.088 per second. The rate rises with resolution and with sound, and the reply to a request states the most it can cost. A video that fails costs nothing, and MartLLM adds no fee.
How do I make a video with MAGI-2?
Send a POST to https://api.martllm.com/v1/video/generations with your MartLLM key, model "sand-ai/magi-2" and a prompt. You get a job id back; ask https://api.martllm.com/v1/video/generations/<job id> until it says "succeeded", then download it from https://api.martllm.com/v1/media/artifacts/<job id>/0.
Are there other fees?
MartLLM adds no fee to model prices. A card fee of 5.5% + $0.50 is added when you buy credit, and a request that fails is not billed.
Guides
Compare with similar models
Embed this price
Show these prices on your own site. The table reads the current prices from MartLLM, so it stays up to date.
Script: the table sets its own height
<script async src="https://martllm.com/embed.js" data-models="sand-ai/magi-2"></script>Plain iframe, for sites that allow no scripts
<iframe src="https://martllm.com/embed/prices?models=sand-ai/magi-2" title="AI model API prices" width="100%" height="127" loading="lazy" style="border:0;max-width:720px"></iframe>Price badge for a README (Markdown)
[](https://martllm.com/models/sand-ai/magi-2?utm_source=embed&utm_medium=referral&utm_campaign=price-badge)Every option is in the embed docs.