Skip to main content
MAGIAI
實測驗證 2026-12-02環境建置與部署14 分鐘閱讀
480B MoE · 1080p @ 25fps · 10 cr/s編輯與驗證政策

MAGI-2 ComfyUI 與開源權重實戰指引:本地預覽版 vs. 雲端 480B API

截至 2026 年 12 月,MAGI-2 名稱背後其實對應兩套截然不同的模型權重:Hugging Face 上採 Apache 2.0 授權的 MAGI-2 Preview 開源預覽版(總參數 114B/啟用約 6B、最長 10 秒、998.5 Elo、儲存庫約 307 GB),以及託管雲端的 480B MoE 旗艦版(啟用約 28B、1080p @ 25fps 支援 4–30 秒、20 組 Omni-Reference 全向參考、1150.3 Elo、每秒 10 點數)。即便透過 Colnb83/comfyui-magi2-native 進行 NVFP4 量化(Transformer 約 71.8 GB),預覽版仍至少需要 96 GB VRAM 的 Blackwell 顯卡搭配 64 GB 主機記憶體。對於 24–32 GB 顯存的工作站而言,最務實的管線是在 ComfyUI 本地端先產出靜態關鍵幀草稿,再透過 50 行 Python 橋接腳本派發至 480B 雲端 API 生成動態影像。

開源預覽權重
114B (Apache 2.0)
NVFP4 ComfyUI 最低門檻
96 GB VRAM + 64 GB RAM
託管旗艦版 MoE
480B (啟用約 28B)
雲端費率 / 試拍額度
10 點/秒 (贈 40 點免費試用)
環境建置與部署實測驗證 2026-12-02
多顯卡工作站旁擺放顯示 ComfyUI 節點圖的螢幕,呈現本地關鍵幀佈局橋接至託管 480B MAGI-2 雲端動態算圖的混合流程
混合製片紀律:在 ComfyUI 本地鎖定靜態關鍵幀,透過 REST 派發 4–30 秒 480B 動態算圖。
01

究竟哪一版才是真正開源?為何 114B 預覽版不等於 11 月的 480B 模型

透過工作室光纖下載 307 GB 的 safetensors 權重前,請先確認你拉取的是哪一個檢查點。Sand.ai 目前僅針對兩個較舊或預覽版本的檢查點釋出 Apache 2.0 開源權重:舊世代 MAGI-1(2025 年 4 月,24B 基礎版/4.5B 蒸餾版,無聲自迴歸分段生成,不支援 Omni-Reference)與 MAGI-2 Preview(2026 年 8 月,sand-ai/MAGI-2-preview,總參數 114B/啟用約 6B 的 Flow MoE 架構)。至於 11 月 24 日發表的旗艦級 480B MAGI-2(在 4T tokens 上訓練的 8-head Latent MoE,每次啟用約 28B 參數),截至 2026-12-02 仍僅透過託管 API 提供服務。

兩者在畫質與表現上的落差並非微乎其微。在 Artificial Analysis Video Arena v2.1 榜單上,MAGI-2 Preview 僅拿下 998.5 Elo,片長上限為 10 秒,且參考條件控制與人聲嘴型同步都較為鬆散。反觀託管旗艦版 480B 則一口氣躍升 +151.8 Elo 至均分 1150.3(在圖生影片項目更以約 1163–1165 Elo 並列第一),將連續算圖時長翻三倍至 30 秒(25fps 共 750 幀),並開放全部 20 個 Omni-Reference 插槽(10 張圖片、5 段合計不超過 30 秒的影片、5 段合計不超過 30 秒的音訊),統一採每秒 10 點數計費。

如果你在本地 ComfyUI 實測的片段顯得模糊、超過 8 秒就崩壞,或對白嘴型開始漂移,你看到的其實是 8 月 114B 預覽版的能力上限——而非託管 480B 模型真正算出的品質。

何時「不該」在本地執行 MAGI-2 Preview

若你需要交付客戶級對白片段、15–30 秒長鏡頭,或要求多角色連戲一致性,且手邊只有 24 GB RTX 4090 或 32 GB RTX 5090,請直接跳過本地 MAGI-2 Preview。硬跑只會承受雙重代價:畫質與同步精度落後 151.8 Elo,加上極為嚴重的 PCIe CPU-RAM 記憶體置換卡頓。

02

實測顯存、磁碟空間與 ComfyUI 節點矩陣(2026 年 12 月)

社群工程師已透過 Colnb83/comfyui-magi2-native 與 4-bit NVFP4 量化檢查點 colinb83/MAGI-2-preview-NVFP4,為 Apache 2.0 預覽版打造出真正原生的 ComfyUI 執行路徑。NVFP4 微區塊量化搭配 E4M3 縮放因子,能將 MoE Transformer 從超過 228 GB 壓縮至約 71.8 GB 並進行即時 bf16 反量化,且與 Wan2.2 VAE、音訊模組、FlowUniPCMultistepScheduler 以及選配的 magi2_refiner.safetensors 1080p 精修通道串接。

然而即使歷經 3 倍壓縮,權重本體加上 KV cache、VAE 啟用張量與精修緩衝區,依然遠超市面上任何一張消費級遊戲顯卡的負荷:

  • 請留意 Hugging Face MAGI-2-preview 模型卡片上已失效的 404 範例提示詞連結——建議直接從 GitHub 上的 SandAI-org/MAGI-2-preview 與 Colnb83/comfyui-magi2-native 拉取參考設定檔。
  • 即使是 NVFP4 版本,也請至少預留 120 GB 可用 Gen4 NVMe 空間:約 71.8 GB Transformer 分片 + Wan2.2 VAE + 音訊編解碼器 + magi2_refiner.safetensors + ComfyUI 暫存快取。
  • 在 96 GB 顯卡上進行提示詞探索階段時,建議先停用 magi2_refiner.safetensors,待隨機種子定案後再開啟 1080p 精修通道。
MAGI-2 本地 ComfyUI 硬體需求 vs. 託管 480B API(2026-12-02 實測驗證)
部署目標檢查點與授權最低 VRAM 與主機記憶體磁碟佔用空間實務評價
8× H100 (80 GB) / H200 叢集MAGI-2 Preview 114B (FP8/BF16 · Apache 2.0)640 GB+ 總計 VRAM · 256 GB+ RAM約 310 GB NVMe全精度預覽版推論與微調研發;仍受限於 10 秒上限與 998.5 Elo
1× RTX PRO 6000 Blackwell (96 GB)MAGI-2 Preview NVFP4 (colinb83 · Apache 2.0)96 GB VRAM · 64 GB+ 主機 RAM約 120 GB NVMe原生 ComfyUI 執行且不發生 PCIe 抖動的最低單卡門檻
1× RTX 5090 (32 GB) / RTX 4090 (24 GB)MAGI-2 Preview NVFP4 + CPU 卸載24–32 GB VRAM · 128 GB+ 系統 RAM約 120 GB NVMe每步需經 PCIe 串流約 40–50 GB;慢到無法用於創作迭代
1× RTX 4090 (24 GB) — 本地替代方案Wan 2.2 / Wan 2.6 或 MAGI-1 4.5B (Apache 2.0)24 GB VRAM · 32–64 GB RAM約 25–50 GB NVMe可行的本地影片原型驗證與自訂 LoRA(不具備 480B MAGI-2 音訊/30 秒同級表現)
MagiAI Studio 託管 480B APIMAGI-2 旗艦版 480B (啟用約 28B · 託管)0 GB 本地 VRAM(任何筆電或 ComfyUI 節點皆可)0 GB 本地空間4–30 秒 1080p @ 25fps + 音訊 + 20 組參考;10 點/秒(贈 40 點免費試用 = 4 秒測試)
03

誠實的本地 vs. 雲端決策矩陣(含硬體資本支出損益兩平試算)

開源權重工程不是意識形態之爭,而是資源限制下的取捨。在某些管線情境下,於本地執行 Apache 2.0 預覽版——或是在 24 GB 設備上保留 Wan 2.6 開源權重——確實比呼叫任何雲端端點更合理;但也有明確的分界線,一旦越線,本地顯卡只會消耗龐大資本卻產出更遜色的成品:

本地開源權重 vs. MagiAI Studio 雲端 480B 決策矩陣
工作流需求本地預覽版 (114B NVFP4)託管雲端旗艦版 (480B)誠實建議
實體隔離/極嚴格 NDA 規範且不可離線外傳的素材支援於本地 96 GB / 8× H100 硬體執行不適用(需透過 HTTPS 上傳媒體)維持本地使用 Preview 或 Wan 2.6 開源權重
自訂 LoRA 訓練、排程器改造與權重底層檢測完整 Apache 2.0 存取權重與 FlowUniPC 排程器封閉權重;僅能透過提示詞與 20 組參考引導使用本地預覽版 (114B) 進行研發測試
不受 PG-13 規範限制的成人/R 級藝術創作自主管理的本地審核機制嚴格的商業級 PG-13 安全過濾(違規攔截 100% 自動退點)雲端 MAGI-2 僅限商業合規之 PG-13 普遍級內容
15–30 秒有聲對白、嘴型同步與 20 組 Omni-Reference上限 10 秒;影音同步精準度較低 (998.5 Elo)完整 4–30 秒 @ 1080p/25fps + 5 組音訊參考 (1150.3 Elo)託管 480B 旗艦版全面勝出
每月產出預算低於 1,500 秒成片96 GB 主機攤提約 $417/月(另計電費)Studio API / Director 方案約 $135–$164/月($0.090–$0.096/秒)在累計約 100,000+ 秒以內,雲端成本均優於自購硬體資本支出
04

工作室混合架構:在 ComfyUI 佈局關鍵幀,透過 REST 派發 480B 動態算圖

對 24 GB RTX 4090 工作站來說,最乾淨俐落的架構是將「空間美術指導」與「時間軸影音合成」徹底拆離。在本地 ComfyUI(搭配 Flux、SDXL、ControlNet 深度/姿態、IP-Adapter)以每幀 $0 成本精確鎖定鏡頭幾何構圖、角色三視設定與首尾關鍵幀,輸出 1920×1080 sRGB WebP。由於 MAGI-2 一旦鎖定第一幀便在 Artificial Analysis 圖生影片榜單並列第一(約 1163–1165 Elo),將 ComfyUI 靜態圖送入託管 480B MAGI-2 即可達成旗艦級畫質,同時完全不耗用本地影片擴散顯存。

只要取得一組 Studio API 金鑰(於 `/studio/api-keys` 建立 `mgk_live_*`),即可用 50 行 Python 橋接腳本包裝 MagiAI Studio 真實的 `/api/jobs` 端點——或從自訂 ComfyUI 工具節點呼叫——並採用非同步輪詢,確保長達 7–26 分鐘的 480B 算圖不會造成 HTTP 連線逾時。若管線工程師需要在同一張 ComfyUI 節點圖中同時調度 MAGI-2 與其他雲端影片模型,亦可將此橋接器指向 Sand.ai 原生 API 或如 SpicyAPI 等多模型開發者閘道器:

Python 3 REST 橋接器 — ComfyUI 匯出關鍵幀 -> MagiAI Studio 480B API
python
import os
import time
import requests

API_BASE = "https://magiai.ai/api/jobs"
API_KEY = os.environ["MAGIAI_API_KEY"]  # Scoped mgk_live_* key from /studio/api-keys
HEADERS = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json",
}

def submit_and_poll(payload: dict, poll_interval: int = 25, max_wait_s: int = 2100) -> str:
    """Submit a 4-30s flagship 480B MAGI-2 job and poll asynchronously until MP4 delivery."""
    resp = requests.post(API_BASE, headers=HEADERS, json=payload, timeout=30)
    resp.raise_for_status()
    data = resp.json()
    job_id = data["job"]["id"]
    print(f"[queued] {job_id} | debited {data['job']['credits_charged']} cr | balance: {data['creditsBalance']} cr")

    deadline = time.monotonic() + max_wait_s
    while time.monotonic() < deadline:
        time.sleep(poll_interval)
        status_resp = requests.get(f"{API_BASE}/{job_id}", headers=HEADERS, timeout=30)
        status_resp.raise_for_status()
        job = status_resp.json()["job"]
        state = job["status"]

        if state == "completed" and job.get("output_url"):
            return job["output_url"]
        if state == "refunded":
            # Automatic 100% credit refund on failed or PG-13 policy_filtered jobs
            raise RuntimeError(f"Job {job_id} refunded: {job.get('error_message')}")
        print(f"[polling] {job_id} -> {state}")

    raise TimeoutError(f"Job {job_id} still active past {max_wait_s}s; check /studio/jobs before resubmitting.")

if __name__ == "__main__":
    # Always start with a 4s audition (40 credits) to verify lighting + voice before scaling to 15-30s
    audition_payload = {
        "mode": "reference-to-video",
        "duration": 4,
        "aspectRatio": "16:9",
        "generateAudio": True,
        "likenessConsent": True,
        "referenceImages": [
            "https://cdn.yourstudio.com/comfy-exports/hero-portrait-front.webp",
            "https://cdn.yourstudio.com/comfy-exports/set-plate-3200k.webp",
        ],
        "referenceAudios": [
            "https://cdn.yourstudio.com/stems/lead-voice-dry-5s.wav",
        ],
        "prompt": (
            "REFERENCES: Lead character (@image_1); darkroom workshop (@image_2); dry vocal timbre (@audio_1). "
            "[00:00-00:04] Medium 50mm slow dolly-in on @image_1 inside @image_2 under warm 3200K lamp light. "
            "She sets a brass lens onto the oak bench and says evenly in @audio_1 voice: "
            ""Check the gate weave before we print reel two." "
            "Audio: quiet workshop room tone, solid brass clink on oak, no music."
        ),
    }
    mp4_url = submit_and_poll(audition_payload)
    print(f"[completed] 1080p @ 25fps MP4 -> {mp4_url}")
工程備註: 忠實對應 MagiAI Studio 線上 POST /api/jobs 與 GET /api/jobs/{id} 介面規範:固定 10 點/秒(本 4 秒試拍範例為 40 點)、與網頁版 Studio 共用同一點數帳本,且當狀態回傳 'refunded' 時自動 100% 退還點數。
05

將 ComfyUI 節點圖橋接至 480B 雲端算圖時的五大常見失敗模式

多數失效的混合腳本並非敗在提示詞寫法,而是卡在媒體編碼或同步逾時。串接批次佇列前,請先排除這五個問題:

  • 阻斷 ComfyUI 主執行緒長達 20 分鐘:旗艦版 480B 佇列在正常負載下需耗時 7–26 分鐘。請非同步提交任務、將 job_id 寫入磁碟,並由解耦的監聽程式取回完成的 MP4,切勿讓 ComfyUI 介面凍結卡死。
  • 上傳原始 16-bit PNG、EXR 或 iPhone HEIC:ComfyUI SaveImage 預設輸出體積龐大的無壓縮 PNG,會拖慢傳輸並觸發驗證失敗。請統一匯出 5 MB 以內的 8-bit sRGB WebP 或 JPEG(1920×1080 或 1080×1920)。
  • 在圖生影片模式傳入比例不符的 aspectRatio:於 I2V 模式下,MAGI-2 會直接繼承 image 的取景比例;若 lastImage 採用不同像素比例,影片會在鏡頭中途產生變形扭曲。請將兩張 ComfyUI 輸出圖縮放至完全一致的像素尺寸。
  • 在 reference-to-video 漏掉 likenessConsent:以程式呼叫 /api/jobs 且 mode='reference-to-video' 時,若未在確認上傳演員/人聲片段授權後帶入 likenessConsent: true,API 將直接回傳 HTTP 400 拒絕。
  • 用迴圈反覆以 30 秒片長試錯:切勿直接以 duration=30(單次 1,500 點)掃描五組隨機種子。請先用 duration=4(每次僅 40 點)測試種子,鎖定最佳提示詞與參考素材後,再升級產出最終 20–30 秒母帶。
社群實證檔案 · 2026-12-02

經核實的社群實戰發現

Reddit (r/StableDiffusion)觀察日期 2026-12-02

Local consumer GPU infeasibility and early preview trade-offs

Local enthusiasts on r/StableDiffusion examine MAGI-2-preview (~114B total / ~6B active Flow-style MoE using FlowUniPCMultistepScheduler and a 1080p refiner) and conclude that even quantized builds (~72-128 GB footprint) remain far beyond consumer GPUs—steering practical usage to hosted APIs. Early preview testers also reported slow renders and mixed motion reliability.

關鍵啟示: Consumer 24 GB cards (such as RTX 4090) cannot run MAGI-2 locally at practical speeds; cloud APIs are the only realistic path for the 480B flagship.r/StableDiffusion MAGI-2 Threads
Reddit (r/LocalLLaMA)觀察日期 2026-12-02

Untangling 114B August Preview vs. 480B November Flagship

Threads on r/LocalLLaMA clarify that two checkpoints are routinely conflated: the August 2026 open-weights Preview (114B total / ~6B active, ~307 GB repo on Hugging Face) and the November 24 Flagship (480B total / ~28B active, 4T tokens, API-hosted while open weights are pending). Enthusiasts testing wan2gp or single RTX 5090 offloaded runs report long wait times.

關鍵啟示: Always verify whether a benchmark, repo, or guide refers to the 114B Apache-2.0 Preview or the 480B commercial Flagship.r/LocalLLaMA MAGI-2 Threads
Hugging Face Discussions觀察日期 2026-12-02

NVFP4 96 GB quantization, ComfyUI nodes, and preview repo feedback

Discussions on sand-ai/MAGI-2-preview cover ComfyUI integration (Colnb83/comfyui-magi2-native), heavy VRAM requirements, Civitai availability questions, and broken 404 model-card links to system prompt examples. Community repo colinb83/MAGI-2-preview-NVFP4 compresses the MoE transformer from >228 GB to ~71.8 GB (on-the-fly bf16 dequantization) yet still requires a 96 GB VRAM GPU (e.g., RTX PRO 6000 Blackwell) plus ~64 GB host RAM.

關鍵啟示: Local NVFP4 experimentation is viable for workstation/enterprise 96 GB GPUs running the 114B preview, not consumer gaming cards.Hugging Face sand-ai/MAGI-2-preview & colinb83 NVFP4
GitHub & ComfyUI Ecosystem觀察日期 2026-12-02

Native ComfyUI node integration for MAGI-2-preview shards

The community custom node pack Colnb83/comfyui-magi2-native bridges MAGI-2-preview NVFP4 transformer shards with stock ComfyUI loaders, the Wan2.2 VAE, audio modules, and the optional magi2_refiner.safetensors 1080p upscaling pass alongside SandAI-org/MAGI-2-preview research code.

關鍵啟示: ComfyUI builders have a real path to test the Apache-2.0 114B preview on 96 GB workstations while awaiting 480B open weights.GitHub Colnb83/comfyui-magi2-native
實戰技巧

Audition in 4-6 Seconds Before Committing to a 30s Master

Validate casting, lighting, camera direction, and vocal timbre with a 4-6 second run ($0.32-$0.48 wholesale) first. Only scale to 15-30 seconds after the visual and acoustic foundation locks.

實戰技巧

Keep Start/End Keyframe Prompts Literal and Transition-Only

When supplying opening (and optional closing) keyframes, omit redundant appearance descriptions and focus the prompt strictly on physical motion, camera path, and audio bridging Frame A to Frame B.

瀏覽器工具

搭配免費瀏覽器工具立即實作

96 GB vs 10 點/秒

成本與本地 GPU 損益兩平試算器

比較攤提 96 GB 工作站或租用 8× H100 執行 114B 預覽版,與每秒 10 點託管 480B 算圖的成本差異。

10圖 + 5影 + 5音

20 插槽 Omni-Reference 規劃器

在送出 REST 請求負載前,預先驗證 ComfyUI 匯出靜態圖、Blender 粗模動態片段與人聲分軌。

技術參考

常見問題

我可以在個人電腦的 ComfyUI 裡本地執行旗艦版 480B MAGI-2 嗎?

不行。截至 2026 年 12 月,旗艦版 480B MAGI-2 權重並未開源,僅透過雲端 API 提供。目前只有 8 月的 114B MAGI-2 Preview(Apache 2.0 授權、上限 10 秒、998.5 Elo)擁有 ComfyUI 自訂節點(Colnb83/comfyui-magi2-native),且即使經過 NVFP4 量化,仍需至少 96 GB VRAM 的 Blackwell 顯卡與 64 GB 以上主機記憶體。

持有 24 GB RTX 4090 的創作者,現階段該如何搭配 ComfyUI 使用旗艦版 MAGI-2?

在本地 ComfyUI 以 $0 成本產出鎖定的首尾關鍵幀與角色三視設定圖,匯出為 1080p sRGB WebP 素材圖後,送入 MagiAI Studio 託管 480B API(POST /api/jobs)生成 4–30 秒動態與原生音軌——完全不佔用本地影片算圖顯存,即可享有 MAGI-2 並列榜首的圖生影片畫質。

MagiAI Studio 的 API 是否與網頁版時間軸 Studio 共用點數?

是的。Studio API 方案建立的限定權限 mgk_live_* 金鑰,與瀏覽器工作區共用同一組點數餘額(每秒 10 點 = 1080p @ 25fps + 音訊 + 20 組參考),且任務失敗或遭 policy_filtered 攔截時均享有 100% 自動退點保障。

繼續探索 MAGI-2 實戰指南

全部技術指南
MAGI-2 ComfyUI 工作流與 API 節點建置指引