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

> Run MAGI-2 Image 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 your picture, with an optional last frame and sound made with the video.

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

Models / Image to video

MAGI-2 from Sand AI animates your picture into a 4 to 30 second 1080p clip with sound, and can end on a last 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-image-to-video) [<> Get API](https://flymy.ai/models/magi-2-image-to-video/#api)

**Provider**

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

**Category**

[Image to video](https://flymy.ai/models/image-to-video/) / Image to video

**Price**

$0.08 / s ($0.40 at the defaults)

**Aspect ratio**

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

**Length**

4 to 30 seconds

**Returns**

`video`

**Commercial use**

Allowed

**Model ID**

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

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

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

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use MAGI-2 Image 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-image-to-video.md. Help me connect the FlyMy.AI MCP to this assistant, then run MAGI-2 Image to Video (flymyai/magi-2-image-to-video) for this task: Animate the photo I attach with MAGI-2 Image to Video: the person turns and smiles at the camera.
```

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

## What MAGI-2 Image to Video does

Send image, which becomes the first frame, and prompt, both required; prompt runs to 15,000 characters and says the motion, the camera, what people say and the sound. last_image, optional, makes the clip end on that picture. duration runs from 4 to 30 seconds (5 by default), aspect_ratio is 16:9, 9:16, 1:1, 4:3 or 3:4 (left out, the clip takes the shape closest to your picture) and generate_audio is on by default (false gives a silent clip at the same price). Output: video, one 1080p MP4 clip with sound.

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 needs a picture (MAGI-2 Text to Video works from text, MAGI-2 Reference to Video takes several pictures, clips and audio), renders 1080p only and does not edit or extend a video.

If the picture shows a real person, you need the right to use their likeness.

## MAGI-2 Image to Video inputs

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

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/magi-2-image-to-video/#input-image) `image` | file required Allowed: image file, as a URL or upload The first frame: a link or an upload |
| [#](https://flymy.ai/models/magi-2-image-to-video/#input-prompt) `prompt` | string required Describe the motion, the action, the camera, what people say and the sound |
| [#](https://flymy.ai/models/magi-2-image-to-video/#input-last_image) `last_image` | file optional Allowed: image file, as a URL or upload Optional last frame: the clip ends on this picture |
| [#](https://flymy.ai/models/magi-2-image-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-image-to-video/#input-aspect_ratio) `aspect_ratio` | string optional Allowed: 16:9, 9:16, 1:1, 4:3, 3:4 Shape of the video: 16:9, 9:16, 1:1, 4:3 or 3:4 (left out: the closest to the picture's) |
| [#](https://flymy.ai/models/magi-2-image-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.

**“Animate the photo I attach with MAGI-2 Image to Video: the person turns and smiles at the camera.”** runs `flymyai/magi-2-image-to-video`

**“Turn my product shot into a 10-second clip with MAGI-2 Image to Video, the camera slowly circling it.”** runs `flymyai/magi-2-image-to-video`

**“Make a video with MAGI-2 Image to Video that moves from my first picture to my second one with a smooth camera move.”** runs `flymyai/magi-2-image-to-video`

## MAGI-2 Image 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 Image to Video vs similar models

Popular image 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 Image to Video** | Sand AI | Image to video | $0.08 / s | $0.40 | 4 to 30 seconds | 16:9, 9:16, 1:1, 4:3, 3:4 |
| [Wan 3.0 Reference to Video](https://flymy.ai/models/wan-3-0-ref2v/) | Alibaba | Reference to video | from $0.05 / s | $0.50 | 1 to 30 seconds | 16:9, 4:3, 1:1, 3:4, 9:16, 21:9 and 1 more |
| [Seedance 2.5 Reference to Video](https://flymy.ai/models/bytedance-seedance-2-5-reference-to-video/) | ByteDance | Reference to video | from $0.10794 / s | about $1.22 | 4 to 30 seconds | 16:9, 4:3, 1:1, 3:4, 9:16, 21:9 and 1 more |
| [MAGI-2 Reference to Video](https://flymy.ai/models/magi-2-reference-to-video/) | Sand AI | Reference to video | $0.08 / s | $0.40 | 4 to 30 seconds | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 |

## MAGI-2 Image 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-image-to-video/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/magi-2-image-to-video/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F "image=@photo.jpg" \
  -F 'prompt=Slow camera push-in with gentle, natural motion in the scene'
```

### 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-image-to-video",
    payload={
        "image": "https://example.com/photo.jpg",
        "prompt": "Slow camera push-in with gentle, natural motion in the scene"
    },
)
# 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(
  {
    "image": "https://example.com/photo.jpg",
    "prompt": "Slow camera push-in with gentle, natural motion in the scene"
  },
  "flymyai/magi-2-image-to-video",
);
console.log(response.output_data);
```

### MCP

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

```
{
  "endpoint_id": "flymyai/magi-2-image-to-video",
  "input": {
    "image": "https://example.com/photo.jpg",
    "prompt": "Slow camera push-in with gentle, natural motion in the scene"
  }
}
```

## Questions about MAGI-2 Image to Video

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

No. MAGI-2 Image 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 Image 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 Image to Video before I write code?**

Yes. Open MAGI-2 Image to Video in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/magi-2-image-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 Image 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: "Animate the photo I attach with MAGI-2 Image to Video: the person turns and smiles at the camera." Your agent reads the inputs with get_model_schema and runs flymyai/magi-2-image-to-video with run_model.

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

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

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

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

## More image to video models

Animate a photo, or move from a first frame to a last one.

### Seedance 2.5 Image to Video

Seedance 2.5 from a photo: up to 30 seconds, first-to-last-frame moves, real people allowed.

Image to video / from $0.10794 / s

Link: https://flymy.ai/models/bytedance-seedance-2-5-image-to-video/

### Wan 3.0 Image to Video

Wan 3.0 from your image: up to 30 seconds, adaptive framing and a soundtrack.

Image to video / from $0.05 / s

Link: https://flymy.ai/models/wan-3-0-i2v/

### Veo 3.1 Lite Image to Video

Bring a product shot or a portrait to life with Veo 3.1 at its low-cost tier.

Image to video / from $0.12 / run

Link: https://flymy.ai/models/veo-3-1-lite-image-to-video/

### Wan 2.7 Image to Video

Wan 2.7 from a still: first-to-last-frame moves with natural motion.

Image to video / from $0.10 / s

Link: https://flymy.ai/models/wan-2-7-i2v/

### LTX 2.5 Fast Image to Video

LTX 2.5 speed mode for pictures: quick animations and two-frame transitions, up to 4K.

Image to video / from $0.09 / s

Link: https://flymy.ai/models/ltx-2-5-fast-image-to-video/

### Seedance 2.0 Image to Video

Seedance 2.0 from one keyframe: a still becomes a clip with motion and sound.

Image to video / from $0.0673 / s

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

## Go to the source

[MAGI-2 Image to Video in the playground →](https://app.flymy.ai/models/flymyai/magi-2-image-to-video), [Image to video models →](https://flymy.ai/models/image-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.
