# Sand AI MAGI-2 Reference to Video API

> MAGI-2 by Sand AI creates a 1080p video of 4 to 30 seconds with native audio, guided by up to 10 reference images, 5 video clips and 5 audio clips.

Source: https://www.sandbase.ai/models/sandai/magi-2/reference-to-video
API reference: https://www.sandbase.ai/models/sandai/magi-2/reference-to-video#api

## Facts

- Provider: Sand AI
- Type: Video model
- Model ID: `sandai/magi-2/reference-to-video`
- Price: From $0.40 per run
- Capabilities: reference to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sandai/magi-2/reference-to-video",
  "duration": 5,
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "generate_audio": true
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Sand AI MAGI-2 Reference to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "sandai/magi-2/reference-to-video" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Sand AI account?

No. One SandBase API key and balance gives you access to Sand AI MAGI-2 Reference to Video and the other models in the catalog; you do not need to sign up with Sand AI separately.
