Models / Image to video
MAGI-2 Reference to Video - API, Playground & Pricing
MAGI-2 from Sand AI keeps characters, products and voices from your pictures, clips and audio in a 4 to 30 second 1080p clip. 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 / Reference 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-reference-to-video

$ YOUR NEXT RUN
Use MAGI-2 Reference 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-reference-to-video.md. Help me connect the FlyMy.AI MCP to this assistant, then run MAGI-2 Reference to Video (flymyai/magi-2-reference-to-video) for this task: Use MAGI-2 Reference to Video to make a clip of the character in my reference images walking along a beach at golden hour.
What MAGI-2 Reference to Video does
Send prompt, required, up to 15,000 characters, and references: up to 10 pictures in images (characters, products, places, a style), up to 5 clips in videos (a motion, a camera move, a scene) and up to 5 audio clips in audios (a voice, music, a sound). Each clip or audio is 2 to 30 seconds and 30 seconds in all; a longer one is trimmed. Name each reference in the prompt by its role and order (the first picture, the second clip, the voice in the audio) and the clip keeps them consistent. 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.
It is billed per second of video you ask for; the references cost nothing extra and the sound does not change the price. 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 renders 1080p only and does not edit or extend a video; for text alone use MAGI-2 Text to Video, to animate one picture as the first frame use MAGI-2 Image to Video.
Use only pictures, clips and audio you have the right to use: a real person's face or voice needs that person's consent.
MAGI-2 Reference to Video inputs
Every input of flymyai/magi-2-reference-to-video as its live schema lists them. Returns video (array).
| Input | Type, values and default |
|---|---|
# prompt | string required Describe the video and name each reference by its role and order (the first picture, the second clip, the voice in the audio) |
# images | string optional Up to ten reference pictures (characters, products, places, a style), links or uploads |
# videos | string optional Up to five reference video clips (a motion, a camera move, a scene), links or uploads, 2-30 seconds each and 30 seconds in all |
# audios | string optional Up to five reference audio clips (a voice, music, a sound), links or uploads, 2-30 seconds each and 30 seconds in all |
# 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.
flymyai/magi-2-reference-to-videoflymyai/magi-2-reference-to-videoflymyai/magi-2-reference-to-videoMAGI-2 Reference 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 Reference 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 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 |
| 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 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 |
MAGI-2 Reference 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-reference-to-video/predict/async/result/?request_id=<prediction_id>.
curl -X POST https://api.flymy.ai/api/v1/flymyai/magi-2-reference-to-video/predict/async/ \
-H "X-API-KEY: $FLYMYAI_API_KEY" \
-F 'prompt=Keep the subject and its motion, set the scene on a beach at golden hour'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-reference-to-video",
payload={
"prompt": "Keep the subject and its motion, set the scene on a beach at golden hour"
},
)
# 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": "Keep the subject and its motion, set the scene on a beach at golden hour"
},
"flymyai/magi-2-reference-to-video",
);
console.log(response.output_data);MCP
Your agent calls get_model_schema, then run_model with:
{
"endpoint_id": "flymyai/magi-2-reference-to-video",
"input": {
"prompt": "Keep the subject and its motion, set the scene on a beach at golden hour"
}
}Questions about MAGI-2 Reference to Video
Do I need a Sand AI API key for MAGI-2 Reference to Video?
No. MAGI-2 Reference 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 Reference 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 Reference to Video before I write code?
Yes. Open MAGI-2 Reference to Video in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/magi-2-reference-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 Reference 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: "Use MAGI-2 Reference to Video to make a clip of the character in my reference images walking along a beach at golden hour." Your agent reads the inputs with get_model_schema and runs flymyai/magi-2-reference-to-video with run_model.
What does MAGI-2 Reference to Video need as input?
MAGI-2 Reference to Video requires prompt; it also takes 6 optional inputs, each listed on this page with its allowed values and default.
Can I call MAGI-2 Reference to Video from my own code?
Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/magi-2-reference-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.





