# MAGI-2 Text to Video - API, Playground & Pricing

> Run MAGI-2 Text to Video by Sand AI via API, Playground, or MCP from $0.08 per second - no provider API key needed. Sand AI's MAGI-2 from a prompt: up to 30 seconds at 1080p with dialogue, effects and music.

Page: https://flymy.ai/models/magi-2-text-to-video/

Models / Text to video

MAGI-2 from Sand AI turns a prompt into a 4 to 30 second 1080p clip with sound made together with the picture. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Sand AI API key: runs are billed to your FlyMy.AI balance.

[▶ Try in Playground](https://app.flymy.ai/models/flymyai/magi-2-text-to-video) [<> Get API](https://flymy.ai/models/magi-2-text-to-video/#api)

**Provider**

[Sand AI](https://flymy.ai/models/provider/sand-ai/)

**Category**

[Text to video](https://flymy.ai/models/text-to-video/) / Text to video

**Price**

$0.08 / s ($0.40 at the defaults)

**Aspect ratio**

16:9, 9:16, 1:1, 4:3, 3:4, 21:9

**Length**

4 to 30 seconds

**Returns**

`video`

**Commercial use**

Allowed

**Model ID**

`flymyai/magi-2-text-to-video`

![MAGI-2 Text to Video by Sand AI: text to video sample, 30-second 1080p clips with sound](https://flymy.ai/img/models/magi-2-text-to-video.jpg)

MAGI-2 Text to Video sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use MAGI-2 Text to Video in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

```
Read https://flymy.ai/skill.md and https://flymy.ai/models/magi-2-text-to-video.md. Help me connect the FlyMy.AI MCP to this assistant, then run MAGI-2 Text to Video (flymyai/magi-2-text-to-video) for this task: Make a 10-second 9:16 video of a skateboarder carving through an empty pool with MAGI-2 Text to Video.
```

[Open FlyMy.AI](https://app.flymy.ai/new-agent) [Download brief](https://flymy.ai/models/magi-2-text-to-video.md)

## What MAGI-2 Text to Video does

Describe the subject, the action, the camera, what people say and the sound in prompt, up to 15,000 characters; the model makes dialogue with lip-sync, effects, ambience and music in the same pass as the picture. duration runs from 4 to 30 seconds (5 by default), aspect_ratio is 16:9 (the default), 9:16, 1:1, 4:3, 3:4 or 21:9, and generate_audio is on by default (false gives a silent clip at the same price). Output: video, one 1080p MP4 clip at 25 frames a second.

It is billed per second of video you ask for, the same with or without sound. It is slow while it is new: a clip takes several minutes and can take 15 to 20, so start it as a task and read the clip when it is ready. It works from text (MAGI-2 Image to Video starts from a picture and MAGI-2 Reference to Video keeps characters, products or a voice from your files), renders 1080p only and does not edit or extend a video.

## MAGI-2 Text to Video inputs

Every input of `flymyai/magi-2-text-to-video` as its live schema lists them. Returns `video` (array).

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/magi-2-text-to-video/#input-prompt) `prompt` | string required Describe the video: the scene, the action, the camera, what people say and the sound |
| [#](https://flymy.ai/models/magi-2-text-to-video/#input-duration) `duration` | integer optional Allowed: 4 to 30 Default: `5` Length of the clip in seconds, 4-30; $0.08 a second |
| [#](https://flymy.ai/models/magi-2-text-to-video/#input-aspect_ratio) `aspect_ratio` | string optional Allowed: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 Default: `16:9` Shape of the video: 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9 |
| [#](https://flymy.ai/models/magi-2-text-to-video/#input-generate_audio) `generate_audio` | boolean optional Default: `true` Make the sound with the picture: dialogue, effects, ambience and music (true by default; false gives a silent clip at the same price) |

## Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

**“Make a 10-second 9:16 video of a skateboarder carving through an empty pool with MAGI-2 Text to Video.”** runs `flymyai/magi-2-text-to-video`

**“Write and render a short ad for noise-cancelling earbuds with MAGI-2 Text to Video: three quick shots ending on the product.”** runs `flymyai/magi-2-text-to-video`

**“Generate a calm, slow-camera clip of a barista pouring latte art in a busy cafe with MAGI-2 Text to Video.”** runs `flymyai/magi-2-text-to-video`

## MAGI-2 Text to Video price

$0.08 per second of duration. A run at the default settings costs $0.40. A run costs $0.32 to $2.40, depending on duration. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

| Setting | Price |
|---|---|
| Any | $0.08 per second |

[Every model's price →](https://flymy.ai/models/pricing/) [Usage pricing →](https://flymy.ai/pricing/)

## MAGI-2 Text to Video vs similar models

Popular text to video models beside it, with prices from billing and settings from each live schema.

| Model | Provider | Kind | Price | Default run | Length | Aspect ratio |
|---|---|---|---|---|---|---|
| **MAGI-2 Text to Video** | Sand AI | Text to video | $0.08 / s | $0.40 | 4 to 30 seconds | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 |
| [Grok Imagine Video 1.5](https://flymy.ai/models/grok-imagine-video-1-5/) | xAI | Text and image to video | from $0.08 / s | $0.70 | 1 to 15 seconds | 16:9, 9:16, 1:1, 4:3, 3:4, 3:2 and 3 more |
| [Veo 3.1](https://flymy.ai/models/veo31-generate/) | Google | Text and image to video | from $0.80 / run | $3.20 | 4, 6 or 8 seconds | 16:9, 9:16 |
| [Seedance 2.0 Text to Video](https://flymy.ai/models/bytedance-seedance-2-0-text-to-video/) | ByteDance | Text to video | from $0.0673 / s | about $0.605 | 4 to 15 seconds | adaptive, 21:9, 16:9, 4:3, 1:1, 3:4 and 1 more |

## MAGI-2 Text to Video API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the `X-API-KEY` header; [get a key](https://app.flymy.ai/developers) in your account.

### cURL

Form fields, not JSON; files go as uploads or public URLs. The answer is a `prediction_id`; read the result at `https://api.flymy.ai/api/v1/flymyai/magi-2-text-to-video/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/magi-2-text-to-video/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in'
```

### Python

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
# pip install flymyai
import os

from flymyai import client

fma = client(apikey=os.environ["FLYMYAI_API_KEY"])
task = fma.predict_async_task(
    model="flymyai/magi-2-text-to-video",
    payload={
        "prompt": "Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in"
    },
)
# a long run: wait for its result (up to 30 minutes here)
result = task.result(timeout=1800)
print(result.inference_responses[0].output_data)
```

### JavaScript / TypeScript

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
// npm install flymyai-js-client
import { FlyMyAI } from "flymyai-js-client";

const client = new FlyMyAI({ apiKey: process.env.FLYMYAI_API_KEY });
const response = await client.predict(
  {
    "prompt": "Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in"
  },
  "flymyai/magi-2-text-to-video",
);
console.log(response.output_data);
```

### MCP

Your agent calls `get_model_schema`, then `run_model` with:

```
{
  "endpoint_id": "flymyai/magi-2-text-to-video",
  "input": {
    "prompt": "Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in"
  }
}
```

## Questions about MAGI-2 Text to Video

**Do I need a Sand AI API key for MAGI-2 Text to Video?**

No. MAGI-2 Text to Video runs on FlyMy.AI's account, so you need no Sand AI key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

**How much does MAGI-2 Text to Video cost?**

$0.08 per second of duration. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-27.

**Can I try MAGI-2 Text to Video before I write code?**

Yes. Open MAGI-2 Text to Video in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/magi-2-text-to-video, fill in its inputs and run it; the same run is one API call later, billed the same way.

**How do I use MAGI-2 Text to Video in Claude Code, Codex or Cursor?**

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Make a 10-second 9:16 video of a skateboarder carving through an empty pool with MAGI-2 Text to Video." Your agent reads the inputs with get_model_schema and runs flymyai/magi-2-text-to-video with run_model.

**What does MAGI-2 Text to Video need as input?**

MAGI-2 Text to Video requires prompt; it also takes 3 optional inputs, each listed on this page with its allowed values and default.

**Can I call MAGI-2 Text to Video from my own code?**

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/magi-2-text-to-video/predict/async/ with your FlyMy.AI API key in the X-API-KEY header.

## More text to video models

A written scene becomes a clip, many with sound generated in the same pass.

### Grok Imagine Video 1.5

xAI's video model: 1 to 15 seconds with lip-synced sound from text, a first frame or up to 14 references.

Text and image to video / from $0.08 / s

Link: https://flymy.ai/models/grok-imagine-video-1-5/

### Veo 3.1

Google's flagship Veo 3.1 for motion-critical shots, with references and audio.

Text and image to video / from $0.80 / run

Link: https://flymy.ai/models/veo31-generate/

### Seedance 2.0 Text to Video

Seedance 2.0 from text alone: cinematic motion and sound at up to 1080p.

Text to video / from $0.0673 / s

Link: https://flymy.ai/models/bytedance-seedance-2-0-text-to-video/

### Seedance 2.0 Fast Text to Video

The quick Seedance 2.0 for drafts: prompt-only clips at 480p or 720p with sound.

Text to video / from $0.0538 / s

Link: https://flymy.ai/models/bytedance-seedance-2-0-fast-text-to-video/

### Wan 2.6 Text to Video

The previous Wan generation: 2 to 10 second clips with single or multi-shot cuts.

Text to video / from $0.10 / s

Link: https://flymy.ai/models/wan-2-6-t2v/

### Veo 3.1 Fast

Veo 3.1 at draft speed: first and last frames, references and audio for less.

Text and image to video / from $0.15 / s

Link: https://flymy.ai/models/veo31-fast-generate/

## Go to the source

[MAGI-2 Text to Video in the playground →](https://app.flymy.ai/models/flymyai/magi-2-text-to-video), [Text to video models →](https://flymy.ai/models/text-to-video/), [Sand AI models →](https://flymy.ai/models/provider/sand-ai/), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Every model on FlyMy.AI →](https://flymy.ai/models/), [Model prices →](https://flymy.ai/models/pricing/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog)

From the FlyMy.AI model catalog of 2026-11-27: inputs from each model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
