Models / Image to video
MAGI-2 Image to Video - API, Playground & Pricing
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.
- Provider
- Sand AI
- Category
- 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

$ YOUR NEXT RUN
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.
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 |
|---|---|
# image | file required Allowed: image file, as a URL or upload The first frame: a link or an upload |
# prompt | string required Describe the motion, the action, the camera, what people say and the sound |
# last_image | file optional Allowed: image file, as a URL or upload Optional last frame: the clip ends on this picture |
# 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 Shape of the video: 16:9, 9:16, 1:1, 4:3 or 3:4 (left out: the closest to the picture's) |
# 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.
flymyai/magi-2-image-to-videoflymyai/magi-2-image-to-videoflymyai/magi-2-image-to-videoMAGI-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 |
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 | 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 | 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 | 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 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.
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.





