Seedance 2.5 — 15% below official pricing, 57% cheaper than Fal. Wan 3.0 — 35% below official list price. Magi-2 is live

Guides, updates and engineering notes from ArgoLink on building with one API for every AI model. Blog

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

ItemArgoLink 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

Create an API key

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.

Endpoints

  • POSTSubmit a generation job/v1/videos/generationsReturns the request_id the other two calls need.
  • GETCheck job status/v1/videos/{request_id}pending while generating, done when the video is ready, failed or expired otherwise.
  • GETDownload the result/v1/videos/{request_id}/contentStreams the MP4 once status is done; until then it returns 409 job_video_not_ready, and 424 job_failed for a failed job.

Authentication

Send your API key as a Bearer token in the Authorization header.

POST /v1/videos/generations
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"
  }'

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.

POST /v1/videos/generations
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"
  }'
FieldValue
promptrequired, up to 15,000 characters; describe the camera move, the subject and the mood
duration4–30 whole seconds, defaults to 5
resolution1080p
aspect_ratio16:9 · 4:3 · 1:1 · 3:4 · 9:16 · 21:9, defaults to 16:9
sizepixels 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.

One reference imagePOST /v1/videos/generations
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"}]
  }'
Images, video and audio togetherPOST /v1/videos/generations
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"}]
  }'
FieldValue
promptrequired, up to 15,000 characters; describe the camera move, the subject and the mood
reference_imagesup to 10 HTTPS images, JPEG or PNG
reference_videosup to 5 clips, each 2–30 seconds and 30 seconds together
reference_audiosup to 5 clips, each 2–30 seconds and 30 seconds together
duration4–30 whole seconds, defaults to 5
resolution1080p
aspect_ratio16: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.

Upload a local filePOST /v1/media/uploads
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.

FieldFormatSizeLength
reference_images · start_image · end_imageJPEG or PNG≤ 20 MiB—
reference_videosMP4 or MOV≤ 100 MiB2–30 seconds each
reference_audiosWAV or MP3≤ 15 MB2–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

ParameterTypeRequirementWhat it does
modelstringrequiredThe catalog identifier for this page: magi-2.
promptstringrequiredDescribes 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.
durationintegeroptionalOutput length in whole seconds, 4 to 30; defaults to 5.
resolutionstringoptionalOutput resolution. This model accepts 1080p only, which is also the default.
aspect_ratiostringoptionalOutput 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.
sizestringoptionalPixels 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_imageobjectnot supportedThis model takes no frames: send a prompt, or a prompt with reference assets. A start_image or end_image is rejected with 400.
reference_imagesarrayreferenceHTTPS URLs of reference images, up to 10. Images, videos and audio together are limited to 20 per request.
reference_videosarrayreferenceHTTPS 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_audiosarrayreferenceHTTPS 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 namesAliases 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 namesField 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.
nintegeroptionalMust be 1 or omitted; every request produces exactly one video.
generate_audiobooleanoptionalDefaults to true: MAGI-2 scores the video itself. Send false for a silent result.
seed · watermark—not supportedNot exposed on this model: any seed, or watermark: true, is rejected with 400.
request_idstringresponse fieldReturned by the submit call and the only identifier accepted by the status and content endpoints.
progress · estimated_seconds_remainingintegerresponse fieldReturned 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.urlstringresponse fieldDownload link of the finished MP4 once status is done: an ArgoLink link anyone can open without the API key, for 30 days.
usageobjectresponse fieldReturned once status is done: output_seconds, reference_video_seconds and billed_seconds, their sum, which the job is billed for.

Create an API key

MAGI-2 API compared with similar models

ModelModel IDProviderRateBest for
MAGI-2magi-2Sand AI$0.1 / secondSand 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.5seedance-2.5ByteDance Seed$0.0874 / secondThe 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.5grok-imagine-video-1.5xAI$0.032 / second480p, 720p, and 1080p video generation billed per output second
Gemini Omni 1.2 Flashgemini-omni-1.2-flashGoogle$0.0455 / secondGoogle 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

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.

Create an API key

Welcome Builders

Who runs ArgoLink, refunds and how your data is handled

Request Refund

Submit a request and review its status in Top-up Orders.