
Quick answer
There are three practical ways to call MAGI-2 from code in November 2026:
- The official API. Sand.ai's developer platform lists MAGI-2 at $0.08 per second for 1080p, but top-up is not open yet, so you cannot fund an account today.
- Third-party platforms. Higgsfield's MAGI-2 API is reported at about $0.08 per second, sound included.
- The magi-2.run MCP server. Create an API key and connect any MCP-capable agent, such as Claude Code or Cursor, to
https://magi-2.run/api/mcp. Your agent can then generate MAGI-2 videos, billed at 2.8 credits per second.
Option 1: the official MAGI-2 API
MAGI-2 launched on November 24, 2026. Its developer, Sand AI, runs a developer platform at platform.sand.ai with public API docs. The Model & Pricing page lists the magi-2 model at 1080p for $0.08 per second. It also says "Top-up is not supported for the time being", with the launch date to be announced on Sand.ai's X account.
The API offers both a native endpoint and an Ark-compatible endpoint, takes 4–30 second durations and six aspect ratios, and accepts up to 10 image, 5 video and 5 audio references per request.
Until top-up opens you cannot pay for calls there. This is the route to watch if you want a direct relationship with the model's developer. Most individual developers and small teams start on a hosted platform in the meantime.
Option 2: third-party MAGI-2 APIs
Higgsfield launched MAGI-2 on November 24, 2026, launch day; some coverage dates it November 25–26 in US time. Coverage of the launch reports an API rate of about $0.08 per second with sound, so a 10-second clip costs about $0.80 and a 30-second clip about $2.40. Its web app charges 2.5 credits per second. Prices on any platform can change, so check the provider's pricing page before you budget.
We compare Higgsfield and magi-2.run in more detail in Higgsfield MAGI-2: price, limits and alternatives.
Option 3: the magi-2.run MCP server for AI agents
If you build with an AI agent, MCP (Model Context Protocol) is often simpler than a REST client. You don't write upload code, polling loops or retry logic. The agent reads the tool descriptions and calls them for you.

Step 1: create an API key
Sign in to magi-2.run and open Settings → API Keys. Create a key and copy it. Treat it like a password: anyone with the key can spend your credits.
Step 2: connect your agent
Claude Code
claude mcp add --transport http magi-2 \
"https://magi-2.run/api/mcp" \
--header "Authorization: Bearer <YOUR_API_KEY>"Cursor, Windsurf and other clients that use an mcpServers file
{
"mcpServers": {
"magi-2": {
"type": "http",
"url": "https://magi-2.run/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>"
}
}
}
}The server also accepts x-api-key: <YOUR_API_KEY> if your client can't set an Authorization header.
Step 3: smoke-test with curl
The endpoint is a stateless Streamable HTTP server that takes JSON-RPC over POST. A plain GET returns the server info without a key, which is a quick way to check that it is reachable:
curl -s https://magi-2.run/api/mcpWith your key, list the tools and check your balance:
curl -sS -X POST "https://magi-2.run/api/mcp" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
curl -sS -X POST "https://magi-2.run/api/mcp" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_account_status","arguments":{}}}'The tools your agent gets
| Tool | What it does | Key arguments |
|---|---|---|
get_account_status | Credit balance, paid-plan status and the active key | — |
list_models | Enabled video and image models with their resolutions, durations, ratios and reference limits | mediaType: video or image |
estimate_credits | Exact credit quote before you spend anything | mediaType, model (ID from list_models), scene, options such as duration and resolution |
upload_reference_image | Stores a JPEG, PNG or WebP (up to 15 MB) on the site and returns a URL you can pass to a generation | base64 with mimeType, or imageUrl |
generate_video | Starts a video job. Uses MAGI-2 by default | prompt (required), duration, aspect_ratio, resolution, reference_image_urls, or first_frame_url with last_frame_url |
get_task_status | Polls a job and returns the finished video URL | taskId |
list_recent_tasks | Recent jobs, to resume or chain shots | mediaType, page, limit (1–20) |
generate_image | Makes a still, for example a start frame for a later video | prompt, aspect_ratio, image_input |
The server also ships three built-in prompts, replicate_video_director, design_multi_shot_storyboard and qa_review_generated_video, plus two guide resources. Agents that support MCP prompts can use them to plan shots and review results.
Example: generate a 10-second MAGI-2 clip
Leave out model and generate_video uses MAGI-2:
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "generate_video",
"arguments": {
"prompt": "Slow dolly-in on a ceramic coffee cup on a sunlit windowsill, steam curling up, soft morning birdsong and a distant tram bell.",
"duration": 10,
"aspect_ratio": "16:9",
"resolution": "1080p"
}
}
}The call returns a taskId. Poll get_task_status with that ID until the status is complete, then download the video URL. In an agent you would simply ask, "Make a 10-second 16:9 MAGI-2 clip of …", and it chains these calls for you.
Limits to know
- The same MAGI-2 limits as the web app: 1080p, 4–30 seconds, 16:9, 9:16 or 1:1, with native audio.
- Reference images or a start and end frame, not both in the same job. A start frame needs a matching end frame.
- Reference videos are web-only for now. The web generator takes up to 9 images and 5 videos per job.
- Same billing as the website: the same credits, moderation and automatic refund when a job fails.
What MAGI-2 costs on magi-2.run
MAGI-2 costs 2.8 credits per second, rounded up, in every mode. Reference videos cost nothing extra.
| Clip length | Credits | About, yearly plans | About, one-time packs |
|---|---|---|---|
| 4 s | 12 | $0.50–0.60 | $0.96–1.20 |
| 5 s | 14 | $0.58–0.70 | $1.12–1.40 |
| 10 s | 28 | $1.16–1.40 | $2.24–2.80 |
| 15 s | 42 | $1.74–2.09 | $3.36–4.20 |
| 30 s | 84 | $3.47–4.19 | $6.72–8.40 |
The dollar figures come from the pricing page:
- Yearly plans: about $0.041–0.050 per credit, or $0.12–0.14 per second.
- One-time packs: from $19.90 for 200 credits down to $400 for 5,000, or $0.22–0.28 per second.
You can also sign up free and get credits to test MAGI-2 before you pay. Trial clips carry a watermark. Paid clips are watermark-free and include commercial use.
Which route should you choose?
- You want to buy directly from the model's developer: watch the official Sand.ai API and fund it when top-up opens.
- You want the lowest reported per-second rate and already use Higgsfield: use its API.
- You build with an AI agent, or want credits that work in both the browser and code: use the magi-2.run MCP server. You can draft prompts in the prompt library, test them in the browser and then hand the same settings to your agent.
Frequently asked questions
Is there an official MAGI-2 API?
Yes. Sand.ai lists it at $0.08 per second for 1080p, but top-up is not open yet. Most developers start on a hosted platform until it does.
How much does the MAGI-2 API cost?
$0.08 per second at 1080p on Sand.ai's own platform (listed; top-up not open yet), and about $0.08 per second on Higgsfield (reported). On magi-2.run, MAGI-2 costs 2.8 credits per second, about $0.12–0.14 per second on yearly plans and $0.22–0.28 per second on one-time packs.
Can I call MAGI-2 from Claude Code or Cursor?
Yes. Add https://magi-2.run/api/mcp as an HTTP MCP server with Authorization: Bearer <YOUR_API_KEY>. Create the key at Settings → API Keys.
Are MCP calls billed differently from the website?
No. They use the same credits, moderation and refund-on-failure rules.
Can I send reference videos through MCP?
Not yet. MCP supports text prompts, reference images and start-plus-end frames. Reference videos work in the web generator.
Sources
Checked November 29, 2026.
- magi-2.run MCP server:
GET https://magi-2.run/api/mcp(live server info) and the site's MCP tool definitions. - magi-2.run pricing page for plan and credit-pack prices.
- Sand.ai API Platform, Model & Pricing ($0.08/s at 1080p; top-up not supported yet) and Ark compatibility (durations, ratios, references).
- higgsfield.ai blog "MAGI-2 Prompt Guide" (2.5 credits/s in the web app); news.sulat.com, "Higgsfield launches MAGI-2", November 26, 2026 (~$0.08/s API rate).

