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

MAGI-2 ComfyUI 工作流藍圖:原生節點、20 組全能參考與混合雲架構

截至 2026 年 12 月 2 日,MAGI-2 的生產級 ComfyUI 工作流明確分為兩種架構:(1) 原生本地執行:在配備 96 GB 顯存的 Blackwell 工作站上,透過 `Colnb83/comfyui-magi2-native` 搭配 `colinb83/MAGI-2-preview-NVFP4` 運行 Apache 2.0 授權的 MAGI-2 Preview(114B,最長 10 秒);(2)「本地整備+雲端算圖」混合工作流:在任何 24–32 GB 顯存的 RTX 4090/5090 顯卡上預先整備 10 張圖像、5 段影片(總長 <= 30 秒)與 5 段音訊(總長 <= 30 秒),串聯多節拍 30 秒提示詞,並以非阻塞方式將任務派發至旗艦版 480B MAGI-2(`POST /api/jobs`),在 7–26 分鐘的雲端算圖期間完全不凍結 ComfyUI 執行佇列。

原生節點套件
comfyui-magi2-native
全能參考匯流排
10 圖 + 5 影 + 5 音(上限 20 組)
原生匯出規格
1080p @ 25fps MP4
混合雲佇列模式
非同步提交+背景輪詢
環境建置與部署實測驗證 2026-12-02
多格角色、燈光與資產參考面板,示範 ComfyUI 藍圖中的 MAGI-2 20 槽位全能參考(Omni-Reference)路由配置
將 ComfyUI 中的空間資產整備(10 圖+5 影+5 音)與執行採樣器解耦,讓本地 114B Preview 與雲端 480B 共用同一套節點圖。
01

`Colnb83/comfyui-magi2-native` 逐節點剖析(本地 114B NVFP4)

若你擁有配備 96 GB 顯存的 Blackwell RTX PRO 6000(主機記憶體 64 GB 以上),並希望在 ComfyUI 內完全離線運行八月釋出的 Apache 2.0 114B Preview,`Colnb83/comfyui-magi2-native` 能將 Sand.ai 的 Preview 架構無縫橋接至標準 ComfyUI 張量型別。掌握每個階段的記憶體駐留狀況,才能在啟用 1080p 精修器(Refiner)時避免節點圖執行到一半發生隨機顯存溢位(OOM)崩潰。

Preview 管線具備高度模組化設計:NVFP4 混合專家(MoE)Transformer(約 71.8 GB)會在 `FlowUniPCMultistepScheduler` 排程器下對聯合潛空間張量進行降噪,接著將視覺潛空間張量交給 Wan2.2 VAE 解碼器、聲學潛空間張量交給音訊解碼器,並可選擇性通過 `magi2_refiner.safetensors` 進行細節精修,最後透過 `VHS_VideoCombine` 以 25fps 將畫面與 48kHz 音軌封裝輸出。在探索隨機種子(Seed)階段請先繞過精修器,待構圖與動態鎖定後再開啟。

ComfyUI 節點圖階段對照:本地 `comfyui-magi2-native`(114B Preview)vs. 混合雲 480B
節點圖階段本地 `comfyui-magi2-native`(96 GB NVFP4)混合雲 480B API 節點圖(任意 24 GB 顯卡)顯存與驗證規則
1. 靜態與參考素材整備Flux / SDXL / ControlNet 載入器 -> 縮放至 1080pFlux / SDXL / ControlNet -> 匯出 8-bit sRGB WebP(< 5 MB)載入本地 NVFP4 權重分片前,務必先卸載生圖模型權重
2. 多模態打包節點精簡版 Preview 參考條件張量20 槽位 Omni-Ref 清單節點(10 圖+5 影+5 音+URL 檢查)送出前強制驗證 sum(video_sec) <= 30 秒且 sum(audio_sec) <= 30 秒
3. 提示詞與時間軸節點單節拍/雙節拍文字編碼器(<= 10 秒時間跨度)節拍串聯器([00:00-00:30]+2.5 詞/秒護欄+「no music」)控制在 15,000 字元上限內;每次硬切換鏡頭後重新注入 `@image_n`
4. 核心合成運算NVFP4 Transformer(約 71.8 GB)+ `FlowUniPCMultistepScheduler`非同步 `Magi2SubmitNode` -> `POST /api/jobs`(2 秒內回傳 `job_id`)切勿在 ComfyUI 主執行緒內以 sleep 輪詢苦等 7–26 分鐘
5. 解碼、精修與封裝Wan2.2 VAE+音訊解碼頭+選用 `magi2_refiner.safetensors`解耦監聽程式將 1080p @ 25fps MP4 寫入 -> `/output/magi2/`嚴格對齊 25.000fps 原生節奏;妥善處理 `refunded` 退款狀態
02

串接全部 20 個全能參考槽位(10 圖+5 影+5 音)且避免跨槽位串擾

旗艦版 480B MAGI-2 單次任務最多可接收 20 組多模態參考(`referenceImages[0..9]`、`referenceVideos[0..4]`、`referenceAudios[0..4]`),且免收任何額外附加費。許多第三方消費級畫布工具會截斷這些輸入,或乾脆省略音訊槽位。在 ComfyUI 內建立專屬的「全能參考清單群組(Omni-Reference Manifest Group)」,能讓團隊在整季劇集製作中系統化鎖定演員臉部、服裝、道具、Blender 動態參考片與乾聲人聲母帶。

請在節點群組內部強制執行嚴格的槽位編排規範,讓提示詞範本能在不同集數間直接複用:保留 `@image_1`–`@image_3` 給主角多角度設定圖、`@image_4`–`@image_6` 給服裝與核心道具、`@image_7`–`@image_10` 給現場實拍燈光參考板與場景環境;保留 `@video_1`–`@video_2` 給運鏡/走位動態參考(每段 2–30 秒、合計 <= 30 秒、25fps 固定幀率 H.264);並保留 `@audio_1`–`@audio_3` 給乾聲人聲色調母帶(每段 2–30 秒、合計 <= 30 秒、48kHz WAV/MP3)。

  • 預先上傳至可直連的 HTTPS 物件儲存(Cloudflare R2 或 S3 預簽章網址):遠端推論節點無法抓取 ComfyUI 本地的 `127.0.0.1` 路徑,也無法讀取回傳 `text/html` 的 Google Drive 檢視頁面網址。
  • 自動淨化 ComfyUI `SaveImage` 輸出的 PNG:在輕量預上傳節點內將 16-bit PNG 匯出檔轉為 8-bit sRGB WebP(畫質 92、精確解析度 1920×1080 或 1080×1920),讓 10 張圖像的酬載可在 2 秒內完成上傳。
  • 在清單節點內計算累計時長:只要 `sum(video_durations) > 30.0`、`sum(audio_durations) > 30.0`,或任何片段短於 2.0 秒,便於呼叫 `/api/jobs` 前在本地直接中止。
  • 僅在依據專案已簽署授權表逐一核對過每位演員/配音員的資產 ID 後,才填入 `likenessConsent: true`。
03

時間軸提示詞串聯與可複用的 ComfyUI JSON 節點圖藍圖

把長達 3,500 字元的 30 秒多節拍劇本硬塞進單一個小小的 ComfyUI `CLIPTextEncode` 文字框,幾乎註定會出現錯字、漏掉 `no music` 結尾,以及超過 6–7 秒後的嘴型同步漂移。正確做法是串接一套四階段字串組裝子圖:(1) `GlobalLookHeader`(長寬比、35mm 鏡頭質感、3200K 現場實景燈光、參考索引表);(2) 模組化 `BeatBlock` 節點(`[00:00-00:05]`、`[00:05-00:11]`、`[00:11-00:17]` 等),內建 Python 語速檢查(`words / beat_sec <= 2.8`);(3) 自動補上 `no music` 後綴;(4) `AuditionSliceToggle` 開關,在切換到完整 24–30 秒算圖前,先擷取第 1 節拍(`duration: 4`)以 40 點數執行試鏡測試。

下方是一份結構清晰且符合 Schema 規範的 ComfyUI 自訂節點酬載契約,示範混合雲 `Magi2OmniDispatch` 節點如何將串聯後的時間軸與 20 槽位清單序列化為 MagiAI Studio 線上 `/api/jobs` 介面格式:

混合式 ComfyUI 派發清單(MagiAI Studio /api/jobs 的 JSON 酬載契約)
json
{
  "node_type": "Magi2HybridCloudDispatch",
  "execution_mode": "async_non_blocking",
  "audition_slice_only": true,
  "endpoint": "https://magiai.ai/api/jobs",
  "preflight_checks": {
    "total_refs": 7,
    "video_duration_sum_sec": 6.0,
    "audio_duration_sum_sec": 9.5,
    "max_beat_speech_wps": 2.4,
    "no_music_enforced": true
  },
  "payload": {
    "mode": "reference-to-video",
    "duration": 4,
    "aspectRatio": "16:9",
    "generateAudio": true,
    "likenessConsent": true,
    "referenceImages": [
      "https://r2.yourstudio.com/ep02/cast_lead_front.webp",
      "https://r2.yourstudio.com/ep02/cast_lead_3quarter.webp",
      "https://r2.yourstudio.com/ep02/wardrobe_waxed_coat.webp",
      "https://r2.yourstudio.com/ep02/prop_brass_compass.webp",
      "https://r2.yourstudio.com/ep02/set_harbor_pier_3200k.webp"
    ],
    "referenceVideos": [
      "https://r2.yourstudio.com/ep02/blender_graybox_dolly_6s_25fps.mp4"
    ],
    "referenceAudios": [
      "https://r2.yourstudio.com/ep02/lead_voice_dry_48k_9s.wav"
    ],
    "prompt": "REFERENCES: Lead (@image_1, @image_2) wearing @image_3 holding @image_4 on @image_5; match camera cadence of @video_1 and vocal timbre of @audio_1. GLOBAL LOOK: 16:9 live-action 35mm film grain, wet midnight pier lit by 3200K sodium dock lamps. [00:00-00:04] Medium 50mm push-in as @image_1 opens @image_4 under the lamp and says calmly: \"The tide turns in six minutes.\" Audio: harbor water slap against pilings, brass lid click, dry close vocal, no music."
  }
}
工程備註: 當 4 秒測試的燈光、角色相似度與乾聲人聲音色皆已鎖定後,將 `audition_slice_only` 從 `true`(duration: 4 -> 40 點數)切換為 `false`(duration: 24 -> 240 點數)即可進行正式算圖。
04

將 ComfyUI 執行佇列與 7–26 分鐘的旗艦 480B 算圖徹底解耦

在正常生產流量下,旗艦版 480B MAGI-2 任務從提交到完成約需 7 至 26 分鐘(社群爆紅尖峰時段可能更久)。若你寫了一個天真的 ComfyUI 自訂節點,呼叫 `POST /api/jobs` 後直接卡在 `while True: time.sleep(20)` 迴圈裡等待,ComfyUI 的單執行緒執行佇列將會死鎖整整 25 分鐘——導致你完全無法在本地 RTX 4090 上繼續生成下一個鏡頭的 Flux 關鍵影格!

請改採雙節點「非同步拆分(Async Split)」模式:節點 A(`Magi2AsyncSubmit`)負責提交酬載,將 `{job_id, scene_tag, credits_charged, submitted_at}` 寫入本地 SQLite/JSONL 帳本檔(`./magi2_jobs.jsonl`),並在 2 秒內立即回傳,讓你的顯卡馬上回頭整備第二個鏡頭。另一支輕量背景 Python 常駐程式(或節點 B `Magi2PullCompleted`)則每 25 秒輪詢一次 `GET /api/jobs/{id}`,將完成的 1080p @ 25fps MP4 直接下載至 ComfyUI 的 `/output/magi2/` 資料夾,並精準標記任何 `refunded`(`policy_filtered`)任務以供提示詞覆核,絕不重複送單。

未先檢查 `/studio/jobs` 前,切勿在逾時後自動重試

HTTP 用戶端在第 10 分鐘發生連線逾時,並不代表雲端任務失敗——480B 算圖常態執行時間就是 15–26 分鐘。請務必在收到 HTTP 202 受理回應時立即持久化儲存 `job_id`,並持續輪詢該專屬 ID,切勿在 30 秒後重複發出相同請求。

05

讓你的 ComfyUI 節點圖在 480B 開源權重與 LoRA 首日釋出時無痛升級

圍繞嚴謹介面來組織 ComfyUI 節點圖會帶來雙重回報。以今日(2026 年 12 月 2 日)來說,任何配備 RTX 4090 或 RTX 5090 的創作者都能以零雲端美術成本,結合本地 Flux/ControlNet 美術指導與每秒 10 點數的旗艦 480B 雲端動態與音訊算力。未來當 Sand.ai 釋出官方 480B 開源權重——且社群自訂節點或叢集驅動的 ComfyUI 端點就緒時——整張圖唯一需要替換的只有最後端的那個 Dispatch Sampler 子節點。

你上游的角色多視角設定生成器、20 槽位全能參考預檢驗證器、具備 2.5 詞/秒嘴型同步語速檢查的時間軸節拍串聯器,以及下游的 25fps -> 23.976fps FFmpeg/Resolve 匯出節點,全數都能 100% 原封不動沿用。

社群實證檔案 · 2026-12-02

經核實的社群實戰發現

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

Single-pass audio-video economics and literal keyframe transitions

Filmmakers on r/aivideomaking praise unified single-pass audio-video output across 4-30s (9:16 to 21:9) at roughly $2.40-$2.80 per 30s clip versus much steeper Seedance 2.5 costs, while sharing start/end frame advice to keep prompts literal so text never fights visual keyframes.

關鍵啟示: Pair start/end keyframes with concise transition-only text prompts for predictable cinematography at a fraction of rival spend.r/aivideomaking 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
X (Twitter) & Creator Ecosystem觀察日期 2026-12-02

Blender-blocked anime fights praised; water physics & 1080p-only cost flagged

Triangulated X creator reviews and hands-on test videos praise MAGI-2 for storyboard I2V fidelity, 2D animation styling, and turning Blender 3D gray-box pre-vis references into stylized anime combat—while warning about the absence of a 480p/720p draft mode, occasional hallucinations during long unguided tracking shots, and weaker fluid/water physics versus Seedance 2.5 or Kling 4.0.

關鍵啟示: Anchor complex action with pre-vis video references or crisp keyframes, and always test in 4-6s bursts before scaling to 30s.Sand.ai Blog & Independent Creator Reviews
實戰技巧

Script Explicit Timestamps and Hard-Cut Triggers for 15-30s Clips

Divide 15-30 second prompts into explicit time intervals (e.g., 0-5s, 5-11s, 11-18s) and write literal editorial transitions stating exactly what changes in the new frame.

實戰技巧

Isolate Omni-Reference Roles Explicitly per Slot

Assign each reference slot a single clean purpose (character face, wardrobe plate, environment, motion video, or voice timbre) and map each tag explicitly in the prompt so the text can focus on blocking and direction.

實戰技巧

Feed Blender 3D Gray-Box Blocking as a Video Reference for Combat

Render a simple low-effort 3D gray-box blocking clip in Blender to lock timing, hit impacts, and camera cuts, then pass it as a reference video alongside character art plates to generate cohesive stylized anime or cinematic action.

瀏覽器工具

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

10 圖 + 5 影 + 5 音

20 槽位全能參考規劃器

在將 10 張圖像、5 段影片(<= 30 秒)與 5 段音訊(<= 30 秒)寫入 ComfyUI 派發清單前,先行完成槽位驗證。

即時 2.5 詞/秒防護

30 秒時間軸提示詞建構器

建立帶時間戳的多節拍區塊,即時控管 2.5 詞/秒的對白節奏,並匯出乾淨字串供 ComfyUI 使用。

技術參考

常見問題

`comfyui-magi2-native` 是否支援全部 20 個全能參考槽位與 30 秒算圖?

不支援——`Colnb83/comfyui-magi2-native` 是在 96 GB Blackwell 顯卡上運行八月釋出的 Apache 2.0 114B Preview 檢查點(上限 10 秒、精簡參考條件輸入、998.5 Elo)。完整的 20 槽位全能參考(10 圖+5 影+5 音)與 30 秒長鏡頭,目前仍須透過混合雲 API 節點呼叫旗艦版 480B。

為什麼我的 ComfyUI API 節點不應該在節點圖內同步輪詢 `GET /api/jobs/{id}`?

旗艦版 480B 算圖通常耗時 7–26 分鐘。同步輪詢會把 ComfyUI 的執行佇列徹底鎖死,導致本地顯卡無法為其他鏡頭生成關鍵影格或草稿。請改為非同步提交、將 `job_id` 寫入硬碟,再由解耦的監聽程式拉取完成的 MP4。

我可以直接把 ComfyUI 的本地檔案路徑傳入 `referenceVideos` 或 `referenceAudios` 嗎?

不行。雲端推論節點必須存取公開可達的 HTTPS 網址,且該網址需回傳原始媒體 MIME 標頭(`video/mp4`、`audio/wav`、`image/webp`)。請在派發前加上一個快速的 R2/S3 上傳輔助節點。

在微調提示詞的過程中,如何避免 20 槽位 ComfyUI 工作流白白浪費點數?

請在節拍串聯器上接出 `audition_slice_only` 布林開關,將時長鎖定在 4 秒(40 點數/批發價 $0.32 美元),直到角色相似度、燈光與乾聲人聲音色全部定案後,再切換至 15–30 秒進行母版級算圖。

繼續探索 MAGI-2 實戰指南

全部技術指南
MAGI-2 ComfyUI 藍圖:原生節點、20 參考與混合雲