Skip to content

API Reference

MAGI-2 API: slugs and pricing

MAGI-2 in the Clipia API — slugs for its three modes, first and last frames, image, video and audio references, parameter limits, credit prices and submitting over REST.

MAGI-2 is a video model by Sand AI, released on November 24, 2026. It makes a 4–30 second clip in one generation, in 1080p only and together with sound; inside the clip the model changes shots following the script in your prompt. There are three modes, each with its own slug.

ModeAPI slug
Text-to-videomagi-2
Image-to-video: a first frame and an optional last framemagi-2-i2v
Reference-to-video: images, videos and audiomagi-2-r2v

Check availability in your environment

The model is enabled separately from code releases. Use a slug only when GET /v1/models returns it for your API key: a model that is switched off disappears from the list, and submitting a generation returns 404 with the code not_found.

To generate a video without the API, open the MAGI-2 landing page or go straight to the video studio.

Check availability

curl -s https://api.clipia.ai/v1/models \
  -H "Authorization: Bearer $CLIPIA_KEY" \
  | jq '.data[] | select((.slug // "") | startswith("magi-2"))'

LLM models in the same list have no slug, so the examples check that it exists — see Model catalog.

Parameter limits

input_schema snapshot as of November 25, 2026. GET /v1/models/{slug} returns the exact fields for the selected mode; that live schema takes precedence over this static summary.

ParameterValues
promptup to 15,000 characters
durationa whole number of seconds from 4 to 30; defaults to 5
resolution1080p only — the model has no other resolutions
aspect_ratio16:9, 9:16, 1:1, 4:3, 3:4, 21:9; defaults to 16:9. For magi-2-i2v the default is adaptive — the format of the first frame
audiosound is on by default; audio: false returns a video without sound at the same price
image_urlmagi-2-i2v only, required: the first frame as an HTTPS URL
last_frame_urlmagi-2-i2v only, optional: the last frame the scene should arrive at
reference_image_urlsmagi-2-r2v only: up to 10 images
reference_video_urls, reference_audio_urlsmagi-2-r2v only: up to 5 videos and up to 5 audio files, 2 to 30 seconds each and no longer than 30 seconds combined

magi-2-r2v needs at least one reference; send audio together with an image or a video. A request over the limits, with frames in magi-2-r2v or with references in magi-2-i2v is rejected with 400 before credits are reserved. The defaults are execution defaults: a request without the parameter is estimated and executed with exactly these values.

Pricing

The price depends on duration only. Sound, aspect ratio, mode and references do not affect it: the seconds of videos and audio among the references are not charged.

Duration1080p
4 seconds14 credits
5 seconds18 credits
10 seconds35 credits
15 seconds53 credits
30 seconds105 credits

Pricing

Prices come from the service pricing and are current as of November 2026. The exact cost is always shown on the start button before anything is charged.

Get the schema and price

curl https://api.clipia.ai/v1/models/magi-2 \
  -H "Authorization: Bearer $CLIPIA_KEY"

Before submitting, pass the same input to POST /v1/models/magi-2/estimate — see Cost estimation.

Submit text-to-video

curl -X POST https://api.clipia.ai/v1/models/magi-2 \
  -H "Authorization: Bearer $CLIPIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "prompt": "Night market in the rain. Shot 1: wide street view. Hard cut. Shot 2: close-up of a cook tossing noodles. Sound: rain, sizzling wok, distant music",
      "duration": 15,
      "resolution": "1080p",
      "aspect_ratio": "16:9",
      "audio": true
    }
  }'

For frames, use magi-2-i2v and pass the first frame in image_url and the last one in last_frame_url. For references, use magi-2-r2v with the reference_image_urls, reference_video_urls and reference_audio_urls fields. Do not copy field names from other integrations.

Explicit model switch

If you need a resolution below 1080p, choose another model explicitly — for example seedance-2-5-t2v or wan-3-0. Do not switch models silently when the user chose MAGI-2: the models have different prices and capabilities.