---
title: Prompting — MAGI-2 | Runware Docs
url: https://runware.ai/docs/models/sandai-magi-2/guides/prompting
description: "How to write text-to-video prompts for MAGI-2: one clause per decision, how much action a clip holds, camera moves with an end point, and the six 1080p frame shapes."
---
### [Introduction](https://runware.ai/docs/models/sandai-magi-2/guides/prompting#introduction)

MAGI-2 is Sand AI's flagship video model. It renders **1080p clips of 4 to 30 seconds** at 25 frames per second, and the **sound comes from the same pass** as the picture, so footsteps, room tone, music and spoken lines all follow the prompt. A text prompt is enough to start, and it works best as a short shot brief with a clause for every decision you want to make yourself.

[Watch video](https://runware.ai/docs/assets/hero.B_6nzfmY.mp4)

> **Prompt**: A hotel guest in a white linen robe crosses a bright oceanfront suite and pulls the sheer curtains open at sunrise. The camera starts behind her at the foot of the bed and pushes in slowly as she steps out onto the balcony, ending on a wide view of the calm turquoise sea and the empty beach below. Soft warm morning light floods the room, natural color grade, photoreal. Audio: the curtain rings sliding along the rail, the balcony door opening, gentle surf and a few distant gulls, no music.

This guide covers the request, a prompt structure that holds up, how much action fits in one clip, camera direction, and composing for the six frame shapes. Spoken lines and the rest of the soundtrack have their own guide, [Dialogue and sound](https://runware.ai/docs/models/sandai-magi-2/guides/dialogue-and-sound).

### [Request shape](https://runware.ai/docs/models/sandai-magi-2/guides/prompting#request-shape)

For text-to-video the prompt is **the only required field**, up to 15,000 characters. The hero came from this request:

**TypeScript**:

```typescript
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'sandai:magi@2',
  positivePrompt: 'A hotel guest in a white linen robe crosses a bright oceanfront suite and pulls the sheer curtains open at sunrise. The camera starts behind her at the foot of the bed and pushes in slowly as she steps out onto the balcony, ending on a wide view of the calm turquoise sea and the empty beach below. Soft warm morning light floods the room, natural color grade, photoreal. Audio: the curtain rings sliding along the rail, the balcony door opening, gentle surf and a few distant gulls, no music.',
  width: 1920,
  height: 1080,
  duration: 8
})
```

**Python**:

```python
import asyncio
import os

from runware import Runware

async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "sandai:magi@2",
            "positivePrompt": "A hotel guest in a white linen robe crosses a bright oceanfront suite and pulls the sheer curtains open at sunrise. The camera starts behind her at the foot of the bed and pushes in slowly as she steps out onto the balcony, ending on a wide view of the calm turquoise sea and the empty beach below. Soft warm morning light floods the room, natural color grade, photoreal. Audio: the curtain rings sliding along the rail, the balcony door opening, gentle surf and a few distant gulls, no music.",
            "width": 1920,
            "height": 1080,
            "duration": 8
        })

asyncio.run(main())
```

**cURL**:

```bash
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "videoInference",
      "taskUUID": "f27eb6b6-67e8-4995-b13b-d6e82322ba68",
      "model": "sandai:magi@2",
      "positivePrompt": "A hotel guest in a white linen robe crosses a bright oceanfront suite and pulls the sheer curtains open at sunrise. The camera starts behind her at the foot of the bed and pushes in slowly as she steps out onto the balcony, ending on a wide view of the calm turquoise sea and the empty beach below. Soft warm morning light floods the room, natural color grade, photoreal. Audio: the curtain rings sliding along the rail, the balcony door opening, gentle surf and a few distant gulls, no music.",
      "width": 1920,
      "height": 1080,
      "duration": 8
    }
  ]'
```

**CLI**:

```bash
runware run sandai:magi@2 \
  positivePrompt="A hotel guest in a white linen robe crosses a bright oceanfront suite and pulls the sheer curtains open at sunrise. The camera starts behind her at the foot of the bed and pushes in slowly as she steps out onto the balcony, ending on a wide view of the calm turquoise sea and the empty beach below. Soft warm morning light floods the room, natural color grade, photoreal. Audio: the curtain rings sliding along the rail, the balcony door opening, gentle surf and a few distant gulls, no music." \
  width=1920 \
  height=1080 \
  duration=8
```

**JSON**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "f27eb6b6-67e8-4995-b13b-d6e82322ba68",
  "model": "sandai:magi@2",
  "positivePrompt": "A hotel guest in a white linen robe crosses a bright oceanfront suite and pulls the sheer curtains open at sunrise. The camera starts behind her at the foot of the bed and pushes in slowly as she steps out onto the balcony, ending on a wide view of the calm turquoise sea and the empty beach below. Soft warm morning light floods the room, natural color grade, photoreal. Audio: the curtain rings sliding along the rail, the balcony door opening, gentle surf and a few distant gulls, no music.",
  "width": 1920,
  "height": 1080,
  "duration": 8
}
```

`duration` takes **whole seconds from 4 to 30** and defaults to 5. The shape comes from `width` and `height`, which take **one of six 1080p pairs**. Any other pair is rejected.

| Aspect ratio | Size |
| --- | --- |
| 16:9 | 1920 × 1080 |
| 4:3 | 1664 × 1248 |
| 1:1 | 1440 × 1440 |
| 3:4 | 1248 × 1664 |
| 9:16 | 1080 × 1920 |
| Close to 21:9 | 2206 × 946 |

Sound is **on by default**. Set `settings.audio` to `false` for a silent clip, such as footage that goes under a voiceover or a track you mix yourself.

### [Structuring the prompt](https://runware.ai/docs/models/sandai-magi-2/guides/prompting#structuring-the-prompt)

A prompt is easiest to steer when **every decision gets its own clause**: what the clip is for, the camera, the action, the subject, the light and the sound. Each one can then be changed without rewriting the rest.

**[Purpose]** A product demo for a robot vacuum., **[Camera]** A low tracking shot follows the robot at floor level, **[Action]** as it glides across a light oak kitchen floor, picking up a scatter of spilled cereal in one clean pass and leaving clean floor behind it., **[Subject]** The round, low-profile robot is matte sage green with a soft white light ring on top., **[Light]** Bright daylight from a window on the left, clean commercial color grade, shallow depth of field., **[Audio]** Audio: the soft hum of the motor, cereal rattling as it is picked up, quiet kitchen room tone, no music.

[Watch video](https://runware.ai/docs/assets/output-anatomy.DR01jo5n.mp4)

*Purpose, camera, action, subject, light and audio, a clause each*

> **Prompt**: A product demo for a robot vacuum. A low tracking shot follows the robot at floor level as it glides across a light oak kitchen floor, picking up a scatter of spilled cereal in one clean pass and leaving clean floor behind it. The round, low-profile robot is matte sage green with a soft white light ring on top. Bright daylight from a window on the left, clean commercial color grade, shallow depth of field. Audio: the soft hum of the motor, cereal rattling as it is picked up, quiet kitchen room tone, no music.

**Lead with what the clip is for.** A purpose line such as "a product demo for a robot vacuum" gives every later clause a register to fit, so the light and the grade read as a commercial without a pile of style adjectives.

**Tie the camera to the subject.** "Follows the robot at floor level" gives the move a target and a height, which "tracking shot" alone leaves open. The audio clause goes last and lists what you hear as well as what to leave out, here "no music".

### [Keeping the action focused](https://runware.ai/docs/models/sandai-magi-2/guides/prompting#keeping-the-action-focused)

Plan each clip around **one or two actions and one camera move**. Actions that share the same seconds compete for them, and a clip that tries to fit four beats into five seconds rushes all of them. The hero holds two actions in eight seconds, opening the curtains and stepping outside, with the push-in as its only camera move.

When a scene needs more, **give it more seconds or split it into shots**. A 30-second clip can carry a full sequence of timed shots, which [Long takes and multi-shot sequences](https://runware.ai/docs/models/sandai-magi-2/guides/long-takes-and-multi-shot) covers.

### [Directing the camera](https://runware.ai/docs/models/sandai-magi-2/guides/prompting#directing-the-camera)

Camera direction works in **the terms a crew uses**: dolly in, orbit, crane up, tracking shot, handheld, locked-off. The three clips below share every sentence except the one that moves the camera.

[Watch video](https://runware.ai/docs/assets/output-camera-dolly.JXu6Prsa.mp4)

*Dolly in*

> **Prompt**: A bright orange hard-shell carry-on suitcase stands upright on the polished stone floor of a sunlit hotel lobby, its handle retracted, potted palms and a reception desk softly out of focus behind it. The camera dollies in slowly from a wide shot to a close-up of the ribbed shell and the zipper pull, keeping the suitcase centered. Clean commercial travel cinematography. Audio: soft lobby ambience, distant footsteps on stone, no music.

[Watch video](https://runware.ai/docs/assets/output-camera-orbit.D0YiCsY2.mp4)

*Orbit*

> **Prompt**: A bright orange hard-shell carry-on suitcase stands upright on the polished stone floor of a sunlit hotel lobby, its handle retracted, potted palms and a reception desk softly out of focus behind it. The camera orbits a smooth ninety degrees around the suitcase, from a front three-quarter view to a full side profile, keeping it centered as the light slides across the shell. Clean commercial travel cinematography. Audio: soft lobby ambience, distant footsteps on stone, no music.

[Watch video](https://runware.ai/docs/assets/output-camera-crane.DsCoNVp6.mp4)

*Crane up*

> **Prompt**: A bright orange hard-shell carry-on suitcase stands upright on the polished stone floor of a sunlit hotel lobby, its handle retracted, potted palms and a reception desk softly out of focus behind it. The camera starts low at floor level and cranes up and over the suitcase until it looks straight down at the top of the shell and the handle. Clean commercial travel cinematography. Audio: soft lobby ambience, distant footsteps on stone, no music.

**Give every move an end point**: a close-up of the zipper pull, a full side profile, a view straight down at the handle. A move with somewhere to arrive is one path from the first frame to the last, where a bare "orbit" leaves the distance and the ending to the model. Keep the subject and the set identical across variants and they read as **one shoot from three setups**, which is how a product page gets a matching set of clips.

**Keep motion at a speed a camera operator could follow.** Sand AI names extreme high-speed motion as the case where MAGI-2 can lose a trajectory or break continuity, so a whip pan or a sprint is the first thing to slow down when a clip comes back wrong.

### [Composing for the frame](https://runware.ai/docs/models/sandai-magi-2/guides/prompting#composing-for-the-frame)

The six sizes run from **vertical 9:16 to an ultrawide frame close to 21:9**, and the same scene needs a different composition in each. Write the framing for the shape you request.

[Watch video](https://runware.ai/docs/assets/output-vertical.D48DxdNU.mp4)

*9:16, 1080 × 1920*

> **Prompt**: A vertical street-style fashion clip for social media. A young man in a cropped light-wash denim jacket, a white T-shirt and wide black trousers walks toward the camera along a sunny city sidewalk lined with shop fronts. Handheld phone camera moving backward in front of him at chest height, keeping him centered from head to knees. Bright midday sun, crisp contrast, editorial color grade. No readable signs or logos. Audio: his footsteps, passing traffic, distant street chatter, no music.

A vertical frame has little width to spare, so **state how much of the person it shows**. "Keeping him centered from head to knees" fills the tall frame with the outfit the clip is selling.

[Watch video](https://runware.ai/docs/assets/output-ultrawide.D2j5noh_.mp4)

*Close to 21:9, 2206 × 946*

> **Prompt**: An ultrawide travel promo shot. A small white sailboat glides slowly across a calm fjord at golden hour, steep green cliffs rising on both sides and a waterfall falling into the water far ahead. The camera holds a wide, steady side view from a parallel boat, keeping the sailboat small in the left third of the frame with the long stretch of water and cliffs ahead of it. Warm low sunlight, soft haze, cinematic color grade. Audio: water lapping against the hull, a light breeze in the sails, the distant rush of the waterfall, no music.

An ultrawide frame works when **the width is space to travel through**. The sailboat sits small in the left third with the fjord ahead of it, so the empty water reads as the direction it is heading.

### [Tips](https://runware.ai/docs/models/sandai-magi-2/guides/prompting#tips)

1. **Write one clause per decision.** Purpose, camera, action, subject, light and sound each get their own sentence, so each can change on its own.
    
2. **Keep a clip to one or two actions and one camera move.** More beats need more seconds, or a [shot list](https://runware.ai/docs/models/sandai-magi-2/guides/long-takes-and-multi-shot).
    
3. **Name the move and where it ends.** A dolly in "to a close-up of the zipper pull" is one path from start to finish.
    
4. **Keep motion at a filmable speed.** Extreme high-speed motion is where MAGI-2 can break a trajectory or the continuity of a shot.
    
5. **Compose for the shape.** Say how much of a person a vertical frame shows, and give an ultrawide subject room to travel.
    
6. **Turn the sound off only when you mix your own.** `settings.audio: false` returns a silent clip for a voiceover or a licensed track.