Sand AImagi-2
Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from up to 10 reference images, 5 reference videos and 5 audio clips
$0.1/ secondNo charge for failed generations
- 4–30 second clips
- 1080p
- Native sound
- Up to 10 images, 5 videos, 5 audios
- Modality
- Video
- Endpoint
- /v1/videos/generations
- Model ID
- magi-2
- Provider
- Sand AI
MAGI-2 API overview
Documented endpoint
Video requests go to /v1/videos/generations. The parameter table below lists the fields this surface documents.
Model provider
MAGI-2 is published by Sand AI and is called through the API model ID magi-2.
Output and limits
4–30 seconds in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; up to 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 2–30 seconds each and 30 seconds in all per kind; prompt required, up to 15,000 characters; a soundtrack is generated unless generate_audio is false; billed by the seconds of video returned, and reference images, videos and audio add nothing
MAGI-2 API pricing
| Item | ArgoLink rate |
|---|---|
| 1080p | $0.1 / second |
4–30 seconds in whole seconds; 1080p only; one output per request; 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; up to 10 reference images, 5 reference videos and 5 audio clips, 20 in all, audio alone accepted; reference videos and audio clips run 2–30 seconds each and 30 seconds in all per kind; prompt required, up to 15,000 characters; a soundtrack is generated unless generate_audio is false; billed by the seconds of video returned, and reference images, videos and audio add nothing
MAGI-2 API reference
Quick start
Create an API key in the console, then use the Base URL, endpoint, and request body shown on this page.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise"
}'
curl https://argolink.io/v1/videos/$REQUEST_ID \
-H "Authorization: Bearer $ARGOLINK_API_KEY"
curl -L https://argolink.io/v1/videos/$REQUEST_ID/content \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-o output.mp4
import os
import time
import requests
headers = {"Authorization": f"Bearer {os.environ['ARGOLINK_API_KEY']}"}
job = requests.post(
"https://argolink.io/v1/videos/generations",
headers=headers,
json={"model": "magi-2", "prompt": "A slow aerial shot over a foggy pine forest at sunrise"},
timeout=600,
)
job.raise_for_status()
request_id = job.json()["request_id"]
while True:
status = requests.get(f"https://argolink.io/v1/videos/{request_id}", headers=headers, timeout=60).json()
if status["status"] in ("done", "failed", "expired"):
break
time.sleep(5)
if status["status"] == "done":
video = requests.get(f"https://argolink.io/v1/videos/{request_id}/content", headers=headers, timeout=600)
open("output.mp4", "wb").write(video.content)
Modes
Text to video
Nothing but a prompt
The shortest call there is: only prompt is required, and the fields you leave out render and bill 5 seconds at 1080p 16:9.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "A slow aerial shot over a foggy pine forest at sunrise",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}'
| Field | Value |
|---|---|
prompt | required, up to 15,000 characters; describe the camera move, the subject and the mood |
duration | 4–30 whole seconds, defaults to 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9, defaults to 16:9 |
size | pixels instead of resolution plus aspect_ratio, so 1920x1080 is 1080p 16:9 |
One request renders one video; seed and watermark are not supported, and the result carries a generated soundtrack unless generate_audio is false.
Reference
Follow images, video or audio you supply
The result follows the subject, motion or beat of the assets you send. Every asset you send is used; the prompt says what to do with them.
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "The person in the reference walks into a rainy street at night",
"duration": 5,
"resolution": "1080p",
"reference_images": [{"url": "https://example.com/subject.png"}]
}'
curl https://argolink.io/v1/videos/generations \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "magi-2",
"prompt": "The girl dances to the beat, moving like the dancer in the reference clip",
"duration": 10,
"resolution": "1080p",
"reference_images": [{"url": "https://example.com/girl.png"}],
"reference_videos": [{"url": "https://example.com/dance.mp4"}],
"reference_audios": [{"url": "https://example.com/beat.mp3"}]
}'
| Field | Value |
|---|---|
prompt | required, up to 15,000 characters; describe the camera move, the subject and the mood |
reference_images | up to 10 HTTPS images, JPEG or PNG |
reference_videos | up to 5 clips, each 2–30 seconds and 30 seconds together |
reference_audios | up to 5 clips, each 2–30 seconds and 30 seconds together |
duration | 4–30 whole seconds, defaults to 5 |
resolution | 1080p |
aspect_ratio | 16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9, defaults to 16:9 |
The three kinds mix freely, up to 20 assets in total. Reference videos are billed at the output rate; reference images and audio are free.
How to upload and use reference assets
Your own link, or a local file uploaded first
The url of start_image, end_image and every entry of reference_images, reference_videos and reference_audios is an HTTPS address. A link you already host goes in as it is, as long as it downloads without signing in and every redirect stays on HTTPS. A local file is uploaded first, and the media_url you get back goes into the request.
FILE=dance.mp4
TICKET=$(curl -fsS https://argolink.io/v1/media/uploads \
-H "Authorization: Bearer $ARGOLINK_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"model\":\"magi-2\",\"type\":\"video\",\"content_type\":\"video/mp4\",\"size_bytes\":$(wc -c < "$FILE" | tr -d ' ')}")
curl -fsS -X PUT "$(jq -r .upload_url <<<"$TICKET")" \
-H "Content-Type: video/mp4" --data-binary @"$FILE"
# Put this media_url in reference_videos[].url
jq -r .media_url <<<"$TICKET"
Asking for a ticket is free and creates no job: upload_url is valid for 15 minutes and the PUT must carry the Content-Type you declared; the media_url it exchanges for stays readable for seven days.
| Field | Format | Size | Length |
|---|---|---|---|
reference_images · start_image · end_image | JPEG or PNG | ≤ 20 MiB | — |
reference_videos | MP4 or MOV | ≤ 100 MiB | 2–30 seconds each |
reference_audios | WAV or MP3 | ≤ 15 MB | 2–30 seconds each |
An asset outside these ranges fails the job with invalid_input before generation starts, and nothing is charged.
MAGI-2 full request parameters
| Parameter | Type | Requirement | What it does |
|---|---|---|---|
model | string | required | The catalog identifier for this page: magi-2. |
prompt | string | required | Describes the video: camera motion, subject action and mood. This model needs one in every mode, assets or not. It holds at most 15,000 characters. |
duration | integer | optional | Output length in whole seconds, 4 to 30; defaults to 5. |
resolution | string | optional | Output resolution. This model accepts 1080p only, which is also the default. |
aspect_ratio | string | optional | Output aspect ratio: 16:9, 4:3, 1:1, 3:4, 9:16 or 21:9; defaults to 16:9. It applies to reference requests, with or without assets. |
size | string | optional | Pixels instead of resolution plus aspect_ratio, written WIDTHxHEIGHT: the short side picks the tier (1080 for 1080p) and the shape picks the ratio, so 1920x1080 is 1080p 16:9. It picks a tier and a ratio, not exact pixels; a resolution or aspect_ratio sent with it must match, or the request is rejected with 400. |
start_image · end_image | object | not supported | This model takes no frames: send a prompt, or a prompt with reference assets. A start_image or end_image is rejected with 400. |
reference_images | array | reference | HTTPS URLs of reference images, up to 10. Images, videos and audio together are limited to 20 per request. |
reference_videos | array | reference | HTTPS URLs of reference videos, up to 5 clips, each 2–30 seconds and 30 seconds together. Their seconds are billed like the output's. |
reference_audios | array | reference | HTTPS URLs of reference audio clips, up to 5, each 2–30 seconds and 30 seconds together. Audio can be sent on its own. |
seconds · ratio | — | compatible names | Aliases of duration and aspect_ratio; send one name per value, never both. |
image_url · image_urls · video_urls · audio_urls · frame_images · input_references | — | compatible names | Field names from fal and OpenRouter requests work too: image_url is start_image; image_urls, video_urls and audio_urls are the three reference lists; frame_images items whose frame_type is first_frame or last_frame are start_image and end_image; input_references items of type image_url, video_url or audio_url are references. Give each input one name. |
n | integer | optional | Must be 1 or omitted; every request produces exactly one video. |
generate_audio | boolean | optional | Defaults to true: MAGI-2 scores the video itself. Send false for a silent result. |
seed · watermark | — | not supported | Not exposed on this model: any seed, or watermark: true, is rejected with 400. |
request_id | string | response field | Returned by the submit call and the only identifier accepted by the status and content endpoints. |
progress · estimated_seconds_remaining | integer | response field | Returned by the status endpoint while status is pending: progress estimates how far the job has come, from 0 to 99, and estimated_seconds_remaining how many seconds are left; the latter is left out until there is an estimate. progress is 100 once status is done. |
video.url | string | response field | Download link of the finished MP4 once status is done: an ArgoLink link anyone can open without the API key, for 30 days. |
usage | object | response field | Returned once status is done: output_seconds, reference_video_seconds and billed_seconds, their sum, which the job is billed for. |
MAGI-2 API compared with similar models
| Model | Model ID | Provider | Rate | Best for |
|---|---|---|---|---|
| MAGI-2 | magi-2 | Sand AI | $0.1 / second | Sand AI's MAGI-2: 4 to 30 second 1080p clips with native sound, from a prompt or from up to 10 reference images, 5 reference videos and 5 audio clips |
| Seedance 2.5 | seedance-2.5 | ByteDance Seed | $0.0874 / second | The most capable Seedance video model yet: 30-second clips, up to 50 reference assets and native support for real-person references, no manual approval or extra verification needed |
| Grok Imagine Video 1.5 | grok-imagine-video-1.5 | xAI | $0.032 / second | 480p, 720p, and 1080p video generation billed per output second |
| Gemini Omni 1.2 Flash | gemini-omni-1.2-flash | $0.0455 / second | Google Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, up to 10 reference images and 3 reference videos, or as an edit of a video |
Other models in this modality
- Seedance 2.5The most capable Seedance video model yet: 30-second clips, up to 50 reference assets and native support for real-person references, no manual approval or extra verification needed$0.0874 / second
- Grok Imagine Video 1.5480p, 720p, and 1080p video generation billed per output second$0.032 / second
- Gemini Omni 1.2 FlashGoogle Gemini Omni 1.2 Flash: 3 to 15 second clips with native sound at 720p, 1080p or 4K, from a prompt, a first and last frame, up to 10 reference images and 3 reference videos, or as an edit of a video$0.0455 / second
- Kling 4.0Kuaishou Kling 4.0: 3 to 30 second clips at 720p or 1080p from a prompt, or from up to 10 reference images and 5 reference videos, with a soundtrack of its own$0.1413 / second
MAGI-2 API FAQ
How do I call MAGI-2?
Create an API key in the console and POST https://argolink.io/v1/videos/generations with model set to magi-2. The response carries request_id, the only job identifier: poll GET https://argolink.io/v1/videos/{request_id}, which reports progress and estimated_seconds_remaining while the job is pending, until status is done, then download the MP4 from GET https://argolink.io/v1/videos/{request_id}/content, the address the status returns as video.url.
How much does MAGI-2 cost?
Per output second, from $0.1 per second at the lowest tier; each tier in the pricing table has its own per-second rate, multiplied by the video's length. Reference videos are billed at the same per-second rate: billed seconds are the output seconds plus the reference videos' total seconds, with any part of a second left off, so a 5-second video with a 2.4-second reference video bills 7 seconds. Reference images and audio are free. Only a completed video is billed; a failed or rejected job costs nothing.
Which input modes does MAGI-2 support?
All on the same endpoint: reference (a prompt alone, or with images, videos and audio as references: up to 10 reference_images, 5 reference_videos and 5 reference_audios, 20 in total, in any combination). Every asset is an HTTPS URL.
What does MAGI-2 not support?
More than one video per request (n must be 1 or omitted), any seed, or watermark: true; those return 400. Output is an H.264 MP4 that carries a generated soundtrack unless generate_audio is false.
Do MAGI-2 videos have sound?
By default, yes: MAGI-2 scores the video itself. Send generate_audio: false for a silent result.