---
title: "MAGI-2 API: slugs and pricing"
description: 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.
icon: Clapperboard
---

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.

| Mode | API slug |
| --- | --- |
| Text-to-video | `magi-2` |
| Image-to-video: a first frame and an optional last frame | `magi-2-i2v` |
| Reference-to-video: images, videos and audio | `magi-2-r2v` |

<Callout type="info" title="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`.
</Callout>

To generate a video without the API, open the [MAGI-2 landing page](/en/video-models/magi-2) or go straight to the [video studio](/en/create-video/magi-2).

## Check availability

<Tabs items={['cURL', 'TypeScript', 'Python']}>
<Tab value="cURL">

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

</Tab>
<Tab value="TypeScript">

```ts
const { data } = await clipia.models.list();
const magi = data.filter(
  (model) => "slug" in model && model.slug?.startsWith("magi-2"),
);

if (magi.length === 0) {
  throw new Error("MAGI-2 is not active in this environment");
}
```

</Tab>
<Tab value="Python">

```python
catalog = clipia.models.list()
magi = [
    model for model in catalog["data"]
    if (model.get("slug") or "").startswith("magi-2")
]

if not magi:
    raise RuntimeError("MAGI-2 is not active in this environment")
```

</Tab>
</Tabs>

LLM models in the same list have no `slug`, so the examples check that it exists — see [Model catalog](/en/docs/api-reference/models).

## 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.

| Parameter | Values |
| --- | --- |
| `prompt` | up to 15,000 characters |
| `duration` | a whole number of seconds from `4` to `30`; defaults to `5` |
| `resolution` | `1080p` only — the model has no other resolutions |
| `aspect_ratio` | `16: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 |
| `audio` | sound is on by default; `audio: false` returns a video without sound at the same price |
| `image_url` | `magi-2-i2v` only, required: the first frame as an HTTPS URL |
| `last_frame_url` | `magi-2-i2v` only, optional: the last frame the scene should arrive at |
| `reference_image_urls` | `magi-2-r2v` only: up to 10 images |
| `reference_video_urls`, `reference_audio_urls` | `magi-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.

| Duration | 1080p |
| --- | --- |
| 4 seconds | 14 credits |
| 5 seconds | 18 credits |
| 10 seconds | 35 credits |
| 15 seconds | 53 credits |
| 30 seconds | 105 credits |

<Callout type="info" title="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.
</Callout>

## Get the schema and price

```bash
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](/en/docs/api-reference/estimate).

## Submit text-to-video

```bash
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.
