MAGI-2 API
https://api.sand.ai/compatible/ark/api/v3. You create a task with model: magi-2, a duration of 4 to 30 seconds, one of six ratios and your text and media, then poll until it succeeds. Output is 1080p with sound by default, at USD 0.08 a second. SceneMixer does not offer this API; it is a series app on its own tiers.
Create and fetch a task
- Create:
POST /compatible/ark/api/v3/contents/generations/taskswithAuthorization: Bearer <API_KEY>. Returns an id. Creation is not idempotent: do not resend after a lost response. - Fetch:
GET /compatible/ark/api/v3/contents/generations/tasks/{id}. Keep polling while queued or running. - Done: on succeeded, download
content.video_url; the link lasts one hour, and fetching the task again refreshes it.
Parameters that matter
The fields below are from the platform’s Ark compatibility page.
| Field | What it takes |
|---|---|
| model | magi-2 |
| content | 1 to 21 items: text, image_url, video_url, audio_url |
| duration | Required; whole seconds from 4 to 30 |
| ratio | Required; 21:9, 16:9, 4:3, 1:1, 3:4 or 9:16 |
| resolution | 1080p only (the default) |
| generate_audio | true by default; false for a silent clip |
| enhance_prompt | Optional; true or false, else the model default |
| seed | Omit or -1 for random; 0 to 4,294,967,295 to fix it |
Content items and limits
- At most one text item, up to 15,000 characters; text is optional when media is present.
- Images: up to 10 general references (role reference_image), or one first_frame, or a first_frame and last_frame pair.
- Videos: up to 5 (role reference_video), each 2–30 seconds, 30 seconds combined.
- Audio: up to 5 clips (role reference_audio), 30 seconds combined.
- Frame requests cannot also carry general references. Media can be
asset://IDfrom the upload endpoint, a public HTTPS URL, or base64 for images and audio. - Options can also ride at the end of the prompt, for example
--rt 16:9 --dur 5 --rs 1080p; top-level fields win.
Errors you will meet
- 400 InvalidParameter (a field the endpoint does not accept, such as watermark, returns this even when false)
- 400 InputSensitiveContentDetected and InsufficientBalance
- 401 / 403 authentication
- 404 AssetNotFound
- 413 request over 64,000,000 bytes
- 429 RateLimitExceeded
- 500 / 503 service errors
Python, in a few lines
With the Ark SDK installed, point it at Sand.ai: client = Ark(base_url="https://api.sand.ai/compatible/ark/api/v3", api_key=..., max_retries=0), then client.content_generation.tasks.create(model="magi-2", content=[{"type": "text", "text": "..."}], duration=5, ratio="16:9", resolution="1080p") and poll tasks.get(task_id=...) every few seconds. Pass extra_body={"enhance_prompt": False} to switch prompt enhancement off.
An API makes clips; a series needs a pipeline
If you are building a storytelling product on the API, you will also need a script reader, a cast library, shot planning and an editor. SceneMixer is that product already, running on its own video tiers: Wan 3.0 · 1080P at 38 credits a second, Seedance 2.5 Pro at 75, and cheaper drafts on Wan 3.0 · 480P. How SceneMixer makes a short drama
Sources
- Sand AI Platform, Ark compatibility (API reference)
- Sand AI Platform, Model & Pricing
- Sand AI Platform, Balance and billing
Facts about MAGI-2 on this page come from the pages above, read on November 29, 2026. Sand.ai changes its pages and prices; check them before you build on a detail. SceneMixer is not affiliated with Sand.ai, and the figures for SceneMixer’s own tiers are read from its live price list each time this page is built.
FAQ
Is there a MAGI-2 API?
Yes, on the Sand AI Platform at platform.sand.ai.
What is the MAGI-2 API base URL?
https://api.sand.ai/compatible/ark/api/v3, using the Ark request format.
How much does the MAGI-2 API cost?
USD 0.08 per second at 1080p, per the platform's Model & Pricing page.
What durations does the API accept?
Whole seconds from 4 to 30.
Can the API make silent clips?
Yes; set generate_audio to false.
Can I remove the watermark parameter?
Leave watermark out entirely; sending it, even as false, returns a 400 error.
Does the API support 720p or 4K?
No. Only 1080p is supported.
Is there an API for making whole series?
Not from Sand.ai. SceneMixer is an app that turns a script into episodes on its own tiers; it does not resell the MAGI-2 API.
Updated November 29, 2026