MAGI-2 Entwicklerdokumentation
Zuverlässige Audio-Video-Pipelines auf Sand.ais 480B MAGI-2 entwickeln: Live-REST-Schemas, asynchrones 7–26-Minuten-Polling, Hosting-Matrix und SDK-Beispiele.
Dokumentationsmodule
Schnellstart
Erste 480B-MAGI-2-Text-to-Video-Anfrage mit nativem Audio senden, asynchrones Prediction-Polling testen und 7–26-Minuten-Warteschlangen sauber steuern.
API-Referenz
Komplette Sand.ai MAGI-2 API-Referenz: Video-Endpunkte (T2V, I2V, 20-Slot Omni-Reference), JSON-Schemas, Dauer-Enums und asynchrones Polling.
Nebenläufigkeit & Webhooks
Mehrminütige MAGI-2-Render-Latenzen produktionssicher beherrschen: mit asynchronen Webhooks, idempotenten Job-IDs und begrenzter Worker-Nebenläufigkeit.
Hosting-Verfügbarkeit
Aktuelles Verzeichnis verifizierter MAGI-2 API-Hosts und Preise (0,08 $/s) sowie der Status bei fal.ai, Replicate, SpicyAPI und Sand.ai.
Moderation & Erstattungen
Wie MAGI-2 PG-13-Moderation vorgelagert bei 0 $ Inferenzkosten durchsetzt und MagiAI Studio gefilterte Jobs automatisch zu 100 % erstattet.
SDKs & Code-Beispiele
Produktionsreife TypeScript-, Python- und cURL-Clients für MAGI-2 T2V, I2V Start-/Endframe & 20-Slot-Omni-Reference mit Pre-Flight-Check & Polling.
Kanonische 480B MAGI-2 Endpunkte
POST https://api.atlascloud.ai/api/v1/model/generateVideo| Atlas Modell-ID | Funktionen | API-Grundpreis |
|---|---|---|
| sand-ai/magi-2/text-to-video | Generates 4–30s 1080p @ 25fps video with synchronized single-pass dialogue, foley, and ambience directly from a timestamped director prompt up to 15,000 characters. | $0.08/s |
| sand-ai/magi-2/image-to-video | Animates a start keyframe—and optional closing last_image keyframe—at 1080p @ 25fps with synchronized sound while preserving the start frame aspect ratio. | $0.08/s |
| sand-ai/magi-2/reference-to-video | Combines up to 20 multimodal assets (10 images, 5 videos <=30s combined, 5 audios <=30s combined) to lock identity, wardrobe, props, camera motion, and voice timbre across 4–30s takes. | $0.08/s |