The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Restore 7: public sign-up rules, the download token, gated LoRAs as before
Claude5c6af57a852e
diff --git a/scripts/eval/cases/restore.json b/scripts/eval/cases/restore.jsonindex f67c91e8..e261db61 100644--- a/scripts/eval/cases/restore.json+++ b/scripts/eval/cases/restore.json@@ -73,7 +73,7 @@},{"id": "restore/written",- "title": "The words written for the clip (Claude, Ollama or the template)",+ "title": "The words written for the clip (Claude, a local model or the template)","inputs": {"video": "local/restore/scan.mp4"},diff --git a/src/app/api/loras/route.ts b/src/app/api/loras/route.tsindex 88766e2c..f83bab72 100644--- a/src/app/api/loras/route.ts+++ b/src/app/api/loras/route.ts@@ -20,7 +20,7 @@ export async function GET() {folder: folder || null,...(problem && { folderProblem: problem }),civitaiKey: !!getSetting("civitaiKey"),- hfToken: !!getSetting("huggingfaceToken"),+ hfToken: !!getSetting("huggingfaceDownloadToken"),loras: LORA_LIBRARY.map((e) => ({key: e.key,name: e.name,diff --git a/src/app/api/restore/estimate/route.ts b/src/app/api/restore/estimate/route.tsindex c1477a36..d4ad71cd 100644--- a/src/app/api/restore/estimate/route.ts+++ b/src/app/api/restore/estimate/route.ts@@ -1,11 +1,16 @@import { estimateRestore, RestoreEstimateSchema } from "@/server/restore";import { body, handle } from "@/server/shorts-schemas";-import { handler } from "@/server/access/route";+import { priceAs } from "@/server/visitor";/** The price, the windows or pieces and the notes for the current settings, before anything runs ("Free" on your GPU). */-export const POST = handler({ access: "signed-in" }, async (request: Request) => {+async function post(request: Request) {return handle(async () => {const input = await body(request, RestoreEstimateSchema, "Add the clip to restore and pick an engine");return Response.json(estimateRestore(input));});-});+}++/** A visitor (public sign-up) gets the price of its run on its own GPU, never a demo (src/server/visitor.ts). */+export async function POST(request: Request) {+ return priceAs(request, () => post(request));+}diff --git a/src/app/api/restore/prompt/route.ts b/src/app/api/restore/prompt/route.tsindex 121d8883..0ec4ac54 100644--- a/src/app/api/restore/prompt/route.ts+++ b/src/app/api/restore/prompt/route.ts@@ -1,11 +1,14 @@import { PromptSchema, writeRestorePrompt } from "@/server/restore";import { body, handle } from "@/server/shorts-schemas";-import { handler } from "@/server/access/route";-/** Write the period / place / light sentence and the negative from a few frames: Claude, Ollama, or Fuobe's offline template. Never generates. */-export const POST = handler({ access: "signed-in" }, async (request: Request) => {+/**+ * Write the period / place / light sentence and the negative from a few frames: Claude, a local model, or Fuobe's+ * offline template. Never generates. The owner's only on a public studio (it asks the studio's own AI helpers): guests+ * and accounts get own-gpu-tool from the proxy.+ */+export async function POST(request: Request) {return handle(async () => {const input = await body(request, PromptSchema, "Add a few frames of the clip or a few words about it");return Response.json(await writeRestorePrompt(input));- });-});+ }, request);+}diff --git a/src/app/api/restore/route.ts b/src/app/api/restore/route.tsindex 40068fbc..1d6a8794 100644--- a/src/app/api/restore/route.ts+++ b/src/app/api/restore/route.ts@@ -1,13 +1,16 @@import { createRestore, RestoreBodySchema } from "@/server/restore";import { body, handle, once } from "@/server/shorts-schemas";-import { handler } from "@/server/access/route";-/** Restore & colourise a clip (Fuobe Restore): the prompt is written first when none is given; windows or pieces are joined and the sound put back. */-export const POST = handler({ access: "signed-in" }, async (request: Request) => {+/**+ * Restore & colourise a clip (Fuobe Restore): the prompt is written first when none is given; windows or pieces are+ * joined and the sound put back. The owner's only on a public studio: it plans with the studio's own AI helpers and+ * chains its steps on the server, so guests and accounts get own-gpu-tool from the proxy (src/proxy.ts).+ */+export async function POST(request: Request) {return handle(async () => {const input = await body(request, RestoreBodySchema, "Add the clip to restore and pick an engine");// A repeated requestId (a second click on Restore) gets the run the first one started.const result = await once("restore", input.requestId, () => createRestore(input));return Response.json(result, { status: 201 });- });-});+ }, request);+}diff --git a/src/components/lora-settings.tsx b/src/components/lora-settings.tsxindex c3128c2a..545e7223 100644--- a/src/components/lora-settings.tsx+++ b/src/components/lora-settings.tsx@@ -243,14 +243,14 @@ export function LoraSettings({ folder, civitaiKey, hfToken }: { folder?: PublicS/><ConnectFieldid="huggingface"- name="huggingfaceToken"+ name="huggingfaceDownloadToken"setting={hfToken}provider="huggingface"- label="Hugging Face token"+ label="Hugging Face token for downloads"placeholder="hf_…"hint={<span>- Only for gated LoRAs (Lightricks' Restore and Detail Refine IC-LoRAs): accept each one's licence on its Hugging Face page with your account, then a+ Only for downloading gated LoRAs (Lightricks' Restore and Detail Refine IC-LoRAs; Assist's Hugging Face key is separate): accept each one's licence on its Hugging Face page with your account, then a“Read” token lets Fuobe download it. It stays on this server: a cloud run gets Fuobe's copy of the file, never your token.{" "}<a href={HF_TOKENS_URL} target="_blank" rel="noreferrer" className="inline-flex items-center gap-1 text-brand-text hover:underline">Make a token <ExternalLink className="size-3" />diff --git a/src/components/restore/hooks.ts b/src/components/restore/hooks.tsindex d706fba3..bed04444 100644--- a/src/components/restore/hooks.ts+++ b/src/components/restore/hooks.ts@@ -41,7 +41,7 @@ export interface RestoreEstimate {export interface PromptAnswer {prompt: string;negative: string;- by: "claude" | "ollama" | "offline";+ by: "claude" | "local" | "offline";why?: string;}@@ -108,7 +108,7 @@ export async function grabFrames(src: string, duration: number | undefined, at =canvas.getContext("2d")?.drawImage(v, 0, 0, canvas.width, canvas.height);try {const url = canvas.toDataURL("image/jpeg", 0.8);- if (url.length < 1_900_000) out.push(url);+ if (url.length < 900_000) out.push(url);} catch {// A clip from another origin taints the canvas: no frames, the writer works from the words.}diff --git a/src/components/restore/restore-tool.tsx b/src/components/restore/restore-tool.tsxindex 393fac18..3b632f32 100644--- a/src/components/restore/restore-tool.tsx+++ b/src/components/restore/restore-tool.tsx@@ -16,7 +16,8 @@ import { ClipBar, ClipDrop, costText, Field, Segmented } from "@/components/shorimport { clipDuration, clipSize, useSourceClip } from "@/components/shorts/use-source-clip";import { Feed } from "@/components/studio/feed";import { MediaSlot, type SlotValue } from "@/components/studio/media-slot";-import { useEngine, useGenerations } from "@/lib/api";+import { SelfHostNote } from "@/components/self-host-note";+import { useEngine, useGenerations, useLikelyVisitor } from "@/lib/api";import { CLOUD_NOTE, GPU_NOTE, RESTORE, restoreNegative } from "@/lib/catalog/restore";import { chainState } from "@/lib/catalog/shorts";import { downloadHref, downloadName } from "@/lib/library";@@ -24,7 +25,7 @@ import { cn } from "@/lib/utils";import { grabFrames, useRestoreActions, useRestoreEstimate, type RestoreBody } from "./hooks";const LIMITS = `MP4, MOV, WebM, MKV or AVI · up to ${RESTORE.maxSeconds / 60} minutes · ${RESTORE.maxBytes / 1024 / 1024 / 1024} GB`;-const BY: Record<string, string> = { claude: "Written by Claude from your frames", ollama: "Written by Ollama on your computer", offline: "Fuobe's template: edit it to fit your footage", you: "Your words" };+const BY: Record<string, string> = { claude: "Written by Claude from your frames", local: "Written by a local model", offline: "Fuobe's template: edit it to fit your footage", you: "Your words" };const DEFAULT_NEGATIVE = restoreNegative();interface Run {@@ -44,6 +45,8 @@ interface Run {*/export function RestoreTool({ tabs }: { tabs?: React.ReactNode }) {const [engine] = useEngine();+ // Guests and free accounts: it plans with the studio's own AI helpers and joins on the server (own-gpu-tool).+ const visitor = useLikelyVisitor();const source = useSourceClip(RESTORE.maxBytes);const clip = source.clip;const [prompt, setPrompt] = useState("");@@ -86,7 +89,9 @@ export function RestoreTool({ tabs }: { tabs?: React.ReactNode }) {const estimate = useRestoreEstimate(body);const est = estimate.data && !estimate.isError ? estimate.data : undefined;- const blocker = !clip+ const blocker = visitor+ ? "Restore runs on a self-hosted Fuobe for now"+ : !clip? "Add a clip": clip.error? clip.error@@ -136,18 +141,21 @@ export function RestoreTool({ tabs }: { tabs?: React.ReactNode }) {};return (- <ToolShell title="Video tools" tabs={tabs} wide>+ <ToolShell title="Video tools" tabs={tabs} wide selfHostedOnly>{!clip && (<ToolHerotitle="Restore & colourise"- subtitle="Old scans, tape and black-and-white film back in colour, clean and sharp, with Lightricks' Restore IC-LoRA. Priced before it runs; free on your own ComfyUI."- />+ subtitle={`Old scans, tape and black-and-white film back in colour, clean and sharp, with Lightricks' Restore IC-LoRA. Priced before it runs${visitor ? "." : "; free on your own ComfyUI."}`}+ >+ {visitor && <SelfHostNote className="mt-3 max-w-xl">Restore & colourise runs on a self-hosted Fuobe for now.</SelfHostNote>}+ </ToolHero>)}<div className={cn("mx-auto", clip ? "pt-4" : "mt-8 max-w-[640px]")}>{!clip ? (<ClipDropaccept={RESTORE.accept}limits={LIMITS}+ disabled={visitor}onFile={(f) => {const err = source.pick(f);if (err) toast.error(err);@@ -230,10 +238,10 @@ export function RestoreTool({ tabs }: { tabs?: React.ReactNode }) {className="max-h-56 resize-y"/><div className="flex flex-wrap items-center gap-2">- <Button size="sm" variant="outline" className="rounded-full" onClick={() => void write()} disabled={writing || !clip}>+ <Button size="sm" variant="outline" className="rounded-full" onClick={() => void write()} disabled={writing || !clip || visitor}>{writing ? <Loader2 className="size-3.5 animate-spin" /> : <Sparkles className="size-3.5" />} Write it from the frames</Button>- <span className="text-[12px] text-muted-foreground">{open ? "Ollama with a vision model" : "Claude"}, else Fuobe's template · never starts a run</span>+ <span className="text-[12px] text-muted-foreground">{open ? "A local model that sees pictures" : "Claude"}, else Fuobe's template · never starts a run</span></div></Field>@@ -278,7 +286,7 @@ export function RestoreTool({ tabs }: { tabs?: React.ReactNode }) {) : (<><p className="flex items-center gap-1.5 text-[15px] font-semibold tabular-nums">- {costText(est, engine)}+ {costText(est, engine, visitor)}{estimate.isFetching && <Loader2 className="size-3 animate-spin text-muted-foreground" aria-label="Updating the price" />}</p>{est && (@@ -289,7 +297,7 @@ export function RestoreTool({ tabs }: { tabs?: React.ReactNode }) {</>)}</div>- <Button className="rounded-full" onClick={start} disabled={!!blocker || actions.run.isPending}>+ <Button className="rounded-full" onClick={start} disabled={!!blocker || actions.run.isPending || visitor}>{actions.run.isPending ? <Loader2 className="size-4 animate-spin" /> : <Wand2 className="size-4" />} Restore</Button></div>diff --git a/src/components/settings-form.tsx b/src/components/settings-form.tsxindex 55b3ece4..a0eb78fc 100644--- a/src/components/settings-form.tsx+++ b/src/components/settings-form.tsx@@ -643,7 +643,7 @@ export function SettingsForm({ prices }: { prices?: string }) {<Info aria-hidden className="mt-0.5 size-3.5 shrink-0 text-brand-text" /> Your ComfyUI is on your computer: put LoRA files in its models/loras folder. Fuobe tells you which ones a run needs.</p>)}- <LoraSettings folder={get("comfyLorasDir")} civitaiKey={get("civitaiKey")} hfToken={get("huggingfaceToken")} />+ <LoraSettings folder={get("comfyLorasDir")} civitaiKey={get("civitaiKey")} hfToken={get("huggingfaceDownloadToken")} /></Section><Sectiondiff --git a/src/lib/catalog/loras.ts b/src/lib/catalog/loras.tsindex e30e205a..51a845c2 100644--- a/src/lib/catalog/loras.ts+++ b/src/lib/catalog/loras.ts@@ -172,11 +172,12 @@ function fitSlots(field: LoraField, loras: LoraRef[]): { kept: LoraRef[]; over:/*** A cloud API can be sent this LoRA: not local-only, and with a URL it can fetch (a mirror or a public file),- * a civitai file or a gated Hugging Face file Fuobe mirrors before the run (with the user's civitai key or Hugging Face- * token, which never leave the server: src/server/loras.ts), or the user's own trained LoRA (Fuobe sends its copy).- * Not a file that exists only on the user's ComfyUI.+ * a civitai file Fuobe mirrors before the run, a model's own adapter from a gated Hugging Face repo (Fuobe mirrors it+ * with the user's Hugging Face token; the civitai key and the token never leave the server: src/server/loras.ts), or+ * the user's own trained LoRA (Fuobe sends its copy). Not another gated Hugging Face file (an optional LoRA: left out)+ * nor a file that exists only on the user's ComfyUI.*/-const sendable = (l: LoraRef) => !localOnly(l) && (!!cloudPath(l) || (!!l.url && (needsToken(l.url) || gated(l))) || (!!l.own && (!!l.url || !!l.file)));+const sendable = (l: LoraRef) => !localOnly(l) && (!!cloudPath(l) || (!!l.url && (needsToken(l.url) || (gated(l) && !!l.adapter))) || (!!l.own && (!!l.url || !!l.file)));const sendableToCloud = (loras: LoraRef[]) => loras.filter(sendable);/** fal's `/lora` endpoints before FieldMap.loras was generated: loras [{path, scale}]. */@@ -205,8 +206,8 @@ const list = (names: string[]) => (names.length < 2 ? names.join("") : `${names.* The LoRAs a cloud run carries, and what it says about the ones it leaves out:* - a LoRA licensed for the user's GPU only (civitai "RentCivit" only) is sent and said, unless Settings → Models &* licences keeps such LoRAs on the GPU (localOnly): then this run leaves it out;- * - a gated Hugging Face LoRA is copied to the provider once with the user's Hugging Face token (the server says- * what to do when there is none);+ * - a gated Hugging Face LoRA (accept its licence first) runs only on the user's GPU, unless it is the model's own+ * adapter (Fuobe Restore's IC-LoRA): that one is copied to the provider once with the user's Hugging Face token;* - a LoRA that exists only as a file on the user's ComfyUI (an open-engine training) can't be sent;* - beyond the API's maximum (3 on Z-Image, Qwen, FLUX.2 [klein] and LTX-2.3 quality; one per expert on* Replicate's Wan 2.2), the first ones win. planGeneration puts the user's own LoRAs (an @character's@@ -218,7 +219,9 @@ export function fitLoras(loras: LoraRef[], route: Pick<ModelRoute, "provider" |const notes: string[] = [];const local = [...new Set(loras.filter(localOnly).map(loraName))];if (local.length) notes.push(`${list(local)} ${local.length > 1 ? "are" : "is"} licensed for your GPU only and Settings → Models & licences keeps such LoRAs off the cloud, so this run leaves ${local.length > 1 ? "them" : "it"} out`);- const unsent = loras.filter((l) => !localOnly(l) && !sendable(l));+ const locked = loras.filter((l) => !localOnly(l) && !l.hostedUrl && !l.adapter && gated(l));+ if (locked.length) notes.push(`${list(locked.map(loraName))} ${locked.length > 1 ? "are" : "is"} in a gated Hugging Face repo, so this cloud run leaves ${locked.length > 1 ? "them" : "it"} out (on your GPU ${locked.length > 1 ? "they run" : "it runs"} once you've accepted the licence)`);+ const unsent = loras.filter((l) => !localOnly(l) && !(gated(l) && !l.adapter) && !sendable(l));if (unsent.length) notes.push(`${list(unsent.map(loraName))} ${unsent.length > 1 ? "exist" : "exists"} only on your ComfyUI, so this cloud run leaves ${unsent.length > 1 ? "them" : "it"} out`);const cloud = sendableToCloud(loras);const field = routeLoraField(route);diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex 83a0cb65..025ac686 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -50,7 +50,7 @@ const VIDEO_UPSCALE_TIERS = ["720p", "1080p", "1440p", "2160p"];/** Fuobe Restore's LoRA in the cloud (research adapterLoras): Lightricks' Restore IC-LoRA, gated, sent as Fuobe's mirror. */const RESTORE_LORA = (() => {const e = loraEntry("ltx-2-5-22b-ic-lora-restore-1-0");- return e ? loraRef(e) : undefined;+ return e ? { ...loraRef(e), adapter: true as const } : undefined;})();/** Fuobe Try-On's LoRA (research adapterLoras): xocialize's try-on LoRA for FLUX.2 [klein] 4B, Apache-2.0. */const TRYON_LORA = loraEntry("tryon-klein-4b");diff --git a/src/lib/catalog/types.ts b/src/lib/catalog/types.tsindex bca8d1ae..76e35393 100644--- a/src/lib/catalog/types.ts+++ b/src/lib/catalog/types.ts@@ -867,6 +867,12 @@ export interface LoraRef {* off the cloud: a cloud route then leaves such a LoRA out (localOnly). Without it they are sent like any other.*/keepOnGpu?: true;+ /**+ * The model's own adapter (Fuobe Restore's IC-LoRA): a run without it would be another model. A cloud run carries it+ * even from a gated Hugging Face repo, as Fuobe's copy made with the user's Hugging Face token, and refuses to start+ * without the token. Other gated LoRAs stay optional: a cloud run leaves them out with a note.+ */+ adapter?: true;}/** Scale limits of a LoRA field. */diff --git a/src/lib/connections.ts b/src/lib/connections.tsindex 72d2093b..3f3c731b 100644--- a/src/lib/connections.ts+++ b/src/lib/connections.ts@@ -60,7 +60,7 @@ export const PROVIDER_SETTINGS = {// Not a model provider: the key that downloads a recipe's civitai LoRAs (Settings → LoRAs).civitai: ["civitaiKey"],// Nor this: the token that downloads gated Hugging Face LoRAs once their licence is accepted (Settings → LoRAs).- huggingface: ["huggingfaceToken"],+ huggingface: ["huggingfaceDownloadToken"],// Not a model provider either: the trainer Soul IDs and Fuobe looks train on, on your GPU (Settings → Training)."ai-toolkit": ["aiToolkitUrl", "aiToolkitToken", "aiToolkitDatasetDir"],} as const satisfies Record<TestProvider, readonly string[]>;diff --git a/src/lib/guest-access.ts b/src/lib/guest-access.tsindex c6b50f95..c0f9243b 100644--- a/src/lib/guest-access.ts+++ b/src/lib/guest-access.ts@@ -101,7 +101,7 @@ const PREVIEWS = [/^\/api\/(generations|audio-tools|dub|katana|turnaround|influe/** The estimate routes (named: a dynamic segment called "estimate" on another route must not pass for one). */const ESTIMATES =- /^\/api\/(ads|ads\/multiplier|assist\/skills\/[^/]+|content-factory|evolution|faceless|genjutsu|influencer|marketing|marketing\/click-to-ad|mixed-media|remove-object|shorts|storyboards|turnaround)\/estimate$/;+ /^\/api\/(ads|ads\/multiplier|assist\/skills\/[^/]+|content-factory|evolution|faceless|genjutsu|influencer|marketing|marketing\/click-to-ad|mixed-media|remove-object|restore|shorts|storyboards|turnaround)\/estimate$/;/** A POST that only plans and prices a run (an estimate route, or ?preview=1 where PREVIEWS honours it): free, and open to guests. */export function isPriceCheck(method: string, pathname: string, search: string): boolean {diff --git a/src/server/gpu/tools.ts b/src/server/gpu/tools.tsindex ff0dc643..4bf74744 100644--- a/src/server/gpu/tools.ts+++ b/src/server/gpu/tools.ts@@ -5,7 +5,9 @@ import { graphLoras } from "@/lib/catalog/character-swap";import { PATH_MODELS } from "@/lib/catalog/cinema";import { dualEngine, onEngine, runsOn } from "@/lib/catalog/engines";import { FRAMES_MODELS } from "@/lib/catalog/keyframes";-import { libraryEntry, needsToken } from "@/lib/catalog/loras";+import { REMOVE_TOOLS } from "@/lib/catalog/remove-object";+import { RESTORE } from "@/lib/catalog/restore";+import { libraryEntry, loraEntry, loraRef, needsToken } from "@/lib/catalog/loras";import { ANGLES_2511_LORA } from "@/lib/catalog/open-tools";import { presetRoutes, recipeRoute } from "@/lib/catalog/preset-recipes";import { resolveWorkflowId } from "@/lib/comfy-variants";@@ -191,6 +193,18 @@ export const STUDIO_ROWS: StudioRowDef[] = [{ href: "/video-tools/depth", label: "Depth map", group: "Video tools", config: S.VIDEO_DEPTH_STUDIO },{ href: "/video-tools/join", label: "Join clips", group: "Video tools", config: S.JOIN_CLIPS_STUDIO },{ href: "/video-tools/colors", label: "Match colors", group: "Video tools", config: S.VIDEO_COLOR_MATCH_STUDIO },+ // Restore & colourise (archive-restore): the tiled-fusion graph with the gated Restore IC-LoRA (the graph loads it+ // itself), then the windows joined and the sound put back. "Restore to 4K"'s Detail Refine LoRA is an option, not listed.+ {+ href: "/video-tools/restore",+ label: "Restore & colourise",+ group: "Video tools",+ steps: [+ { modelId: RESTORE.model, op: "restore-video", loras: [loraRef(loraEntry(RESTORE.loras.restore.key)!)] },+ { modelId: REMOVE_TOOLS.open.join, op: "concat" },+ { modelId: REMOVE_TOOLS.open.mux, op: "mux" },+ ],+ },];/** A studio row's tool: its open default model on the studio's operations (or its own graphs, or its steps). */diff --git a/src/server/loras.ts b/src/server/loras.tsindex 77c1caa0..567269a0 100644--- a/src/server/loras.ts+++ b/src/server/loras.ts@@ -108,8 +108,8 @@ function recordCopy(c: Omit<LoraCopy, "createdAt">): void {/** The civitai key, as set in Settings or CIVITAI_API_KEY. */const civitaiKey = () => getSetting("civitaiKey");-/** The Hugging Face token (Settings or HF_TOKEN): used only to download gated Hugging Face files. */-const hfToken = () => getSetting("huggingfaceToken");+/** The Hugging Face token for downloads (Settings → LoRAs or FUOBE_HF_DOWNLOAD_TOKEN): used only to download gated Hugging Face files. */+const hfToken = () => getSetting("huggingfaceDownloadToken");/** Whether a Hugging Face token is set (gated downloads need one). */export const hasHfToken = (): boolean => !!hfToken();@@ -401,6 +401,8 @@ export async function prepareCloudLoras(continue;}const locked = gated(l);+ // Only a model's own adapter goes to the cloud from a gated repo (fitLoras leaves the optional ones out).+ if (locked && !l.adapter) throw new LoraError(`${name} is in a gated Hugging Face repo, so it can't be sent to ${host}: it runs on your GPU once you've accepted its licence`);if (!l.url || (!needsToken(l.url) && !locked)) throw new LoraError(`${name} can't be sent to ${host}: it exists only as a file on your ComfyUI`);const cached = getCopy(l.file, target);if (cached?.hostedUrl && Date.now() - cached.createdAt < MIRROR_TTL_MS[target]) {@@ -416,7 +418,14 @@ export async function prepareCloudLoras(return out;}-/** A civitai LoRA copied to the provider's storage (once: prepareCloudLoras runs it through mirrorOnce). */+/** What the research's snapshot says about hosting a gated Hugging Face file (its hostedOk on record, never assumed). */+function gatedHosting(l: LoraRef, entry: LoraEntry | undefined): string {+ const ok = (l.licence ?? entry?.licence)?.hostedOk;+ const says = ok === true ? "its licence allows hosted use" : ok === false ? "its licence is for your own GPU only" : "its licence says nothing on hosted use";+ return `a gated Hugging Face file, downloaded once with your token; ${says} (the research's snapshot)`;+}++/** A civitai LoRA, or a model's gated Hugging Face adapter, copied to the provider's storage (once: prepareCloudLoras runs it through mirrorOnce). */async function mirrorCivitai(l: LoraRef & { url: string },entry: LoraEntry | undefined,@@ -467,7 +476,7 @@ async function mirrorCivitai(hostedUrl,sha256: facts?.sha256 ?? crypto.createHash("sha256").update(data).digest("hex"),sizeBytes: data.length,- licence: { ...licenceSnapshot(l, entry, now), ...(civitai && hostingNote(now) && { hosting: hostingNote(now) }), ...(!civitai && { hosting: "a gated Hugging Face file, downloaded once with your token; its licence allows hosted use (the research's snapshot)" }) },+ licence: { ...licenceSnapshot(l, entry, now), ...(civitai && hostingNote(now) && { hosting: hostingNote(now) }), ...(!civitai && { hosting: gatedHosting(l, entry) }) },});return { ...l, hostedUrl };}@@ -654,7 +663,6 @@ export function withoutMissingOnComfy(loras: LoraRef[], listed: string[] | null)};}-/** Test the civitai key (Settings → Save & test): civitai's /me answers 200 for a good key. *//** Settings → LoRAs' Save & test for the Hugging Face token: who it belongs to (whoami), and whether it can read. */export async function testHfToken(): Promise<{ ok: boolean; detail: string }> {const token = hfToken();@@ -673,6 +681,7 @@ export async function testHfToken(): Promise<{ ok: boolean; detail: string }> {return { ok: true, detail: `${who}${role ? ` (${role} token)` : ""}. Accept each gated LoRA's licence on its Hugging Face page with this account` };}+/** Test the civitai key (Settings → Save & test): civitai's /me answers 200 for a good key. */export async function testCivitaiKey(): Promise<{ ok: boolean; detail: string }> {const token = civitaiKey();if (!token) return { ok: false, detail: "No key set" };diff --git a/src/server/restore.ts b/src/server/restore.tsindex c7d378f9..a4ae5285 100644--- a/src/server/restore.ts+++ b/src/server/restore.ts@@ -24,9 +24,9 @@ import { ACCESS_PLACE } from "@/lib/model-access";import { createPipeline } from "./chains";import { llmText, llmTextBackend } from "./enhance";import { previewChained } from "./generations";-import { hasHfToken } from "./loras";+import { gatedHint, hasHfToken } from "./loras";import { isOffered, offeredModel } from "./model-access";-import { probeOllama } from "./providers/llm";+import { localLabel, localWhat, probeLocal } from "./llm";import { engineMode, getSetting } from "./settings";import { probeSource, ShortsError } from "./shorts";@@ -34,7 +34,7 @@ import { probeSource, ShortsError } from "./shorts";* Video tools → Restore & colourise (Fuobe Restore, package archive-restore): plans, prices and starts a run* (src/lib/catalog/restore.ts) as one pipeline of ordinary generations: feature "restore" for the finished video,* "restore-step" for the windows, pieces, hand-off frames and joins. The prompt is written by an LLM from a few frames- * (Claude, or Ollama on the open engine), else by Fuobe's offline template. No table of its own: the page's history is a+ * (Claude, or a local model on the open engine), else by Fuobe's offline template. No table of its own: the page's history is a* feed. The gated Restore IC-LoRA is fetched before the first window with the user's Hugging Face token (src/server/loras.ts).*/@@ -82,14 +82,14 @@ export const RestoreEstimateSchema = RestoreBodySchema.extend({const frame = z.string()- .max(2_000_000)+ .max(900_000).regex(/^data:image\/(jpeg|png|webp);base64,[A-Za-z0-9+/=]+$/);-/** The body of /api/restore/prompt: what the writer works from. */+/** The body of /api/restore/prompt: what the writer works from (it stays under the sign-in proxy's 4 MB: next.config.ts). */export const PromptSchema = z.object({engine: z.enum(["cloud", "open"]),hint: z.string().max(600).optional(),- /** A few frames of the clip the browser grabbed (JPEG or PNG data URLs, about 1.5 MB each at most). */+ /** A few frames of the clip the browser grabbed (small JPEG or PNG data URLs, under 900 KB each). */frames: z.array(frame).max(4).default([]),seconds: z.number().finite().positive().max(3600).optional(),});@@ -114,14 +114,15 @@ const mustBeOffered = (engine: Engine) => {export interface PromptAnswer {prompt: string;negative: string;- by: "claude" | "ollama" | "offline";+ /** Claude, a local model (Settings → AI helper: Ollama, LM Studio, Unsloth Studio or another server), or the template. */+ by: "claude" | "local" | "offline";why?: string;}/**- * Write the prompt and the negative: Claude (cloud engine) or Ollama with a vision model (open engine, or no Claude key)- * sees up to four frames; without one (no key, Ollama not running, demo mode, the text model switched off) Fuobe's- * offline template is filled with the user's words. Never generates video.+ * Write the prompt and the negative: Claude (cloud engine) or a local model that sees pictures (open engine, or no+ * Claude key; src/server/llm) sees up to four frames; without one (no key, no local model answering, demo mode, the+ * text model switched off) Fuobe's offline template is filled with the user's words. Never generates video.*/export async function writeRestorePrompt(body: z.infer<typeof PromptSchema>): Promise<PromptAnswer> {mustMatchMode(body.engine);@@ -130,13 +131,13 @@ export async function writeRestorePrompt(body: z.infer<typeof PromptSchema>): Prconst textModel = getModel(body.engine === "open" ? "oss-text-llm" : "text-llm");if (!textModel || !offeredModel(textModel)) return offline(`the text model is switched off in ${ACCESS_PLACE}`);const backend = llmTextBackend();- const ollama = backend === "ollama" || (backend === "claude" && body.engine === "open");- if (!backend) return offline("no text model is set up (Settings → Prompt enhancement)");- if (ollama && !(await probeOllama())) return offline("Ollama isn't running");+ const local = backend === "ollama" || (backend === "claude" && body.engine === "open");+ if (!backend) return offline("no AI helper is set up (Settings → AI helper)");+ if (local && !(await probeLocal())) return offline(`${localWhat()} isn't running`);const images = body.frames.map((f) => ({ data: Buffer.from(f.split(",")[1], "base64"), contentType: f.slice(5, f.indexOf(";")) }));const answer = parsePromptAnswer(await llmText(PROMPT_SYSTEM, promptRequest({ hint: body.hint, frames: images.length, seconds: body.seconds }), images, { ollamaOnly: body.engine === "open" }));- if (!answer) return offline(ollama ? "Ollama didn't answer (it needs a vision model to see the frames: qwen3-vl, gemma3…)" : "the text model didn't answer");- return { ...answer, by: ollama ? "ollama" : "claude" };+ if (!answer) return offline(local ? `${localLabel()} didn't answer (it needs a model that sees pictures for the frames: qwen3-vl, gemma3…)` : "the text model didn't answer");+ return { ...answer, by: local ? "local" : "claude" };}// ---------------------------------------------------------------------------@@ -263,6 +264,11 @@ export async function createRestore(body: z.infer<typeof RestoreBodySchema>): Pr}const { input } = planInput({ ...body, negative }, info, prompt, true);const plan = planRestore(input);+ // The cloud carries the gated Restore IC-LoRA as Fuobe's copy, made with the Hugging Face token: without one, every piece+ // would fail at submit, so the run is refused before anything starts (a placeholder run needs no file).+ if (body.engine === "cloud" && !hasHfToken() && !price(plan.steps).demo) {+ throw new ShortsError(`${gatedHint("Lightricks' Restore IC-LoRA", RESTORE.loras.restore.page)}. A cloud run gets Fuobe's copy of the file, never your token`, 422);+ }let p: ReturnType<typeof createPipeline>;try {p = createPipeline(plan.steps);diff --git a/src/server/settings.ts b/src/server/settings.tsindex 7fa6bad8..132af880 100644--- a/src/server/settings.ts+++ b/src/server/settings.ts@@ -84,10 +84,12 @@ export const SETTINGS = {/** civitai API key: downloads the civitai LoRAs of a recipe (civitai answers 401 without one). Never sent to fal or Replicate. */civitaiKey: { key: "civitai.key", env: "CIVITAI_API_KEY", secret: true },/**- * Hugging Face access token: downloads the LoRAs of gated Hugging Face repos (Lightricks' Restore and Detail Refine- * IC-LoRAs) once their licence is accepted with that account. Used for nothing else; never sent to fal or Replicate.+ * Hugging Face access token for downloads: the LoRAs of gated Hugging Face repos (Lightricks' Restore and Detail+ * Refine IC-LoRAs) once their licence is accepted with that account. Used for nothing else; never sent to fal or+ * Replicate. Apart from huggingfaceToken (Assist's Hugging Face Inference Providers key), so a token added for+ * downloads never connects a paid provider; not read from HF_TOKEN, which other tools set (see above).*/- huggingfaceToken: { key: "huggingface.token", env: "HF_TOKEN", secret: true },+ huggingfaceDownloadToken: { key: "huggingface.downloadToken", env: "FUOBE_HF_DOWNLOAD_TOKEN", secret: true },/** AI-Toolkit UI (ostris/ai-toolkit, port 8675) for open-source character LoRA training. */aiToolkitUrl: { key: "aitk.url", env: "AI_TOOLKIT_URL" },aiToolkitToken: { key: "aitk.token", env: "AI_TOOLKIT_AUTH", secret: true },diff --git a/tests/lora-fetch.test.ts b/tests/lora-fetch.test.tsindex 434e04ba..c4544207 100644--- a/tests/lora-fetch.test.ts+++ b/tests/lora-fetch.test.ts@@ -298,36 +298,51 @@ describe("Before a cloud run", () => {expect(net.calls.filter((c) => c.url.includes("/api/download/"))).toEqual([]);});- it("sends a gated Hugging Face LoRA through Fuobe's mirror: with the HF token it is copied once, without one the run says what to do", async () => {+ it("leaves a gated Hugging Face LoRA out of a cloud run with a note, never failing the run", async () => {const relight = loraRef(loraEntry("ltx-2-3-22b-ic-lora-relight-1-0")!);const fpv = loraRef(loraEntry("ltx2-3-fpv-motion")!);const ltx = { provider: "fal" as const, map: { loras: { shape: "items" as const, key: "loras", required: true } }, loraEndpoint: "fal-ai/ltx-2.3-22b/image-to-video/lora" };+ // With or without a Hugging Face token: an optional gated LoRA (Relight, DoP's Slow motion) stays on the GPU.+ for (const token of ["", "hf_secret0123456789abcdef"]) {+ setSetting("huggingfaceDownloadToken", token);+ const fitted = fitLoras([relight, fpv], ltx);+ expect(fitted.loras).toEqual([fpv]);+ expect(fitted.notes).toEqual([`${loraEntry("ltx-2-3-22b-ic-lora-relight-1-0")!.name} is in a gated Hugging Face repo, so this cloud run leaves it out (on your GPU it runs once you've accepted the licence)`]);+ }+ setSetting("huggingfaceDownloadToken", "");+ // It counts as nothing to carry when routes are compared, and is refused by name if it gets this far.+ expect(lorasFit({ provider: "replicate", map: { loras: { shape: "single", weights: "w", scale: "s" } } }, [relight])).toBe(true);+ await expect(prepareCloudLoras([relight], "fal", upload().fn)).rejects.toThrow(/gated Hugging Face repo, so it can't be sent to fal\.ai/);+ });++ it("sends a model's own gated adapter (Fuobe Restore's IC-LoRA) through Fuobe's mirror: with the token it is copied once, without one the run says what to do", async () => {+ const restore = { ...loraRef(loraEntry("ltx-2-5-22b-ic-lora-restore-1-0")!), adapter: true as const };+ const ltx = { provider: "fal" as const, map: { loras: { shape: "items" as const, key: "loras", required: true } }, loraEndpoint: "fal-ai/ltx-2.3-22b/reference-video-to-video/lora" };// The fit keeps it (a copy is made before the run), and route choice counts it as something to carry.- const fitted = fitLoras([relight, fpv], ltx);- expect(fitted.loras).toEqual([relight, fpv]);+ const fitted = fitLoras([restore], ltx);+ expect(fitted.loras).toEqual([restore]);expect(fitted.notes).toEqual([]);- expect(lorasFit({ provider: "replicate", map: { loras: { shape: "single", weights: "w", scale: "s" } } }, [relight, fpv])).toBe(false);+ expect(lorasFit({ provider: "replicate", map: { loras: { shape: "single", weights: "w", scale: "s" } } }, [restore, loraRef(loraEntry("ltx2-3-fpv-motion")!)])).toBe(false);// No token: refused by name, with where to accept the licence and where the token goes; nothing is fetched.- setSetting("huggingfaceToken", "");+ setSetting("huggingfaceDownloadToken", "");net = network({});- await expect(prepareCloudLoras([relight], "fal", upload().fn)).rejects.toThrow(/gated Hugging Face repo: accept its licence on https:\/\/huggingface\.co\/Lightricks\/LTX-2\.3-22b-IC-LoRA-Relight .*Settings → LoRAs/);+ await expect(prepareCloudLoras([restore], "fal", upload().fn)).rejects.toThrow(/gated Hugging Face repo: accept its licence on https:\/\/huggingface\.co\/Lightricks\/LTX-2\.5-22b-IC-LoRA-Restore .*Settings → LoRAs/);expect(net.calls).toEqual([]);net.restore();// With the token: downloaded once with it (Authorization to huggingface.co, never in a URL), copied to fal, recorded.const HF = "hf_secret0123456789abcdef";- setSetting("huggingfaceToken", HF);- const body = Buffer.from("relight".repeat(64));- const pinned = { ...relight, file: relight.file };- net = network({ [loraEntry("ltx-2-3-22b-ic-lora-relight-1-0")!.url]: () => new Response(new Uint8Array(body), { status: 200, headers: { "content-length": String(body.length) } }) });+ setSetting("huggingfaceDownloadToken", HF);+ const body = Buffer.from("restore".repeat(64));+ net = network({ [loraEntry("ltx-2-5-22b-ic-lora-restore-1-0")!.url]: () => new Response(new Uint8Array(body), { status: 200, headers: { "content-length": String(body.length) } }) });const up = upload();- // The library pins the real file's SHA256, which this stand-in doesn't match: the copy is refused, not sent.- await expect(prepareCloudLoras([pinned], "fal", up.fn)).rejects.toThrow(/doesn't match what huggingface\.co says it is/);+ // The library pins the file's size (and its SHA256 once known), which this stand-in doesn't match: refused, not sent.+ await expect(prepareCloudLoras([restore], "fal", up.fn)).rejects.toThrow(/huggingface\.co/);const get = net.calls.find((c) => c.method === "GET")!;expect(get.headers.authorization).toBe(`Bearer ${HF}`);expect(get.url).not.toContain(HF);expect(up.sent).toEqual([]);expect(redact(`failed with ${HF}`)).toBe("failed with •••");- setSetting("huggingfaceToken", "");+ setSetting("huggingfaceDownloadToken", "");});it("mirrors the pinned bytes, not a same-named file of other bytes in the LoRA folder", async () => {diff --git a/tests/restore-api.test.ts b/tests/restore-api.test.tsindex 1c4fabe8..1cbe5b57 100644--- a/tests/restore-api.test.ts+++ b/tests/restore-api.test.ts@@ -45,7 +45,7 @@ async function settle(id: string, ms = 90_000): Promise<Generation> {const batchOf = (id: string) => {const b = (db().prepare("SELECT batch_id FROM generations WHERE id = ?").get(id) as { batch_id: string }).batch_id;- return db().prepare("SELECT id, model_id, op, feature, engine FROM generations WHERE batch_id = ? ORDER BY created_at, id").all(b) as { id: string; model_id: string; op: string; feature: string; engine: string }[];+ return db().prepare("SELECT id, model_id, op, feature, engine FROM generations WHERE batch_id = ? ORDER BY rowid").all(b) as { id: string; model_id: string; op: string; feature: string; engine: string }[];};const src = { duration: 12, fps: 16, width: 72, height: 128, hasAudio: true };@@ -97,7 +97,7 @@ describe("Restore: estimates", () => {});describe("Restore: the prompt writer", () => {- it("offline (no Claude key, no Ollama): the template from your words, and the default negative", async () => {+ it("offline (no Claude key, no local model): the template from your words, and the default negative", async () => {const r = await (await promptRoute.POST(json({ engine: "open", hint: "fishing boats in a harbour in the 1930s" }))).json();expect(r.by).toBe("offline");expect(r.prompt).toMatch(/^fishing boats in a harbour in 1930s, .*natural colour/);diff --git a/workflows/comfyui/packs.json b/workflows/comfyui/packs.jsonindex 1ab94814..ed459902 100644--- a/workflows/comfyui/packs.json+++ b/workflows/comfyui/packs.json@@ -53,6 +53,15 @@"subdir": null,"folders": []},+ "ComfyUI-LTXVideo": {+ "repo": "https://github.com/Lightricks/ComfyUI-LTXVideo",+ "commit": "220e1d45aa0469f518e982102fca4dca92a61862",+ "registry": { "id": "ComfyUI-LTXVideo", "version": "" },+ "requirementsTxt": true,+ "isolated": false,+ "subdir": null,+ "folders": []+ },"ComfyUI-LatentSyncWrapper": {"repo": "https://github.com/ShmuelRonen/ComfyUI-LatentSyncWrapper","commit": "360d5283d7276aee68b4237b1387e594e4ce640e",diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.jsonindex 029bbab7..b686f29f 100644--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@ -1,9 +1,9 @@{"v": 1,- "hash": "5b5d1c8c168a84339d23a853f8a40c40e7de647a9d7619813f0db19c4c014f08",+ "hash": "aa51bd32f535494cf798ef492bef8b900fa620a543a32ab548880376cee412f1","comfyui": {"min":"0.42.0","testedCommit":"5841c187"},"folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","text_encoders","thinksound","upscale_models","vae"],- "sentinels": ["AILab_Qwen3ASRSubtitle","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LatentSyncNode","LoadBackgroundRemovalModel","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","QwenImage21Cache","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader"],+ "sentinels": ["AILab_Qwen3ASRSubtitle","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","QwenImage21Cache","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader"],"packs": {"ComfyUI-DBS": {"repo":"https://github.com/hiroki-abe-58/ComfyUI-DBS","commit":"f656e53434b5485c148a2866fbd6ddc6b6152ed6","registry":{"id":"dbs-soundtrack-separation","version":""},"classes":["DBSLoader","DBSSeparate"],"folders":["dbs"],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-Frame-Interpolation": {"repo":"https://github.com/Fannovel16/ComfyUI-Frame-Interpolation","commit":"26545cc2dd95bc3d27f056016300673bdeee78f5","registry":{"id":"comfyui-frame-interpolation","version":""},"classes":["RIFE VFI"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},@@ -11,6 +11,7 @@"ComfyUI-IndexTTS2": {"repo":"https://github.com/snicolast/ComfyUI-IndexTTS2","commit":"5b33e02bc0112b8aaf1fc823d5e5a609ca07fc27","classes":["IndexTTS2Simple"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-KJNodes": {"repo":"https://github.com/kijai/ComfyUI-KJNodes","commit":"17195fcfa8a05f601b766a0f09c9733284f47416","registry":{"id":"comfyui-kjnodes","version":""},"classes":["GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","INTConstant","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-Krea2-Ostris-Edit": {"repo":"https://github.com/ostris/ComfyUI-Krea2-Ostris-Edit","commit":"7756566160c4a1b24bb1bd9f0ff3ced1a83d7547","registry":{"id":"comfyui-krea2-ostris-edit","version":""},"classes":["Krea2OstrisEditModelPatch","TextEncodeKrea2OstrisEdit"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},+ "ComfyUI-LTXVideo": {"repo":"https://github.com/Lightricks/ComfyUI-LTXVideo","commit":"220e1d45aa0469f518e982102fca4dca92a61862","registry":{"id":"ComfyUI-LTXVideo","version":""},"classes":["LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVTiledFusionSampler"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-LatentSyncWrapper": {"repo":"https://github.com/ShmuelRonen/ComfyUI-LatentSyncWrapper","commit":"360d5283d7276aee68b4237b1387e594e4ce640e","classes":["LatentSyncNode","VideoLengthAdjuster"],"folders":[],"isolated":true,"requirementsTxt":true,"install":"manual"},"ComfyUI-MMAudio": {"repo":"https://github.com/kijai/ComfyUI-MMAudio","commit":"8eaeb72edc3aaf2059b57f2d96a1f6f689f19ae2","registry":{"id":"comfyui-mmaudio","version":""},"classes":["MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler"],"folders":["mmaudio"],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-MelBandRoFormer": {"repo":"https://github.com/kijai/ComfyUI-MelBandRoFormer","commit":"92c86854e6654f4aacc97484471af95c98ea16d4","registry":{"id":"ComfyUI-MelBandRoFormer","version":""},"classes":["MelBandRoFormerModelLoader","MelBandRoFormerSampler"],"folders":[],"isolated":false,"requirementsTxt":true,"install":"manual"},@@ -142,6 +143,8 @@"loras/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors": {"folder":"loras","file":"lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","url":"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","pinnedUrl":"https://huggingface.co/Kijai/WanVideo_comfy/resolve/8260d429d19fd7a72304cad059160b95d843913f/Lightx2v/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","sizeBytes":738005744,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"],["WanVideoLoraSelect","lora"]]},"loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors": {"folder":"loras","file":"lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","url":"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","pinnedUrl":"https://huggingface.co/Kijai/WanVideo_comfy/resolve/8260d429d19fd7a72304cad059160b95d843913f/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","sizeBytes":630697104,"gated":false,"presence":"loader","loaders":[["LoraLoader","lora_name"],["LoraLoaderModelOnly","lora_name"]]},"loras/ltx-2-19b-distilled-lora-384.safetensors": {"folder":"loras","file":"ltx-2-19b-distilled-lora-384.safetensors","url":"https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled-lora-384.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2/resolve/64f65d09e0b76c96202b5bc09997673184cf9b5d/ltx-2-19b-distilled-lora-384.safetensors","sizeBytes":7674558424,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},+ "loras/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors": {"folder":"loras","file":"ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","url":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Refine-Details/resolve/4912c478b35dd96b6cdcc5f7c7ff9d72c2c57929/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Refine-Details/resolve/4912c478b35dd96b6cdcc5f7c7ff9d72c2c57929/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","sizeBytes":1310000000,"gated":true,"presence":"list"},+ "loras/ltx-2.5-22b-ic-lora-restore-1.0.safetensors": {"folder":"loras","file":"ltx-2.5-22b-ic-lora-restore-1.0.safetensors","url":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","sizeBytes":1710000000,"gated":true,"presence":"list"},"loras/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors": {"folder":"loras","file":"minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","url":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","pinnedUrl":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","sizeBytes":1956193000,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},"loras/minimax_h3_flf2v_lora_v1.safetensors": {"folder":"loras","file":"minimax_h3_flf2v_lora_v1.safetensors","url":"https://huggingface.co/pablodawson/MiniMax-H3-360-Orbit-LoRA/resolve/5ddbc2dbbe95edbbdaf5017c3e934b1d01791697/minimax_h3_flf2v_lora_v1.safetensors","pinnedUrl":"https://huggingface.co/pablodawson/MiniMax-H3-360-Orbit-LoRA/resolve/5ddbc2dbbe95edbbdaf5017c3e934b1d01791697/minimax_h3_flf2v_lora_v1.safetensors","sizeBytes":155111424,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},"loras/minimax_h3_turbo_v4_step600_ema.safetensors": {"folder":"loras","file":"minimax_h3_turbo_v4_step600_ema.safetensors","url":"https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora/resolve/43a74557ac3f6539db8e0f2a959d03feb7a81480/minimax_h3_turbo_v4_step600_ema.safetensors","pinnedUrl":"https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora/resolve/43a74557ac3f6539db8e0f2a959d03feb7a81480/minimax_h3_turbo_v4_step600_ema.safetensors","sizeBytes":779849816,"gated":false,"presence":"loader","loaders":[["MiniMaxH3TurboLoRA","lora_name"]]},@@ -374,6 +377,7 @@"video-person-remove-h3-relay": {"core":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EndLoop","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","KSamplerSelect","LTXVSeparateAVLatent","LoadImage","LoadVideo","LoraLoaderModelOnly","MiniMaxH3AddGuide","MiniMaxH3ReferenceToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","RandomNoise","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SamplerCustomAdvanced","SaveVideo","SelectCLIPDevice","StartLoop","ThresholdMask","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"],"packs":{"h3-relay":["H3RelayAppendWindow","H3RelayApplyHistory","H3RelayFinishWindows","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","loras/H3-Person-Remover-V1.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[]},"video-reframe-wan22-fun-vace": {"core":["CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerAdvanced","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["ImageResizeKJv2"]},"files":["diffusion_models/wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors","diffusion_models/wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-relight-bernini-r": {"core":["BasicScheduler","BerniniConditioning","CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerSelect","LoadVideo","LoraLoaderModelOnly","SamplerCustom","SaveVideo","SplitSigmas","StringConcatenate","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/wan2.2_bernini_r_high_noise_fp8_scaled.safetensors","diffusion_models/wan2.2_bernini_r_low_noise_fp8_scaled.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},+ "video-restore-ltx25-tiled": {"core":["CLIPLoader","CLIPTextEncode","CreateVideo","EmptyLTXVLatentVideo","ImageFromBatch","ImageScale","KSamplerSelect","LTXVAddGuide","LTXVConditioning","LoadImage","ManualSigmas","SaveVideo","UNETLoader","VAEDecodeTiled","VAELoader"],"packs":{"ComfyUI-LTXVideo":["LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVTiledFusionSampler"],"ComfyUI-VideoHelperSuite":["VHS_LoadVideo"]},"files":["diffusion_models/ltx-2.5-22b-distilled-transformer-comfy-int8-convrot.safetensors","loras/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","text_encoders/gemma4-12b-with-proj-ltx-2.5-comfy-int8-convrot.safetensors","vae/ltx-2.5-video-vae-bf16.safetensors"],"optional":["loras/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors"],"vramGb":24,"isolated":false,"firstRun":[]},"video-restyle-wan22-fun-vace": {"core":["BatchImagesNode","CLIPLoader","CLIPTextEncode","ComfyMathExpression","CreateVideo","DA3Inference","DA3Render","GetVideoComponents","ImageFromBatch","ImageScale","ImageToMask","KSamplerAdvanced","LoadDA3Model","LoadImage","LoadVideo","LoraLoaderModelOnly","MaskToImage","ModelSamplingSD3","PrimitiveInt","RepeatImageBatch","SaveVideo","SolidMask","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{},"files":["diffusion_models/wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors","diffusion_models/wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors","geometry_estimation/depth_anything_3_mono_large.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"video-sdr-to-hdr": {"core":["CreateVideo","GetVideoComponents","ImageSDRToHDR","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},"video-sdr-to-hdr-exr": {"core":["CreateVideo","GetVideoComponents","ImageSDRToHDR","LoadVideo","SaveImageAdvanced","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},