# MAGI-2 API (Sand.ai)

> Sand.ai MAGI-2 generates video with sound in the 1080p tier from text, first and last frames, or multimodal references.

Page: https://cheapergen.com/models/sand-ai/magi-2 · API reference: https://cheapergen.com/models/sand-ai/magi-2/api · Live status and uptime: https://cheapergen.com/models/sand-ai/magi-2/status

Our prices updated 2026-11-30: CheaperGen prices are live, and this file is regenerated every 5 minutes. Third-party prices keep the dates they were checked.

## Pricing
Official list price source: Sand.ai API list price (platform.sand.ai/docs/model-pricing): $0.08 per second at 1080p.. Prices verified November 25, 2026.

| Tier | Official | CheaperGen | Save |
|---|---|---|---|
| 1080p | $0.0800/s | $0.0800/s | — |

Monthly plans (Pro, Max) lower the price on most models while they're active: https://cheapergen.com/pricing#plans. Volume pricing for larger teams: https://cheapergen.com/enterprise#contact.

## Specs
- Resolution: 1080p
- Duration: 4–30 seconds

## Endpoints

### Text to Video — `POST https://cheapergen.com/api/v1/run/sand-ai/magi-2/text-to-video`

| Param | Type | Required | Description |
|---|---|---|---|
| prompt | string | yes | Describe the shot: subject, action, camera movement, lighting and style. |
| aspect_ratio | string (enum) (16:9, 9:16, 1:1, 4:3, 3:4, 21:9) | no | Output frame shape. |
| resolution | string (enum) (1080p) | no | The 1080p tier. Pixel dimensions depend on the output aspect ratio. |
| duration | integer (4–30) | no | Length of the generated clip in seconds (4–30s). You pay per second. |
| generate_audio | boolean | no | Generate synchronized sound, ambience and dialogue. No extra cost. |

```bash
curl -X POST https://cheapergen.com/api/v1/run/sand-ai/magi-2/text-to-video \
  -H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A paper boat drifts across a pond as rain taps against the surface.",
  "aspect_ratio": "16:9",
  "resolution": "1080p",
  "duration": 5
}'
```

### Image to Video — `POST https://cheapergen.com/api/v1/run/sand-ai/magi-2/image-to-video`

| Param | Type | Required | Description |
|---|---|---|---|
| prompt | string | yes | Describe the shot: subject, action, camera movement, lighting and style. |
| image_url | string (URL) | yes | Image used as the opening frame. JPG/PNG/WebP, URL or upload. |
| end_image_url | string (URL) | no | Optional closing frame — the model animates between the two. |
| resolution | string (enum) (1080p) | no | The 1080p tier. Pixel dimensions depend on the output aspect ratio. |
| duration | integer (4–30) | no | Length of the generated clip in seconds (4–30s). You pay per second. |
| generate_audio | boolean | no | Generate synchronized sound, ambience and dialogue. No extra cost. |

```bash
curl -X POST https://cheapergen.com/api/v1/run/sand-ai/magi-2/image-to-video \
  -H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "The camera pulls back as the boat begins to drift.",
  "image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
  "resolution": "1080p",
  "duration": 5
}'
```

### Reference to Video — `POST https://cheapergen.com/api/v1/run/sand-ai/magi-2/reference-to-video`

| Param | Type | Required | Description |
|---|---|---|---|
| prompt | string | yes | Describe the shot: subject, action, camera movement, lighting and style. |
| reference_image_urls | string[] (URLs) | no | Up to 10 images for characters, products, style or scene. Refer to them in the prompt as @Image1, @Image2… |
| reference_video_urls | string[] (video URLs) | no | Up to 5 MP4/MOV clips for motion, camera moves or effects (2–30 s each, 30 s in total). Refer to them as @Video1, @Video2… References add no charge. |
| reference_audio_urls | string[] (audio URLs) | no | Up to 5 MP3/WAV clips for voice, music or sound (2–30 s each, 30 s in total). Refer to them as @Audio1, @Audio2… |
| aspect_ratio | string (enum) (16:9, 9:16, 1:1, 4:3, 3:4, 21:9) | no | Output frame shape. |
| resolution | string (enum) (1080p) | no | The 1080p tier. Pixel dimensions depend on the output aspect ratio. |
| duration | integer (4–30) | no | Length of the generated clip in seconds (4–30s). You pay per second. |
| generate_audio | boolean | no | Generate synchronized sound, ambience and dialogue. No extra cost. |

```bash
curl -X POST https://cheapergen.com/api/v1/run/sand-ai/magi-2/reference-to-video \
  -H "Authorization: Bearer $CHEAPERGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Place the paper boat from @Image1 on the pond from @Image2.",
  "reference_image_urls": [
    "https://cdn.cheapergen.com/samples/reference-1.jpg",
    "https://cdn.cheapergen.com/samples/reference-2.jpg"
  ],
  "aspect_ratio": "16:9",
  "resolution": "1080p",
  "duration": 5
}'
```

## Getting the result
Jobs are async. Poll `GET https://cheapergen.com/api/v1/generations/{id}` until status is succeeded/failed/canceled, or pass `webhook_url`. Failed generations are refunded automatically.
When status is `succeeded`, the video is at `output.video.url` (with `output.video.content_type`).
Output URLs expire with the account's retention (1 day after the job finishes by default): download or re-host them.

## FAQ
**Is audio included?**
Yes. You can turn audio off at the same price.

MAGI-2 is developed by Sand.ai. CheaperGen provides API access and does not own the model.