# Sand AI MAGI-2 Text to Video API

> MAGI-2 by Sand AI turns a text prompt into a 1080p video of 4 to 30 seconds with native audio, with strong instruction following, complex composition and long-shot stability.

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

## Facts

- Provider: Sand AI
- Type: Video model
- Model ID: `sandai/magi-2/text-to-video`
- Price: From $0.40 per run
- Capabilities: text 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/text-to-video",
  "prompt": "At dawn, waves break gently against the rocks as the camera slowly moves forward.",
  "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 Text to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "sandai/magi-2/text-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 Text to Video and the other models in the catalog; you do not need to sign up with Sand AI separately.
