# MAGI 2 API

> Sand AI's MAGI-2: 4 to 30 seconds of 1080p video with synchronized sound (dialogue, effects, music), from text, a first and last frame, or up to 10 reference images, 5 videos and 5 audio clips. By Sand AI, on Revana from $0.075 per second of video.

- Model id: `magi-2`
- Kind: video
- Maker: Sand AI
- Tasks: Text to video, Image to video, First + last frame, Reference to video
- Resolutions: 1080p
- Durations: 4 to 30 seconds
- Aspect ratios: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
- Audio: supported (`"audio": true`)
- Input images: up to 10
- Routes: 3 (starts on the cheapest, falls back automatically)
- Status: live on the API
- Page: https://revana.si/models/magi-2

## Price (per second of video, USD)

| Resolution | Price | Credits |
|---|---|---|
| 1080p | $0.075 | 8 |
| 1080p + with video input | $0.11 | 11 |

100 credits = $1. Charged once, only for the route that succeeds; failed generations cost nothing.

## Request

POST https://api.revana.si/v1/generations with `Authorization: Bearer $REVANA_API_KEY` and an `Idempotency-Key` header: one key per request, made once and sent again on every resend after a timeout, a 429 or a 5xx, so the request is never made or charged twice. After a generation has failed, use a new key.

```json
{
  "model": "magi-2",
  "input": {
    "prompt": "A slow dolly shot through a neon-lit night market in the rain, steam rising from food stalls",
    "resolution": "1080p",
    "duration": 4,
    "aspect_ratio": "16:9",
    "audio": true
  },
  "max_cost_usd": 0.45
}
```

`max_cost_usd` is your cap, the most this request may cost (it lists at $0.30). Poll `GET /v1/generations/{id}` until `status` is `succeeded` or `failed`, then download `GET /v1/generations/{id}/content`. Full API: https://revana.si/llms.txt

## Similar models

- [Seedance 2.5](https://revana.si/models/seedance-2.5.md): from $0.09 per second of video
- [Seedance 2.5 Flash](https://revana.si/models/seedance-2.5-flash.md): from $0.085 per second of video
- [Wan 3.0](https://revana.si/models/wan-3.0.md): from $0.045 per second of video
- [Wan 3.0 Prime](https://revana.si/models/wan-3.0-prime.md): from $0.075 per second of video
- [Nemesis (aka Genjutsu)](https://revana.si/models/nemesis.md): from $0.08 per second of video
- [Nemesis Lite](https://revana.si/models/nemesis-lite.md): from $0.065 per second of video

