Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
Merge branch 'refactor/invocations-by-architecture' into feat/webv2-server-driven-model-policies
Alexander Eichhorn339fcb227110
diff --cc invokeai/backend/architectures/defs/anima.pyindex 0a32883172,0953d44fb3..55fe3e94c0--- a/invokeai/backend/architectures/defs/anima.py+++ b/invokeai/backend/architectures/defs/anima.py@@@ -26,18 -25,5 +26,20 @@@ registerguidance_label="CFG",scheduler_set="anima",scheduler_applies_to_graph=True,++ # Same shape as Z-Image: masked positive conditioning only.++ supports_regional_guidance=True,+ ),+ VaeFacet(+ frozenset(+ {+ # `anima_l2i` accepts AutoencoderKLWan or FluxAutoEncoder, each with its own+ # decode path. The Wan-family file is registered under whichever base it was+ # installed for -- all three point at the same 194-tensor checkpoint.+ VaeCompatibility(BaseModelType.Anima),+ VaeCompatibility(BaseModelType.QwenImage),+ VaeCompatibility(BaseModelType.Wan, latent_channels=16),+ VaeCompatibility(BaseModelType.Flux),+ }+ )),)diff --cc invokeai/backend/architectures/defs/sd_2.pyindex d59a29cdbe,d59a29cdbe..24f9dd259c--- a/invokeai/backend/architectures/defs/sd_2.py+++ b/invokeai/backend/architectures/defs/sd_2.py@@@ -28,6 -28,6 +28,8 @@@ registerguidance_label="CFG",scheduler_set="standard",scheduler_applies_to_graph=True,++ supports_regional_guidance=True,++ regional_negative=True,clip_skip_max=24,supports_seamless=True,supports_cfg_rescale=True,diff --cc invokeai/backend/architectures/defs/z_image.pyindex 877f7b9ee1,2029720336..c89a2fa5de--- a/invokeai/backend/architectures/defs/z_image.py+++ b/invokeai/backend/architectures/defs/z_image.py@@@ -34,13 -33,5 +34,16 @@@ registerscheduler_set="flow",scheduler_applies_to_graph=True,control_kinds=frozenset({"z_image_control"}),++ # The text encoder masks positive conditioning; the denoiser takes a negative list but++ # discards its masks, so a regional negative would act globally and is rejected instead.++ supports_regional_guidance=True,+ ),+ VaeFacet(+ frozenset(+ {+ # Z-Image decodes with a FLUX-compatible VAE; `z_image_model_loader` says so.+ VaeCompatibility(BaseModelType.Flux),+ }+ )),)diff --cc invokeai/frontend/web/openapi.jsonindex 589488c8d4,a16ec7dc20..2e12372391--- a/invokeai/frontend/web/openapi.json+++ b/invokeai/frontend/web/openapi.json@@@ -15718,60 -16718,481 +16718,487 @@@"type": "string"}},- "required": ["type", "id"],- "tags": ["prompt", "conditioning", "anima"],- "title": "Prompt - Anima",+ "required": [+ "type",+ "id"+ ],+ "tags": [+ "lora",+ "model",+ "anima"+ ],+ "title": "Apply LoRA Collection - Anima","type": "object",- "version": "1.4.0",+ "version": "1.0.1","output": {- "$ref": "#/components/schemas/AnimaConditioningOutput"+ "$ref": "#/components/schemas/AnimaLoRALoaderOutput"}},- "AnyModelConfig": {- "oneOf": [- {- "$ref": "#/components/schemas/Main_Diffusers_SD1_Config"- },- {- "$ref": "#/components/schemas/Main_Diffusers_SD2_Config"+ "AnimaLoRALoaderInvocation": {+ "category": "model",+ "class": "invocation",+ "classification": "prototype",+ "description": "Apply a LoRA model to an Anima transformer and/or Qwen3 text encoder.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"},- {- "$ref": "#/components/schemas/Main_Diffusers_SDXL_Config"+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"},- {- "$ref": "#/components/schemas/Main_Diffusers_SDXLRefiner_Config"+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"},- {- "$ref": "#/components/schemas/Main_Diffusers_SD3_Config"+ "lora": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/ModelIdentifierField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "LoRA model to load",+ "field_kind": "input",+ "input": "any",+ "orig_required": true,+ "title": "LoRA",+ "ui_model_base": [+ "anima"+ ],+ "ui_model_type": [+ "lora"+ ]},- {- "$ref": "#/components/schemas/Main_Diffusers_FLUX_Config"+ "weight": {+ "default": 0.75,+ "description": "The weight at which the LoRA is applied to each model",+ "field_kind": "input",+ "input": "any",+ "orig_default": 0.75,+ "orig_required": false,+ "title": "Weight",+ "type": "number"},- {- "$ref": "#/components/schemas/Main_Diffusers_Flux2_Config"+ "transformer": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/TransformerField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Transformer",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false,+ "title": "Anima Transformer"},- {- "$ref": "#/components/schemas/Main_Diffusers_CogView4_Config"+ "qwen3_encoder": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Qwen3EncoderField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Qwen3 tokenizer and text encoder",+ "field_kind": "input",+ "input": "connection",+ "orig_default": null,+ "orig_required": false,+ "title": "Qwen3 Encoder"},- {- "$ref": "#/components/schemas/Main_Diffusers_QwenImage_Config"+ "type": {+ "const": "anima_lora_loader",+ "default": "anima_lora_loader",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": [+ "type",+ "id"+ ],+ "tags": [+ "lora",+ "model",+ "anima"+ ],+ "title": "Apply LoRA - Anima",+ "type": "object",+ "version": "1.0.0",+ "output": {+ "$ref": "#/components/schemas/AnimaLoRALoaderOutput"+ }+ },+ "AnimaLoRALoaderOutput": {+ "class": "output",+ "description": "Anima LoRA Loader Output",+ "properties": {+ "transformer": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/TransformerField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Transformer",+ "field_kind": "output",+ "title": "Anima Transformer",+ "ui_hidden": false},- {- "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"+ "qwen3_encoder": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Qwen3EncoderField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Qwen3 tokenizer and text encoder",+ "field_kind": "output",+ "title": "Qwen3 Encoder",+ "ui_hidden": false},- {- "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"+ "type": {+ "const": "anima_lora_loader_output",+ "default": "anima_lora_loader_output",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": [+ "output_meta",+ "transformer",+ "qwen3_encoder",+ "type",+ "type"+ ],+ "title": "AnimaLoRALoaderOutput",+ "type": "object"+ },+ "AnimaModelLoaderInvocation": {+ "category": "model",+ "class": "invocation",+ "classification": "prototype",+ "description": "Loads an Anima model, outputting its submodels.\n\nAnima uses:\n- Transformer: Cosmos Predict2 DiT + LLM Adapter (from single-file checkpoint)\n- Qwen3 Encoder: Qwen3 0.6B (standalone single-file)\n- VAE: AutoencoderKLQwenImage / Wan 2.1 VAE (standalone single-file or FLUX VAE)\n\nThe T5-XXL tokenizer needed for LLM Adapter token IDs is bundled in the package,\nso no T5-XXL encoder model needs to be installed.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"},- {- "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"},- {- "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"},- {- "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ "model": {+ "$ref": "#/components/schemas/ModelIdentifierField",+ "description": "Anima main model (transformer + LLM adapter).",+ "field_kind": "input",+ "input": "direct",+ "orig_required": true,+ "title": "Transformer",+ "ui_model_base": [+ "anima"+ ],+ "ui_model_type": [+ "main"+ ]},- {+ "vae_model": {+ "$ref": "#/components/schemas/ModelIdentifierField",+ "description": "Standalone VAE model. Anima uses a Wan 2.1 / QwenImage VAE (16-channel). A FLUX VAE can also be used as a compatible fallback.",+ "field_kind": "input",+ "input": "direct",+ "orig_required": true,+ "title": "VAE",++ "ui_model_base": [++ "anima",++ "qwen-image",++ "wan",++ "flux"++ ],+ "ui_model_type": [+ "vae"+ ]+ },+ "qwen3_encoder_model": {+ "$ref": "#/components/schemas/ModelIdentifierField",+ "description": "Standalone Qwen3 0.6B Encoder model.",+ "field_kind": "input",+ "input": "direct",+ "orig_required": true,+ "title": "Qwen3 Encoder",+ "ui_model_type": [+ "qwen3_encoder"+ ]+ },+ "type": {+ "const": "anima_model_loader",+ "default": "anima_model_loader",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": [+ "model",+ "vae_model",+ "qwen3_encoder_model",+ "type",+ "id"+ ],+ "tags": [+ "model",+ "anima"+ ],+ "title": "Main Model - Anima",+ "type": "object",+ "version": "1.4.0",+ "output": {+ "$ref": "#/components/schemas/AnimaModelLoaderOutput"+ }+ },+ "AnimaModelLoaderOutput": {+ "class": "output",+ "description": "Anima model loader output.",+ "properties": {+ "transformer": {+ "$ref": "#/components/schemas/TransformerField",+ "description": "Transformer",+ "field_kind": "output",+ "title": "Transformer",+ "ui_hidden": false+ },+ "qwen3_encoder": {+ "$ref": "#/components/schemas/Qwen3EncoderField",+ "description": "Qwen3 tokenizer and text encoder",+ "field_kind": "output",+ "title": "Qwen3 Encoder",+ "ui_hidden": false+ },+ "vae": {+ "$ref": "#/components/schemas/VAEField",+ "description": "VAE",+ "field_kind": "output",+ "title": "VAE",+ "ui_hidden": false+ },+ "type": {+ "const": "anima_model_loader_output",+ "default": "anima_model_loader_output",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": [+ "output_meta",+ "transformer",+ "qwen3_encoder",+ "vae",+ "type",+ "type"+ ],+ "title": "AnimaModelLoaderOutput",+ "type": "object"+ },+ "AnimaTextEncoderInvocation": {+ "category": "conditioning",+ "class": "invocation",+ "classification": "prototype",+ "description": "Encodes and preps a prompt for an Anima image.\n\nUses Qwen3 0.6B for hidden state extraction and a bundled T5-XXL tokenizer for\ntoken IDs (no T5 model weights needed). Both are combined by the\nLLM Adapter inside the Anima transformer during denoising.",+ "node_pack": "invokeai",+ "properties": {+ "id": {+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",+ "field_kind": "node_attribute",+ "title": "Id",+ "type": "string"+ },+ "is_intermediate": {+ "default": false,+ "description": "Whether or not this is an intermediate invocation.",+ "field_kind": "node_attribute",+ "input": "direct",+ "orig_required": true,+ "title": "Is Intermediate",+ "type": "boolean",+ "ui_hidden": false,+ "ui_type": "IsIntermediate"+ },+ "use_cache": {+ "default": true,+ "description": "Whether or not to use the cache",+ "field_kind": "node_attribute",+ "title": "Use Cache",+ "type": "boolean"+ },+ "prompt": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Text prompt to encode.",+ "field_kind": "input",+ "input": "any",+ "orig_required": true,+ "title": "Prompt",+ "ui_component": "textarea"+ },+ "qwen3_encoder": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/Qwen3EncoderField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "Qwen3 tokenizer and text encoder",+ "field_kind": "input",+ "input": "connection",+ "orig_required": true,+ "title": "Qwen3 Encoder"+ },+ "mask": {+ "anyOf": [+ {+ "$ref": "#/components/schemas/TensorField"+ },+ {+ "type": "null"+ }+ ],+ "default": null,+ "description": "A mask defining the region that this conditioning prompt applies to.",+ "field_kind": "input",+ "input": "any",+ "orig_default": null,+ "orig_required": false+ },+ "type": {+ "const": "anima_text_encoder",+ "default": "anima_text_encoder",+ "field_kind": "node_attribute",+ "title": "type",+ "type": "string"+ }+ },+ "required": [+ "type",+ "id"+ ],+ "tags": [+ "prompt",+ "conditioning",+ "anima"+ ],+ "title": "Prompt - Anima",+ "type": "object",+ "version": "1.4.0",+ "output": {+ "$ref": "#/components/schemas/AnimaConditioningOutput"+ }+ },+ "AnyModelConfig": {+ "oneOf": [+ {+ "$ref": "#/components/schemas/Main_Diffusers_SD1_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_SD2_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_SDXL_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_SDXLRefiner_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_SD3_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_FLUX_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_Flux2_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_CogView4_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_QwenImage_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"+ },+ {+ "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"+ },+ {"$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"},{@@@ -31801,8 -34800,13 +34806,12 @@@"orig_default": null,"orig_required": false,"title": "VAE",- "ui_model_base": ["flux2"],- "ui_model_type": ["vae"]+ "ui_model_base": [- "flux",+ "flux2"+ ],+ "ui_model_type": [+ "vae"+ ]},"qwen3_encoder_model": {"anyOf": [@@@ -80268,8 -87366,12 +87371,13 @@@"orig_default": null,"orig_required": false,"title": "VAE",- "ui_model_base": ["qwen-image", "anima"],- "ui_model_type": ["vae"]+ "ui_model_base": [- "qwen-image"++ "qwen-image",++ "anima"+ ],+ "ui_model_type": [+ "vae"+ ]},"qwen_vl_encoder_model": {"anyOf": [diff --cc invokeai/frontend/webv2/performance/architecture-baseline.jsonindex 19486c52ab,66cd509803..a2cb0808c8--- a/invokeai/frontend/webv2/performance/architecture-baseline.json+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json@@@ -2,17 -2,17 +2,17 @@@"build": {"launchpad": {"baseline": {- "brotliBytes": 837513,- "brotliBytes": 854238,++ "brotliBytes": 854316,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 836446,- "gzipBytes": 853412,++ "gzipBytes": 853435,"imageRawBytes": 156376,- "initialRawBytes": 1947179,- "largestAssetRawBytes": 746355,- "initialRawBytes": 1995691,++ "initialRawBytes": 1995820,+ "largestAssetRawBytes": 747209,"otherAssetRawBytes": 0,- "ownedRawBytes": 69166,- "requestCount": 41,- "scriptRequestCount": 25,- "ownedRawBytes": 74196,++ "ownedRawBytes": 74248,+ "requestCount": 44,+ "scriptRequestCount": 28,"sourceOwners": ["package:@ark-ui/react","package:@chakra-ui/react",@@@ -287,17 -306,17 +306,17 @@@]},"limits": {- "brotliBytes": 845889,- "brotliBytes": 862781,++ "brotliBytes": 862860,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 844811,- "gzipBytes": 861947,++ "gzipBytes": 861970,"imageRawBytes": 157940,- "initialRawBytes": 1966651,- "largestAssetRawBytes": 753819,- "initialRawBytes": 2015648,++ "initialRawBytes": 2015779,+ "largestAssetRawBytes": 754682,"otherAssetRawBytes": 0,- "ownedRawBytes": 69166,- "requestCount": 41,- "scriptRequestCount": 25- "ownedRawBytes": 74196,++ "ownedRawBytes": 74248,+ "requestCount": 44,+ "scriptRequestCount": 28},"owner": "app","remediationTicket": "set-performance-budgets",@@@ -305,17 -324,17 +324,17 @@@},"editor": {"baseline": {- "brotliBytes": 1051808,- "brotliBytes": 1175359,++ "brotliBytes": 1176533,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 1047439,- "gzipBytes": 1169588,++ "gzipBytes": 1170616,"imageRawBytes": 156376,- "initialRawBytes": 2585222,- "largestAssetRawBytes": 746355,- "initialRawBytes": 2972354,++ "initialRawBytes": 2972732,+ "largestAssetRawBytes": 747209,"otherAssetRawBytes": 0,- "ownedRawBytes": 116036,- "requestCount": 96,- "scriptRequestCount": 80,- "ownedRawBytes": 131277,- "requestCount": 106,- "scriptRequestCount": 90,++ "ownedRawBytes": 131558,++ "requestCount": 107,++ "scriptRequestCount": 91,"sourceOwners": ["package:@ark-ui/react","package:@chakra-ui/react",@@@ -453,14 -484,30 +484,31 @@@"source:src/features/gallery/data/queries.ts","source:src/features/gallery/data/queryCache.ts","source:src/features/gallery/data/videoUrls.ts",+ "source:src/features/gallery/picker.ts","source:src/features/gallery/queries.ts","source:src/features/gallery/react.ts",+ "source:src/features/gallery/settingsContribution.ts",+ "source:src/features/gallery/ui/GalleryBoardCover.tsx",+ "source:src/features/gallery/ui/GalleryBoardRowShell.tsx","source:src/features/gallery/ui/GalleryDragCursor.tsx",+ "source:src/features/gallery/ui/GalleryItemSearch.tsx",+ "source:src/features/gallery/ui/GallerySearchField.tsx",+ "source:src/features/gallery/ui/GalleryTileFrame.tsx","source:src/features/gallery/ui/GalleryUiContext.tsx",+ "source:src/features/gallery/ui/GalleryUploadButton.tsx",+ "source:src/features/gallery/ui/GalleryViewTabs.tsx",+ "source:src/features/gallery/ui/GalleryWidgetContext.tsx",+ "source:src/features/gallery/ui/galleryBoardGroups.ts",+ "source:src/features/gallery/ui/galleryBoardLabels.ts","source:src/features/gallery/ui/galleryDnd.ts",+ "source:src/features/gallery/ui/galleryGridLayout.ts","source:src/features/gallery/ui/galleryStateView.ts",+ "source:src/features/gallery/ui/picker/GalleryPickerPopover.tsx",+ "source:src/features/gallery/ui/useGalleryData.ts",+ "source:src/features/gallery/ui/useGalleryUploadAction.ts",+ "source:src/features/gallery/ui/useGalleryUploadInput.ts","source:src/features/gallery/utility.ts",+ "source:src/features/generation/core/architectureCapabilities.ts","source:src/features/generation/core/baseGenerationPolicies.ts","source:src/features/generation/core/batch.ts","source:src/features/generation/core/canvas/addControlLayers.ts",@@@ -869,17 -1013,17 +1017,17 @@@]},"limits": {- "brotliBytes": 1062327,- "brotliBytes": 1187113,++ "brotliBytes": 1188299,"cssRawBytes": 2181,"fontRawBytes": 221675,- "gzipBytes": 1057914,- "gzipBytes": 1181284,++ "gzipBytes": 1182323,"imageRawBytes": 157940,- "initialRawBytes": 2611075,- "largestAssetRawBytes": 753819,- "initialRawBytes": 3002078,++ "initialRawBytes": 3002460,+ "largestAssetRawBytes": 754682,"otherAssetRawBytes": 0,- "ownedRawBytes": 116036,- "requestCount": 96,- "scriptRequestCount": 80- "ownedRawBytes": 131277,- "requestCount": 106,- "scriptRequestCount": 90++ "ownedRawBytes": 131558,++ "requestCount": 107,++ "scriptRequestCount": 91},"owner": "workbench","remediationTicket": "deepen-widget-registry-loading",diff --cc invokeai/frontend/webv2/public/locales/en.jsonindex 781e561524,f47e0c6be9..93711a43b7--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@@ -1485,9 -1880,9 +1880,10 @@@"addConcept": "Add concept","addConceptsHelp": "Add LoRAs/concepts here to blend them into this generation.","addPromptTrigger": "Add prompt trigger",+ "addReferenceImage": "Add reference image","advanced": "Advanced","aspectRatio": "Aspect ratio",+ "capabilitiesLoadFailed": "Could not load model capabilities from the backend.","cfgRescale": "CFG rescale","chooseModelToStart": "Choose a model to start","clearPromptTemplate": "Stop using this template",@@@ -1702,11 -2099,25 +2101,26 @@@"promptHistoryEntries": "Prompt history entries","promptHistoryKeyboardHelp": "Alt+Up/Down switches between prompts while focused.","recentSeeds": "Recent seeds",+ "renamePresetNamed": "Rename preset {{name}}",+ "renamePresetTitle": "Rename preset","resetToModelDefault": "Reset to model default",+ "retry": "Retry",- "savePreset": "Save as preset…","savePresetAction": "Save","savePresetTitle": "Save preset",+ "scaleBeforeProcessing": "Scale before processing",+ "scalingOptions": {+ "height": "Height",+ "method": "Scale method",+ "methods": {+ "auto": "Auto",+ "manual": "Manual",+ "none": "Off"+ },+ "processingAtFrame": "Generates at the generation size; nothing to resize.",+ "processingSize": "Generates at {{width}}x{{height}}, then resizes back to the generation size.",+ "width": "Width"+ },+ "searchPresets": "Search presets","secondsPerRun": "~{{value}}s/run","sizePreviewHandle": "Drag to resize the generation size","switchModelBody": "Switching to {{name}} turns off or removes: {{labels}}.",diff --cc invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.jsonindex e4c4257001,0000000000..f10337d012mode 100644,000000..100644--- a/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json+++ b/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json@@@ -1,1034 -1,0 +1,1034 @@@+[+ {+ "base": "anima",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "anima"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "cfg-gated"+ },+ "dimension_grid": 8,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "anima",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,- "supports_regional_guidance": false,++ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 35,+ "cfg_scale": 4.5,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "cogview4",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "cogview4"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 32,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "standard",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler_a",+ "steps": 50,+ "cfg_scale": 3.5,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "ernie-image",+ "variant": null,+ "modality": {+ "modes": ["txt2img"],+ "metadata_slug": "ernie_image"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "cfg-gated"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 50,+ "cfg_scale": 4.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "flux",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "flux"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": ["control_lora", "controlnet"],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 28,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": 3.5,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "flux",+ "variant": "dev_fill",+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "flux"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": ["control_lora", "controlnet"],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 50,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": 30.0,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "flux",+ "variant": "schnell",+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "flux"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": ["control_lora", "controlnet"],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 4,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "flux2",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "flux2"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 4,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "flux2",+ "variant": "dev",+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "flux2"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 28,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": 3.5,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "flux2",+ "variant": "klein_4b_base",+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "flux2"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 28,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "flux2",+ "variant": "klein_9b_base",+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "flux2"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 28,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "ideogram-4",+ "variant": null,+ "modality": {+ "modes": ["txt2img"],+ "metadata_slug": "ideogram4"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 48,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "krea-2",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "krea2"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "cfg-gated"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 8,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "krea-2",+ "variant": "krea2_base",+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "krea2"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "cfg-gated"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 28,+ "cfg_scale": 5.5,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "minimax-h3",+ "variant": null,+ "modality": {- "modes": ["extend_video", "flf2v", "i2v", "lf2v", "t2v", "txt2img"],++ "modes": ["extend_video", "flf2v", "i2v", "lf2v", "ref2v", "t2v", "txt2img"],+ "metadata_slug": "minimax_h3"+ },+ "features": {+ "negative_prompt": {+ "visible": false,+ "usage": "never"+ },+ "dimension_grid": 32,+ "spatial_compression": 16,+ "guidance_label": "Guidance",+ "scheduler_set": null,+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": null,+ "steps": 50,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1344,+ "height": 768,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "qwen-image",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "qwen_image"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "cfg-gated"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "standard",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 5,+ "reference_images_require_variant": "edit",+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler_a",+ "steps": 40,+ "cfg_scale": 4.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "sd-1",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": null+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 8,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "standard",+ "scheduler_applies_to_graph": true,+ "control_kinds": ["controlnet", "t2i_adapter"],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": true,+ "clip_skip_max": 12,+ "supports_seamless": true,+ "supports_cfg_rescale": true,+ "sd_vae_override": true,+ "color_compensation": false,+ "vae_precision": true+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler_a",+ "steps": 30,+ "cfg_scale": 7.0,+ "cfg_rescale_multiplier": null,+ "width": 512,+ "height": 512,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "sd-2",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": null+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 8,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "standard",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,- "supports_regional_guidance": false,- "regional_negative": false,++ "supports_regional_guidance": true,++ "regional_negative": true,+ "clip_skip_max": 24,+ "supports_seamless": true,+ "supports_cfg_rescale": true,+ "sd_vae_override": true,+ "color_compensation": false,+ "vae_precision": true+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler_a",+ "steps": 30,+ "cfg_scale": 7.0,+ "cfg_rescale_multiplier": null,+ "width": 768,+ "height": 768,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "sd-3",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "sd3"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "standard",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler_a",+ "steps": 40,+ "cfg_scale": 4.5,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "sdxl",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "sdxl"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 8,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "standard",+ "scheduler_applies_to_graph": true,+ "control_kinds": ["controlnet", "t2i_adapter"],+ "max_reference_images": 5,+ "reference_images_require_variant": null,+ "supports_regional_guidance": true,+ "regional_negative": true,+ "clip_skip_max": null,+ "supports_seamless": true,+ "supports_cfg_rescale": false,+ "sd_vae_override": true,+ "color_compensation": true,+ "vae_precision": true+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler_a",+ "steps": 30,+ "cfg_scale": 7.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "sdxl-refiner",+ "variant": null,+ "modality": {+ "modes": [],+ "metadata_slug": null+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 8,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "standard",+ "scheduler_applies_to_graph": true,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": true,+ "color_compensation": true,+ "vae_precision": true+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": null,+ "steps": null,+ "cfg_scale": null,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "wan",+ "variant": null,+ "modality": {+ "modes": ["extend_video", "i2v", "img2img", "inpaint", "interpolate", "outpaint", "t2v", "txt2img"],+ "metadata_slug": "wan"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 40,+ "cfg_scale": 4.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "wan",+ "variant": "ti2v_5b",+ "modality": {+ "modes": ["extend_video", "i2v", "img2img", "inpaint", "interpolate", "outpaint", "t2v", "txt2img"],+ "metadata_slug": "wan"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "always"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "Guidance",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": false,+ "control_kinds": [],+ "max_reference_images": 0,+ "reference_images_require_variant": null,+ "supports_regional_guidance": false,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 30,+ "cfg_scale": 5.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "z-image",+ "variant": null,+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "z_image"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "cfg-gated"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": ["z_image_control"],+ "max_reference_images": 0,+ "reference_images_require_variant": null,- "supports_regional_guidance": false,++ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 9,+ "cfg_scale": 1.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ },+ {+ "base": "z-image",+ "variant": "zbase",+ "modality": {+ "modes": ["img2img", "inpaint", "outpaint", "txt2img"],+ "metadata_slug": "z_image"+ },+ "features": {+ "negative_prompt": {+ "visible": true,+ "usage": "cfg-gated"+ },+ "dimension_grid": 16,+ "spatial_compression": 8,+ "guidance_label": "CFG",+ "scheduler_set": "flow",+ "scheduler_applies_to_graph": true,+ "control_kinds": ["z_image_control"],+ "max_reference_images": 0,+ "reference_images_require_variant": null,- "supports_regional_guidance": false,++ "supports_regional_guidance": true,+ "regional_negative": false,+ "clip_skip_max": null,+ "supports_seamless": false,+ "supports_cfg_rescale": false,+ "sd_vae_override": false,+ "color_compensation": false,+ "vae_precision": false+ },+ "defaults": {+ "vae": null,+ "vae_precision": null,+ "scheduler": "euler",+ "steps": 50,+ "cfg_scale": 4.0,+ "cfg_rescale_multiplier": null,+ "width": 1024,+ "height": 1024,+ "guidance": null,+ "cpu_only": null,+ "fp8_storage": null+ }+ }+]diff --cc invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.test.tsindex 1686651850,c0a0e78676..8afbc426f4--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.test.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.test.ts@@@ -1,4 -1,3 +1,7 @@@- import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';++import {++ architectureCapabilitiesFixture,++ seedArchitectureCapabilities,++} from '@features/generation/core/architectureCapabilities.testing';import { describe, expect, it } from 'vitest';import type { AddRegionalGuidanceOptions, RegionalGuidanceInput, RegionalReferenceModel } from './addRegionalGuidance';@@@ -141,17 -174,62 +178,93 @@@ const hasEdge = (graph: TestGraph, s: s(e) => e.source.node_id === s && e.source.field === sf && e.destination.node_id === d && e.destination.field === df);+seedArchitectureCapabilities();+describe('isRegionalGuidanceSupportedForBase', () => {- it('supports sd-1 / sdxl / flux / flux2 / krea-2 and nothing else', () => {- expect(isRegionalGuidanceSupportedForBase('sd-1')).toBe(true);- expect(isRegionalGuidanceSupportedForBase('sdxl')).toBe(true);- expect(isRegionalGuidanceSupportedForBase('flux')).toBe(true);- expect(isRegionalGuidanceSupportedForBase('flux2')).toBe(true);- expect(isRegionalGuidanceSupportedForBase('krea-2')).toBe(true);- expect(isRegionalGuidanceSupportedForBase('sd-3')).toBe(false);- expect(isRegionalGuidanceSupportedForBase('cogview4')).toBe(false);+ it('supports every base whose encoder takes a mask and whose denoiser takes a conditioning list', () => {+ for (const base of ['sd-1', 'sd-2', 'sdxl', 'flux', 'flux2', 'krea-2', 'z-image', 'anima']) {+ expect(isRegionalGuidanceSupportedForBase(base), base).toBe(true);+ }+ for (const base of ['sd-3', 'cogview4', 'qwen-image', 'ideogram-4', 'wan', 'external']) {+ expect(isRegionalGuidanceSupportedForBase(base), base).toBe(false);+ }+ });+ });+++describe('the support matrix and the served capabilities', () => {++ // The graph builder decides regional negatives from the matrix while the layer settings UI asks++ // the backend. They agreed when this merge landed only because the facets were corrected for++ // sd-2, z-image and anima; nothing else keeps them from drifting apart again.++ it('answer regional negatives identically for every base the matrix covers', () => {++ for (const row of architectureCapabilitiesFixture) {++ const support = getRegionalGuidanceSupport(row.base);++ if (support !== null) {++ expect(support.negativePrompt, row.base).toBe(row.features.regional_negative);++ }++ }++ });++++ // isRegionalGuidanceSupportedForBase asserts `base is RegionalGuidanceBase` from the backend's++ // answer, and getRegionalGuidanceSupport then indexes the matrix on that assertion. A base the++ // backend declares supported but the matrix has no row for would hand callers an undefined typed++ // as present -- so every served `true` must have a row.++ it('give every base the backend declares supported a row in the matrix', () => {++ const declaredSupported = architectureCapabilitiesFixture++ .filter((row) => row.features.supports_regional_guidance)++ .map((row) => row.base);++++ expect(declaredSupported.length).toBeGreaterThan(0);++ for (const base of declaredSupported) {++ expect(getRegionalGuidanceSupport(base), base).not.toBeNull();++ }++ });++});+++ describe('getRegionalGuidanceSupport', () => {+ it('masks both polarities plus IP-Adapters on the SD family only', () => {+ for (const base of ['sd-1', 'sd-2', 'sdxl']) {+ expect(getRegionalGuidanceSupport(base)).toMatchObject({+ autoNegative: true,+ negativePrompt: true,+ referenceImages: 'ip_adapter',+ });+ }+ expect(getRegionalGuidanceSupport('flux')).toMatchObject({+ autoNegative: false,+ negativePrompt: false,+ referenceImages: 'flux_redux',+ });+ for (const base of ['flux2', 'krea-2', 'z-image', 'anima']) {+ expect(getRegionalGuidanceSupport(base), base).toMatchObject({+ autoNegative: false,+ negativePrompt: false,+ referenceImages: null,+ });+ }+ expect(getRegionalGuidanceSupport('sd-3')).toBeNull();+ expect(getRegionalGuidanceSupport(null)).toBeNull();+ });+ });++ describe('addRegionalGuidance — Z-Image / Anima', () => {+ it.each([+ ['z-image', 'z_image_text_encoder'],+ ['anima', 'anima_text_encoder'],+ ] as const)('%s wires a masked positive prompt through its Qwen3 encoder, positive only', (base, encoderType) => {+ const g = run(qwen3BaseGraph(encoderType), {+ base,+ regions: [region({ autoNegative: true, negativePrompt: 'blurry' })],+ });++ expect(g.nodes.rg_pos_cond_r1).toMatchObject({ prompt: 'a cat', type: encoderType });+ expect(hasEdge(g, 'model_loader', 'qwen3_encoder', 'rg_pos_cond_r1', 'qwen3_encoder')).toBe(true);+ expect(hasEdge(g, 'rg_mask_to_tensor_r1', 'mask', 'rg_pos_cond_r1', 'mask')).toBe(true);+ expect(hasEdge(g, 'rg_pos_cond_r1', 'conditioning', 'pos_cond_collect', 'item')).toBe(true);+ // The backend discards masks on negative conditioning for these bases, so nothing reaches the+ // negative collector even though the graph has one.+ expect(g.nodes.rg_neg_cond_r1).toBeUndefined();+ expect(g.nodes.rg_pos_cond_inverted_r1).toBeUndefined();+ expect(g.edges.some((e) => e.destination.node_id === 'neg_cond_collect')).toBe(false);});});diff --cc invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.tsindex 36928df44a,064f152d70..1f80915208--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/addRegionalGuidance.ts@@@ -11,29 -10,48 +11,59 @@@ const NEG_COND_ID = 'neg_cond'const POS_COND_COLLECT_ID = 'pos_cond_collect';const NEG_COND_COLLECT_ID = 'neg_cond_collect';- /** The base models regional guidance supports. */- export type RegionalGuidanceBase = 'sd-1' | 'sdxl' | 'flux' | 'flux2' | 'krea-2';+ /** The base models whose text encoder accepts a region mask and whose denoiser accepts a conditioning list. */+ export type RegionalGuidanceBase = 'sd-1' | 'sd-2' | 'sdxl' | 'flux' | 'flux2' | 'krea-2' | 'z-image' | 'anima';++ /** The reference-image node kind a base's regions can consume. */+ export type RegionalReferenceImageKind = 'ip_adapter' | 'flux_redux';++ /** What the backend honours per region for one base, beyond the masked positive prompt. */+ export interface RegionalGuidanceSupport {+ /** Display name used in rejection reasons and settings hints. */+ label: string;+ /** Masked regional negative prompts reach the negative collector. */+ negativePrompt: boolean;+ /** The positive prompt can be re-encoded over the inverted mask as a negative. */+ autoNegative: boolean;+ /** Mask-scoped reference images, or `null` when the denoiser has no regional image path. */+ referenceImages: RegionalReferenceImageKind | null;+ }++ /**+ * Mirrors the backend: `compel` / `sdxl_compel_prompt` + `denoise_latents` mask both+ * prompt polarities; FLUX / FLUX.2 / Krea-2 / Z-Image / Anima denoisers mask positive+ * conditioning only (Z-Image and Anima accept negative lists but discard their masks,+ * so a "regional" negative there would silently act globally and is rejected instead).+ */+ const REGIONAL_GUIDANCE_SUPPORT: Record<RegionalGuidanceBase, RegionalGuidanceSupport> = {+ 'sd-1': { autoNegative: true, label: 'SD 1.x', negativePrompt: true, referenceImages: 'ip_adapter' },+ 'sd-2': { autoNegative: true, label: 'SD 2.x', negativePrompt: true, referenceImages: 'ip_adapter' },+ sdxl: { autoNegative: true, label: 'SDXL', negativePrompt: true, referenceImages: 'ip_adapter' },+ flux: { autoNegative: false, label: 'FLUX', negativePrompt: false, referenceImages: 'flux_redux' },+ flux2: { autoNegative: false, label: 'FLUX.2', negativePrompt: false, referenceImages: null },+ 'krea-2': { autoNegative: false, label: 'Krea-2', negativePrompt: false, referenceImages: null },+ 'z-image': { autoNegative: false, label: 'Z-Image', negativePrompt: false, referenceImages: null },+ anima: { autoNegative: false, label: 'Anima', negativePrompt: false, referenceImages: null },+ };-/** True when `base` supports regional guidance at all. */+/**+ * True when `base` supports regional guidance at all.+ *+ * The narrowing to `RegionalGuidanceBase` stays: everything below this point dispatches on the+ * literal to pick node types and field names, and that is graph knowledge the backend has no say+ * in. Only the *answer* comes from the capability table now.+ */export const isRegionalGuidanceSupportedForBase = (base: string): base is RegionalGuidanceBase =>- Object.hasOwn(REGIONAL_GUIDANCE_SUPPORT, base);+ getArchitectureFeatures(base)?.supports_regional_guidance ?? false;-/** The per-base support matrix, or `null` for a base with no regional path. */+/**- * Whether a base supports regional NEGATIVE prompts / autoNegative.++ * The per-base support matrix, or `null` for a base with no regional path.+ *- * Exported because the layer settings UI needs the same answer: it used to ask "is this the FLUX- * family?" and got krea-2 wrong, rendering a negative-prompt field the graph builder discards.++ * The *answer* comes from the capability table; the row it selects is graph knowledge (which node++ * kind a region's reference images become), which the backend has no say in.+ */- export const isRegionalNegativeSupportedForBase = (base: string): boolean =>- getArchitectureFeatures(base)?.regional_negative ?? false;-- const supportsRegionalNegative = (base: RegionalGuidanceBase): boolean => isRegionalNegativeSupportedForBase(base);+ export const getRegionalGuidanceSupport = (base: string | null): RegionalGuidanceSupport | null =>+ base !== null && isRegionalGuidanceSupportedForBase(base) ? REGIONAL_GUIDANCE_SUPPORT[base] : null;/** A resolved reference-image (component) model identifier — the backend model field shape. */export interface RegionalReferenceModel {diff --cc invokeai/frontend/webv2/src/features/generation/core/canvas/canvasProcessingSize.test.tsindex 0000000000,f4df68a7a5..17f89e3e36mode 000000,100644..100644--- a/invokeai/frontend/webv2/src/features/generation/core/canvas/canvasProcessingSize.test.ts+++ b/invokeai/frontend/webv2/src/features/generation/core/canvas/canvasProcessingSize.test.ts@@@ -1,0 -1,83 +1,86 @@@+ import type { GenerateModelConfig } from '@features/generation/core/types';+++import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';+ import { describe, expect, it } from 'vitest';++ import { resolveCanvasProcessingSize } from './canvasProcessingSize';+++seedArchitectureCapabilities();+++ const sd1 = { base: 'sd-1', type: 'main' } as GenerateModelConfig;+ const sdxl = { base: 'sdxl', type: 'main' } as GenerateModelConfig;++ describe('resolveCanvasProcessingSize', () => {+ it('keeps the bbox on the model grid when scaling is off or unset', () => {+ expect(resolveCanvasProcessingSize(sd1, 'off', { height: 300, width: 500 }, undefined)).toEqual({+ height: 304,+ width: 504,+ });+ expect(+ resolveCanvasProcessingSize(sd1, 'off', { height: 300, width: 500 }, { height: 64, method: 'none', width: 64 })+ ).toEqual({ height: 304, width: 504 });+ });++ it('grows a small bbox along its aspect ratio until it covers the optimal area', () => {+ // SD 1.x is trained at 512²: a 256×128 region processes at 2:1 with ≥ 512² pixels.+ const size = resolveCanvasProcessingSize(+ sd1,+ 'off',+ { height: 128, width: 256 },+ { height: null, method: 'auto', width: null }+ );+ expect(size.width / size.height).toBeCloseTo(2, 1);+ expect(size.width * size.height).toBeGreaterThanOrEqual(512 * 512);+ expect(size).toEqual({ height: 368, width: 728 });+ });++ it('sends a square bbox straight to the optimal square', () => {+ expect(+ resolveCanvasProcessingSize(+ sdxl,+ 'off',+ { height: 200, width: 200 },+ { height: null, method: 'auto', width: null }+ )+ ).toEqual({ height: 1024, width: 1024 });+ });++ it('leaves an SDXL training resolution alone in either orientation', () => {+ const auto = { height: null, method: 'auto', width: null } as const;+ expect(resolveCanvasProcessingSize(sdxl, 'off', { height: 1216, width: 832 }, auto)).toEqual({+ height: 1216,+ width: 832,+ });+ expect(resolveCanvasProcessingSize(sdxl, 'off', { height: 832, width: 1216 }, auto)).toEqual({+ height: 832,+ width: 1216,+ });+ // The same size on another base is below its optimal area and still grows.+ expect(resolveCanvasProcessingSize(sd1, 'off', { height: 1216, width: 832 }, auto)).toEqual({+ height: 1216,+ width: 832,+ });+ });++ it('never shrinks a bbox that already covers the optimal area', () => {+ expect(+ resolveCanvasProcessingSize(+ sd1,+ 'off',+ { height: 1024, width: 1536 },+ { height: null, method: 'auto', width: null }+ )+ ).toEqual({ height: 1024, width: 1536 });+ });++ it('uses the manual size snapped to the grid, falling back to the bbox side by side', () => {+ expect(+ resolveCanvasProcessingSize(+ sd1,+ 'off',+ { height: 300, width: 500 },+ { height: null, method: 'manual', width: 777 }+ )+ ).toEqual({ height: 304, width: 776 });+ });+ });diff --cc invokeai/frontend/webv2/src/features/generation/graph.tsindex f60ff01bde,8b56d8d0dc..97c82e7e98--- a/invokeai/frontend/webv2/src/features/generation/graph.ts+++ b/invokeai/frontend/webv2/src/features/generation/graph.ts@@@ -28,8 -28,7 +28,8 @@@ exportexport { getControlLayerRejectionReason, getControlValidationReasonMessage } from './core/canvas/addControlLayers';export {getRegionalGuidanceRejectionReason,+ getRegionalGuidanceSupport,+ isRegionalGuidanceSupportedForBase,- isRegionalNegativeSupportedForBase,type RegionalGuidanceInput,type RegionalReferenceImageInput,} from './core/canvas/addRegionalGuidance';diff --cc invokeai/frontend/webv2/src/workbench/canvas-operations/importGalleryImages.test.tsindex 3a8fa78e1d,3155b5ffe6..75f9e21d78--- a/invokeai/frontend/webv2/src/workbench/canvas-operations/importGalleryImages.test.ts+++ b/invokeai/frontend/webv2/src/workbench/canvas-operations/importGalleryImages.test.ts@@@ -6,8 -6,9 +6,10 @@@ import type { uploadCanvasImage } fromimport type { CanvasProjectMutation } from '@workbench/canvasProjectMutations';import type { Project, WorkbenchState } from '@workbench/projectContracts';+import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';import { accountLifecycle } from '@platform/state/accountLifecycle';+ import { stacksFrom } from '@workbench/canvas-engine/document-model/documentFixtures.testStub';+ import { createTestInsertionAnchorCapture } from '@workbench/canvas-engine/document/insertionAnchors.testStub';import {createControlLayer,createEmptyPaintLayer,diff --cc invokeai/frontend/webv2/src/workbench/canvasDimsSync.test.tsindex eff7c34ea0,70518efc3b..1b30708e77--- a/invokeai/frontend/webv2/src/workbench/canvasDimsSync.test.ts+++ b/invokeai/frontend/webv2/src/workbench/canvasDimsSync.test.ts@@@ -1,12 -1,12 +1,15 @@@import type { MainModelConfig } from '@features/generation/contracts';import type { WorkbenchState } from '@workbench/projectContracts';++import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';import { describe, expect, it } from 'vitest';import type { CanvasProjectMutation } from './canvasProjectMutations';import { type CanvasDimsSnapshot, createCanvasDimsSync, reconcileCanvasDims } from './canvasDimsSync';import { getProjectWidgetValues } from './widgetState';++++seedArchitectureCapabilities();import { createWorkbenchStore } from './workbenchStore';const bbox = (width: number, height: number, x = 0, y = 0) => ({ height, width, x, y });diff --cc invokeai/frontend/webv2/src/workbench/image-actions/useImageActions.browser.test.tsxindex 4683bf4651,0d9811c4ef..088adf5283--- a/invokeai/frontend/webv2/src/workbench/image-actions/useImageActions.browser.test.tsx+++ b/invokeai/frontend/webv2/src/workbench/image-actions/useImageActions.browser.test.tsx@@@ -1,6 -1,6 +1,7 @@@import type { GalleryImage, GalleryItem, GalleryItemKey, GalleryItemRef } from '@features/gallery';+ import type { CreateCanvasFromImagesResult } from '@workbench/canvas-operations/api';+import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';import { accountLifecycle } from '@platform/state/accountLifecycle';import { QueryClient, QueryClientProvider } from '@tanstack/react-query';import { act, createRef, type Ref, useImperativeHandle } from 'react';@@@ -258,8 -270,53 +271,55 @@@ afterEach(async () =>root = null;});+seedArchitectureCapabilities();++ describe('new canvas from images', () => {+ const galleryImage = (imageName: string): GalleryImage => ({+ boardId: 'none',+ height: 512,+ imageCategory: 'general',+ imageName,+ imageUrl: `/${imageName}`,+ queuedAt: '2026-06-15T00:00:00Z',+ sourceQueueItemId: 'queue-item',+ starred: false,+ thumbnailUrl: `/thumb-${imageName}`,+ width: 512,+ });++ it('reports the new canvas and opens it in the center once the images land', async () => {+ mocks.createCanvasFromImages.mockResolvedValueOnce({+ failedImageNames: [],+ layerIds: ['layer-1', 'layer-2'],+ projectId: 'project-2',+ status: 'imported',+ });++ await act(() => actionsRef.current!.createCanvasFromImages([galleryImage('a.png'), galleryImage('b.png')]));++ expect(mocks.notificationsAdd).toHaveBeenCalledWith({+ kind: 'success',+ title: 'widgets.canvas.import.newCanvasSuccess',+ });+ expect(mocks.openWorkbenchWidget).toHaveBeenCalledWith('canvas', {+ preferredRegions: ['center'],+ requireCenterView: true,+ });+ });++ it('surfaces the import notice and leaves the layout alone when the images could not land', async () => {+ mocks.createCanvasFromImages.mockResolvedValueOnce({ projectId: 'project-2', status: 'stale-project' });++ await act(() => actionsRef.current!.createCanvasFromImages([galleryImage('a.png')]));++ expect(mocks.notificationsAdd).toHaveBeenCalledWith({+ kind: 'error',+ title: 'widgets.canvas.import.staleProject',+ });+ expect(mocks.openWorkbenchWidget).not.toHaveBeenCalled();+ });+ });+describe('image recall capability cancellation', () => {it('re-derives capabilities from the current generate model without another metadata request', async () => {const image: GalleryImage = {diff --cc invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.tsindex 748c2c1346,fb94dba24b..d4d5d6be95--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/invoke/prepareCanvasInvocation.test.ts@@@ -15,8 -15,9 +15,10 @@@ import type { WorkbenchState } from '@wimport type { WorkbenchAction } from '@workbench/workbenchState.testing';import type { WorkbenchCommands } from '@workbench/workbenchStore';+import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';import { getDefaultGenerateSettings } from '@features/generation/settings';+ import { getDocumentLeaves } from '@workbench/canvas-engine/api';+ import { stacksFrom } from '@workbench/canvas-engine/document-model/documentFixtures.testStub';import { createTestStubRasterBackend } from '@workbench/canvas-engine/render/raster.testStub';import {composeForGeneration,diff --cc invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.browser.test.tsxindex 0000000000,59d162dc9d..6411171da2mode 000000,100644..100644--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.browser.test.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.browser.test.tsx@@@ -1,0 -1,101 +1,104 @@@+ import type { CanvasRegionalGuidanceLayerContract } from '@workbench/canvas-engine/api';+ import type { ComponentProps } from 'react';++ import { ChakraProvider } from '@chakra-ui/react';++import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';+ import { applyThemeToRoot } from '@theme/applyTheme';+ import { system } from '@theme/system';+ import { createInstance } from 'i18next';+ import { act } from 'react';+ import { createRoot, type Root } from 'react-dom/client';+ import { I18nextProvider, initReactI18next } from 'react-i18next';+ import { afterEach, describe, expect, it, vi } from 'vitest';++ import { RegionalGuidanceSettings } from './RegionalGuidanceSettings';+++seedArchitectureCapabilities();+++ let selectedBase: string | null = null;+ vi.mock('./useSelectedModelBase', () => ({ useSelectedModelBase: () => selectedBase }));++ type Layer = ComponentProps<typeof RegionalGuidanceSettings>['layer'];++ const i18n = createInstance();+ void i18n.use(initReactI18next).init({ fallbackLng: 'en', initAsync: false, lng: 'en', resources: {} });++ (globalThis as typeof globalThis & { IS_REACT_ACT_ENVIRONMENT: boolean }).IS_REACT_ACT_ENVIRONMENT = true;++ let host: HTMLDivElement | null = null;+ let root: Root | null = null;++ const createLayer = (overrides: Partial<CanvasRegionalGuidanceLayerContract> = {}): Layer =>+ ({+ autoNegative: false,+ id: 'rg-1',+ isEnabled: true,+ isLocked: false,+ mask: { bitmap: null, fill: { color: '#ff0000', style: 'solid' } },+ name: 'Region 1',+ negativePrompt: null,+ opacity: 1,+ positivePrompt: 'a cat',+ referenceImages: [],+ type: 'regional_guidance',+ ...overrides,+ }) as unknown as Layer;++ const render = async (base: string | null, layer: Layer) => {+ selectedBase = base;+ applyThemeToRoot('classic');+ host = document.createElement('div');+ host.style.width = '260px';+ document.body.append(host);+ root = createRoot(host);+ await act(() => {+ root?.render(+ <I18nextProvider i18n={i18n}>+ <ChakraProvider value={system}>+ <RegionalGuidanceSettings engine={null} layer={layer} />+ </ChakraProvider>+ </I18nextProvider>+ );+ });+ };++ afterEach(async () => {+ await act(() => root?.unmount());+ host?.remove();+ host = null;+ root = null;+ });++ const alerts = () => [...host!.querySelectorAll('[role="alert"]')].map((el) => el.textContent);+ const hasNegativeField = () =>+ host!.querySelector('[aria-label="widgets.layers.regionalGuidance.negativePrompt"]') !== null;+ const hasAutoNegativeSwitch = () =>+ Boolean(host!.textContent?.includes('widgets.layers.regionalGuidance.autoNegative'));++ describe('RegionalGuidanceSettings per model base', () => {+ it('offers both prompt polarities on an SD base', async () => {+ await render('sd-1', createLayer());+ expect(alerts()).toEqual([]);+ expect(hasNegativeField()).toBe(true);+ expect(hasAutoNegativeSwitch()).toBe(true);+ });++ it('hides the negative controls on a positive-only base even when the layer still holds a negative', async () => {+ await render('anima', createLayer({ autoNegative: true, negativePrompt: 'blurry' }));+ expect(alerts()).toEqual([]);+ expect(hasNegativeField()).toBe(false);+ expect(hasAutoNegativeSwitch()).toBe(false);+ });++ it('warns that a base with no regional path skips the layer', async () => {+ await render('sd-3', createLayer());+ expect(alerts()).toEqual(['widgets.layers.regionalGuidance.unsupportedModel']);+ expect(hasNegativeField()).toBe(true);+ });++ it('offers everything while no model is selected', async () => {+ await render(null, createLayer());+ expect(alerts()).toEqual([]);+ expect(hasNegativeField()).toBe(true);+ });+ });diff --cc invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.tsxindex 01bc83a421,7279f50cd6..3dac6344a7--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/RegionalGuidanceSettings.tsx@@@ -109,13 -71,11 +71,13 @@@ export const RegionalGuidanceSettingsconst [negativePrompt, setNegativePrompt] = useState(layer.negativePrompt ?? '');const fill = layer.mask.fill;- const isFlux2 = base === 'flux2';- // Asked as "is this the FLUX family?" before, which got krea-2 wrong: it rendered a regional- // negative prompt and an Auto-Negative switch that `addRegionalGuidance` then discarded. The- // graph builder and this control now read the same declaration.- const supportsRegionalNegative = isRegionalNegativeSupportedForBase(base ?? '');- const showNegativeControls = supportsRegionalNegative || Boolean(layer.negativePrompt) || layer.autoNegative;- const showReferenceImages = !isFlux2 || layer.referenceImages.length > 0;- // Negative controls are hidden on bases whose backend ignores regional negatives; the values- // stay on the layer for other models. With no selected model every control is offered.++ // Negative controls are hidden on bases whose backend ignores regional negatives -- asked as "is++ // this the FLUX family?" before, which got krea-2 wrong: it rendered a regional negative prompt++ // and an Auto-Negative switch that `addRegionalGuidance` then discarded. The values stay on the++ // layer for other models. With no selected model every control is offered.+ const support = getRegionalGuidanceSupport(base);+ const showNegativeControls = support?.negativePrompt !== false;+ const unsupportedModel = base !== null && support === null;const commitConfig = useCallback((label: string, next: RegionalConfigPatch, before: RegionalConfigPatch) => {diff --cc invokeai/frontend/webv2/src/workbench/widgets/layers/addLayerMenu.test.tsindex 9c4e20630b,fe4bcf59ac..6e2d3aa7a8--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/addLayerMenu.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/addLayerMenu.test.ts@@@ -1,7 -1,7 +1,10 @@@++import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';import { describe, expect, it } from 'vitest';- import { ADD_LAYER_MENU, groupAddItemId, isAddLayerItemAvailable } from './addLayerMenu';+ import { ADD_LAYER_MENU, isAddLayerItemAvailable, stackAddItemId } from './addLayerMenu';+++seedArchitectureCapabilities();+describe('ADD_LAYER_MENU', () => {it('splits into the legacy Regional / Layers groups in order', () => {expect(ADD_LAYER_MENU.map((group) => group.titleKey)).toEqual([diff --cc invokeai/frontend/webv2/src/workbench/widgets/layers/layerContextActions.test.tsindex 24f88f6a9d,c90fcb8902..04921871e4--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/layerContextActions.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/layerContextActions.test.ts@@@ -4,6 -4,7 +4,8 @@@ import typeCanvasRasterLayerContractV2,} from '@workbench/canvas-engine/contracts';++import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';+ import { stacksFrom } from '@workbench/canvas-engine/document-model/documentFixtures.testStub';import { describe, expect, it, vi } from 'vitest';import {@@@ -23,6 -24,6 +25,8 @@@ importcreateRegionalGuidanceLayer,} from './layerOps';++seedArchitectureCapabilities();++const englishCatalogModules = import.meta.glob('../../../../public/locales/en.json', {eager: true,import: 'default',diff --cc invokeai/frontend/webv2/src/workbench/widgets/layers/layerOps.test.tsindex b69b2094aa,68da3d3c32..4242dd3921--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/layerOps.test.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/layerOps.test.ts@@@ -1,6 -1,10 +1,11 @@@- import type { CanvasLayerContract, CanvasRasterLayerContractV2 } from '@workbench/canvas-engine/contracts';- import type { CanvasProjectMutation } from '@workbench/canvasProjectMutations';-+ import type {+ CanvasDocumentContractV3,+ CanvasLayerContract,+ CanvasRasterLayerContractV2,+ } from '@workbench/canvas-engine/contracts';+++import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';+ import { stacksFrom } from '@workbench/canvas-engine/document-model/documentFixtures.testStub';import { describe, expect, it, vi } from 'vitest';import {@@@ -48,6 -46,6 +47,8 @@@REGIONAL_GUIDANCE_FILL_COLORS,} from './layerOps';++seedArchitectureCapabilities();++const paintLayer = (id: string, patch: Partial<CanvasRasterLayerContractV2> = {}): CanvasLayerContract => ({...createEmptyPaintLayer(id, id),...patch,diff --cc tests/backend/architectures/test_features.pyindex ca16b6ced0,fe418d0dec..dc3edbb510--- a/tests/backend/architectures/test_features.py+++ b/tests/backend/architectures/test_features.py@@@ -97,13 -97,13 +97,17 @@@ def test_reference_images_and_the_one_vdef test_regional_guidance_and_its_negative_subset() -> None:-- """Regional negative prompts are a strict subset — only the SD family has them."""++ """Regional negative prompts are a strict subset — only the SD family has them.++++ Z-Image and Anima mask positive conditioning only: their denoisers accept a negative list but++ discard its masks, so a "regional" negative there would act globally.++ """regional = {b.value for b in generative_bases() if (f := get(b, FeaturesFacet)) is not None and f.supports_regional_guidance}negative = {b.value for b in generative_bases() if (f := get(b, FeaturesFacet)) is not None and f.regional_negative}-- assert regional == {"sd-1", "sdxl", "flux", "flux2", "krea-2"}-- assert negative == {"sd-1", "sdxl"}++ assert regional == {"sd-1", "sd-2", "sdxl", "flux", "flux2", "krea-2", "z-image", "anima"}++ assert negative == {"sd-1", "sd-2", "sdxl"}assert negative < regional, "a regional negative prompt without regional guidance is meaningless"