# Luma Ray 3.2 Text to Video API

> Agent Ray 3.2 is Luma's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.

Source: https://www.sandbase.ai/models/luma/ray/3.2/text-to-video
API reference: https://www.sandbase.ai/models/luma/ray/3.2/text-to-video/docs

## Facts

- Provider: Luma
- Type: Video model
- Model ID: `luma/ray/3.2/text-to-video`
- Price: From $1 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": "luma/ray/3.2/text-to-video",
  "hdr": false,
  "loop": false,
  "prompt": "A herd of wild horses galloping across a dusty desert plain under a blazing midday sun, their manes flying in the wind; wide tracking shot.",
  "duration": 5,
  "exr_export": false,
  "resolution": "720p",
  "aspect_ratio": "16:9"
}'
```

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 Luma Ray 3.2 Text to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "luma/ray/3.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 Luma account?

No. One SandBase API key and balance gives you access to Luma Ray 3.2 Text to Video and the other models in the catalog; you do not need to sign up with Luma separately.

## README

### Luma Ray 3.2 Text to Video

Luma Ray 3.2 turns a prompt into a 5 or 10 second clip at 540p to 1080p, with optional HDR and looping.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 6,000 characters. |
| `aspect_ratio` | `21:9` / `16:9` / `4:3` / `1:1` / `3:4` / `9:16` | `16:9` | Output frame shape. |
| `resolution` | `540p` / `720p` / `1080p` | `720p` | Sets the per-second rate. |
| `duration` | 5 / 10 | 5 | Output length in seconds. |
| `loop` | boolean | false | Make the clip loop. |
| `hdr` | boolean | false | 16-bit HDR output (720p and 1080p); doubles the price. |
| `exr_export` | boolean | false | Also export EXR frames with HDR; triples the price. |

#### Billing

$0.50 per 5-second clip at 540p, $1.00 at 720p, $2.00 at 1080p; 10 seconds costs double.

| Output | 540p | 720p | 1080p |
|---|---|---|---|
| 5s (default) | $0.50 | $1.00 | $2.00 |
| 10s | $1.00 | $2.00 | $4.00 |

Failed runs are not charged.

#### Prompting

- Describe the shot like a cinematographer: subject, motion, lens, and light.

#### Limits

- Clips are 5 or 10 seconds.

#### Also on SandBase

Related: `luma/ray/3.2/image-to-video`.
