Models / Text to video

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

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.

Provider
Sand AI
Category
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
MAGI-2 Text to Video sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude CodeCodexCursorAny 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.AIDownload brief

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).

InputType, values and default
# prompt
string required Describe the video: the scene, the action, the camera, what people say and the sound
# duration
integer optional Allowed: 4 to 30 Default: 5 Length of the clip in seconds, 4-30; $0.08 a second
# 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
# 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.

SettingPrice
Any$0.08 per second

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.

ModelProviderKindPriceDefault runLengthAspect ratio
MAGI-2 Text to VideoSand AIText to video$0.08 / s$0.404 to 30 seconds16:9, 9:16, 1:1, 4:3, 3:4, 21:9
Grok Imagine Video 1.5xAIText and image to videofrom $0.08 / s$0.701 to 15 seconds16:9, 9:16, 1:1, 4:3, 3:4, 3:2 and 3 more
Veo 3.1GoogleText and image to videofrom $0.80 / run$3.204, 6 or 8 seconds16:9, 9:16
Seedance 2.0 Text to VideoByteDanceText to videofrom $0.0673 / sabout $0.6054 to 15 secondsadaptive, 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 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.

Go to the source

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.