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
Open models: the owner's newest image models are the first picks on your GPU
Adarshcbbbc9bdab2b
diff --git a/docs/FEATURES.md b/docs/FEATURES.mdindex dd529261..93744202 100644--- a/docs/FEATURES.md+++ b/docs/FEATURES.md@@ -58,6 +58,7 @@ Fuobe is a complete creative studio you can run yourself: 108 camera motions, 25- **Create:** Image · Video (text, image, start/end frame, **Frames**: up to 10 stills on a timeline, reference images and clips, multi-shot, draft mode) · Edit · **Layers** (split a flat image into editable layers, edit text with the lines found for you on either engine, Inpaint a painted area, an Enhancer (skin, soft glow, sharpen, detail), regional edits, save a layer as an element, cropped or positioned zips) · Inpaint & Draw to Edit · Color grading · Camera motions and Effects (on Fuobe DoP) · Storyboard (Popcorn: a board in one of Fuobe Soul's looks if you like, priced next to Generate, and turned into a film; cloud boards start on hosted open models, Z-Image Turbo or Qwen-Image-Edit, then Qwen-Image-Edit 2509 with a next-scene LoRA, and "Frames made on" switches them to Nano Banana Pro) · **Canvas** (wire prompts, files and models into node workflows; every template in a cloud and an open-source version, 10 Effects 2.0 chains among them (your photo, a "Set the scene" edit, then a 5 s Fuobe DoP clip); up to 20 pages per board, groups you can run as one, comment pins with replies, and drawing, shapes and text from a toolbar with keys; a Table node runs the node it feeds once per row; Change voice, Clone voice, Translate (text, or a dub of a video) and Video concatenator (cut, mute and join up to 50 clips) nodes) · Apps- **MOSS-Image** (Image studio → model menu → MOSS-Image) — OpenMOSS's picture model, made for Chinese and English text in pictures. In the cloud it runs on fal at $0.05 per megapixel, up to 4 images (fal's safety checker returns a black image when it flags an output). On your GPU it is free, on ComfyUI's built-in nodes, with about 13 GB of files and 16 GB of VRAM (a guess); **Options → Quality** picks Standard (25 steps), Best (50) or Fast (8 steps, an extra 5.4 GB file). The Image studio's controls chip now reads **Options** (it read "Director"). Text placed in boxes comes later: the code that turns layout boxes into MOSS's prompt is in (`src/lib/layout-prompt.ts`), but the screen to draw them, Layout mode, is the next package in the queue+- **The newest open image models, first on your GPU** — Ideogram 4, Qwen-Image 2.1 and its Turbo, Krea 2 (Realism, Turbo, Edit, Identity Edit, Image to image, Inpaint) and FIBO 2 (Dev, Edit Turbo), from the owner's ComfyUI workflows. On the open engine the Image studio opens on Ideogram 4 and Edit and Inpaint on Qwen-Image 2.1; every model menu's "Best" list puts the new models first (text to image: Ideogram 4, Qwen-Image 2.1, Krea 2 Realism, MOSS-Image, then FIBO 2 Dev; edits: Qwen-Image 2.1, its Turbo, FIBO 2 Dev and Edit Turbo, then Krea 2 Edit), and so do apps, Layers, Canvas, Cinema stills, Photodump, Fashion Factory and Character swap's anchor. Apps and tools that run a LoRA trained on an older model keep it (Angles, Relight, Product shot, Try-On, Cinema's recompose). Ideogram 4 reads a JSON caption, which Fuobe writes from your words (Claude or your local LLM; a plain caption without one) and keeps as the run's prompt. Qwen-Image 2.1, FIBO 2 and Krea 2 Edit take up to 4 references (Krea 2 Edit 2) and leave out the ones you don't give. About 92 GB of new files, 20–24 GB of VRAM (estimates), ComfyUI 0.42.0; Krea 2 Inpaint also needs the ComfyUI-Krea2-Ostris-Edit node pack. Qwen-Image 2.1, Ideogram 4 and FIBO 2 weights are non-commercial. None of the 16 graphs has rendered through Fuobe yet## Studios@@ -67,7 +68,7 @@ Fuobe is a complete creative studio you can run yourself: 108 camera motions, 25- **Genjutsu** — keep a 4–30 s clip's motion, camera and framing and change what is in it: motion transfer, **Character swap**, object swap, restyle (44 looks, Fuobe Soul's 139 or your own images) or insert, with reference images, priced before it runs. Every mode but Insert defaults to a Fuobe Original on both engines, and the picker shows each model's source (Original, open weights or partner) and licence. Character swap turns the person in a 5–15 s part of one shot (up to 30 s, in pieces or windows) into your character from one image, keeping the performance and the sound: pick who (largest, leftmost, rightmost, a number or, on your GPU, a click), 480p or 768p, and by default your character goes into the first frame first; "Describe my character" and "Use the clip's words" help write the prompt. For whole clips, **Open in Character Swap Studio** takes the clip and the character there- **Character Swap Studio** (`/character-swap`) — Akatz Labs' H3 Character Swap workbench, rebuilt in Fuobe on MiniMax H3: put your character into whole clips, shot by shot, and get each clip back with its own timing and sound. A project holds one character (a picture and a description) and up to 20 clips (.mp4, .mov, .mkv, .webm or .avi, each up to 149.66 s and 200 MB), worked through seven stages: **Shots** (Detect edits finds the cuts in your browser; mark each shot Replace character or Keep original), **Words** (transcribe, say who speaks each line, build the shot prompts), **Who to swap** (largest, leftmost, rightmost, person #n or words, plus clicks on any frame, giving mask versions you approve), **Scene anchors** (make or import a still of the scene with your character in it), **Segments** (5, 10 or 15 s, each starting fresh or continuing the one before; a continuation starts itself when that take is done, even with the page closed), **Takes & review** (several takes, Compare, Keep / Maybe / Skip with notes, Export decisions) and **Assemble** (the chosen takes over the original timeline with the clip's sound, to download and in the Library). Prices show before anything runs (only a cloud browser copy of a clip your browser can't play, and anchors on GPT Image 2.5 Sunburst, which bill by tokens, are left out of the estimate), and demo mode runs the whole flow for free. On your GPU, H3 Relay 2.0 swaps only the person in your approved mask, matches the anchor and continues from the take before (free; a 24 GB GPU and the opt-in H3 Relay pack). In the cloud, fal's MiniMax H3 with Akatz Labs' swap LoRA ($0.075/s at 768p, $0.0625/s at 480p) has no mask: the whole frame is regenerated and who to swap goes into the prompt. Built and checked in demo mode only: nothing has run on a GPU or with a fal key, its two GPU graphs have never loaded in a ComfyUI, and the Finish stage (a clean background plate and cut-outs) shows as not available- **Marketing Studio** (84 templates; every picture format starts on Fuobe Marketing Image on both engines, with the words set over the picture in your browser, and Bria, Nano Banana Pro, GPT Image 2.5, Ideogram and Recraft stay cloud choices), **Click to Ad** (with a logo end card), **Ads Studio** (brand kit from your website, up to 20 ads per product in 1:1 / 4:5 / 9:16, each one written copy and one picture laid out in your browser with your logo, colours and fonts; the picture is Fuobe Marketing Image's by default, and in the cloud "Pictures by" picks Nano Banana Pro or GPT Image 2.5 instead) and **Ad Multiplier** (whole-ad edits in the cloud on Kling O3 or Happy Horse video edit, which keep the sound and recreate up to 15 s, or Gemini Omni Flash)-- **Moodboards** (the curated looks open on Fuobe Soul; **Train as a look…** trains a board into a look of its own for Fuobe Soul, on either engine), **Color signature** (Soul HEX palettes; with a Fuobe Soul model on the open engine, the colours are locked after generating by default), **Photodump / Instadump** and **Fashion Factory** (a character with a Soul ID runs on Fuobe Soul; without one, Photodump uses Qwen-Image-Edit 2511 on both engines, with Nano Banana Pro and Seedream 5.0 Pro as cloud choices; Fashion Factory dresses the shot on Fuobe Try-On and makes the photoset on Qwen-Image-Edit 2511, with FASHN and Nano Banana Pro as cloud choices), **Character Sheet** (Build from scratch and From a description draw in Fuobe Soul's Realistic look: Fuobe Soul in the cloud, the Soul Cast sheet on your GPU)+- **Moodboards** (the curated looks open on Fuobe Soul; **Train as a look…** trains a board into a look of its own for Fuobe Soul, on either engine), **Color signature** (Soul HEX palettes; with a Fuobe Soul model on the open engine, the colours are locked after generating by default), **Photodump / Instadump** and **Fashion Factory** (a character with a Soul ID runs on Fuobe Soul; without one, Photodump uses Qwen-Image-Edit 2511 in the cloud, with Nano Banana Pro and Seedream 5.0 Pro as choices, and Qwen-Image 2.1 on your GPU, with Qwen-Image-Edit 2511 as a choice; Fashion Factory dresses the shot on Fuobe Try-On and makes the photoset on Qwen-Image-Edit 2511 in the cloud (FASHN and Nano Banana Pro are choices) and on Qwen-Image 2.1 on your GPU (Qwen-Image-Edit 2511 a choice)), **Character Sheet** (Build from scratch and From a description draw in Fuobe Soul's Realistic look: Fuobe Soul in the cloud, the Soul Cast sheet on your GPU)- **Turnaround video** — one button films a character all the way round, and the sides it has no picture of are drawn first. It is **Turnaround video** on a finished Character Sheet (`/character-sheet`) and in Cinema's Soul Cast results (the film lands as a take in the project), and **Fly around** on a character's page. One dialog holds five picture slots, "Draw the missing sides", the route, length, shape, price and consent. On your GPU, Wan 2.2 14B films each quarter turn and joins them, and Qwen-Image-Edit 2511 with the Multiple-Angles LoRA draws missing sides: free, about 24 GB of VRAM, and no new files (it uses Frames mode's and the Angles app's). In the cloud: **References** (MiniMax H3 Max, the default with 2 or more views or a sheet; $0.40 for 5 s at 768P), **Keyframes** (FLUX 3 Max; $0.0425/s through 2026-11-07, then $0.17/s) or **Camera path** (H3 Max camera controls, the default with a front view only). Each drawn side costs about $0.035 (Qwen Multiple Angles), and with only a sheet the front is first drawn with Nano Banana Pro ($0.15). For a real person you tick Soul ID's consent line: a character's page always asks (or shows it as given at Soul ID training), the Character Sheet starts "A real person" on for sheets from uploaded photos, and Soul Cast's made-up actors skip it- **AI Influencer** builder — build a character game-style: a character type (Average, Bold or Extreme human, or a creature: insect, frog, cat, dog, rodent or bird) and traits in 18 categories, with Shuffle, then save the sheet as a character. The sheet is drawn in Fuobe Soul's Realistic look (in the cloud on Fuobe Soul, with hosted Qwen-Image-Edit 2511 adding your face or clothes; Nano Banana Pro and Seedream 5.0 Pro stay choices)- **Faceless Studio** and **Explainer** — channels, scripts, narrated and subtitled episodes with a timeline editor; "Frame by frame" moves the camera slowly over each still (a Ken Burns move), the music loops to cover long films, and Explainer reads PDF and Word sources@@ -93,8 +94,8 @@ Fuobe is a complete creative studio you can run yourself: 108 camera motions, 25## Catalog and the open-source engine-- **Catalog:** 198 cloud models + 93 open-source models + 20 Fuobe Originals that run on both (plus 54 hidden ones: chain steps and studio helpers such as the fly path's two routes, self-tests, browser tools, and Gemma 4 speech translate, which no studio uses yet), 125 apps, 108 camera motions (mix any two), 255 effects; 480 of their cards show a cover rendered on a GPU (48 of them short clips), the rest a drawn preview. A launch price (FLUX 3 Max's, through 2026-11-07) is read on the day: a run is priced on the day it is planned, and a page shows that day's price once it has loaded, never one read while the page was built-- **Open-source engine:** 158 API-format ComfyUI workflows (official templates, community packs and hand-built graphs), 153 of them validated against real ComfyUI node definitions (the three MiniMax H3 graphs and the Character Swap Studio's two H3 Relay graphs need node packs the validation server doesn't have; Split soundtrack's DBS graph was checked, and ran, on a separate CPU ComfyUI with ComfyUI-DBS), plus 84 researched LoRAs (camera moves, VFX) that 122 motion, effect and app presets use today (43 of them are also in the Settings → LoRAs library, and 36 come from civitai)+- **Catalog:** 198 cloud models + 104 open-source models + 20 Fuobe Originals that run on both (plus 54 hidden ones: chain steps and studio helpers such as the fly path's two routes, self-tests, browser tools, and Gemma 4 speech translate, which no studio uses yet), 125 apps, 108 camera motions (mix any two), 255 effects; 480 of their cards show a cover rendered on a GPU (48 of them short clips), the rest a drawn preview. A launch price (FLUX 3 Max's, through 2026-11-07) is read on the day: a run is priced on the day it is planned, and a page shows that day's price once it has loaded, never one read while the page was built+- **Open-source engine:** 174 API-format ComfyUI workflows (official templates, community packs and hand-built graphs), 153 of them validated against real ComfyUI node definitions (the 16 graphs of the newest image models were checked only against a ComfyUI's node list, and wait for a check on one that isn't busy; the three MiniMax H3 graphs and the Character Swap Studio's two H3 Relay graphs need node packs the validation server doesn't have; Split soundtrack's DBS graph was checked, and ran, on a separate CPU ComfyUI with ComfyUI-DBS), plus 84 researched LoRAs (camera moves, VFX) that 122 motion, effect and app presets use today (43 of them are also in the Settings → LoRAs library, and 36 come from civitai)## Evaluation harnessdiff --git a/docs/STATUS.md b/docs/STATUS.mdindex d957cb39..f1fd4bd5 100644--- a/docs/STATUS.md+++ b/docs/STATUS.md@@ -122,7 +122,7 @@ Model names are the defaults first, then the alternatives. "Demo" outputs are la|---|---|---|---|---|| Edit image (instruction edit) | 🟢 | Any edit model (Nano Banana Pro, Seedream 5.0, GPT Image 2.5, FLUX.2 / Kontext, Qwen Image 3, Krea 3, Bria FIBO 2…): the image plus up to 6 references, within each model's own limit | Qwen-Image-Edit 2511, FLUX.1 Kontext [dev], FLUX.2 [dev] (up to 3 images in all) | `/edit`, with Bria Extract Object. Promptless models (e.g. FASHN) get no prompt suggestions. Ideogram Remove Background is a Layers tool || Inpaint / Draw to Edit | 🟢 | Native mask routes (GPT Image, Ideogram, FLUX Fill [pro], Z-Image) in each API's convention; a red-tinted copy + instructions elsewhere | FLUX.1 Fill [dev] | `/inpaint`, compare slider in the viewer. With a mask-only model (FLUX Fill), Generate asks to paint the area once the image is in |-| Layers | ✅ editor · 🟢 AI tools (cloud and open) · 🟡 Enhancer | Decompose: Seedream 5.0 Layers (default), Seedream 5.0 Flash Layers, Qwen-Image Layered (hosted). Edit text: Ideogram 3.0 Text Layers (default) or Florence-2 OCR detects, Nano Banana Pro or Seedream 5.0 Pro edits. Inpaint: Nano Banana Pro (shown a red-tinted copy), FLUX.1 Fill [pro] or Z-Image Turbo Inpaint (they take the mask). Enhancer: Skin, Soft glow and Sharpen on Nano Banana Pro or Seedream 5.0 Pro; Detail (2×) on Topaz or SeedVR. Background: BiRefNet, Ideogram. Regional edit: Seedream 5.0 Pro, Nano Banana Pro. Upscale: Topaz, SeedVR2, Recraft Crisp. Relight, Expand: Nano Banana Pro. Angles: Qwen Multiple Angles | Qwen-Image-Layered (a named element runs on Layered-Control), OvisOCR3 text detection (~3 GB VRAM), Qwen-Image-Edit 2511 (text edits, regional edit, angles, the Enhancer's looks), FLUX.1 Fill [dev] (Inpaint), RMBG, FLUX Kontext, ESRGAN / SeedVR2 (also the Enhancer's Detail at 2×), Qwen relight, FLUX Fill | `/layers`, `/layers/[id]`: canvas (move, resize, rotate, masks), Layers panel, per-layer prompt with revisions, history and versions, Compare, Cropped / Positioned zips and PNG at full detail, Copy JSON, Color grading (WebGL); phones get a read-only view. "Open in Layers" on every image result. Edit text has a Detector picker on both engines (typing the lines still works); a see-through layer is put on a white or black backdrop first. Inpaint (paint an area, say what goes there) and the Enhancer give a new version or a new layer. Save as element in each layer's menu (Character, Prop or Style, with an `@handle`). "Keep transparency" starts on only when the layer has see-through pixels. The editor and the browser-built downloads ran end to end on demo layers; the new tools were checked in the demo-mode browser on both engines, and no AI tool has run with real keys or on a GPU. The Enhancer is Fuobe's approximation of Higgsfield's single skin-enhancer job. Not built: comments |+| Layers | ✅ editor · 🟢 AI tools (cloud and open) · 🟡 Enhancer | Decompose: Seedream 5.0 Layers (default), Seedream 5.0 Flash Layers, Qwen-Image Layered (hosted). Edit text: Ideogram 3.0 Text Layers (default) or Florence-2 OCR detects, Nano Banana Pro or Seedream 5.0 Pro edits. Inpaint: Nano Banana Pro (shown a red-tinted copy), FLUX.1 Fill [pro] or Z-Image Turbo Inpaint (they take the mask). Enhancer: Skin, Soft glow and Sharpen on Nano Banana Pro or Seedream 5.0 Pro; Detail (2×) on Topaz or SeedVR. Background: BiRefNet, Ideogram. Regional edit: Seedream 5.0 Pro, Nano Banana Pro. Upscale: Topaz, SeedVR2, Recraft Crisp. Relight, Expand: Nano Banana Pro. Angles: Qwen Multiple Angles | Qwen-Image-Layered (a named element runs on Layered-Control), OvisOCR3 text detection (~3 GB VRAM), Qwen-Image 2.1 first for regenerate, text edits, regional edit, Inpaint, Expand and the Enhancer's looks (Qwen-Image-Edit 2511 after it, and alone for angles), Ideogram 4 first for a new layer, FLUX.1 Fill [dev] (Inpaint, Expand), RMBG, FLUX Kontext, ESRGAN / SeedVR2 (also the Enhancer's Detail at 2×), Qwen relight | `/layers`, `/layers/[id]`: canvas (move, resize, rotate, masks), Layers panel, per-layer prompt with revisions, history and versions, Compare, Cropped / Positioned zips and PNG at full detail, Copy JSON, Color grading (WebGL); phones get a read-only view. "Open in Layers" on every image result. Edit text has a Detector picker on both engines (typing the lines still works); a see-through layer is put on a white or black backdrop first. Inpaint (paint an area, say what goes there) and the Enhancer give a new version or a new layer. Save as element in each layer's menu (Character, Prop or Style, with an `@handle`). "Keep transparency" starts on only when the layer has see-through pixels. The editor and the browser-built downloads ran end to end on demo layers; the new tools were checked in the demo-mode browser on both engines, and no AI tool has run with real keys or on a GPU. The Enhancer is Fuobe's approximation of Higgsfield's single skin-enhancer job. Not built: comments || Color Grading (free, in the browser) | ✅ | — (WebGL in the browser) | same | `/color-grade`: Higgsfield's five looks plus seven film looks, 14 more from Fuobe DoP's grade effects, and Invert and Solarize (sliders and presets, also used by two Soul looks); manual controls, PNG / WebM export into the library; looks preview on a bundled sample before an upload. `/color-grade?preset=<id>` opens with a grade picked (a graded DoP clip's "Apply the … grade" step lands here) || Expand (outpaint), Upscale image | 🟢 | Expand: Nano Banana Pro (Expand Image and Zoom Out apps). Upscale: Topaz, SeedVR2, Recraft Crisp | FLUX Fill outpaint, 4x ESRGAN, SeedVR2 | `/upscale`; the Expand Image and Zoom Out apps. Bria Expand is in the catalog, but no studio page offers it || Upscale video | 🟢 | Topaz Video (Original / 1080p / 1440p / 4K, 24 / 30 / 60 fps; $0.01/s at 720p, $0.02/s at 1080p, $0.06/s above, doubled at 60 fps), Topaz Starlight, ByteDance Upscale (up to 8K), FLUX.3 Upscale, SeedVR2 (to a size, 1080p by default) | SeedVR2 or Real-ESRGAN in passes of a few frames, 720p to 2160p (1080p by default) | `/upscale/video`. A line under the clip says what will come out, and prices use the clip's real length. A size that wouldn't enlarge the clip moves up: a 1080p clip now goes to 1440p on Topaz ($0.06/s), where it used to become 4K at $0.02/s. This applies to every caller, Canvas included. Real-ESRGAN in passes ✅ on CPU with stand-in weights |diff --git a/scripts/comfy/README.md b/scripts/comfy/README.mdindex 81e5aef4..de42e591 100644--- a/scripts/comfy/README.md+++ b/scripts/comfy/README.md@@ -482,6 +482,58 @@ node validate-workflows.mjs moss-image-t2i --shared- **GPU**: no official VRAM figure (16 GB is a guess with ComfyUI's offloading). comfy-kitchen's int8 / w4a8 kernels need aPyTorch built for CUDA 13 (cu130); otherwise `comfy/quant_ops.py` turns them off with a warning.+## Owner's SOTA image families (2026-10-31)++Sixteen hand-built graphs for Ideogram 4, Qwen-Image 2.1, Krea 2 and FIBO 2 (MOSS-Image is the graph above). They are the+first picks on the open engine: the Image studio opens on Ideogram 4, Edit and Inpaint on Qwen-Image 2.1, and every+studio's "Best" list ranks the new models first (`src/lib/catalog/models.ts`, `tests/open-sota-studios.test.ts`). Each graph+comes from the owner's saved ComfyUI workflows or from a graph rendered in the preview pipeline, converted once to API+format; the UI-only nodes (notes, compares, previews, resolution pickers, switches) are removed.++They were built from a ComfyUI that was busy rendering, so nothing was posted to it:++```bash+npm run build -- <ids> # GET /object_info only (+ Hugging Face sizes)+node validate-workflows.mjs --subset-only <ids> # writes their classes to object_info.subset.json, posts nothing+node build-requirements.mjs+```++All sixteen are `validated: false` until `node validate-workflows.mjs <ids> --shared` runs on an idle ComfyUI 0.42.0 (the+library: 174 workflows, 153 validated). Proof: [P] rendered in the preview pipeline, [O] the owner's saved workflow, [I] built+from an example and not rendered yet.++| id | capability | source | proof |+|---|---|---|---|+| `ideogram4-t2i` | t2i | the owner's `image_ideogram4_t2i_int8`: conditional and unconditional int8 models (`DualModelGuider`, `CFGOverride`), the Quality / Default / Turbo table into `Ideogram4Scheduler` (`preset`); the prompt is a JSON caption written from the words (`src/lib/ideogram-caption.ts`) | [P] |+| `qwen-image-21-t2i` | t2i | the owner's default Qwen-Image 2.1 graph: 25 steps, cfg 1, euler / simple, up to 2048 px on the 32 grid | [O] |+| `qwen-image-21-edit` | edit | `TextEncodeQwenImage21` with up to 4 references (each scaled to 2048 px, lanczos), `QwenImage21Cache`, 25 steps | [P] |+| `qwen-image-21-turbo-edit` | edit | the Turbo model on its fixed 8-step `ManualSigmas`, the same 4-reference encoder | [P] |+| `qwen-image-21-inpaint` | inpaint | AusBoss's example: crop around the mask (red channel, white = change), 25 steps, stitched back | [I] |+| `qwen-image-21-outpaint` | outpaint | the owner's `qwenImage21Outpaint_v12`: AusBoss pad nodes (`padLeft`…`padBottom` on both), the outpaint-v2 LoRA, Qwen3-VL describes the canvas; the words only add what goes in the margins | [P] |+| `krea2-realism-t2i` / `krea2-turbo-t2i` | t2i | the owner's Krea 2 Turbo graph, with the Realism V2 LoRA (`loraStrength`) at 6 steps, or plain at 8 | [O]; the LoRA [I] |+| `krea2-edit-general` / `krea2-edit-identity` | edit | the owner's `Krea2 Image Edit` on comfyui-krea2edit (General or Identity Edit V2 LoRA, `ref_boost` 4 or 2, 8 steps); image 2 is an optional person | [O] |+| `krea2-turbo-i2i` | edit | the picture scaled to about 2 MP, then Krea 2 Turbo at `denoise` = `strength` | [I] |+| `krea2-inpaint` / `krea2-outpaint` | inpaint / outpaint | Cierpliwy's examples on ComfyUI-Krea2-Ostris-Edit: the area to paint made black, the inpaint-edit LoRA, 8 steps, euler_ancestral | [I] |+| `fibo2-dev-t2i` | t2i | the owner's FIBO 2 VGL graph: Qwen3.5 9B writes Bria's JSON prompt, 30 steps, cfg 5 | [O] |+| `fibo2-dev-edit` / `fibo2-edit-turbo-edit` | edit | the owner's FIBO 2 edit graphs with references 3 and 4 wired like 2: Dev 30 steps / cfg 5, Edit Turbo 4 steps / cfg 1 | [O] |++- **Optional references**: a reference the run doesn't have is left out of `TextEncodeQwenImage21`, `TextEncodeFibo2` and+ Krea 2's edit nodes (`OPTIONAL_REFERENCE_INPUTS` in `src/server/providers/comfyui.ts`).+- **Node packs** (`packs.json`; the GPU pre-flight lists them, `install-comfyui.sh` doesn't install them yet): ausboss-nodes+ @ `bce780f2` (MIT; Qwen-Image 2.1 inpaint and expand), comfyui-krea2edit @ `13ef60f2` (Apache-2.0; Krea 2 Edit and+ Identity Edit), ComfyUI-Krea2-Ostris-Edit @ `77565661` (MIT; Krea 2 Inpaint). A ComfyUI with comfyui-workflow-encrypt+ reports that pack as the module of other packs' nodes, so the build names a class's pack from `PACK_CLASSES` first+ (`packOfClass` in `build-requirements.mjs`).+- **Weights** (about 92 GB new, revisions, sizes and SHA-256 from the Hugging Face API in `model-pins.json`): the int8 builds+ of Comfy-Org's Ideogram-4, Qwen-Image-2.1, Fibo-2.0 and MOSS-Image (Qwen3.5 9B) repositories, AusBoss's outpaint LoRA and+ the Krea 2 LoRAs (Realism V2, General and Identity Edit V2, inpaint-edit v1 512). `variants` in `KNOWN_MODELS` names the same+ weights in another precision in the same repository (Krea 2 Turbo's fp8 and bf16 builds, …); nothing reads it yet, so a+ ComfyUI with only those builds still needs the pinned file.+- **Licences, as information**: Qwen-Image 2.1 and Ideogram 4 weights are non-commercial, FIBO 2 CC BY-NC 4.0, Krea 2 the+ Krea 2 Community License (the edit LoRAs non-commercial without their author's licence).+- **GPU**: 20–24 GB estimates (`vramGb`), none measured here. ComfyUI 0.42.0 or newer: `TextEncodeQwenImage21`,+ `QwenImage21Cache`, `Ideogram4Scheduler`, `DualModelGuider`, `CFGOverride` and `TextEncodeFibo2` came with it.+## Adding a workflow1. Find the template name in `$COMFYUI_DIR/.venv/lib/python3.*/site-packages/comfyui_workflow_templates_json/templates/index.json`diff --git a/src/components/element-studio.tsx b/src/components/element-studio.tsxindex 4c86bb07..e437fc35 100644--- a/src/components/element-studio.tsx+++ b/src/components/element-studio.tsx@@ -52,7 +52,7 @@ export function ElementStudio({ id }: { id: string }) {feed: { features: [`element:${el.id}`, `character:${el.id}`] },slots: [],multiRef: { label: "Add ref", max: 8 },- defaultModels: { cloud: lead?.cloud ?? "nano-banana-pro", open: lead?.open ?? "oss-qwen-edit" },+ defaultModels: { cloud: lead?.cloud ?? "nano-banana-pro", open: lead?.open ?? "oss-qwen-image-21" },};}, [el]);diff --git a/src/components/fashion/fashion-view.tsx b/src/components/fashion/fashion-view.tsxindex 1fd0eff4..b6309ea9 100644--- a/src/components/fashion/fashion-view.tsx+++ b/src/components/fashion/fashion-view.tsx@@ -26,7 +26,7 @@ const LABELS = ["Select presets", "Character", "Generation", "Clothing", "Photosconst BANNER_KEY = "fuobe.fashion.banner";/*** The outfit and photoset models' names (FASHION_MODELS has each step's per engine): Fuobe Try-On (the Original, FLUX.2- * [klein] 4B + a try-on LoRA) and Qwen-Image-Edit 2511 first, partners after.+ * [klein] 4B + a try-on LoRA) and the Qwen edit models first, partners after.*/const MODEL_LABELS: Record<string, string> = {"fuobe-tryon": "Fuobe Try-On",@@ -34,6 +34,7 @@ const MODEL_LABELS: Record<string, string> = {"nano-banana-pro": "Nano Banana Pro","qwen-image-edit-2511-cloud": "Qwen-Image-Edit 2511","oss-qwen-edit": "Qwen-Image-Edit 2511",+ "oss-qwen-image-21": "Qwen-Image 2.1",};const bannerListeners = new Set<() => void>();diff --git a/src/components/photodump/photodump-view.tsx b/src/components/photodump/photodump-view.tsxindex d80697b0..907c6bc2 100644--- a/src/components/photodump/photodump-view.tsx+++ b/src/components/photodump/photodump-view.tsx@@ -31,6 +31,7 @@ const MODEL_NAMES: Record<string, string> = {"seedream-5-pro": "Seedream 5.0 Pro","qwen-image-edit-2511-cloud": "Qwen-Image-Edit 2511","oss-qwen-edit": "Qwen-Image-Edit 2511",+ "oss-qwen-image-21": "Qwen-Image 2.1",};const TABS = [["all", "All"],diff --git a/src/components/studio/composer.tsx b/src/components/studio/composer.tsxindex 87b63d6a..0e1721b8 100644--- a/src/components/studio/composer.tsx+++ b/src/components/studio/composer.tsx@@ -978,6 +978,7 @@ export function Composer({ docked }: { docked: boolean }) {engine={engine}onEngineChange={setEngine}defaultModels={config.defaultModels}+ ops={pickerOps}onChange={pickModel}/>) : (diff --git a/src/components/studio/model-picker.tsx b/src/components/studio/model-picker.tsxindex 2303c426..802e9045 100644--- a/src/components/studio/model-picker.tsx+++ b/src/components/studio/model-picker.tsx@@ -11,9 +11,9 @@ import { badgeFor, useGpuBadges } from "@/hooks/use-gpu";import { useIsMobile } from "@/hooks/use-mobile";import { useToday } from "@/hooks/use-today";import type { Badge as BadgeT } from "@/lib/gpu/types";-import { type Engine, type ModelDef } from "@/lib/catalog/types";+import { type Engine, type ModelDef, type Operation } from "@/lib/catalog/types";import { useEngineMode, useStatus } from "@/lib/api";-import { bestForStudio, groupModels, toggleIn } from "@/lib/composer";+import { groupModels, studioBest, toggleIn } from "@/lib/composer";import { ISOLATED_NOTE, pickerPrice } from "@/lib/model-rows";import { cn } from "@/lib/utils";import { EngineSwitch } from "./engine-switch";@@ -150,6 +150,8 @@ interface PickerProps {engine: Engine;onEngineChange: (e: Engine) => void;defaultModels?: { cloud: string; open: string };+ /** The operations the studio offers, its main one first: "Best for this studio" ranks the models that do it. */+ ops?: Operation[];}/**@@ -182,7 +184,7 @@ export function ModelPicker(props: PickerProps) {}/** The searchable list (mounted by the popover / sheet only while it shows). */-function PickerList({ models, value, onChange, engine, onEngineChange, defaultModels, onPicked }: PickerProps & { onPicked: () => void }) {+function PickerList({ models, value, onChange, engine, onEngineChange, defaultModels, ops, onPicked }: PickerProps & { onPicked: () => void }) {const [q, setQ] = useState("");const status = useStatus().data;const badges = useGpuBadges().data;@@ -192,12 +194,8 @@ function PickerList({ models, value, onChange, engine, onEngineChange, defaultMoconst [starred, setStarred] = useStoredList(STARRED_MODELS);const today = useToday();const engines = useMemo<Engine[]>(() => (mode === "both" ? ["cloud", "open"] : [mode]), [mode]);- // "Best" ranks models that do what the studio's default does first (its main operation), not single-purpose tools.- const best = useMemo(() => {- const id = defaultModels?.[engine];- const op = models.find((m) => m.id === id)?.routes[0]?.op;- return bestForStudio(models, engine, id, 4, op).map((m) => m.id);- }, [models, engine, defaultModels]);+ // "Best" ranks models that do what the studio is for, not single-purpose tools.+ const best = useMemo(() => studioBest(models, engine, defaultModels?.[engine], ops), [models, engine, defaultModels, ops]);const { groups, count } = useMemo(() => groupModels({ models, engine, engines, query: q, recent, starred, best }), [models, engine, engines, q, recent, starred, best]);const ready = (m: ModelDef) => m.routes.some((r) => status?.providers[r.provider]?.configured);const shown = groups.flatMap((g) => g.models);diff --git a/src/lib/catalog/apps.ts b/src/lib/catalog/apps.tsindex bef3a443..7af42ccf 100644--- a/src/lib/catalog/apps.ts+++ b/src/lib/catalog/apps.ts@@ -5,13 +5,14 @@ import type { InputSlot, Preset, PresetOption, PresetRoute } from "./types";/** One-click "Apps". Most are an edit model plus a carefully written instruction —* exactly how Higgsfield builds them on Nano Banana / Seedream. The open-source route- * runs the same instruction on Qwen-Image-Edit (or a dedicated ComfyUI workflow).+ * runs the same instruction on Qwen-Image 2.1 (or a dedicated ComfyUI workflow; apps whose+ * LoRA was trained on Qwen-Image-Edit 2509 or 2511 name that model).* Video apps animate the photo with an image-to-video model and a template prompt* (Higgsfield's "viral_transform_video" templates work the same way).*/const EDIT_CLOUD = "nano-banana-pro";-const EDIT_OPEN = "oss-qwen-edit";+const EDIT_OPEN = "oss-qwen-image-21";/** Image → video templates. */const VIDEO_CLOUD: PresetRoute = { modelId: "kling-2-5-turbo", op: "i2v", params: { duration: 5 } };@@ -28,7 +29,15 @@ const BG_CLOUD: PresetRoute = { modelId: "birefnet-cloud", op: "bg-remove" };const BG_OPEN: PresetRoute = { modelId: "oss-rmbg", op: "bg-remove" };const UPSCALE_CLOUD: PresetRoute = { modelId: "topaz-image", op: "upscale-image" };const UPSCALE_OPEN: PresetRoute = { modelId: "oss-upscale-image", op: "upscale-image" };-const OUTPAINT_OPEN: PresetRoute = { modelId: "oss-flux-fill", op: "outpaint" };+/**+ * Qwen-Image 2.1's expand: Qwen3-VL describes the picture on its grown canvas, and the words only add what goes in the+ * new margins. They never name the subject (it would appear again there), so the apps send their own short hint.+ */+const OUTPAINT_OPEN: PresetRoute = {+ modelId: "oss-qwen-image-21",+ op: "outpaint",+ promptTemplate: "more of the surrounding scene, continuing naturally past every edge with the same light, perspective and textures",+};const photo: InputSlot = { key: "image", label: "Photo", accept: "image", required: true };const product: InputSlot = { key: "image", label: "Product", hint: "A clear photo of the product", accept: "image", required: true };diff --git a/src/lib/catalog/canvas.ts b/src/lib/catalog/canvas.tsindex 149c6e6b..80bd39b3 100644--- a/src/lib/catalog/canvas.ts+++ b/src/lib/catalog/canvas.ts@@ -329,8 +329,8 @@ const needsMarks = (m: ModelDef) => !!(m.options.requires?.mask || m.options.req/** Preferred defaults; anything missing falls back to the first catalog model for that op and engine. */const PREFERRED: Partial<Record<Operation, Partial<Record<Engine, string>>>> = {- t2i: { cloud: "nano-banana-pro", open: "oss-z-image-turbo" },- edit: { cloud: "nano-banana-pro", open: "oss-qwen-edit" },+ t2i: { cloud: "nano-banana-pro", open: "oss-ideogram-4" },+ edit: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" },t2v: { cloud: "kling-2-5-turbo", open: "oss-wan22-14b-fast" },i2v: { cloud: "kling-2-5-turbo", open: "oss-wan22-14b-fast" },flf2v: { cloud: "kling-2-5-turbo", open: "oss-wan22-14b-fast" },@@ -1805,9 +1805,9 @@ export const CANVAS_TEMPLATES: CanvasTemplate[] = [build: tpl([{ id: "product", type: "image-input", x: 0, y: ROW, data: { label: "Product photo" } },- { id: "front", type: "model", x: COL, y: 0, data: { mediaKind: "image", label: "Front ¾ angle", op: "edit", prompt: "The same product from a three-quarter front angle on a seamless studio background, soft key light, sharp details" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-edit" } },- { id: "side", type: "model", x: COL, y: ROW, data: { mediaKind: "image", label: "Side profile", op: "edit", prompt: "The same product in a clean side profile on a seamless studio background, rim light, sharp details" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-edit" } },- { id: "top", type: "model", x: COL, y: ROW * 2, data: { mediaKind: "image", label: "Top-down", op: "edit", prompt: "The same product shot top-down as a flat lay on a seamless studio background, even light" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-edit" } },+ { id: "front", type: "model", x: COL, y: 0, data: { mediaKind: "image", label: "Front ¾ angle", op: "edit", prompt: "The same product from a three-quarter front angle on a seamless studio background, soft key light, sharp details" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" } },+ { id: "side", type: "model", x: COL, y: ROW, data: { mediaKind: "image", label: "Side profile", op: "edit", prompt: "The same product in a clean side profile on a seamless studio background, rim light, sharp details" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" } },+ { id: "top", type: "model", x: COL, y: ROW * 2, data: { mediaKind: "image", label: "Top-down", op: "edit", prompt: "The same product shot top-down as a flat lay on a seamless studio background, even light" }, models: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" } },{ id: "video", type: "model", x: COL * 2, y: ROW - 40, data: { mediaKind: "video", label: "Ad clip", op: "ref2v", prompt: "A premium product commercial: the camera orbits the product from the reference angles, studio lighting, slow and smooth", params: { aspectRatio: "16:9", duration: 5 } }, models: { cloud: "seedance-2-5", open: "oss-wan-vace" } },{ id: "out", type: "output", x: COL * 3, y: ROW, data: { label: "Ad" } },],@@ -1891,7 +1891,7 @@ export const CANVAS_TEMPLATES: CanvasTemplate[] = [icon: "Columns3",hue: 150,build: (engine) => {- const models = engine === "open" ? ["oss-z-image-turbo", "oss-qwen-image", "oss-flux1-krea"] : ["nano-banana-pro", "seedream-5-pro", "flux-2-pro"];+ const models = engine === "open" ? ["oss-ideogram-4", "oss-qwen-image-21", "oss-krea2-realism"] : ["nano-banana-pro", "seedream-5-pro", "flux-2-pro"];return tpl([{ id: "prompt", type: "prompt", x: 0, y: ROW - 60, data: { label: "Prompt", text: "Portrait of an elderly fisherman mending a net at dawn, soft window light, film grain" } },diff --git a/src/lib/catalog/character-swap.ts b/src/lib/catalog/character-swap.tsindex 1797cdef..537f613c 100644--- a/src/lib/catalog/character-swap.ts+++ b/src/lib/catalog/character-swap.ts@@ -391,7 +391,10 @@ export const ANCHOR_MODELS: Record<Engine, { id: string; label: string; note: st{ id: "gpt-image-2-5-sunburst", label: "GPT Image 2.5 Sunburst", note: "Openjutsu's choice, low quality: billed by tokens", extra: { quality: "low" }, tokens: "$8 per million tokens in, $30 per million out" },{ id: "nano-banana-pro", label: "Nano Banana Pro", note: "$0.15 an image" },],- open: [{ id: "oss-qwen-edit", label: "Qwen-Image-Edit 2511", note: "Free on your GPU (24 GB)" }],+ open: [+ { id: "oss-qwen-image-21", label: "Qwen-Image 2.1", note: "Free on your GPU (20 GB)" },+ { id: "oss-qwen-edit", label: "Qwen-Image-Edit 2511", note: "Free on your GPU (24 GB)" },+ ],};export const anchorModel = (engine: Engine, id?: string) => ANCHOR_MODELS[engine].find((m) => m.id === id) ?? ANCHOR_MODELS[engine][0];diff --git a/src/lib/catalog/cinema.ts b/src/lib/catalog/cinema.tsindex 260b4e02..95a77c83 100644--- a/src/lib/catalog/cinema.ts+++ b/src/lib/catalog/cinema.ts@@ -600,7 +600,7 @@ export const CAST_SHEET_MODEL = "oss-zimage-soul-cast";*/export const CINEMA_MODELS: Record<CinemaMode, Record<Engine, string[]>> = {video: { cloud: [CINEMA_MODEL, "seedance-2-5", "kling-3", "veo-3-1"], open: [CINEMA_MODEL, "oss-ltx25", "oss-wan22-14b"] },- image: { cloud: [CINEMA_STILL_MODEL, "nano-banana-pro", "seedream-5-pro"], open: [CINEMA_STILL_MODEL, "oss-z-image-turbo", "oss-qwen-image"] },+ image: { cloud: [CINEMA_STILL_MODEL, "nano-banana-pro", "seedream-5-pro"], open: [CINEMA_STILL_MODEL, "oss-ideogram-4", "oss-qwen-image-21", "oss-z-image-turbo", "oss-qwen-image"] },};/**@@ -1614,7 +1614,10 @@ function planGrid(input: CinemaGenerateInput, ctx: CinemaContext): CinemaPlan {*/export const CAST_MODELS: Record<Engine, string[]> = { cloud: [SOUL_BUILDER_MODEL, "nano-banana-pro"], open: [CAST_SHEET_MODEL, SOUL_BUILDER_MODEL] };/** Soul Location's makers: Fuobe Soul (the Movie look) on both engines, partner and open alternatives after it. */-export const LOCATION_MODELS: Record<Engine, string[]> = { cloud: [SOUL_BUILDER_MODEL, "nano-banana-pro", "seedream-5-pro"], open: [SOUL_BUILDER_MODEL, "oss-z-image-turbo", "oss-qwen-image"] };+export const LOCATION_MODELS: Record<Engine, string[]> = {+ cloud: [SOUL_BUILDER_MODEL, "nano-banana-pro", "seedream-5-pro"],+ open: [SOUL_BUILDER_MODEL, "oss-ideogram-4", "oss-qwen-image-21", "oss-z-image-turbo", "oss-qwen-image"],+};/** A builder's maker: the one asked for when this engine offers it (and this install has it), else the first. */function builderModel(list: string[], input: CinemaGenerateInput, ctx: CinemaContext): ModelDef {@@ -1908,8 +1911,11 @@ function planEdit(input: CinemaGenerateInput, ctx: CinemaContext): CinemaPlan {/** What builds a still's 3D scene: MoGe 2's textured mesh on the open engine, a Marigold depth map on the cloud. */export const SCENE_MODELS: Record<Engine, string> = { cloud: "marigold-depth", open: "oss-scene-moge" };-/** What re-renders a captured view. The first is the default. */-export const RECOMPOSE_MODELS: Record<Engine, string[]> = { cloud: ["nano-banana-pro", "qwen-multiple-angles"], open: ["oss-qwen-edit"] };+/**+ * What re-renders a captured view. The first is the default. On your GPU that stays Qwen-Image-Edit 2511, which runs it+ * with the Multiple-Angles LoRA trained on it; Qwen-Image 2.1 is the choice after it, with plain words.+ */+export const RECOMPOSE_MODELS: Record<Engine, string[]> = { cloud: ["nano-banana-pro", "qwen-multiple-angles"], open: ["oss-qwen-edit", "oss-qwen-image-21"] };/** The open scene mesh skips every other pixel: about a quarter of the triangles, light enough for a phone. */export const SCENE_DECIMATION = 2;@@ -1935,15 +1941,14 @@ function planScene(input: CinemaGenerateInput): CinemaPlan {const REFERENCE_POSE: ScenePose = { horizontal: 0, vertical: 0, zoom: 5 };/**- * Re-render a captured view. Nano Banana Pro (cloud) and Qwen-Image-Edit 2511 with the Multiple-Angles LoRA- * (open) get the capture as image 1 and the still as image 2. The LoRA turns its input by the angles it is told,+ * Re-render a captured view. Nano Banana Pro (cloud), Qwen-Image 2.1 and Qwen-Image-Edit 2511 with the Multiple-Angles+ * LoRA (open) get the capture as image 1 and the still as image 2. The LoRA turns its input by the angles it is told,* and the capture already shows the new view, so it is told the reference pose (front view, eye level, medium* shot: keep this camera); the flown angles stay on the take. Qwen Multiple Angles on the cloud re-shoots the* still itself from the flown camera's angles instead.*/function planRecompose(input: CinemaGenerateInput): CinemaPlan {const notes: string[] = [];- const open = input.engine === "open";const list = RECOMPOSE_MODELS[input.engine];const model = getModel(input.modelId && list.includes(input.modelId) ? input.modelId : list[0])!;const src = input.source?.kind === "image" ? input.source.url : undefined;@@ -1958,13 +1963,13 @@ function planRecompose(input: CinemaGenerateInput): CinemaPlan {request = { feature: "cinema-recompose", modelId: model.id, op: "edit", prompt: anglesNote(lens, aperture, input.prompt), inputs: src ? { images: [src] } : undefined, params };notes.push(`${model.name} re-shoots the still from the angles you flew to (${Math.round(pose.horizontal)}° round, ${Math.round(pose.vertical)}° up, zoom ${pose.zoom}) — the capture itself isn't sent`);} else {- const loras = open ? [ANGLES_2511_LORA] : undefined;+ const loras = model.id === "oss-qwen-edit" ? [ANGLES_2511_LORA] : undefined;const words = recomposePrompt(lens, aperture, input.prompt);request = {feature: "cinema-recompose",modelId: model.id,op: "edit",- prompt: open ? `<sks> ${poseWords(REFERENCE_POSE)}. ${words}` : words,+ prompt: loras ? `<sks> ${poseWords(REFERENCE_POSE)}. ${words}` : words,inputs: src && cap ? { images: [cap.url, src] } : undefined,params,...(loras?.length ? { loras } : {}),diff --git a/src/lib/catalog/genjutsu.ts b/src/lib/catalog/genjutsu.tsindex c2d70414..2f35559a 100644--- a/src/lib/catalog/genjutsu.ts+++ b/src/lib/catalog/genjutsu.ts@@ -1487,7 +1487,7 @@ export function cleanCharacter(v: unknown): Omit<CharacterOptions, "dialogue"> |return Object.keys(out).length ? out : undefined;}-const ANCHOR_IDS = new Set(["gpt-image-2-5-sunburst", "nano-banana-pro", "oss-qwen-edit"]);+const ANCHOR_IDS = new Set(["gpt-image-2-5-sunburst", "nano-banana-pro", "oss-qwen-image-21", "oss-qwen-edit"]);/** A setup as a short code ("gj1." + base64url JSON with short keys; empty fields left out). */export function encodeSetup(s: GenjutsuSetup): string {diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex 5fdcae1a..3fe02ae5 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -73,8 +73,10 @@ type OpenSpec = Omit<ModelDef, "engine" | "badges"> & { badges?: ModelDef["badgeconst o = (m: OpenSpec): ModelDef => ({ ...m, engine: "open", badges: ["open", ...(m.badges ?? [])] });const open: ModelDef[] = [- // ---- Ideogram 4 (B-I)- // The prompt is a JSON caption the server writes from the words (promptFormat; src/lib/ideogram-caption.ts).+ // ---------------- The owner's newest image models, first picks on your GPU (2026-10-31): text to image in his order+ // (Ideogram 4, Qwen-Image 2.1, Krea 2, MOSS-Image, FIBO 2), then the edit models (Qwen-Image 2.1, FIBO 2, Krea 2).+ // A studio's "Best" list is its default, then the `top` models in this order (bestForStudio in src/lib/composer.ts).+ // Ideogram 4: the prompt is a JSON caption the server writes from the words (promptFormat; src/lib/ideogram-caption.ts).o({id: "oss-ideogram-4",name: "Ideogram 4",@@ -102,7 +104,7 @@ const open: ModelDef[] = [defaults: { aspectRatio: "1:1", resolution: "1.5K" },}),- // ---- Qwen-Image 2.1 (B-Q)+ // Qwen-Image 2.1: text to image, edits with up to 4 references, inpaint and expand; its Turbo makes 8-step edits.o({id: "oss-qwen-image-21",name: "Qwen-Image 2.1",@@ -132,7 +134,7 @@ const open: ModelDef[] = [options: { maxImages: 4, seed: true },}),- // ---- Krea 2 text to image (B-K)+ // Krea 2 text to image (its edit models come after FIBO 2's, as the owner ranks them).o({id: "oss-krea2-realism",name: "Krea 2 Realism",@@ -164,7 +166,29 @@ const open: ModelDef[] = [defaults: { aspectRatio: "1:1", resolution: "1K" },}),- // ---- FIBO 2 (B-F)+ // MOSS-Image (OpenMOSS, Apache-2.0; research #7 §4.6): plain words, or a layout of boxes compiled to its JSON+ // (src/lib/layout-prompt.ts). The cloud half is `moss-image` on fal.+ o({+ id: "oss-moss-image",+ name: "MOSS-Image",+ vendor: "OpenMOSS",+ family: "moss",+ kind: "image",+ tagline: "Clean Chinese and English text, follows layout boxes · on your GPU, about 13 GB of files",+ badges: ["new", "top"],+ routes: [comfy("t2i", "moss-image-t2i", "MOSS-Image SFT int8, Qwen3.5-9B w4a8, FLUX.2 small decoder; core nodes")],+ options: {+ aspectRatios: IMG_AR,+ resolutions: ["1K", "1.5K"],+ seed: true,+ negativePrompt: true,+ layout: "moss",+ controls: [MOSS_QUALITY],+ },+ defaults: { aspectRatio: "1:1", resolution: "1K" },+ }),++ // FIBO 2 (Bria FIBO 2.0): text to image from Bria's structured JSON prompt, edits with up to 4 references.o({id: "oss-fibo2-dev",name: "FIBO 2 Dev",@@ -192,7 +216,7 @@ const open: ModelDef[] = [options: { maxImages: 4, seed: true },}),- // ---- Krea 2 edits (B-K)+ // Krea 2 edits, image to image, inpaint and expand.o({id: "oss-krea2-edit",name: "Krea 2 Edit",@@ -370,27 +394,6 @@ const open: ModelDef[] = [options: { aspectRatios: IMG_AR, seed: true, negativePrompt: true },defaults: { aspectRatio: "1:1" },}),- // MOSS-Image (OpenMOSS, Apache-2.0; research #7 §4.6): plain words, or a layout of boxes compiled to its JSON- // (src/lib/layout-prompt.ts). The cloud half is `moss-image` on fal.- o({- id: "oss-moss-image",- name: "MOSS-Image",- vendor: "OpenMOSS",- family: "moss",- kind: "image",- tagline: "Clean Chinese and English text, follows layout boxes · on your GPU, about 13 GB of files",- badges: ["new"],- routes: [comfy("t2i", "moss-image-t2i", "MOSS-Image SFT int8, Qwen3.5-9B w4a8, FLUX.2 small decoder; core nodes")],- options: {- aspectRatios: IMG_AR,- resolutions: ["1K", "1.5K"],- seed: true,- negativePrompt: true,- layout: "moss",- controls: [MOSS_QUALITY],- },- defaults: { aspectRatio: "1:1", resolution: "1K" },- }),o({id: "oss-qwen-edit",name: "Qwen-Image-Edit 2511",diff --git a/src/lib/catalog/packs.ts b/src/lib/catalog/packs.tsindex ad5501d5..7f61dac8 100644--- a/src/lib/catalog/packs.ts+++ b/src/lib/catalog/packs.ts@@ -369,13 +369,22 @@ export const PHOTODUMP_SOUL = "fuobe-soul";* photo — hosted in the cloud, the 3-image graph on your GPU. It also makes a character's photos before a Soul ID.*/export const PHOTO_EDIT: Record<Engine, string> = { cloud: "qwen-image-edit-2511-cloud", open: "oss-qwen-edit" };+/** The edit model your GPU runs first: Qwen-Image 2.1 (up to 4 references); Qwen-Image-Edit 2511 stays a choice after it. */+export const OPEN_PHOTO_EDIT = "oss-qwen-image-21";+/** The models a pack's photos can run on, the default first after Fuobe Soul (which needs a trained Soul ID). */export const PHOTODUMP_MODELS: Record<Engine, string[]> = {cloud: [PHOTODUMP_SOUL, PHOTO_EDIT.cloud, "nano-banana-pro", "seedream-5-pro"],- open: [PHOTODUMP_SOUL, PHOTO_EDIT.open],+ open: [PHOTODUMP_SOUL, OPEN_PHOTO_EDIT, PHOTO_EDIT.open],};-const EDIT_NAMES: Record<string, string> = { "qwen-image-edit-2511-cloud": "Qwen-Image-Edit 2511", "oss-qwen-edit": "Qwen-Image-Edit 2511", "nano-banana-pro": "Nano Banana Pro", "seedream-5-pro": "Seedream 5.0 Pro" };+const EDIT_NAMES: Record<string, string> = {+ "qwen-image-edit-2511-cloud": "Qwen-Image-Edit 2511",+ "oss-qwen-edit": "Qwen-Image-Edit 2511",+ "oss-qwen-image-21": "Qwen-Image 2.1",+ "nano-banana-pro": "Nano Banana Pro",+ "seedream-5-pro": "Seedream 5.0 Pro",+};/** The character's Soul ID that runs on Fuobe Soul on this engine (a demo training's stand-in doesn't count). */export const soulIdOf = (s: PhotoSubject, engine: Engine): ElementLora | undefined => (s.kind === "element" ? identityFor(s.loras, { id: PHOTODUMP_SOUL, engine }) : undefined);@@ -388,9 +397,10 @@ export const soulIdOf = (s: PhotoSubject, engine: Engine): ElementLora | undefinexport function photodumpModel(subject: PhotoSubject, engine: Engine, _caps: PlanCaps, pick?: string, custom = false): { modelId: string; note?: string } {const trained = soulIdOf(subject, engine);if (!custom && trained && (!pick || pick === PHOTODUMP_SOUL)) return { modelId: PHOTODUMP_SOUL };- // Say why when the pick (or a character without a Soul ID) ends up on an edit model: Qwen-Image-Edit 2511 unless a- // partner model is picked in the cloud.- const fallback = engine === "cloud" && (pick === "nano-banana-pro" || pick === "seedream-5-pro") ? pick : PHOTO_EDIT[engine];+ // Say why when the pick (or a character without a Soul ID) ends up on an edit model: the engine's first one+ // (Qwen-Image-Edit 2511 in the cloud, Qwen-Image 2.1 on your GPU) unless another of the list is picked.+ const edits = PHOTODUMP_MODELS[engine].filter((id) => id !== PHOTODUMP_SOUL);+ const fallback = pick && edits.includes(pick) ? pick : edits[0];const name = EDIT_NAMES[fallback] ?? fallback;const note =pick === PHOTODUMP_SOUL && custom@@ -588,13 +598,14 @@ export const getTemplate = (id: string) => FASHION.find((t) => t.id === id);/*** Fashion Factory's models per step (build plan O10): Fuobe Try-On (FLUX.2 [klein] 4B + the try-on LoRA) dresses the- * base shot on both engines, FASHN and Nano Banana Pro stay as cloud choices and Qwen-Image-Edit 2511 dresses it on your- * GPU when the try-on can't run; Qwen-Image-Edit 2511 makes the photoset, Nano Banana Pro a cloud choice.+ * base shot on both engines, FASHN and Nano Banana Pro stay as cloud choices and Qwen-Image 2.1 (then Qwen-Image-Edit+ * 2511) dresses it on your GPU when the try-on can't run. Qwen-Image-Edit 2511 makes the photoset in the cloud, Nano+ * Banana Pro a choice; on your GPU Qwen-Image 2.1 makes it, Qwen-Image-Edit 2511 a choice.*/export const TRYON_MODEL = "fuobe-tryon";export const FASHION_MODELS = {- outfit: { cloud: [TRYON_MODEL, "fashn-tryon", "nano-banana-pro"], open: [TRYON_MODEL, PHOTO_EDIT.open] },- photoset: { cloud: [PHOTO_EDIT.cloud, "nano-banana-pro"], open: [PHOTO_EDIT.open] },+ outfit: { cloud: [TRYON_MODEL, "fashn-tryon", "nano-banana-pro"], open: [TRYON_MODEL, OPEN_PHOTO_EDIT, PHOTO_EDIT.open] },+ photoset: { cloud: [PHOTO_EDIT.cloud, "nano-banana-pro"], open: [OPEN_PHOTO_EDIT, PHOTO_EDIT.open] },} as const;/**@@ -643,7 +654,7 @@ export function fashionOutfitRequest(t: FashionTemplate, base: string, garment:};}-/** Step 5: one photo per template shot, from the dressed image (Qwen-Image-Edit 2511, or Nano Banana Pro when picked). */+/** Step 5: one photo per template shot, from the dressed image (the step's first model, or the one picked). */export function fashionPhotosetRequests(t: FashionTemplate, dressed: string, engine: Engine, pick?: string, caps?: Pick<PlanCaps, "has">): GenerationRequest[] {const modelId = fashionModel("photoset", engine, pick, caps);const n = t.photoset.length;diff --git a/src/lib/composer.ts b/src/lib/composer.tsindex 05fd3b8b..564dc3fb 100644--- a/src/lib/composer.ts+++ b/src/lib/composer.ts@@ -900,6 +900,21 @@ export function bestForStudio(models: ModelDef[], engine: Engine, defaultId: str.map(([m]) => m);}+/**+ * A studio picker's "Best for this studio": the models that do what the default model does first, when the studio+ * offers that (`ops`, its main operation first). A default that does something else first (Qwen-Image 2.1 makes+ * pictures from words first, in the Edit and Inpaint studios) ranks the models that do the first of the studio's+ * operations it does instead, leaving out the tools that take no words (a garment try-on) unless the default is one.+ */+export function studioBest(models: ModelDef[], engine: Engine, defaultId: string | undefined, ops?: Operation[]): string[] {+ const def = models.find((m) => m.id === defaultId);+ const first = def?.routes[0]?.op;+ if (!def || !first || !ops?.length || ops.includes(first)) return bestForStudio(models, engine, defaultId, 4, first).map((m) => m.id);+ const op = ops.find((o) => def.routes.some((r) => r.op === o)) ?? ops[0];+ const pool = models.filter((m) => m === def || !m.options.promptless || def.options.promptless);+ return bestForStudio(pool, engine, defaultId, 4, op).map((m) => m.id);+}+export interface ModelGroup {id: "recent" | "starred" | "best" | "all" | "results";label: string;diff --git a/src/lib/layers.ts b/src/lib/layers.tsindex 1b8f638d..e9f05a22 100644--- a/src/lib/layers.ts+++ b/src/lib/layers.ts@@ -222,26 +222,29 @@ export const TOOL_LABELS: Record<LayerTool, string> = {enhance: "Enhance",};-/** Models each tool offers, per engine (the first is the default). Checked against the catalog in tests. */+/**+ * Models each tool offers, per engine (the first is the default). Checked against the catalog in tests. On the open+ * engine the owner's newest models come first (Qwen-Image 2.1 edits, inpaints and expands; Ideogram 4 makes a layer).+ */export const TOOL_MODELS: Record<LayerTool, { cloud: string[]; open: string[] }> = {decompose: { cloud: ["seedream-5-layers", "seedream-5-flash-layers", "qwen-image-layered-cloud"], open: ["oss-qwen-layered"] },split: { cloud: ["seedream-5-layers", "seedream-5-flash-layers", "qwen-image-layered-cloud"], open: ["oss-qwen-layered", "oss-qwen-layered-control"] },- regenerate: { cloud: ["nano-banana-pro", "seedream-5-pro", "nano-banana-2"], open: ["oss-qwen-edit", "oss-flux-kontext"] },- "generate-layer": { cloud: ["nano-banana-pro", "seedream-5-pro"], open: ["oss-z-image-turbo", "oss-qwen-image"] },+ regenerate: { cloud: ["nano-banana-pro", "seedream-5-pro", "nano-banana-2"], open: ["oss-qwen-image-21", "oss-qwen-image-21-turbo", "oss-qwen-edit", "oss-flux-kontext"] },+ "generate-layer": { cloud: ["nano-banana-pro", "seedream-5-pro"], open: ["oss-ideogram-4", "oss-qwen-image-21", "oss-z-image-turbo", "oss-qwen-image"] },// Ideogram ($0.09) also lifts the text off the picture, which the editor doesn't use; Florence-2 only// reads it (fal lists $0 per compute second, real cost unverified: the catalog's $0.001 is a placeholder)."text-detect": { cloud: ["ideogram-3-text-layers", "florence-2-ocr"], open: ["oss-ocr-lines"] },- "text-edit": { cloud: ["nano-banana-pro", "seedream-5-pro"], open: ["oss-qwen-edit"] },+ "text-edit": { cloud: ["nano-banana-pro", "seedream-5-pro"], open: ["oss-qwen-image-21", "oss-qwen-edit"] },"bg-remove": { cloud: ["birefnet-cloud", "ideogram-remove-bg"], open: ["oss-rmbg"] },- regional: { cloud: ["seedream-5-pro", "nano-banana-pro"], open: ["oss-qwen-edit", "oss-flux-kontext"] },+ regional: { cloud: ["seedream-5-pro", "nano-banana-pro"], open: ["oss-qwen-image-21", "oss-qwen-edit", "oss-flux-kontext"] },upscale: { cloud: ["topaz-image", "seedvr-image", "recraft-crisp"], open: ["oss-upscale-image", "oss-seedvr2-image"] },relight: { cloud: ["nano-banana-pro"], open: ["oss-qwen-relight"] },angles: { cloud: ["qwen-multiple-angles", "nano-banana-pro"], open: ["oss-qwen-edit"] },- expand: { cloud: ["nano-banana-pro"], open: ["oss-flux-fill"] },+ expand: { cloud: ["nano-banana-pro"], open: ["oss-qwen-image-21", "oss-flux-fill"] },// Nano Banana Pro sees the painted area tinted red (Higgsfield's nano_banana_pro_inpaint); the others take the mask itself.- inpaint: { cloud: ["nano-banana-pro", "flux-fill-pro", "z-image-inpaint"], open: ["oss-flux-fill"] },+ inpaint: { cloud: ["nano-banana-pro", "flux-fill-pro", "z-image-inpaint"], open: ["oss-qwen-image-21", "oss-flux-fill"] },// The retouch looks; Detail runs on {@link ENHANCE_DETAIL_MODELS}.- enhance: { cloud: ["nano-banana-pro", "seedream-5-pro"], open: ["oss-qwen-edit"] },+ enhance: { cloud: ["nano-banana-pro", "seedream-5-pro"], open: ["oss-qwen-image-21", "oss-qwen-edit"] },};// ---------------------------------------------------------------------------diff --git a/src/lib/studios.ts b/src/lib/studios.tsindex cfc8e515..0985cd03 100644--- a/src/lib/studios.ts+++ b/src/lib/studios.ts@@ -17,7 +17,7 @@ export const IMAGE_STUDIO: StudioConfig = {feed: { kind: "image", features: ["image", "edit", "app:*", "character:*"] },slots: [],multiRef: { label: "Add ref", max: 8 },- defaultModels: { cloud: "nano-banana-pro", open: "oss-z-image-turbo" },+ defaultModels: { cloud: "nano-banana-pro", open: "oss-ideogram-4" },// A model's own settings (MOSS-Image's Quality, Ideogram's speed) sit under "Options".controlsTitle: "Options",// Color signature + Moodboard chips, and the models they can move a request to. Fuobe Soul's PixeletedFace look runs@@ -43,7 +43,7 @@ export const EDIT_STUDIO: StudioConfig = {slots: [{ key: "image", label: "Image", accept: "image", required: true }],multiRef: { label: "Add ref", max: 6 },sketch: ["mask", "draw"],- defaultModels: { cloud: "nano-banana-pro", open: "oss-qwen-edit" },+ defaultModels: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" },suggestions: ["Make it golden hour","Remove the people in the background",@@ -56,7 +56,7 @@ export const INPAINT_STUDIO: StudioConfig = {feature: "edit",title: "Inpaint",hero: "Paint it, then say what goes there",- subtitle: "GPT Image, Ideogram and FLUX Fill take the mask directly; other edit models are shown the painted area.",+ subtitle: "GPT Image, Ideogram, Qwen-Image 2.1 and FLUX Fill take the mask directly; other edit models are shown the painted area.",placeholder: "What should fill the painted area? e.g. “a vase of white tulips”",kind: "image",ops: ["inpaint", "edit"],@@ -65,7 +65,7 @@ export const INPAINT_STUDIO: StudioConfig = {multiRef: { label: "Add ref", max: 3 },sketch: ["mask"],sketchAutoOpen: "mask",- defaultModels: { cloud: "nano-banana-pro", open: "oss-flux-fill" },+ defaultModels: { cloud: "nano-banana-pro", open: "oss-qwen-image-21" },suggestions: ["Remove it and fill in the background", "A golden retriever sitting there", "Make the shirt navy linen", "Add sunglasses"],};diff --git a/src/server/genjutsu.ts b/src/server/genjutsu.tsindex 6423139d..9f561e82 100644--- a/src/server/genjutsu.ts+++ b/src/server/genjutsu.ts@@ -107,7 +107,7 @@ const character = z.object({subject: z.string().max(120).optional(),maskGrow: z.number().int().min(0).max(256).optional(),anchor: z.boolean().optional(),- anchorModel: z.enum(["gpt-image-2-5-sunburst", "nano-banana-pro", "oss-qwen-edit"]).optional(),+ anchorModel: z.enum(["gpt-image-2-5-sunburst", "nano-banana-pro", "oss-qwen-image-21", "oss-qwen-edit"]).optional(),description: z.string().max(CHARACTER_SWAP.maxDescriptionChars).optional(),speech: z.enum(["character", "other", "offscreen", "none"]).optional(),dialogue: z.string().max(2000).optional(),diff --git a/src/server/layers.ts b/src/server/layers.tsindex 28577f19..6356bb52 100644--- a/src/server/layers.ts+++ b/src/server/layers.ts@@ -361,13 +361,14 @@ export function jobSteps(input: LayerJobInput, opts: { batchTitle?: string } = {}case "expand": {const model = toolModel(tool, engine, input.modelId);- const fill = "Continue the scene naturally beyond every edge with matching perspective, lighting, textures and grain. Keep the original picture untouched and add no new people or text.";+ const fill = "Continue the scene naturally beyond every edge with matching perspective, lighting, textures and grain.";if (model.engine === "open") {const pads = s.pads;if (!pads || pads.left + pads.top + pads.right + pads.bottom === 0) throw new LayersError("Drag an edge outward to make room to fill", 400);+ // The open graphs keep the picture as it is themselves, and read the words as what fills the margins: only that.add("expand", base(model, { op: "outpaint", prompt: prompt || fill, inputs: { images: [needImage()] }, params: { extra: { padLeft: pads.left, padTop: pads.top, padRight: pads.right, padBottom: pads.bottom } } }));} else {- add("expand", base(model, { op: "edit", prompt: `Fill the empty grey margins around the picture. ${fill}${prompt ? ` ${prompt}` : ""}`, inputs: { images: [needImage()] }, params: aspectFor(model) }));+ add("expand", base(model, { op: "edit", prompt: `Fill the empty grey margins around the picture. ${fill} Keep the original picture untouched and add no new people or text.${prompt ? ` ${prompt}` : ""}`, inputs: { images: [needImage()] }, params: aspectFor(model) }));}break;}diff --git a/src/server/photodump.ts b/src/server/photodump.tsindex af6d4ab0..60beb1df 100644--- a/src/server/photodump.ts+++ b/src/server/photodump.ts@@ -26,6 +26,7 @@ import { createGenerations, currentRequest, getGeneration, pickOutput, previewGeimport { trashGenerations } from "./library";import { engineMode } from "./settings";import { isOffered } from "./model-access";+import { loadManifest } from "./providers/comfyui";/*** Photodump / Instadump, Fashion Factory and Character Sheet runs: plan with the pure pack logic@@ -131,8 +132,10 @@ export function previewRun(requests: GenerationRequest[], notes: string[] = [])const previews = requests.map((r) => previewGeneration(fitted(r)));const first = previews[0];const costs = previews.map((p) => p.costUsd);- // No aspect ratio setting (Qwen-Image-Edit's open workflow): the result follows image 1's shape — say so.- const fixedAspect = !first.model.options.aspectRatios?.length;+ // No aspect ratio setting (Qwen-Image-Edit 2511's open workflow), or a GPU graph that takes no size (Qwen-Image+ // 2.1's edit, whose model has ratios for text to image): the result follows image 1's shape — say so.+ const sized = first.route.provider !== "comfyui" || !!loadManifest().workflows.find((w) => w.id === first.route.endpoint)?.bindings.width;+ const fixedAspect = !first.model.options.aspectRatios?.length || !sized;const asked = requests.some((r) => r.params?.aspectRatio && r.params.aspectRatio !== "auto");return {modelId: first.model.id,diff --git a/tests/account-tools.test.ts b/tests/account-tools.test.tsindex b7a26846..51c74e7e 100644--- a/tests/account-tools.test.ts+++ b/tests/account-tools.test.ts@@ -127,7 +127,7 @@ describe("an account runs the catalogue on its own ComfyUI", () => {it("runs an app that edits a picture", async () => {fake.opts.output = "image";const pic = await uploadPng();- const r = await generationsRoute.POST(json("/api/generations", "POST", { feature: "app", modelId: "oss-qwen-edit", presetId: "app-headshot-generator", prompt: "", inputs: { images: [pic.url] } }));+ const r = await generationsRoute.POST(json("/api/generations", "POST", { feature: "app", modelId: "oss-qwen-image-21", presetId: "app-headshot-generator", prompt: "", inputs: { images: [pic.url] } }));expect(r.status).toBe(201);const g = await settle((await r.json()).items[0].id);expect(g?.status, g?.error ?? "").toBe("succeeded");diff --git a/tests/assist-runtime.test.ts b/tests/assist-runtime.test.tsindex f0f7df58..8b3cc23d 100644--- a/tests/assist-runtime.test.ts+++ b/tests/assist-runtime.test.ts@@ -49,8 +49,8 @@ describe("offline planner (U18)", () => {expect(jobs[0].after).toBeUndefined();expect(jobs[1]).toMatchObject({ model_id: "seedance-2-5", after: 0, shots: 3 });expect(p.say).toMatch(/still first, then animate it as a 3-shot clip/);- // The open engine picks the open defaults.- expect((agent.offlinePlan("A photo of a lighthouse, then animate it", "open")!.input as { jobs: { model_id: string }[] }).jobs.map((j) => j.model_id)).toEqual(["oss-z-image-turbo", "oss-wan22-14b-fast"]);+ // The open engine picks the open defaults (the Image studio's is Ideogram 4).+ expect((agent.offlinePlan("A photo of a lighthouse, then animate it", "open")!.input as { jobs: { model_id: string }[] }).jobs.map((j) => j.model_id)).toEqual(["oss-ideogram-4", "oss-wan22-14b-fast"]);});it("reads 'N portraits' as N takes and 'N-shot' video as one multi-shot clip", () => {diff --git a/tests/assist-suggestions.test.ts b/tests/assist-suggestions.test.tsindex 2d8a2b85..be7ee0d5 100644--- a/tests/assist-suggestions.test.ts+++ b/tests/assist-suggestions.test.ts@@ -56,7 +56,7 @@ describe("Assist's suggestion chips on the offline planner (R4-04)", () => {expect(plan.jobs).toMatchObject([{ kind: "image", op: "t2i", count: 4 }]);// The same request with a plural noun and a "best one" also asks.const fox = agent.offlinePlan("Make 3 portraits of a fox in a trench coat, then animate the best one into a 5 s video", "open")!;- expect(jobsOf(fox)).toEqual([expect.objectContaining({ model_id: "oss-z-image-turbo", outputs: 3, prompt: "Portrait of a fox in a trench coat" })]);+ expect(jobsOf(fox)).toEqual([expect.objectContaining({ model_id: "oss-ideogram-4", outputs: 3, prompt: "Portrait of a fox in a trench coat" })]);// "… then animate them": every still gets its own clip.const all = agent.offlinePlan("Two posters of a jazz club, then animate them", "cloud")!;expect(jobsOf(all).map((j) => [j.model_id, j.after])).toEqual([@@ -165,7 +165,7 @@ describe("picking a take", () => {await agent.run(t.id, agent.offline);let v = agent.getThread(t.id)!;expect(v.generations).toHaveLength(4);- expect(v.generations.every((g) => g.request.modelId === "oss-z-image-turbo")).toBe(true);+ expect(v.generations.every((g) => g.request.modelId === "oss-ideogram-4")).toBe(true);// Done out of order: the numbers follow the order they were started in, like the chat shows them.for (const g of [...v.generations].reverse()) {db()diff --git a/tests/assist.test.ts b/tests/assist.test.tsindex cf801f0f..8385b0c5 100644--- a/tests/assist.test.ts+++ b/tests/assist.test.ts@@ -166,7 +166,7 @@ describe("offline planner", () => {input: { jobs: [{ model_id: "seedance-2-5", aspect_ratio: "9:16", outputs: 3 }] },});expect(agent.offlinePlan("Put a hat on him\n\nAttached files (pass these URLs as inputs):\n- image 1: /api/files/a.png", "open")).toMatchObject({- input: { jobs: [{ model_id: "oss-qwen-edit", images: ["/api/files/a.png"] }] },+ input: { jobs: [{ model_id: "oss-qwen-image-21", images: ["/api/files/a.png"] }] },});expect(agent.offlinePlan("A storyboard in 6 frames: a heist in Paris", "cloud")).toMatchObject({ tool: "create_storyboard", input: { frames: 6 } });expect(agent.offlinePlan("Write a lo-fi song for studying", "open")).toMatchObject({ input: { jobs: [{ model_id: "oss-ace-step" }] } });diff --git a/tests/character-swap.test.ts b/tests/character-swap.test.tsindex 6f92655a..008e854f 100644--- a/tests/character-swap.test.ts+++ b/tests/character-swap.test.ts@@ -85,12 +85,13 @@ describe("Character swap: the prompt", () => {expect(brief).toMatch(/One full-aspect edited source frame\.$/);});- it("the anchor model per engine: GPT Image 2.5 Sunburst (low) or Nano Banana Pro in the cloud, Qwen-Image-Edit on your GPU", () => {+ it("the anchor model per engine: GPT Image 2.5 Sunburst (low) or Nano Banana Pro in the cloud, Qwen-Image 2.1 (or Qwen-Image-Edit 2511) on your GPU", () => {expect(anchorModel("cloud")).toMatchObject({ id: "gpt-image-2-5-sunburst", extra: { quality: "low" } });expect(anchorModel("cloud", "nano-banana-pro").id).toBe("nano-banana-pro");- expect(anchorModel("open").id).toBe("oss-qwen-edit");+ expect(anchorModel("open").id).toBe("oss-qwen-image-21");+ expect(anchorModel("open", "oss-qwen-edit").id).toBe("oss-qwen-edit");// Another engine's model falls back to the engine's own.- expect(anchorModel("open", "nano-banana-pro").id).toBe("oss-qwen-edit");+ expect(anchorModel("open", "nano-banana-pro").id).toBe("oss-qwen-image-21");});});diff --git a/tests/cli-api.test.ts b/tests/cli-api.test.tsindex f7003ded..b6ed93fb 100644--- a/tests/cli-api.test.ts+++ b/tests/cli-api.test.ts@@ -62,13 +62,13 @@ describe("GET /api/models", () => {});it("names the studios' default models, and follows the engine mode", async () => {- expect((await models()).body.defaults).toMatchObject({ image: { cloud: "nano-banana-pro", open: "oss-z-image-turbo" }, video: { cloud: "seedance-2-5", open: "oss-wan22-14b-fast" } });+ expect((await models()).body.defaults).toMatchObject({ image: { cloud: "nano-banana-pro", open: "oss-ideogram-4" }, video: { cloud: "seedance-2-5", open: "oss-wan22-14b-fast" } });setSetting("engineMode", "open");try {const { body } = await models("?kind=image");expect(body.engineMode).toBe("open");expect(body.items.every((m) => m.engine === "open")).toBe(true);- expect(body.defaults.image).toEqual({ open: "oss-z-image-turbo" });+ expect(body.defaults.image).toEqual({ open: "oss-ideogram-4" });} finally {setSetting("engineMode", "both");}diff --git a/tests/genjutsu-api.test.ts b/tests/genjutsu-api.test.tsindex 0449adf1..406e0a29 100644--- a/tests/genjutsu-api.test.ts+++ b/tests/genjutsu-api.test.ts@@ -139,7 +139,7 @@ describe("Genjutsu: estimates", () => {expect(e).toMatchObject({ modelId: "fuobe-character-swap", source: "original", costUsd: 0, anchors: 1, gpu: { weightsGb: 46.33 } });expect(e.notes.join(" ")).toMatch(/2 windows of up to 124 frames at 24 fps, each continuing from the 18 frames before it/);expect(e.notes.join(" ")).toMatch(/nodes GPL-3\.0 · SAM License/);- expect(e.notes.join(" ")).toMatch(/Qwen-Image-Edit 2511 first puts your character into the part's first frame/);+ expect(e.notes.join(" ")).toMatch(/Qwen-Image 2.1 first puts your character into the part's first frame/);});describe("key mixes: a run is all real or all a demo, so a missing key is said before anything is paid for", () => {@@ -382,10 +382,10 @@ describe("Genjutsu: runs (demo)", () => {expect(rows.filter((r) => r.feature === "genjutsu")).toHaveLength(1);});- it("Character swap on the open engine: the first frame, the anchor on Qwen-Image-Edit, one H3 job on the upload", async () => {+ it("Character swap on the open engine: the first frame, the anchor on Qwen-Image 2.1, one H3 job on the upload", async () => {const { final } = await run(body({ engine: "open", mode: "character", range: { start: 2, end: 9 }, character: { who: "index", index: 1, subject: "the drummer", lora: "v1" } }));const rows = batchOf(final.id);- expect(rows.map((r) => r.model_id).sort()).toEqual(["fuobe-character-swap", "oss-extract-frame", "oss-qwen-edit"]);+ expect(rows.map((r) => r.model_id).sort()).toEqual(["fuobe-character-swap", "oss-extract-frame", "oss-qwen-image-21"]);expect(final.modelId).toBe("fuobe-character-swap");expect(final.request.params).toMatchObject({ startTime: 2, endTime: 9, resolution: "768p", extra: { selection: "index", subjectIndex: 1, maskPrompt: "the drummer", lora: "v1" } });expect((await settle(final.id)).status).toBe("succeeded");diff --git a/tests/genjutsu.test.ts b/tests/genjutsu.test.tsindex 2026194d..a8694398 100644--- a/tests/genjutsu.test.ts+++ b/tests/genjutsu.test.ts@@ -272,7 +272,7 @@ describe("Genjutsu: Character swap", () => {const p = ch({ maker: maker(ORIGINALS.character, "open"), prompt: "keep the glasses", character: { description: "a chrome robot", who: "leftmost", maskGrow: 80, lora: "v1", windowFrames: 158, historyFrames: 18 } });expect(p.steps.map((s) => s.key)).toEqual(["frame", "anchor", "swap"]);expect(step(p, "frame").request).toMatchObject({ modelId: "oss-extract-frame", op: "frame", inputs: { video: clip.url }, params: { startTime: 2, endTime: 2.5, extra: { frameIndex: 0 } } });- expect(step(p, "anchor").request).toMatchObject({ modelId: "oss-qwen-edit", op: "edit", inputs: { images: [ref] } });+ expect(step(p, "anchor").request).toMatchObject({ modelId: "oss-qwen-image-21", op: "edit", inputs: { images: [ref] } });expect(step(p, "anchor").request.prompt).toMatch(/^Image 1 is the source frame to edit\. Image 2 is character identity only: a chrome robot/);expect(step(p, "anchor").chain).toEqual([{ slot: "images", position: "first" }]);const swap = step(p, "swap");@@ -359,8 +359,10 @@ describe("Genjutsu: Character swap", () => {// Through the catalog the ratio stays (no square default merged over it).const planned = planGeneration({ ...sunburst, inputs: { images: ["/api/files/f.png", ref] } }, getModel, getPreset);expect(planned.params.aspectRatio).toBe("16:9");- // The open first frame is Qwen-Image-Edit's own size (the graph fits it to the clip): no ratio is asked.- expect(step(ch({ maker: maker(ORIGINALS.character, "open") }), "anchor").request.params?.aspectRatio).toBeUndefined();+ // On your GPU the first frame keeps the frame's own size: Qwen-Image 2.1 gets the nearest ratio, which its edit graph+ // doesn't read (the result follows image 1), and Qwen-Image-Edit 2511 is asked none.+ expect(step(ch({ maker: maker(ORIGINALS.character, "open") }), "anchor").request.params?.aspectRatio).toBe("16:9");+ expect(step(ch({ maker: maker(ORIGINALS.character, "open"), character: { anchorModel: "oss-qwen-edit" } }), "anchor").request.params?.aspectRatio).toBeUndefined();});it("cloud: a silent clip's result is silent too (H3's own soundtrack is replaced with silence)", () => {diff --git a/tests/gpu-api.test.ts b/tests/gpu-api.test.tsindex db7e36aa..4ca75fc2 100644--- a/tests/gpu-api.test.ts+++ b/tests/gpu-api.test.ts@@ -32,6 +32,8 @@ const generations = await import("@/app/api/generations/route");const idx = loadIndex();const Z = "z-image-turbo-t2i";+/** The Image studio's default on your GPU (Ideogram 4: 24 GB, ComfyUI 0.42.0). */+const I4 = "ideogram4-t2i";const fakes: FakeComfy[] = [];afterAll(async () => {globalThis.__fuobeGpuTestTransport = undefined;@@ -101,7 +103,8 @@ describe("an account", () => {});it("checks its own GPU only, streams the lines, then the board, reads only, and writes an audit row", async () => {- const f = await fake(readyFor(idx, [Z], { manager: { api: "v4", installed: {} }, argv: ["main.py", "--enable-manager"] }));+ const big = { version: "0.42.1", devices: [{ name: "cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync", type: "cuda", vramGb: 24 }] };+ const f = await fake(readyFor(idx, [Z, I4], { manager: { api: "v4", installed: {} }, argv: ["main.py", "--enable-manager"], ...big }));const { cookie, id } = account(f);const { res, events } = await runCheck(cookie);expect(res.status).toBe(200);diff --git a/tests/image-studios-api.test.ts b/tests/image-studios-api.test.tsindex 196a27a2..128ee899 100644--- a/tests/image-studios-api.test.ts+++ b/tests/image-studios-api.test.ts@@ -291,11 +291,14 @@ describe("photodump, fashion factory and character sheet runs", () => {expect((await retryRoute.POST(json("POST", { id: again[0].id }))).status).toBe(422);}, 45_000);- it("says on Qwen-Image-Edit that the aspect ratio doesn't apply", async () => {+ it("says on the Qwen edit models that the aspect ratio doesn't apply", async () => {+ // Qwen-Image 2.1 has ratios for text to image, but its edit graph takes no size: the photo's shape it is.const preview = await (await photodumpRoute.POST(json("POST", { packId: "winter-special", engine: "open", selfie: upload(), aspectRatio: "16:9" }, "http://x/api/photodump?preview=1"))).json();- expect(preview.modelId).toBe("oss-qwen-edit");+ expect(preview.modelId).toBe("oss-qwen-image-21");expect(preview.fixedAspect).toBe(true);- expect(preview.notes.join()).toMatch(/keeps the shape of your photo/);+ expect(preview.notes.join()).toMatch(/Qwen-Image 2.1 keeps the shape of your photo/);+ const old = await (await photodumpRoute.POST(json("POST", { packId: "winter-special", engine: "open", selfie: upload(), aspectRatio: "16:9", modelId: "oss-qwen-edit" }, "http://x/api/photodump?preview=1"))).json();+ expect(old).toMatchObject({ modelId: "oss-qwen-edit", fixedAspect: true });const cloud = await (await photodumpRoute.POST(json("POST", { packId: "winter-special", engine: "cloud", selfie: upload(), aspectRatio: "16:9" }, "http://x/api/photodump?preview=1"))).json();expect(cloud.fixedAspect).toBe(false);// Picking Fuobe Soul with a selfie says why it runs on Qwen-Image-Edit.@@ -309,7 +312,7 @@ describe("photodump, fashion factory and character sheet runs", () => {const el = createElement({ name: "Maya", kind: "character", references: [upload()] });const { items } = await (await photodumpRoute.POST(json("POST", { packId: pack.id, engine: "open", elementId: el.id }))).json();expect(items).toHaveLength(2);- expect(items[0].modelId).toBe("oss-qwen-edit");+ expect(items[0].modelId).toBe("oss-qwen-image-21");// The pack's photo, then Maya's reference (her @mention resolves on the server).expect(items[0].request.inputs.images).toEqual([pack.refs[0]]);expect(items[0].request.prompt).toMatch(/^@Maya recreated in image 1/);@@ -331,7 +334,7 @@ describe("photodump, fashion factory and character sheet runs", () => {expect(partner.items[0].modelId).toBe("fashn-tryon");const set = await (await fashionRoute.POST(json("POST", { step: "photoset", templateId: "red-room", dressed: upload(), engine: "open" }))).json();expect(set.items).toHaveLength(9);- expect(set.items.every((g: { modelId: string; batchId: string }) => g.modelId === "oss-qwen-edit" && g.batchId === set.batchId)).toBe(true);+ expect(set.items.every((g: { modelId: string; batchId: string }) => g.modelId === "oss-qwen-image-21" && g.batchId === set.batchId)).toBe(true);const missing = await fashionRoute.POST(json("POST", { step: "photoset", templateId: "nope", dressed: upload(), engine: "open" }));expect((await missing.json()).error).toBe("Template required");});diff --git a/tests/image-studios.test.ts b/tests/image-studios.test.tsindex fbf22c9c..eec9fea1 100644--- a/tests/image-studios.test.ts+++ b/tests/image-studios.test.ts@@ -499,7 +499,7 @@ describe("Photodump packs and planning", () => {// A GPU-only LoRA (no copy Fuobe can send) stays off the cloud: reference photos there.expect(planPhotodump({ pack, subject: loraMaya, engine: "cloud" }, {}).modelId).toBe("qwen-image-edit-2511-cloud");const qwen = planPhotodump({ pack, subject: selfie, engine: "open", aspectRatio: "auto" }, {});- expect(qwen.modelId).toBe("oss-qwen-edit");+ expect(qwen.modelId).toBe("oss-qwen-image-21");expect(qwen.requests[0].inputs?.images).toEqual([selfie.url]);expect(qwen.requests[0].params?.aspectRatio).toBeUndefined();@@ -543,7 +543,8 @@ describe("Photodump: model choice and retries", () => {const selfie: PhotoSubject = { kind: "selfie", url: "/api/files/uploads/me.png" };it("says why a pick that can't run ends up on another model", () => {- expect(photodumpModel(selfie, "open", {}, "fuobe-soul")).toEqual({ modelId: "oss-qwen-edit", note: "Fuobe Soul needs a character with a trained Soul ID — Qwen-Image-Edit 2511 works from your photo" });+ expect(photodumpModel(selfie, "open", {}, "fuobe-soul")).toEqual({ modelId: "oss-qwen-image-21", note: "Fuobe Soul needs a character with a trained Soul ID — Qwen-Image 2.1 works from your photo" });+ expect(photodumpModel(selfie, "open", {}, "oss-qwen-edit").modelId).toBe("oss-qwen-edit");expect(photodumpModel(selfie, "cloud", {}, "fuobe-soul")).toEqual({ modelId: "qwen-image-edit-2511-cloud", note: "Fuobe Soul needs a character with a trained Soul ID — Qwen-Image-Edit 2511 works from your photo" });expect(photodumpModel(selfie, "cloud", {}, "nano-banana-pro").modelId).toBe("nano-banana-pro");expect(photodumpModel(selfie, "cloud", {}).modelId).toBe("qwen-image-edit-2511-cloud");@@ -551,7 +552,7 @@ describe("Photodump: model choice and retries", () => {expect(photodumpModel(selfie, "open", {}).note).toBeUndefined();// A demo training's stand-in isn't a Soul ID.const demo: PhotoSubject = { kind: "element", handle: "Maya", name: "Maya", references: ["/a.png"], loras: [{ engine: "cloud", modelId: "fuobe-soul", family: "z-image-turbo", file: "fuobe/x.safetensors", trigger: "t", demo: true }] };- expect(photodumpModel(demo, "open", {}).modelId).toBe("oss-qwen-edit");+ expect(photodumpModel(demo, "open", {}).modelId).toBe("oss-qwen-image-21");});it("a retried base shot or outfit takes the failed one's place in the wizard", () => {@@ -578,7 +579,7 @@ describe("Fashion Factory", () => {// No Soul ID yet: Qwen-Image-Edit 2511 from the character's photos (with one, Fuobe Soul and the LoRA).expect(base).toMatchObject({ modelId: "qwen-image-edit-2511-cloud", params: { aspectRatio: "3:4", numOutputs: 4 } });expect(base.prompt).toMatch(/@Maya in a bold, saturated colour-blocked studio set/);- expect(fashionBaseRequest(t, maya, "open", {}).modelId).toBe("oss-qwen-edit");+ expect(fashionBaseRequest(t, maya, "open", {}).modelId).toBe("oss-qwen-image-21");// Fuobe Try-On on both engines (FLUX.2 [klein] 4B + the try-on LoRA); FASHN and Nano Banana Pro stay cloud choices.const outfit = fashionOutfitRequest(t, "/api/files/base.png", "/api/files/shirt.png", "cloud");@@ -601,7 +602,8 @@ describe("Fashion Factory", () => {expect(set).toHaveLength(t.shots);expect(set[0]).toMatchObject({ modelId: "qwen-image-edit-2511-cloud", inputs: { images: ["/api/files/dressed.png"] }, step: { label: `Photoset 1 of ${t.shots}` } });expect(fashionPhotosetRequests(t, "/api/files/dressed.png", "cloud", "nano-banana-pro")[0].modelId).toBe("nano-banana-pro");- expect(fashionPhotosetRequests(t, "/api/files/dressed.png", "open")[0].modelId).toBe("oss-qwen-edit");+ expect(fashionPhotosetRequests(t, "/api/files/dressed.png", "open")[0].modelId).toBe("oss-qwen-image-21");+ expect(fashionPhotosetRequests(t, "/api/files/dressed.png", "open", "oss-qwen-edit")[0].modelId).toBe("oss-qwen-edit");});it("walks the wizard with Higgsfield's validation messages", () => {diff --git a/tests/layers-api.test.ts b/tests/layers-api.test.tsindex 68c93dcc..0bd06466 100644--- a/tests/layers-api.test.ts+++ b/tests/layers-api.test.ts@@ -114,14 +114,14 @@ describe("job steps", () => {{ label: "Layers · Layer edit · cut-out", index: 1, of: 2 },]);const open = steps({ tool: "regenerate", engine: "open", prompt: "Make it gold", settings: { keepAlpha: true } });- expect(open.map((x) => x.request.modelId)).toEqual(["oss-qwen-edit", "oss-rmbg"]);+ expect(open.map((x) => x.request.modelId)).toEqual(["oss-qwen-image-21", "oss-rmbg"]);expect(() => steps({ tool: "regenerate" })).toThrow(/layer edit prompt/);});it("generates a new transparent layer from text or a reference", () => {const t = steps({ tool: "generate-layer", engine: "open", image: undefined, prompt: "a red balloon" });expect(t.map((x) => [x.request.modelId, x.request.op])).toEqual([- ["oss-z-image-turbo", "t2i"],+ ["oss-ideogram-4", "t2i"],["oss-rmbg", "bg-remove"],]);expect(t[0].request.prompt).toMatch(/^a red balloon\. A single element, isolated/);@@ -136,7 +136,7 @@ describe("job steps", () => {op: "edit",prompt: "Preserve the original design and change only the requested text. Change “SALE” to “OPEN”.",});- expect(steps({ tool: "text-edit", engine: "open", settings: { rows } })[0].request.modelId).toBe("oss-qwen-edit");+ expect(steps({ tool: "text-edit", engine: "open", settings: { rows } })[0].request.modelId).toBe("oss-qwen-image-21");expect(() => steps({ tool: "text-edit", settings: { rows: [{ from: "SALE", to: "SALE" }] } })).toThrow(/Change a line/);expect(steps({ tool: "text-detect", settings: { aspect: "16:9" } })[0].request).toMatchObject({ modelId: "ideogram-3-text-layers", op: "text-layers", params: { aspectRatio: "16:9" } });// OCR models read the lines (no shape to send): Florence-2 on the cloud, OvisOCR3 on ComfyUI.@@ -159,7 +159,7 @@ describe("job steps", () => {expect(steps({ ...paint, modelId: "flux-fill-pro" })[0].request).toMatchObject({ modelId: "flux-fill-pro", op: "inpaint" });const open = steps({ ...paint, engine: "open", settings: { keepAlpha: true } });expect(open.map((x) => [x.key, x.request.modelId, x.request.op])).toEqual([- ["inpaint", "oss-flux-fill", "inpaint"],+ ["inpaint", "oss-qwen-image-21", "inpaint"],["cutout", "oss-rmbg", "bg-remove"],]);// Only the painted area changes: no plain-background ask, the cut-out restores the transparency.@@ -173,7 +173,7 @@ describe("job steps", () => {const skin = steps({ tool: "enhance", settings: { look: "skin" } })[0].request;expect(skin).toMatchObject({ modelId: "nano-banana-pro", op: "edit", inputs: { images: ["/api/files/a.png"] } });expect(skin.prompt).toMatch(/^Give the portrait a subtle natural retouch.*Keep the face shape, identity/);- expect(steps({ tool: "enhance", engine: "open", settings: { look: "sharpen" } })[0].request).toMatchObject({ modelId: "oss-qwen-edit", op: "edit" });+ expect(steps({ tool: "enhance", engine: "open", settings: { look: "sharpen" } })[0].request).toMatchObject({ modelId: "oss-qwen-image-21", op: "edit" });expect(steps({ tool: "enhance", engine: "open", settings: { look: "sharpen" } })[0].request.prompt).toMatch(/^Sharpen the image.*colours and lighting exactly the same\.$/);expect(steps({ tool: "enhance", prompt: "keep the freckles", settings: { look: "glow" } })[0].request.prompt).toMatch(/keep the freckles$/);// Detail: the Upscale tool's models (Topaz first, with its face pass), no instruction.@@ -198,7 +198,7 @@ describe("job steps", () => {expect(angles).toMatchObject({ modelId: "qwen-multiple-angles", params: { extra: { horizontal_angle: 90, vertical_angle: 10, zoom: 4 } } });expect(steps({ tool: "angles", engine: "open", settings: { angle: "Back" } })[0].request.prompt).toContain("a view from directly behind");const expand = steps({ tool: "expand", engine: "open", settings: { pads: { left: 64, top: 0, right: 64, bottom: 8 } } })[0].request;- expect(expand).toMatchObject({ modelId: "oss-flux-fill", op: "outpaint", params: { extra: { padLeft: 64, padTop: 0, padRight: 64, padBottom: 8 } } });+ expect(expand).toMatchObject({ modelId: "oss-qwen-image-21", op: "outpaint", params: { extra: { padLeft: 64, padTop: 0, padRight: 64, padBottom: 8 } } });expect(() => steps({ tool: "expand", engine: "open", settings: { pads: { left: 0, top: 0, right: 0, bottom: 0 } } })).toThrow(/Drag an edge/);expect(steps({ tool: "expand" })[0].request.prompt).toMatch(/^Fill the empty grey margins/);expect(steps({ tool: "regional", prompt: "add a hat" })[0].request).toMatchObject({ modelId: "seedream-5-pro", op: "edit" });diff --git a/tests/layers-comfy.test.ts b/tests/layers-comfy.test.tsindex 524801f9..17344329 100644--- a/tests/layers-comfy.test.ts+++ b/tests/layers-comfy.test.ts@@ -66,9 +66,14 @@ describe("Layers on the open engine", () => {expect(at("numLayers")).toEqual([2]);});- it("expand: the padding reaches FLUX Fill", async () => {- const at = await bind(step({ tool: "expand", settings: { pads: { left: 64, top: 0, right: 128, bottom: 8 } } }));- expect([at("padLeft"), at("padTop"), at("padRight"), at("padBottom")]).toEqual([[64], [0], [128], [8]]);+ it("expand: the padding reaches both of Qwen-Image 2.1's pad nodes, or FLUX Fill when picked", async () => {+ const pads = { pads: { left: 64, top: 0, right: 128, bottom: 8 } };+ const at = await bind(step({ tool: "expand", settings: pads }));+ expect([at("padLeft"), at("padTop"), at("padRight"), at("padBottom")]).toEqual([[64, 64], [0, 0], [128, 128], [8, 8]]);+ // The words only say what fills the margins: the graph keeps the picture itself.+ expect(at("prompt")).toEqual(["Continue the scene naturally beyond every edge with matching perspective, lighting, textures and grain."]);+ const fill = await bind(step({ tool: "expand", modelId: "oss-flux-fill", settings: pads }));+ expect([fill("padLeft"), fill("padTop"), fill("padRight"), fill("padBottom")]).toEqual([[64], [0], [128], [8]]);});it("relight and edit text: the instruction reaches the edit graphs", async () => {@@ -80,7 +85,7 @@ describe("Layers on the open engine", () => {});describe("Inpaint and Enhancer on the open engine", () => {- it("inpaint: the picture, its painted mask and the prompt reach FLUX Fill", async () => {+ it("inpaint: the picture, its painted mask and the prompt reach Qwen-Image 2.1's inpaint graph", async () => {const req = step({ tool: "inpaint", prompt: "a vase of tulips", mask: "/api/files/m.png", sketch: "/api/files/s.png" });const at = await bind(req);expect(at("image")).toEqual(["/api/files/a.png"]);@@ -88,7 +93,7 @@ describe("Inpaint and Enhancer on the open engine", () => {expect(String(at("prompt")[0])).toMatch(/^a vase of tulips\. Blend it into the surroundings/);});- it("enhancer: a retouch reaches Qwen-Image-Edit, Detail the SeedVR2 upscaler", async () => {+ it("enhancer: a retouch reaches Qwen-Image 2.1, Detail the SeedVR2 upscaler", async () => {const skin = await bind(step({ tool: "enhance", settings: { look: "skin" } }));expect(String(skin("prompt")[0])).toMatch(/^Give the portrait a subtle natural retouch/);const detail = await bind(step({ tool: "enhance", settings: { look: "detail" } }));diff --git a/tests/open-sota-studios.test.ts b/tests/open-sota-studios.test.tsnew file mode 100644index 00000000..4e75c012--- /dev/null+++ b/tests/open-sota-studios.test.ts@@ -0,0 +1,146 @@+import { describe, expect, it } from "vitest";+import type { StudioConfig } from "@/components/studio/studio-context";+import { getModel, getPreset, MODELS } from "@/lib/catalog";+import { defaultModelFor } from "@/lib/catalog/canvas";+import { ANCHOR_MODELS, anchorModel } from "@/lib/catalog/character-swap";+import { CINEMA_MODELS, LOCATION_MODELS, RECOMPOSE_MODELS } from "@/lib/catalog/cinema";+import { FASHION_MODELS, fashionModel, PHOTODUMP_MODELS, photodumpModel, type PhotoSubject } from "@/lib/catalog/packs";+import type { Engine, ModelDef } from "@/lib/catalog/types";+import { bestForStudio, filterModels, studioBest } from "@/lib/composer";+import { TOOL_MODELS } from "@/lib/layers";+import { EDIT_STUDIO, IMAGE_STUDIO, INPAINT_STUDIO, LIPSYNC_STUDIO, VIDEO_STUDIO } from "@/lib/studios";++// The owner's SOTA image families (2026-10-31): the newest models are the first picks on your GPU, in his order.++/** What a studio's picker shows as "Best for this studio" on an engine (composer.tsx: the picker's models and ops). */+function best(studio: StudioConfig, engine: Engine): string[] {+ const ops = studio.pickerOps ?? studio.ops;+ const models = filterModels(MODELS, { kind: studio.kind, ops });+ return studioBest(models, engine, studio.defaultModels[engine], ops);+}++const openIds = MODELS.filter((m) => m.engine === "open").map((m) => m.id);+const before = (a: string, b: string) => expect(openIds.indexOf(a), `${a} before ${b}`).toBeLessThan(openIds.indexOf(b));++describe("studio defaults on your GPU", () => {+ it("Image opens on Ideogram 4, Edit and Inpaint on Qwen-Image 2.1", () => {+ expect(IMAGE_STUDIO.defaultModels.open).toBe("oss-ideogram-4");+ expect(EDIT_STUDIO.defaultModels.open).toBe("oss-qwen-image-21");+ expect(INPAINT_STUDIO.defaultModels.open).toBe("oss-qwen-image-21");+ expect(getModel("oss-qwen-image-21")!.routes.map((r) => r.op)).toEqual(expect.arrayContaining(["edit", "inpaint", "outpaint"]));+ });++ it("the cloud defaults stay as they were", () => {+ for (const s of [IMAGE_STUDIO, EDIT_STUDIO, INPAINT_STUDIO]) expect(s.defaultModels.cloud).toBe("nano-banana-pro");+ });+});++describe('"Best for this studio" on your GPU', () => {+ it("Image: Ideogram 4, then Qwen-Image 2.1, Krea 2 Realism and MOSS-Image (FIBO 2 Dev is next)", () => {+ expect(best(IMAGE_STUDIO, "open")).toEqual(["oss-ideogram-4", "oss-qwen-image-21", "oss-krea2-realism", "oss-moss-image"]);+ const t2i = MODELS.filter((m) => m.engine === "open" && m.badges?.includes("top") && m.routes.some((r) => r.op === "t2i")).map((m) => m.id);+ expect(t2i.indexOf("oss-fibo2-dev")).toBe(4);+ });++ it("Edit: the new edit models, Qwen-Image 2.1 first, not the text-to-image models its first route would rank", () => {+ expect(best(EDIT_STUDIO, "open")).toEqual(["oss-qwen-image-21", "oss-qwen-image-21-turbo", "oss-fibo2-dev", "oss-fibo2-edit-turbo"]);+ });++ it("Inpaint: Qwen-Image 2.1 and Krea 2 Inpaint, the models that take the mask", () => {+ expect(best(INPAINT_STUDIO, "open")).toEqual(["oss-qwen-image-21", "oss-krea2-inpaint"]);+ });++ it("a default whose first route is the studio's ranks as before, on both engines", () => {+ for (const s of [IMAGE_STUDIO, VIDEO_STUDIO, LIPSYNC_STUDIO]) {+ for (const engine of ["cloud", "open"] as const) {+ const ops = s.pickerOps ?? s.ops;+ const models = filterModels(MODELS, { kind: s.kind, ops });+ const id = s.defaultModels[engine];+ const op = models.find((m) => m.id === id)?.routes[0]?.op;+ expect(best(s, engine), `${s.title} ${engine}`).toEqual(bestForStudio(models, engine, id, 4, op).map((m) => m.id));+ }+ }+ });+});++describe("catalog order: the owner's ranking", () => {+ it("text to image: Ideogram 4, Qwen-Image 2.1, Krea 2, MOSS-Image, FIBO 2, then the older models", () => {+ before("oss-ideogram-4", "oss-qwen-image-21");+ before("oss-qwen-image-21", "oss-krea2-realism");+ before("oss-krea2-turbo", "oss-moss-image");+ before("oss-moss-image", "oss-fibo2-dev");+ before("oss-fibo2-dev", "oss-z-image-turbo");+ });++ it("edits: Qwen-Image 2.1 (and its Turbo), FIBO 2, Krea 2, then Qwen-Image-Edit 2511 and Kontext", () => {+ before("oss-qwen-image-21-turbo", "oss-fibo2-edit-turbo");+ before("oss-fibo2-edit-turbo", "oss-krea2-edit");+ before("oss-krea2-inpaint", "oss-qwen-edit");+ before("oss-krea2-inpaint", "oss-flux-kontext");+ before("oss-krea2-inpaint", "oss-flux-fill");+ });++ it("MOSS-Image is main's one model, listed once", () => {+ expect(openIds.filter((id) => id.startsWith("oss-moss"))).toEqual(["oss-moss-image"]);+ expect(getModel("oss-moss-image")!.routes.map((r) => r.endpoint)).toEqual(["moss-image-t2i"]);+ });+});++describe("apps and tools pick the new models first", () => {+ const openRoute = (id: string) => getPreset(id)!.open!;++ it("an edit app runs on Qwen-Image 2.1; Expand and Zoom Out on its expand graph", () => {+ expect(openRoute("app-sketch-to-real")).toMatchObject({ modelId: "oss-qwen-image-21", op: "edit" });+ for (const id of ["app-expand-image", "app-zoom-out"]) {+ const r = openRoute(id);+ expect(r).toMatchObject({ modelId: "oss-qwen-image-21", op: "outpaint" });+ // The expand graph reads the words as what fills the margins: they never name the subject.+ expect(r.promptTemplate).not.toMatch(/subject|people|person/i);+ }+ });++ it("apps tied to an older model by a LoRA or a tuned recipe keep it", () => {+ expect(openRoute("app-angles")).toMatchObject({ modelId: "oss-qwen-edit", loras: [expect.objectContaining({ file: "qwen-image-edit-2511-multiple-angles-lora.safetensors" })] });+ expect(openRoute("app-relight").modelId).toBe("oss-qwen-relight");+ expect(openRoute("app-product-shot").modelId).toBe("oss-product-shot");+ expect(openRoute("app-virtual-try-on").modelId).toBe("oss-tryon-klein");+ expect(TOOL_MODELS.angles.open).toEqual(["oss-qwen-edit"]);+ expect(RECOMPOSE_MODELS.open).toEqual(["oss-qwen-edit", "oss-qwen-image-21"]);+ });++ it("Layers: Qwen-Image 2.1 edits, inpaints and expands first; Ideogram 4 makes a layer", () => {+ expect(TOOL_MODELS.regenerate.open).toEqual(["oss-qwen-image-21", "oss-qwen-image-21-turbo", "oss-qwen-edit", "oss-flux-kontext"]);+ expect(TOOL_MODELS["generate-layer"].open).toEqual(["oss-ideogram-4", "oss-qwen-image-21", "oss-z-image-turbo", "oss-qwen-image"]);+ for (const tool of ["text-edit", "regional", "expand", "inpaint", "enhance"] as const) expect(TOOL_MODELS[tool].open[0], tool).toBe("oss-qwen-image-21");+ // Each first model does what its tool asks of it.+ const does = (m: ModelDef, op: string) => m.routes.some((r) => r.op === op);+ expect(does(getModel(TOOL_MODELS.expand.open[0])!, "outpaint")).toBe(true);+ expect(does(getModel(TOOL_MODELS.inpaint.open[0])!, "inpaint")).toBe(true);+ expect(does(getModel(TOOL_MODELS["generate-layer"].open[0])!, "t2i")).toBe(true);+ });++ it("Canvas: new nodes open on Ideogram 4 and Qwen-Image 2.1", () => {+ expect(defaultModelFor("t2i", "open")?.id).toBe("oss-ideogram-4");+ expect(defaultModelFor("edit", "open")?.id).toBe("oss-qwen-image-21");+ expect(defaultModelFor("t2i", "cloud")?.id).toBe("nano-banana-pro");+ });++ it("Cinema stills and Soul Location offer Ideogram 4 and Qwen-Image 2.1 right after Fuobe Soul", () => {+ expect(CINEMA_MODELS.image.open.slice(1, 3)).toEqual(["oss-ideogram-4", "oss-qwen-image-21"]);+ expect(LOCATION_MODELS.open.slice(1, 3)).toEqual(["oss-ideogram-4", "oss-qwen-image-21"]);+ });++ it("Photodump, Fashion Factory and Character swap offer Qwen-Image 2.1 before Qwen-Image-Edit 2511", () => {+ const selfie: PhotoSubject = { kind: "selfie", url: "/api/files/uploads/me.png" };+ expect(PHOTODUMP_MODELS.open).toEqual(["fuobe-soul", "oss-qwen-image-21", "oss-qwen-edit"]);+ expect(photodumpModel(selfie, "open", {}).modelId).toBe("oss-qwen-image-21");+ expect(photodumpModel(selfie, "open", {}, "oss-qwen-edit").modelId).toBe("oss-qwen-edit");+ expect(FASHION_MODELS.outfit.open).toEqual(["fuobe-tryon", "oss-qwen-image-21", "oss-qwen-edit"]);+ expect(fashionModel("photoset", "open")).toBe("oss-qwen-image-21");+ expect(ANCHOR_MODELS.open.map((m) => m.id)).toEqual(["oss-qwen-image-21", "oss-qwen-edit"]);+ expect(anchorModel("open").id).toBe("oss-qwen-image-21");+ // The cloud lists are untouched.+ expect(photodumpModel(selfie, "cloud", {}).modelId).toBe("qwen-image-edit-2511-cloud");+ expect(fashionModel("photoset", "cloud")).toBe("qwen-image-edit-2511-cloud");+ });+});diff --git a/tests/originals-marketing.test.ts b/tests/originals-marketing.test.tsindex 1e3bbff8..0053dcdd 100644--- a/tests/originals-marketing.test.ts+++ b/tests/originals-marketing.test.ts@@ -147,10 +147,10 @@ describe("Fuobe Try-On and its LoRA", () => {}});- it("is Fashion Factory's outfit model on both engines, with Qwen-Image-Edit 2511 making the photoset", () => {+ it("is Fashion Factory's outfit model on both engines, with Qwen-Image-Edit 2511 making the photoset in the cloud", () => {expect(FASHION_MODELS.outfit.open[0]).toBe(TRYON_MODEL);expect(FASHION_MODELS.outfit.cloud[0]).toBe(TRYON_MODEL);- expect(FASHION_MODELS.photoset).toEqual({ cloud: ["qwen-image-edit-2511-cloud", "nano-banana-pro"], open: ["oss-qwen-edit"] });+ expect(FASHION_MODELS.photoset).toEqual({ cloud: ["qwen-image-edit-2511-cloud", "nano-banana-pro"], open: ["oss-qwen-image-21", "oss-qwen-edit"] });expect(PHOTODUMP_MODELS.cloud).toEqual(["fuobe-soul", "qwen-image-edit-2511-cloud", "nano-banana-pro", "seedream-5-pro"]);});});@@ -300,13 +300,13 @@ describe("Fuobe Try-On's LoRA is never left out of a run", () => {describe("Fashion Factory moves on when a model can't run", () => {const t = getTemplate("red-room")!;- it("offers Qwen-Image-Edit 2511 after Fuobe Try-On on your GPU and takes the photoset's pick", () => {- expect(FASHION_MODELS.outfit.open).toEqual([TRYON_MODEL, "oss-qwen-edit"]);+ it("offers Qwen-Image 2.1 and Qwen-Image-Edit 2511 after Fuobe Try-On on your GPU and takes the photoset's pick", () => {+ expect(FASHION_MODELS.outfit.open).toEqual([TRYON_MODEL, "oss-qwen-image-21", "oss-qwen-edit"]);const qwen = fashionOutfitRequest(t, "/b.png", "/g.png", "open", "oss-qwen-edit");expect(qwen).toMatchObject({ modelId: "oss-qwen-edit", params: { aspectRatio: "3:4" } });expect(qwen.prompt).toMatch(/^Dress the person in image 1/);expect(fashionPhotosetRequests(t, "/d.png", "cloud", "nano-banana-pro")[0].modelId).toBe("nano-banana-pro");- expect(fashionModel("photoset", "open", "nano-banana-pro")).toBe("oss-qwen-edit");+ expect(fashionModel("photoset", "open", "nano-banana-pro")).toBe("oss-qwen-image-21");const set = previewFashion({ step: "photoset", templateId: t.id, dressed: "/api/files/d.png", engine: "cloud", modelId: "nano-banana-pro" });expect(set).toMatchObject({ modelId: "nano-banana-pro" });});@@ -320,7 +320,7 @@ describe("Fashion Factory moves on when a model can't run", () => {expect(offeredSummary()?.off).toEqual(expect.arrayContaining([TRYON_MODEL, "oss-tryon-klein"]));const base = { step: "outfit" as const, templateId: t.id, base: "/api/files/b.png", garment: "/api/files/g.png" };expect(previewFashion({ ...base, engine: "cloud" })).toMatchObject({ modelId: "fashn-tryon" });- expect(previewFashion({ ...base, engine: "open" })).toMatchObject({ modelId: "oss-qwen-edit" });+ expect(previewFashion({ ...base, engine: "open" })).toMatchObject({ modelId: "oss-qwen-image-21" });// Picked anyway (the API): refused, naming the LoRA's switch.expect(previewFashion({ ...base, engine: "cloud", modelId: TRYON_MODEL })).toMatchObject({ error: expect.stringMatching(/switched off in Settings → Models & licences/) });});diff --git a/tests/swap-studio.test.ts b/tests/swap-studio.test.tsindex 756045b8..f3f0d599 100644--- a/tests/swap-studio.test.ts+++ b/tests/swap-studio.test.ts@@ -567,7 +567,7 @@ describe("engine steps", () => {const project = projectOf([clip]);const shot = shotOf(48, 300, { anchorInstructions: "Rain on her hood", who: { selection: "leftmost", index: 0, words: "person" } });const open = planAnchor({ engine: "open", project, clip, shot, frame: 48 });- expect(open.map((s) => s.request.modelId)).toEqual(["oss-extract-frame", "oss-qwen-edit"]);+ expect(open.map((s) => s.request.modelId)).toEqual(["oss-extract-frame", "oss-qwen-image-21"]);expect(open[0].request.params).toMatchObject({ startTime: 47.5 / 24, extra: { frameIndex: 0 } });expect(open[1].request.prompt).toContain("Replace ONLY the person on the left");expect(open[1].request.prompt).toContain("a woman in a yellow raincoat");