Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

release(v3.2.1): Ideogram 4 out of the box — un-gated mirror + mflux bundled

mrbizarroc46d879351bd
diff --git a/VERSION b/VERSION
index 944880f..e4604e3 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.2.0
+3.2.1
diff --git a/install.js b/install.js
index c766607..0d12760 100644
--- a/install.js
+++ b/install.js
@@ -334,11 +334,37 @@ module.exports = {
}
},
+ // ---- Image-engine pack (mflux: Ideogram 4 + Qwen-Edit) ----------------
+ // 2026-06-13: Ideogram 4 + the visual text-placement editor are headline
+ // features now, so the mflux image-engine runner ships by default instead
+ // of only behind the optional "Install Qwen-Image-Edit" action. (Reported
+ // by cocktailpeanut: token saved + regions drawn but Generate stayed
+ // disabled because mflux — and thus mflux-generate-ideogram4 — was absent.)
+ // Safe to bundle: install.js already pins huggingface-hub to a range mflux
+ // requires, and mflux lives in the same venv as the LTX stack. BEST-EFFORT —
+ // a pip hiccup must not fail the core (video) install; the panel surfaces a
+ // one-click "Reinstall image engines" path if it didn't land. Two-step
+ // (with-deps then --no-deps) mirrors install_qwen.js so transitive deps
+ // resolve, then the version is locked + the FBCache patch applied.
+ {
+ method: "shell.run",
+ params: {
+ message: [
+ "echo 'Installing the mflux image-engine pack (Ideogram 4 + Qwen-Edit)…' && \\",
+ "( ./ltx-2-mlx/env/bin/pip install 'mflux==0.18.0' && \\",
+ " ./ltx-2-mlx/env/bin/pip install --force-reinstall --no-deps 'mflux==0.18.0' && \\",
+ " ./ltx-2-mlx/env/bin/pip install 'mlx-teacache==0.4.1' && \\",
+ " ./ltx-2-mlx/env/bin/python3.11 patch_mflux_fbcache.py ) \\",
+ "|| echo 'WARN: mflux image-engine install hit an error — video still works; use the Reinstall image engines action to retry image generation.'"
+ ].join("\n")
+ }
+ },
+
// ---- Done -------------------------------------------------------------
{
method: "notify",
params: {
- html: "<b>Phosphene installed.</b><br>Click <b>Start</b> to launch the panel, then <b>Open Panel</b>."
+ html: "<b>Phosphene installed</b> — video + image generation (incl. Ideogram 4).<br>Click <b>Start</b> to launch the panel, then <b>Open Panel</b>."
}
}
]
diff --git a/mlx_ltx_panel.py b/mlx_ltx_panel.py
index c6d8257..b0cf9dc 100644
--- a/mlx_ltx_panel.py
+++ b/mlx_ltx_panel.py
@@ -2621,6 +2621,29 @@ def _repo_hf_cache_dir(repo_id: str) -> Path | None:
return revs[0][0]
+# ---- Ideogram 4 weights source -------------------------------------------
+# The official ideogram-ai/ideogram-4-fp8 repo is license-gated, which forced
+# every user through an HF token + "Agree and access" dance — the #1 support
+# pain (cocktailpeanut hit it too). cocktailpeanut re-published an UN-GATED
+# mirror with identical fp8 weights, so we pull from that: no token, no license
+# click, no 403. We still prefer an already-downloaded official copy so existing
+# users don't re-fetch 28 GB.
+IDEOGRAM_REPO_UNGATED = "cocktailpeanut/ideogram-4-fp8"
+IDEOGRAM_REPO_OFFICIAL = "ideogram-ai/ideogram-4-fp8"
+
+def _ideogram_repo_cached(repo_id: str) -> bool:
+ snap = _repo_hf_cache_dir(repo_id)
+ return snap is not None and (snap / "transformer" / "diffusion_pytorch_model.safetensors").exists()
+
+def _ideogram_any_cached() -> bool:
+ return _ideogram_repo_cached(IDEOGRAM_REPO_OFFICIAL) or _ideogram_repo_cached(IDEOGRAM_REPO_UNGATED)
+
+def _resolve_ideogram_repo() -> str:
+ # Reuse an existing official download; otherwise the un-gated mirror so a
+ # first-time user needs no Hugging Face token.
+ return IDEOGRAM_REPO_OFFICIAL if _ideogram_repo_cached(IDEOGRAM_REPO_OFFICIAL) else IDEOGRAM_REPO_UNGATED
+
+
def _repo_missing_in_cache(repo: dict) -> list[str] | None:
"""Files missing from the HF cache snapshot for this repo, or None if
the repo isn't in the cache at all (caller treats None as "fall back to
@@ -6005,16 +6028,11 @@ def run_image_job_inner(job: dict) -> None:
"Cannot access", "snapshot_download",
"_resolve_model_path", "PathResolution")):
raise RuntimeError(
- "Ideogram 4 couldn't download its weights — Hugging Face denied "
- "access to the gated repo. Check both, on the SAME account: "
- "(1) a Hugging Face Read token is set in Settings → API tokens "
- "(a fine-grained token limited to your own repos can't read "
- "another org's gated repo — use a Read token); (2) that same "
- "account has accepted the license at "
- "https://huggingface.co/ideogram-ai/ideogram-4-fp8 (click "
- "“Agree and access”). If you've already done both, your token is "
- "most likely from a different account than the one that accepted "
- "— regenerate it on the accepting account. Then try again."
+ "Ideogram 4 couldn't download its weights from the Hugging Face "
+ "mirror (cocktailpeanut/ideogram-4-fp8). This repo is un-gated, so "
+ "no token or license acceptance is needed — this is almost always "
+ "a network or disk-space issue. Check your connection and free "
+ "space (~28 GB), then try again."
) from _gen_exc
raise
finally:
@@ -7960,7 +7978,7 @@ def _build_image_engine_config(
_ideo_preset = str(form.get("ideo_preset") or "V4_DEFAULT_20").strip() or "V4_DEFAULT_20"
return agent_image_engine.ImageEngineConfig(
kind="mflux",
- mflux_model="ideogram-ai/ideogram-4-fp8",
+ mflux_model=_resolve_ideogram_repo(), # un-gated mirror unless official already cached
mflux_family="ideogram",
mflux_preset=_ideo_preset,
mflux_lora_paths=[],
@@ -8849,7 +8867,7 @@ class Handler(BaseHTTPRequestHandler):
# Quality dropdown can switch to V4_TURBO_12 (faster) or
# V4_QUALITY_48 (slower) but the static estimate stays on
# the default tier until observed timings self-correct it.
- ("ideogram4_inline", "ideogram-ai/ideogram-4-fp8", 28.0, 150.0, 60.0),
+ ("ideogram4_inline", IDEOGRAM_REPO_UNGATED, 28.0, 150.0, 60.0),
# HiDream lab subprocess: ~45s cold load (BF16 weights →
# MLX) per batch. Denoise times measured from the May 2026
# step+FBCache bench at HD 2560×1440.
@@ -8880,13 +8898,11 @@ class Handler(BaseHTTPRequestHandler):
else:
_snap = _repo_hf_cache_dir(repo)
cached = _snap is not None
- # A gated repo can leave a stub snapshot (only the public
- # README/LICENSE arrived before the 403), which would read
- # as "cached". Require a real weight file for Ideogram so
- # the setup note stays up until the weights truly land.
- if cached and engine == "ideogram4_inline":
- cached = (_snap / "transformer"
- / "diffusion_pytorch_model.safetensors").exists()
+ # Ideogram: count EITHER the un-gated mirror OR an existing
+ # official download, and require a real weight file (a
+ # gated stub snapshot has only README/LICENSE).
+ if engine == "ideogram4_inline":
+ cached = _ideogram_any_cached()
# mflux engines additionally need their per-family
# binary on disk (e.g. mflux-generate-qwen-edit).
# Issue #12 (sureshkpiitk): the Image Studio let
@@ -8926,11 +8942,10 @@ class Handler(BaseHTTPRequestHandler):
"sec_per_image": round(sec, 1),
"cold_start_sec": cold,
"samples_source": samples,
- # Gated HF repo (Ideogram 4 ships non-commercial): the
- # user must accept the license once on HF before the
- # weights download. Surface it so the UI guides them
- # instead of letting the first render fail with a 403.
- "gated": (engine == "ideogram4_inline"),
+ # Ideogram 4 now pulls an un-gated mirror — no token, no
+ # license click. gated stays False; the UI just shows a
+ # one-time-download heads-up until the weights land.
+ "gated": False,
"license_url": ("https://huggingface.co/" + repo)
if (repo and engine == "ideogram4_inline") else None,
})
@@ -20146,18 +20161,14 @@ HTML = r"""<!doctype html>
ideoBuildCaption() emits the EXACT schema the mflux Ideogram4
caption verifier expects; imgStudioGenerate() posts it as `prompt`. -->
<div class="ideo-panel" id="ideoPanel" hidden>
- <!-- One-time setup note: Ideogram 4's weights are license-gated
- (non-commercial). Shown only while they aren't cached yet;
- toggled + filled by ideoUpdateSetupNote() from engine_status. -->
+ <!-- One-time download heads-up: shown only while the Ideogram weights
+ aren't cached yet. NO token / license click — Phosphene pulls an
+ un-gated mirror. Toggled by ideoUpdateSetupNote() from engine_status. -->
<div class="ideo-setup-note" id="ideoSetupNote" hidden>
- <svg class="ph" aria-hidden="true" style="flex:0 0 auto;width:18px;height:18px;margin-top:1px"><use href="#ph-lock-key"/></svg>
+ <svg class="ph" aria-hidden="true" style="flex:0 0 auto;width:18px;height:18px;margin-top:1px"><use href="#ph-info"/></svg>
<div class="ideo-setup-body">
- <strong>One-time setup — Ideogram 4 is free, but license-gated.</strong>
- <ol class="ideo-setup-steps">
- <li>Add an HF <button type="button" class="ideo-link" onclick="openSettingsModal()">access token</button> in Settings → API tokens — a <strong>Read</strong> token (a fine-grained token limited to your own repos can’t fetch gated models like this one).</li>
- <li><a id="ideoLicenseLink" href="https://huggingface.co/ideogram-ai/ideogram-4-fp8" target="_blank" rel="noopener" class="ideo-link" onclick="openExternal(this.href); return false;">Accept the license ↗</a> — click “Agree and access”.</li>
- </ol>
- <span class="ideo-setup-hint">Your first render then downloads it (<span id="ideoSetupDlGb">~27&nbsp;GB</span>, one-time). Personal/research use is free; commercial use needs a paid license from Ideogram.</span>
+ <strong>First render downloads Ideogram 4 (<span id="ideoSetupDlGb">~28&nbsp;GB</span>, one-time).</strong>
+ <span class="ideo-setup-hint">No account or token needed — Phosphene pulls an un-gated community mirror. Personal/research use is free; commercial use needs a license from Ideogram.</span>
</div>
</div>
<div class="ideo-head">
@@ -22716,11 +22727,9 @@ function ideoUpdateSetupNote() {
const eng = engEl ? engEl.value : '';
const info = (typeof _IMG_ENGINE_STATUS === 'object' && _IMG_ENGINE_STATUS)
? _IMG_ENGINE_STATUS[eng] : null;
- const show = !!(eng === 'ideogram4_inline' && info && info.gated && !info.cached);
+ const show = !!(eng === 'ideogram4_inline' && info && !info.cached);
note.hidden = !show;
if (show) {
- const link = document.getElementById('ideoLicenseLink');
- if (link && info.license_url) link.href = info.license_url;
const gb = document.getElementById('ideoSetupDlGb');
if (gb && info.download_gb) gb.textContent = '~' + info.download_gb.toFixed(0) + ' GB';
}
diff --git a/pinokio.js b/pinokio.js
index bd89023..1cad145 100644
--- a/pinokio.js
+++ b/pinokio.js
@@ -177,7 +177,12 @@ module.exports = {
baseMenu.push({ icon: "fa-solid fa-wand-magic-sparkles", text: "Install Sharp upscaler (PiperSR, optional)", href: "install_sharp.js" })
}
if (!qwen_ready) {
- baseMenu.push({ icon: "fa-solid fa-images", text: "Install Qwen-Image-Edit (multi-ref keyframes, optional)", href: "install_qwen.js" })
+ // mflux image-engine pack now ships in install.js/update.js; this entry
+ // is a recovery action shown only when the pack isn't present (e.g. a
+ // failed pip step, or a pre-3.2.1 install that hasn't updated). Renamed
+ // off "Qwen-Image-Edit" — it enables Ideogram 4 too (cocktailpeanut's
+ // confusion: installing "Qwen" to use Ideogram).
+ baseMenu.push({ icon: "fa-solid fa-images", text: "Reinstall image engines (Ideogram 4 + Qwen-Edit)", href: "install_qwen.js" })
}
baseMenu.push(
{ icon: "fa-solid fa-rotate", text: "Update", href: "update.js" },
diff --git a/update.js b/update.js
index 075e673..05dd041 100644
--- a/update.js
+++ b/update.js
@@ -193,29 +193,27 @@ module.exports = {
method: "shell.run",
params: {
message: [
- // Step 1: probe. If mflux isn't already on the venv, skip the
- // whole repair block — user didn't install Qwen, don't add it
- // on their behalf.
- "if ./ltx-2-mlx/env/bin/python -c 'import mflux' 2>/dev/null; then \\",
- " echo 'mflux present — refreshing pin to 0.18.0 with deps to repair any missing transitive packages…' && \\",
- // Step 2: install WITH deps so pip resolves the full transitive
- // set (transformers, accelerate, sentencepiece, etc.). Repairs
- // any user whose previous --no-deps install left deps missing.
- " ./ltx-2-mlx/env/bin/pip install 'mflux==0.18.0' && \\",
- // Step 3: force-reinstall WITHOUT deps to lock the version
- // without churning the deps we just installed.
+ // 2026-06-13: the mflux image-engine pack (Ideogram 4 + Qwen-Edit) is
+ // now STANDARD — installed for EVERY user on update, not just those who
+ // once ran the optional installer. This is what unblocks Ideogram 4 for
+ // everyone who never opted in (cocktailpeanut hit exactly this: token
+ // saved, regions drawn, but family_installed:false because the mflux CLI
+ // was absent). Safe to bundle: the base install already pins
+ // huggingface-hub to a range mflux requires (see install.js), and mflux
+ // lives in the same venv as the LTX stack.
+ //
+ // BEST-EFFORT: wrapped in ( … ) || echo so a pip hiccup (network) does
+ // NOT fail the whole update — video is unaffected, and the panel
+ // surfaces a one-click reinstall path if mflux didn't land.
+ //
+ // Two-step (WITH deps then --force-reinstall --no-deps) mirrors
+ // install_qwen.js so the full transitive set (transformers, accelerate,
+ // sentencepiece, …) resolves, then the version is locked.
+ "echo 'Installing/refreshing the mflux image-engine pack (Ideogram 4 + Qwen-Edit) — now standard…' && \\",
+ "( ./ltx-2-mlx/env/bin/pip install 'mflux==0.18.0' && \\",
" ./ltx-2-mlx/env/bin/pip install --force-reinstall --no-deps 'mflux==0.18.0' && \\",
- // Step 4: install (or refresh) mlx-teacache 0.4.1 (MIT) for the
- // optional FLUX.2 TeaCache wrap (run_mflux_with_teacache.py).
- // Gated by the same `import mflux` probe above — only land this
- // for users who actually opted into mflux. Pinned exact for
- // reproducibility. The TeaCache wrap self-checks mflux compat and
- // falls back to the bare CLI if the API moved, so the mflux 0.18
- // bump (for Ideogram 4 + Qwen-Edit) can't break FLUX.2.
- " ./ltx-2-mlx/env/bin/pip install 'mlx-teacache==0.4.1'; \\",
- "else \\",
- " echo 'mflux not installed (user never opted into Qwen image gen) — skipping mflux repair.'; \\",
- "fi"
+ " ./ltx-2-mlx/env/bin/pip install 'mlx-teacache==0.4.1' ) \\",
+ "|| echo 'WARN: mflux image-engine install hit an error — video is unaffected; re-run Update, or use the Reinstall image engines action, to retry.'"
].join("\n")
}
},