Skip to content

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.

feat(ernie-image): support single-file transformers

Alexander Eichhorn9f8c9c49e09f
diff --git a/invokeai/app/invocations/ernie_image/ernie_image_denoise.py b/invokeai/app/invocations/ernie_image/ernie_image_denoise.py
index f65e0e4efb..3ec73ab89e 100644
--- a/invokeai/app/invocations/ernie_image/ernie_image_denoise.py
+++ b/invokeai/app/invocations/ernie_image/ernie_image_denoise.py
@@ -21,8 +21,9 @@ from invokeai.backend.flux.schedulers import (
ERNIE_IMAGE_SCHEDULER_LABELS,
ERNIE_IMAGE_SCHEDULER_MAP,
ERNIE_IMAGE_SCHEDULER_NAME_VALUES,
+ ERNIE_IMAGE_SHIFT,
)
-from invokeai.backend.model_manager.taxonomy import BaseModelType
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat
from invokeai.backend.stable_diffusion.diffusers_pipeline import PipelineIntermediateState
from invokeai.backend.stable_diffusion.diffusion.conditioning_data import ErnieImageConditioningInfo
from invokeai.backend.util.devices import TorchDevice
@@ -224,18 +225,26 @@ class ErnieImageDenoiseInvocation(BaseInvocation):
model_path = (context.config.get().models_path / config.path).resolve()
scheduler_dir = model_path / "scheduler"
if not scheduler_dir.is_dir():
- context.logger.warning(
- f"No scheduler config found at {scheduler_dir}; falling back to {scheduler_cls.__name__} defaults."
- )
- return scheduler_cls()
+ # A single-file checkpoint has no `scheduler/` by construction -- `config.path` is the
+ # file itself -- so there is nothing to read and nothing worth warning about. What
+ # matters is the value: both released pipelines ship `shift=4.0`, and the driver hands
+ # the scheduler raw sigmas expecting it to apply that shift, so default-constructing
+ # would silently denoise on the unshifted schedule. Turbo feels it worst at 8 steps.
+ if config.format is not ModelFormat.Checkpoint:
+ context.logger.warning(
+ f"No scheduler config found at {scheduler_dir}; using {scheduler_cls.__name__} "
+ f"with the released ERNIE-Image shift={ERNIE_IMAGE_SHIFT}."
+ )
+ return scheduler_cls(shift=ERNIE_IMAGE_SHIFT)
try:
return scheduler_cls.from_pretrained(model_path, subfolder="scheduler")
except Exception as e:
context.logger.warning(
f"Failed to load scheduler config from {scheduler_dir} ({e}); "
- f"falling back to {scheduler_cls.__name__} defaults."
+ f"falling back to {scheduler_cls.__name__} with the released ERNIE-Image "
+ f"shift={ERNIE_IMAGE_SHIFT}."
)
- return scheduler_cls()
+ return scheduler_cls(shift=ERNIE_IMAGE_SHIFT)
def _load_conditioning(
self,
diff --git a/invokeai/app/invocations/ernie_image/ernie_image_model_loader.py b/invokeai/app/invocations/ernie_image/ernie_image_model_loader.py
index eb63d7bdeb..19ca941570 100644
--- a/invokeai/app/invocations/ernie_image/ernie_image_model_loader.py
+++ b/invokeai/app/invocations/ernie_image/ernie_image_model_loader.py
@@ -1,4 +1,5 @@
import json
+from typing import Optional
from invokeai.app.invocations.baseinvocation import (
BaseInvocation,
@@ -16,7 +17,14 @@ from invokeai.app.invocations.model import (
VAEField,
)
from invokeai.app.services.shared.invocation_context import InvocationContext
-from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType, SubModelType
+from invokeai.backend.architectures import accepted_vae_bases
+from invokeai.backend.model_manager.taxonomy import (
+ BaseModelType,
+ MistralVariantType,
+ ModelFormat,
+ ModelType,
+ SubModelType,
+)
@invocation_output("ernie_image_model_loader_output")
@@ -50,20 +58,46 @@ class ErnieImageModelLoaderInvocation(BaseInvocation):
"""
model: ModelIdentifierField = InputField(
- description="ERNIE-Image diffusers pipeline (provides transformer, VAE, text encoder, and optional prompt enhancer)",
+ description="ERNIE-Image model. A diffusers pipeline provides every submodel; a single-file "
+ "transformer needs a text encoder and a VAE selected below.",
input=Input.Direct,
ui_model_base=BaseModelType.ErnieImage,
ui_model_type=ModelType.Main,
title="ERNIE-Image Model",
)
+ text_encoder_model: Optional[ModelIdentifierField] = InputField(
+ default=None,
+ description="Standalone Ministral 3B text encoder. Required when the model is a single-file transformer.",
+ input=Input.Direct,
+ ui_model_type=ModelType.MistralEncoder,
+ title="Text Encoder",
+ )
+
+ vae_model: Optional[ModelIdentifierField] = InputField(
+ default=None,
+ description="Standalone VAE (AutoencoderKLFlux2, the one ERNIE-Image shares with FLUX.2). "
+ "Required when the model is a single-file transformer.",
+ input=Input.Direct,
+ ui_model_base=accepted_vae_bases(BaseModelType.ErnieImage),
+ ui_model_type=ModelType.VAE,
+ title="VAE",
+ )
+
use_prompt_enhancer: bool = InputField(
default=True,
- description="If true and the pipeline ships with a prompt-enhancer submodel, expose it on the output.",
+ description="If true and the pipeline ships with a prompt-enhancer submodel, expose it on the output. "
+ "Single-file transformers carry no prompt enhancer.",
title="Use Prompt Enhancer",
)
def invoke(self, context: InvocationContext) -> ErnieImageModelLoaderOutput:
+ config = context.models.get_config(self.model)
+ is_single_file = config.format is ModelFormat.Checkpoint
+
+ if is_single_file:
+ return self._load_from_single_file(context)
+
transformer = self.model.model_copy(update={"submodel_type": SubModelType.Transformer})
vae = self.model.model_copy(update={"submodel_type": SubModelType.VAE})
tokenizer = self.model.model_copy(update={"submodel_type": SubModelType.Tokenizer})
@@ -82,6 +116,49 @@ class ErnieImageModelLoaderInvocation(BaseInvocation):
prompt_enhancer=prompt_enhancer,
)
+ def _load_from_single_file(self, context: InvocationContext) -> ErnieImageModelLoaderOutput:
+ """A single file holds the transformer alone, so its companions are chosen on this node.
+
+ The prompt enhancer is not among them: it is a Ministral3 language model that only the
+ diffusers pipeline ships, and the model manager has no standalone type for it.
+ """
+ missing = [
+ title
+ for title, field in (("Text Encoder", self.text_encoder_model), ("VAE", self.vae_model))
+ if field is None
+ ]
+ if missing:
+ raise ValueError(
+ f"A single-file ERNIE-Image transformer needs {' and '.join(missing)} selected on this node. "
+ "Install the standalone Ministral 3B encoder and the FLUX.2 VAE, or select an ERNIE-Image "
+ "diffusers pipeline, which carries both."
+ )
+ assert self.text_encoder_model is not None and self.vae_model is not None
+
+ # Every Mistral encoder is installed under the same type, but ERNIE-Image conditions on
+ # Ministral 3B: half the width of the Mistral Small 3 encoders FLUX.2 uses. Selecting one of
+ # those otherwise fails as a shape mismatch deep inside denoising, long after the point
+ # where a user could see what they picked wrong.
+ encoder_variant = getattr(context.models.get_config(self.text_encoder_model), "variant", None)
+ if encoder_variant is not MistralVariantType.Ministral3B:
+ raise ValueError(
+ f"'{self.text_encoder_model.name}' is not the encoder ERNIE-Image conditions on. "
+ "It needs Ministral 3B (hidden size 3072); the Mistral Small 3 encoders that FLUX.2 "
+ "uses are 5120 wide and would fail with a shape mismatch during denoising."
+ )
+
+ return ErnieImageModelLoaderOutput(
+ transformer=TransformerField(
+ transformer=self.model.model_copy(update={"submodel_type": SubModelType.Transformer}), loras=[]
+ ),
+ text_encoder=Mistral3EncoderField(
+ tokenizer=self.text_encoder_model.model_copy(update={"submodel_type": SubModelType.Tokenizer}),
+ text_encoder=self.text_encoder_model.model_copy(update={"submodel_type": SubModelType.TextEncoder}),
+ ),
+ vae=VAEField(vae=self.vae_model.model_copy(update={"submodel_type": SubModelType.VAE})),
+ prompt_enhancer=None,
+ )
+
def _pipeline_has_prompt_enhancer(self, context: InvocationContext) -> bool:
"""Check whether the pipeline ships a *loadable* prompt-enhancer.
diff --git a/invokeai/backend/architectures/defs/ernie_image.py b/invokeai/backend/architectures/defs/ernie_image.py
index 0dfe7750d6..68ac30d881 100644
--- a/invokeai/backend/architectures/defs/ernie_image.py
+++ b/invokeai/backend/architectures/defs/ernie_image.py
@@ -5,6 +5,7 @@ from invokeai.backend.architectures.facets.default_settings import DefaultSettin
from invokeai.backend.architectures.facets.features import FeaturesFacet, NegativePrompt
from invokeai.backend.architectures.facets.latent_space import FLUX2_32, LatentSpaceFacet
from invokeai.backend.architectures.facets.modality import ModalityFacet
+from invokeai.backend.architectures.facets.vae import VaeCompatibility, VaeFacet
from invokeai.backend.architectures.registry import register
from invokeai.backend.model_manager.configs.default_settings import MainModelDefaultSettings
from invokeai.backend.model_manager.taxonomy import BaseModelType
@@ -25,6 +26,19 @@ register(
"turbo": MainModelDefaultSettings(scheduler="euler", steps=8, cfg_scale=1.0, width=1024, height=1024)
},
),
+ VaeFacet(
+ frozenset(
+ {
+ # ERNIE-Image decodes with AutoencoderKLFlux2 -- its pipeline says so, and Comfy-Org
+ # ships the FLUX.2 VAE file alongside the single-file transformer, byte-identical to
+ # the one FLUX.2 Klein ships. It is the only entry because no VAE config class can
+ # produce `ernie-image`: the released file identifies as a FLUX.2 VAE, and a record
+ # forced to this base by hand would fall through to the generic VAE loader, which
+ # cannot serve a `vae` submodel at all. Listing it would advertise a broken choice.
+ VaeCompatibility(BaseModelType.Flux2),
+ }
+ )
+ ),
# Text-to-image only.
ModalityFacet(frozenset({"txt2img"}), metadata_slug="ernie_image"),
# ernie_image_denoise takes a negative_conditioning that is 'required when
diff --git a/invokeai/backend/flux/schedulers.py b/invokeai/backend/flux/schedulers.py
index cd8c2378b3..aac35a5093 100644
--- a/invokeai/backend/flux/schedulers.py
+++ b/invokeai/backend/flux/schedulers.py
@@ -83,6 +83,13 @@ ERNIE_IMAGE_SCHEDULER_MAP: dict[str, Type[SchedulerMixin]] = {
if _HAS_LCM:
ERNIE_IMAGE_SCHEDULER_MAP["lcm"] = FlowMatchLCMScheduler
+# The shift both released ERNIE-Image pipelines ship in `scheduler/scheduler_config.json`
+# (base and Turbo alike), against diffusers' default of 1.0. Unlike Anima below, the ERNIE
+# driver hands the scheduler *raw* sigmas and relies on it to apply the shift, so this belongs
+# on the scheduler rather than being folded into the sigmas. A single-file checkpoint ships no
+# scheduler config at all, which is what makes the constant necessary.
+ERNIE_IMAGE_SHIFT = 4.0
+
# Anima scheduler types.
# Anima uses rectified flow with shift=3.0. The driver passes pre-shifted sigmas via
diff --git a/invokeai/backend/model_manager/configs/factory.py b/invokeai/backend/model_manager/configs/factory.py
index 677b86bdc5..dfdb8cb9d0 100644
--- a/invokeai/backend/model_manager/configs/factory.py
+++ b/invokeai/backend/model_manager/configs/factory.py
@@ -72,6 +72,7 @@ from invokeai.backend.model_manager.configs.lora import (
from invokeai.backend.model_manager.configs.main import (
Main_BnBNF4_FLUX_Config,
Main_Checkpoint_Anima_Config,
+ Main_Checkpoint_ErnieImage_Config,
Main_Checkpoint_Flux2_Config,
Main_Checkpoint_FLUX_Config,
Main_Checkpoint_Krea2_Config,
@@ -304,6 +305,7 @@ AnyModelConfig = Annotated[
Annotated[Main_Checkpoint_QwenImage_Config, Main_Checkpoint_QwenImage_Config.get_tag()],
Annotated[Main_Checkpoint_Wan_Config, Main_Checkpoint_Wan_Config.get_tag()],
Annotated[Main_Checkpoint_ZImage_Config, Main_Checkpoint_ZImage_Config.get_tag()],
+ Annotated[Main_Checkpoint_ErnieImage_Config, Main_Checkpoint_ErnieImage_Config.get_tag()],
Annotated[Main_Checkpoint_Krea2_Config, Main_Checkpoint_Krea2_Config.get_tag()],
Annotated[Main_Checkpoint_Anima_Config, Main_Checkpoint_Anima_Config.get_tag()],
Annotated[Main_Checkpoint_MiniMaxH3_Config, Main_Checkpoint_MiniMaxH3_Config.get_tag()],
diff --git a/invokeai/backend/model_manager/configs/main.py b/invokeai/backend/model_manager/configs/main.py
index 5e1b6c157f..27ef831b65 100644
--- a/invokeai/backend/model_manager/configs/main.py
+++ b/invokeai/backend/model_manager/configs/main.py
@@ -3330,7 +3330,52 @@ class Main_Diffusers_ErnieImage_Config(Diffusers_Config_Base, Main_Config_Base,
)
-# NOTE: There is deliberately no `Main_Checkpoint_ErnieImage_Config`. Single-file ERNIE-Image
-# checkpoints cannot be loaded yet (only the full diffusers pipeline layout is supported), and a
-# config that matches on install but raises on first generate would leave a permanently broken
-# entry in the Model Manager. Add it together with the checkpoint loader.
+def _has_ernie_image_keys(state_dict: dict[str | int, Any]) -> bool:
+ """Check if state dict contains ERNIE-Image transformer keys.
+
+ The single-file release carries the same keys as the diffusers checkpoint. Four of them
+ together are the fingerprint: `x_embedder.proj` (the patch projection, a conv), `text_proj` (the
+ Mistral3 conditioning projection), the model-level `adaLN_modulation.1` and `final_norm.linear`,
+ the output modulation no sibling architecture spells that way. Anima also has an
+ `x_embedder`, but it is identified by its `llm_adapter`, which ERNIE-Image does not have; the
+ text projection keeps this clear of Wan (`text_embedding.0` / `condition_embedder`), Qwen Image
+ (`txt_in`/`img_in`) and Z-Image (`cap_embedder`).
+ """
+ keys = state_dict.keys()
+ return all(
+ key in keys
+ for key in (
+ "x_embedder.proj.weight",
+ "text_proj.weight",
+ "adaLN_modulation.1.weight",
+ "final_norm.linear.weight",
+ )
+ )
+
+
+class Main_Checkpoint_ErnieImage_Config(Checkpoint_Config_Base, Main_Config_Base, Config_Base):
+ """Model config for ERNIE-Image single-file checkpoint models (safetensors).
+
+ ERNIE-Image and ERNIE-Image-Turbo share an architecture and a key layout, so a single file
+ cannot be told apart from its weights. The architecture's default settings pick the Turbo
+ numbers from the model name, exactly as they do for the diffusers pipelines.
+ """
+
+ base: Literal[BaseModelType.ErnieImage] = Field(default=BaseModelType.ErnieImage)
+ format: Literal[ModelFormat.Checkpoint] = Field(default=ModelFormat.Checkpoint)
+
+ @classmethod
+ def from_model_on_disk(cls, mod: ModelOnDisk, override_fields: dict[str, Any]) -> Self:
+ raise_if_not_file(mod)
+
+ raise_for_override_fields(cls, override_fields)
+
+ state_dict = mod.load_state_dict()
+
+ if not _has_ernie_image_keys(state_dict):
+ raise NotAMatchError("state dict does not look like an ERNIE-Image model")
+
+ if _has_ggml_tensors(state_dict):
+ raise NotAMatchError("state dict looks like GGUF quantized")
+
+ return cls(**override_fields)
diff --git a/invokeai/backend/model_manager/configs/mistral_encoder.py b/invokeai/backend/model_manager/configs/mistral_encoder.py
index 77dcf20582..bd37f25181 100644
--- a/invokeai/backend/model_manager/configs/mistral_encoder.py
+++ b/invokeai/backend/model_manager/configs/mistral_encoder.py
@@ -28,6 +28,18 @@ _MISTRAL_24B_NUM_LAYERS = 40
_COW_NUM_LAYERS = 30
_ACCEPTED_NUM_LAYERS = (_COW_NUM_LAYERS, _MISTRAL_24B_NUM_LAYERS)
+# ERNIE-Image's encoder is Ministral 3B — a different member of the Mistral family, not a
+# smaller Mistral Small 3. It is half as wide (3072) over 26 layers and uses YaRN RoPE, so the
+# loader builds it as ``Ministral3Model``; see ``MistralVariantType.Ministral3B``. Geometry is
+# what separates the families, which is why the width is part of the match rather than assumed.
+_MINISTRAL_3B_HIDDEN_SIZE = 3072
+_MINISTRAL_3B_NUM_LAYERS = 26
+
+_ACCEPTED_GEOMETRIES = (
+ f"hidden_size={_MISTRAL_3_HIDDEN_SIZE} with num_hidden_layers in {_ACCEPTED_NUM_LAYERS}, "
+ f"or hidden_size={_MINISTRAL_3B_HIDDEN_SIZE} with num_hidden_layers={_MINISTRAL_3B_NUM_LAYERS}"
+)
+
# Minimum vocab size to accept as a FLUX.2 Mistral encoder. Mistral Small 3's
# Tekken vocab is 131072 (shared by the 30-layer cow distillation). This gates out
# unrelated causal LMs that happen to share the 5120-hidden / 40-layer geometry —
@@ -85,16 +97,24 @@ def _has_ggml_tensors(state_dict: dict[str | int, Any]) -> bool:
def _count_mistral_layers(state_dict: dict[str | int, Any]) -> int:
- """Count transformer layers in a Mistral state dict.
+ """Count *language* transformer layers in a Mistral state dict.
Supports both transformers' ``model.layers.N.*`` layout and llama.cpp's
``blk.N.*`` layout. Returns 0 if no per-layer keys are present.
+
+ The Mistral3 stack nests a second transformer under ``vision_tower.``, whose layers are
+ counted by the same ``.layers.N.`` spelling. Today the vision tower is the shorter of the two
+ (Pixtral's 24 against the language tower's 26), so a plain maximum happens to land on the
+ right one -- but the count decides the variant, so it should not rest on which tower is
+ deeper.
"""
indices: set[int] = set()
for key in state_dict.keys():
if not isinstance(key, str):
continue
normalized = _normalize_probe_key(key)
+ if normalized.startswith(_MISTRAL3_STACK_PREFIXES):
+ continue
# transformers / diffusers: model.layers.N.* or language_model.model.layers.N.*
if ".layers." in normalized:
parts = normalized.split(".layers.", 1)[1].split(".", 1)
@@ -144,28 +164,82 @@ def _embed_vocab_size(state_dict: dict[str | int, Any]) -> int | None:
return shape[0] if shape is not None else None
-def _get_mistral_variant_from_state_dict(state_dict: dict[str | int, Any]) -> MistralVariantType | None:
- """Return the Mistral variant for a state dict, or ``None`` if unrecognized.
+def _variant_for_geometry(hidden_size: int | None, num_layers: int | None) -> MistralVariantType | None:
+ """Map a ``(hidden_size, num_layers)`` pair onto a variant, or ``None`` if unrecognized.
Recognized variants:
- 30-layer + hidden_size=5120 → ``MistralVariantType.Cow`` (BFL distillation)
- 40-layer + hidden_size=5120 → ``MistralVariantType.Mistral24B`` (BFL canonical / upstream Mistral Small 3.x)
+ - 26-layer + hidden_size=3072 → ``MistralVariantType.Ministral3B`` (ERNIE-Image)
+
+ Shared by the state-dict and ``config.json`` probes so the two can never recognize
+ different sets of encoders.
+ """
+ if hidden_size == _MISTRAL_3_HIDDEN_SIZE:
+ if num_layers == _COW_NUM_LAYERS:
+ return MistralVariantType.Cow
+ if num_layers == _MISTRAL_24B_NUM_LAYERS:
+ return MistralVariantType.Mistral24B
+ return None
+ if hidden_size == _MINISTRAL_3B_HIDDEN_SIZE and num_layers == _MINISTRAL_3B_NUM_LAYERS:
+ return MistralVariantType.Ministral3B
+ return None
+
+
+# ERNIE-Image ships two files of identical Ministral 3B geometry in one folder: the text encoder
+# and the prompt enhancer (`Ministral3ForCausalLM`), which rewrites prompts and conditions nothing.
+# Both carry the embedded Tekken vocab and the same 236 `model.*` tensors, so neither the vocab
+# floor nor the geometry separates them. What does: the encoder is the full Mistral3 multimodal
+# stack and ships the Pixtral vision tower the loader later drops, while the enhancer is a bare
+# language model. Requiring the tower is what keeps the enhancer from installing as an encoder and
+# then conditioning every prompt with the wrong weights. The cost is that a vision-stripped
+# repackaging is not recognized -- a visible failure, where the alternative is a silent one.
+_MISTRAL3_STACK_PREFIXES = ("vision_tower.", "multi_modal_projector.")
+
+
+def _has_mistral3_vision_stack(state_dict: dict[str | int, Any]) -> bool:
+ """Whether the file carries the Mistral3 multimodal stack around its language tower."""
+ return any(
+ isinstance(key, str) and _normalize_probe_key(key).startswith(_MISTRAL3_STACK_PREFIXES) for key in state_dict
+ )
+
+
+PROMPT_ENHANCER_REFUSAL = (
+ "this is ERNIE-Image's prompt enhancer, not its text encoder: the same Ministral 3B geometry, "
+ "but without the vision tower the encoder ships. The enhancer only runs as part of an "
+ "ERNIE-Image diffusers pipeline; for a single-file transformer install "
+ "text_encoders/ministral-3-3b.safetensors instead."
+)
+"""Named so the refusal can be asserted, and because the generic geometry message is actively
+misleading here: it would list Ministral's 3072/26 among the *expected* geometries, which is
+exactly what this file has."""
+
+
+def _is_ministral_language_model_only(state_dict: dict[str | int, Any]) -> bool:
+ """Ministral 3B geometry with no multimodal stack -- ERNIE-Image's prompt enhancer."""
+ vocab_size = _embed_vocab_size(state_dict)
+ if vocab_size is None or vocab_size < _MISTRAL_3_MIN_VOCAB_SIZE:
+ return False
+ geometry = _variant_for_geometry(_embed_hidden_size(state_dict), _count_mistral_layers(state_dict))
+ return geometry is MistralVariantType.Ministral3B and not _has_mistral3_vision_stack(state_dict)
+
+
+def _get_mistral_variant_from_state_dict(state_dict: dict[str | int, Any]) -> MistralVariantType | None:
+ """Return the Mistral variant for a state dict, or ``None`` if unrecognized.
The vocab-size floor rejects unrelated causal LMs (e.g. Llama-2-13B) that share
the 5120-hidden / 40-layer geometry and llama.cpp key names but are not Mistral
- Small 3 encoders — without it they would install and emit garbage embeddings.
+ Small 3 encoders — without it they would install and emit garbage embeddings. Both
+ accepted families share the 131072-entry Tekken vocab, so one floor covers them.
"""
- if _embed_hidden_size(state_dict) != _MISTRAL_3_HIDDEN_SIZE:
- return None
vocab_size = _embed_vocab_size(state_dict)
if vocab_size is None or vocab_size < _MISTRAL_3_MIN_VOCAB_SIZE:
return None
- num_layers = _count_mistral_layers(state_dict)
- if num_layers == _COW_NUM_LAYERS:
- return MistralVariantType.Cow
- if num_layers == _MISTRAL_24B_NUM_LAYERS:
- return MistralVariantType.Mistral24B
- return None
+ variant = _variant_for_geometry(_embed_hidden_size(state_dict), _count_mistral_layers(state_dict))
+ if variant is MistralVariantType.Ministral3B and not _has_mistral3_vision_stack(state_dict):
+ # ERNIE-Image's prompt enhancer has this exact geometry; only the tower tells them apart.
+ return None
+ return variant
def _get_mistral_variant_from_config(config_path) -> MistralVariantType | None:
@@ -186,13 +260,7 @@ def _get_mistral_variant_from_config(config_path) -> MistralVariantType | None:
if num_layers is None:
num_layers = text_config.get("num_hidden_layers")
- if hidden_size != _MISTRAL_3_HIDDEN_SIZE:
- return None
- if num_layers == _COW_NUM_LAYERS:
- return MistralVariantType.Cow
- if num_layers == _MISTRAL_24B_NUM_LAYERS:
- return MistralVariantType.Mistral24B
- return None
+ return _variant_for_geometry(hidden_size, num_layers)
class MistralEncoder_Diffusers_Config(Config_Base):
@@ -250,14 +318,19 @@ class MistralEncoder_Diffusers_Config(Config_Base):
"Mistral3ForConditionalGeneration",
"MistralModel",
"MistralForCausalLM",
+ # ERNIE-Image's released `text_encoder/` declares this one. Without it the folder a
+ # user can download straight from `baidu/ERNIE-Image` installs as Unknown, and the
+ # Ministral branch of the geometry probe below is unreachable.
+ # `Ministral3ForCausalLM` is deliberately absent: that is the prompt enhancer, a
+ # different model that happens to share the encoder's geometry.
+ "Mistral3Model",
},
)
variant = _get_mistral_variant_from_config(expected_config_path)
if variant is None:
raise NotAMatchError(
- f"config.json does not describe a recognized Mistral variant "
- f"(expected hidden_size={_MISTRAL_3_HIDDEN_SIZE} and num_hidden_layers in {_ACCEPTED_NUM_LAYERS})."
+ f"config.json does not describe a recognized Mistral variant (expected {_ACCEPTED_GEOMETRIES})."
)
return cls(variant=variant, **override_fields)
@@ -292,12 +365,13 @@ class MistralEncoder_Checkpoint_Config(Checkpoint_Config_Base, Config_Base):
raise NotAMatchError("state dict looks like GGUF quantized")
variant = _get_mistral_variant_from_state_dict(state_dict)
+ if variant is None and _is_ministral_language_model_only(state_dict):
+ raise NotAMatchError(PROMPT_ENHANCER_REFUSAL)
if variant is None:
raise NotAMatchError(
f"unrecognized Mistral geometry (got hidden_size={_embed_hidden_size(state_dict)}, "
f"vocab_size={_embed_vocab_size(state_dict)}, layers={_count_mistral_layers(state_dict)}). "
- f"Expected hidden_size={_MISTRAL_3_HIDDEN_SIZE}, vocab_size>={_MISTRAL_3_MIN_VOCAB_SIZE} "
- f"and num_hidden_layers in {_ACCEPTED_NUM_LAYERS}."
+ f"Expected vocab_size>={_MISTRAL_3_MIN_VOCAB_SIZE} and {_ACCEPTED_GEOMETRIES}."
)
return cls(variant=variant, **override_fields)
@@ -331,12 +405,16 @@ class MistralEncoder_GGUF_Config(Checkpoint_Config_Base, Config_Base):
raise NotAMatchError("state dict does not look like GGUF quantized")
variant = _get_mistral_variant_from_state_dict(state_dict)
+ if variant is MistralVariantType.Ministral3B:
+ # The GGUF loader builds a `MistralModel` with RoPE read from GGUF metadata. Ministral
+ # 3B needs `Ministral3Model` -- YaRN scaling plus a position-dependent attention scale --
+ # so accepting one here would install a model that loads cleanly and encodes garbage.
+ raise NotAMatchError("Ministral 3B GGUF encoders are not supported")
if variant is None:
raise NotAMatchError(
f"unrecognized Mistral geometry (got hidden_size={_embed_hidden_size(state_dict)}, "
f"vocab_size={_embed_vocab_size(state_dict)}, layers={_count_mistral_layers(state_dict)}). "
- f"Expected hidden_size={_MISTRAL_3_HIDDEN_SIZE}, vocab_size>={_MISTRAL_3_MIN_VOCAB_SIZE} "
- f"and num_hidden_layers in {_ACCEPTED_NUM_LAYERS}."
+ f"Expected vocab_size>={_MISTRAL_3_MIN_VOCAB_SIZE} and {_ACCEPTED_GEOMETRIES}."
)
return cls(variant=variant, **override_fields)
diff --git a/invokeai/backend/model_manager/load/model_loaders/ernie_image.py b/invokeai/backend/model_manager/load/model_loaders/ernie_image.py
index 1470f7eff2..91a9c55ae7 100644
--- a/invokeai/backend/model_manager/load/model_loaders/ernie_image.py
+++ b/invokeai/backend/model_manager/load/model_loaders/ernie_image.py
@@ -1,11 +1,16 @@
# Copyright (c) 2026, Lincoln D. Stein and the InvokeAI Development Team
-"""Loader for Baidu ERNIE-Image diffusers pipelines."""
+"""Loaders for Baidu ERNIE-Image: diffusers pipelines and single-file transformers."""
from pathlib import Path
from typing import Optional
+import accelerate
+import safetensors.torch
+
from invokeai.backend.model_manager.configs.base import Diffusers_Config_Base
from invokeai.backend.model_manager.configs.factory import AnyModelConfig
+from invokeai.backend.model_manager.configs.main import Main_Checkpoint_ErnieImage_Config
+from invokeai.backend.model_manager.load.load_default import ModelLoader
from invokeai.backend.model_manager.load.model_loader_registry import ModelLoaderRegistry
from invokeai.backend.model_manager.load.model_loaders.generic_diffusers import GenericDiffusersLoader
from invokeai.backend.model_manager.taxonomy import (
@@ -17,6 +22,24 @@ from invokeai.backend.model_manager.taxonomy import (
)
from invokeai.backend.util.devices import TorchDevice
+# The geometry of the released ERNIE-Image transformer, from the pipeline's `transformer/config.json`.
+# A single file carries no config, and `ErnieImageTransformer2DModel`'s own defaults describe a
+# smaller model (hidden 3072, 24 layers), so building from them would fail on every weight.
+ERNIE_IMAGE_TRANSFORMER_CONFIG = {
+ "hidden_size": 4096,
+ "num_attention_heads": 32,
+ "num_layers": 36,
+ "ffn_hidden_size": 12288,
+ "in_channels": 128,
+ "out_channels": 128,
+ "patch_size": 1,
+ "text_in_dim": 3072,
+ "rope_theta": 256,
+ "rope_axes_dim": (32, 48, 48),
+ "eps": 1e-06,
+ "qk_layernorm": True,
+}
+
@ModelLoaderRegistry.register(base=BaseModelType.ErnieImage, type=ModelType.Main, format=ModelFormat.Diffusers)
class ErnieImageDiffusersModel(GenericDiffusersLoader):
@@ -61,3 +84,44 @@ class ErnieImageDiffusersModel(GenericDiffusersLoader):
raise
return self._apply_fp8_layerwise_casting(result, config, submodel_type)
+
+
[email protected](base=BaseModelType.ErnieImage, type=ModelType.Main, format=ModelFormat.Checkpoint)
+class ErnieImageCheckpointModel(ModelLoader):
+ """Loads an ERNIE-Image transformer from a single safetensors file.
+
+ The file holds the transformer alone, under the same keys as the diffusers checkpoint. Its text
+ encoder, VAE and (optional) prompt enhancer are separate models, chosen on the loader node.
+ """
+
+ def _load_model(
+ self,
+ config: AnyModelConfig,
+ submodel_type: Optional[SubModelType] = None,
+ ) -> AnyModel:
+ if not isinstance(config, Main_Checkpoint_ErnieImage_Config):
+ raise ValueError(f"Expected Main_Checkpoint_ErnieImage_Config, got {type(config).__name__}.")
+ if submodel_type is not None and submodel_type is not SubModelType.Transformer:
+ raise ValueError(
+ f"A single-file ERNIE-Image checkpoint holds only the transformer, not {submodel_type.value}. "
+ "Select a standalone text encoder and VAE on the ERNIE-Image model loader."
+ )
+
+ from diffusers import ErnieImageTransformer2DModel
+
+ target_device = TorchDevice.choose_torch_device()
+ model_dtype = TorchDevice.choose_bfloat16_safe_dtype(target_device)
+
+ sd = safetensors.torch.load_file(Path(config.path))
+ self._ram_cache.make_room(sum(t.nelement() * model_dtype.itemsize for t in sd.values()))
+ for key in sd:
+ sd[key] = sd[key].to(model_dtype)
+
+ with accelerate.init_empty_weights():
+ model = ErnieImageTransformer2DModel(**ERNIE_IMAGE_TRANSFORMER_CONFIG)
+ model.load_state_dict(sd, assign=True)
+ # `assign=True` aliases every parameter to its state dict tensor, so the dict would keep a
+ # second reference to the whole model alive through the fp8 cast below.
+ sd.clear()
+
+ return self._apply_fp8_layerwise_casting(model, config, SubModelType.Transformer)
diff --git a/invokeai/backend/model_manager/load/model_loaders/mistral_encoder.py b/invokeai/backend/model_manager/load/model_loaders/mistral_encoder.py
index d751a209e6..a2aee91e5a 100644
--- a/invokeai/backend/model_manager/load/model_loaders/mistral_encoder.py
+++ b/invokeai/backend/model_manager/load/model_loaders/mistral_encoder.py
@@ -7,6 +7,11 @@ text encoder. The diffusers release wraps it in the multimodal
(Comfy-Org bf16/fp8/fp4) and GGUF redistributions (gguf-org cow variants) ship
only the text tower, which we load as an encoder-only ``MistralModel``.
+ERNIE-Image encodes its prompts with a different member of the family: Ministral
+3B (26 layers, hidden_size 3072, YaRN RoPE), which loads as ``Ministral3Model``.
+The variant recorded at install time decides which of the two a single file
+becomes — see ``MistralVariantType``.
+
Both single-file packagings embed the canonical Tekken tokenizer as a U8 tensor
named ``tekken_model`` (~19 MB). When ``mistral_common`` is installed we use
that embedded tokenizer directly; otherwise we fall back to fetching the
@@ -15,11 +20,19 @@ tokenizer from ``black-forest-labs/FLUX.2-dev`` via HuggingFace.
import re
from pathlib import Path
-from typing import Any, Optional
+from typing import Any, NamedTuple, Optional
import accelerate
import torch
-from transformers import AutoProcessor, AutoTokenizer, MistralConfig, MistralModel
+from transformers import (
+ AutoProcessor,
+ AutoTokenizer,
+ Ministral3Config,
+ Ministral3Model,
+ MistralCommonBackend,
+ MistralConfig,
+ MistralModel,
+)
from invokeai.backend.model_manager.configs.factory import AnyModelConfig
from invokeai.backend.model_manager.configs.mistral_encoder import (
@@ -75,12 +88,90 @@ _COW_MAX_POSITION_EMBEDDINGS = 131072
_COW_ROPE_THETA = 1000000000.0 # 1e9 — matches BFL FLUX.2-dev/text_encoder/config.json
_COW_RMS_NORM_EPS = 1e-5
+# Ministral 3B, ERNIE-Image's text encoder, from the ``text_config`` of
+# ``baidu/ERNIE-Image``'s ``text_encoder/config.json``. Only what the weights cannot reveal is
+# pinned here. The context length is simply the released value: transformers scales YaRN by the
+# explicit ``factor``, not by ``max_position_embeddings / original_max_position_embeddings``, so a
+# different number would not move the sigmas -- it would only make transformers warn that the two
+# disagree.
+_MINISTRAL_3B_HEAD_DIM = 128
+_MINISTRAL_3B_MAX_POSITION_EMBEDDINGS = 262144
+_MINISTRAL_3B_RMS_NORM_EPS = 1e-5
+
+# ERNIE-Image's released `tokenizer/tokenizer_config.json` truncates at this length. The
+# mistral-common backend we build from the embedded vocab carries no limit of its own, so a long
+# prompt would otherwise be encoded in full where the release would have cut it.
+_MINISTRAL_3B_MAX_PROMPT_TOKENS = 2048
+
# HuggingFace fallback for the tokenizer when the model file doesn't embed
# tekken_model (older cow GGUFs without the embedded blob, or a diffusers folder
# without a sibling tokenizer/). We only need the BFL canonical source — upstream
# Mistral tokenizers (3.1 / 3.2) don't match BFL's chat template exactly.
_TOKENIZER_FALLBACK_SOURCE: tuple[str, str] = ("black-forest-labs/FLUX.2-dev", "tokenizer")
+# The same fallback for Ministral 3B. BFL's tokenizer is the wrong vocab for it, and ERNIE-Image
+# publishes its own. Only reached when the encoder file embeds no Tekken blob — the released one
+# does, so this is the path for repackaged files.
+_ERNIE_TOKENIZER_FALLBACK_SOURCE: tuple[str, str] = ("baidu/ERNIE-Image", "tokenizer")
+
+
+class _TokenizerPolicy(NamedTuple):
+ """How one encoder family's tokenizer is built, and where its fallback comes from.
+
+ ``flux2_template`` selects the *form*: the raw-text adapter that splices FLUX.2's structural
+ markers as single Tekken ids, or a plain HuggingFace tokenizer. The two are not
+ interchangeable -- the adapter is no ``PreTrainedTokenizerBase`` and returns padded tensors
+ rather than id lists -- so the choice is made once, here, per variant.
+ """
+
+ flux2_template: bool
+ fallback_source: tuple[str, str]
+
+
+# Exhaustive over `MistralVariantType` on purpose. Deriving this by exclusion (`is not Ministral3B`)
+# would hand every future variant the FLUX.2 path by default, which either fails in the conditioning
+# node or, on a FLUX.2-shaped one, conditions off-distribution with no error at all.
+_TOKENIZER_POLICIES: dict[MistralVariantType, _TokenizerPolicy] = {
+ MistralVariantType.Cow: _TokenizerPolicy(True, _TOKENIZER_FALLBACK_SOURCE),
+ MistralVariantType.Mistral24B: _TokenizerPolicy(True, _TOKENIZER_FALLBACK_SOURCE),
+ MistralVariantType.Ministral3B: _TokenizerPolicy(False, _ERNIE_TOKENIZER_FALLBACK_SOURCE),
+}
+
+
+def _tokenizer_policy(variant: MistralVariantType) -> _TokenizerPolicy:
+ """The tokenizer policy for a variant, refusing loudly when a new one has none."""
+ policy = _TOKENIZER_POLICIES.get(variant)
+ if policy is None:
+ raise NotImplementedError(
+ f"No tokenizer policy for Mistral variant '{variant.value}'. Add one to "
+ "_TOKENIZER_POLICIES: the FLUX.2 template adapter and a plain HuggingFace tokenizer "
+ "encode differently, and defaulting to either silently degrades conditioning."
+ )
+ return policy
+
+
+def _shape_of(tensor: Any) -> Any:
+ """Tensor shape, read through GGUF's quantized wrapper when there is one."""
+ return tensor.tensor_shape if isinstance(tensor, GGMLTensor) else tensor.shape
+
+
+def _mistral_layer_indices(state_dict: dict[str, Any]) -> set[int]:
+ """Layer indices present in a ``model.layers.N.*`` state dict.
+
+ Shared by both config builders so a fix to the scan cannot land in only one of them. What they
+ do when it comes back empty stays with each: a deliberate policy difference, not an accident.
+ """
+ indices: set[int] = set()
+ for key in state_dict:
+ if not isinstance(key, str) or not key.startswith("model.layers."):
+ continue
+ if ".self_attn.q_proj.weight" not in key:
+ continue
+ parts = key.split(".")
+ if len(parts) > 2 and parts[2].isdigit():
+ indices.add(int(parts[2]))
+ return indices
+
def _build_mistral_config(
state_dict: dict[str, Any],
@@ -96,23 +187,13 @@ def _build_mistral_config(
metadata); otherwise we fall back to cow defaults.
"""
# Vocab and hidden_size come from embed_tokens.
- embed_key = "model.embed_tokens.weight" if "model.embed_tokens.weight" in state_dict else None
- if embed_key is None:
+ embed = state_dict.get("model.embed_tokens.weight")
+ if embed is None:
raise ValueError("State dict does not contain model.embed_tokens.weight")
- embed = state_dict[embed_key]
- embed_shape = embed.tensor_shape if isinstance(embed, GGMLTensor) else embed.shape
+ embed_shape = _shape_of(embed)
vocab_size, hidden_size = int(embed_shape[0]), int(embed_shape[1])
- # Count layers by scanning self_attn.q_proj keys.
- layer_indices: set[int] = set()
- for key in state_dict.keys():
- if not isinstance(key, str):
- continue
- if key.startswith("model.layers.") and ".self_attn.q_proj.weight" in key:
- try:
- layer_indices.add(int(key.split(".")[2]))
- except (ValueError, IndexError):
- pass
+ layer_indices = _mistral_layer_indices(state_dict)
num_hidden_layers = (max(layer_indices) + 1) if layer_indices else _COW_NUM_HIDDEN_LAYERS
# Derive head counts from the first layer's attention projections.
@@ -121,9 +202,9 @@ def _build_mistral_config(
gate_proj = state_dict.get("model.layers.0.mlp.gate_proj.weight")
head_dim = _COW_HEAD_DIM
if q_proj is not None and k_proj is not None and gate_proj is not None:
- q_shape = q_proj.tensor_shape if isinstance(q_proj, GGMLTensor) else q_proj.shape
- k_shape = k_proj.tensor_shape if isinstance(k_proj, GGMLTensor) else k_proj.shape
- gate_shape = gate_proj.tensor_shape if isinstance(gate_proj, GGMLTensor) else gate_proj.shape
+ q_shape = _shape_of(q_proj)
+ k_shape = _shape_of(k_proj)
+ gate_shape = _shape_of(gate_proj)
num_attention_heads = int(q_shape[0]) // head_dim
num_key_value_heads = int(k_shape[0]) // head_dim
intermediate_size = int(gate_shape[0])
@@ -146,7 +227,54 @@ def _build_mistral_config(
rope_theta=rope_theta or _COW_ROPE_THETA,
attention_bias=False,
attention_dropout=0.0,
- torch_dtype=torch_dtype,
+ dtype=torch_dtype,
+ )
+
+
+def _build_ministral3_config(state_dict: dict[str, Any], torch_dtype: torch.dtype) -> Ministral3Config:
+ """Build a ``Ministral3Config`` for ERNIE-Image's encoder from its state dict.
+
+ The geometry is read from the weights. The RoPE settings are left to ``Ministral3Config``'s
+ own defaults, which reproduce the released ``text_encoder/config.json`` exactly -- YaRN,
+ theta 1e6, factor 16, original context 16384, ``llama_4_scaling_beta`` 0.1. Restating them
+ here would be a second copy, free to drift from the implementation that consumes it; a test
+ pins the defaults against the released values instead.
+
+ Unlike ``_build_mistral_config`` this refuses to substitute nominal geometry for shapes it
+ cannot find: that builder also serves GGUFs, whose projections it may legitimately miss,
+ whereas here a wrong guess yields a model that loads cleanly and encodes garbage. Tensors are
+ plain ``torch.Tensor``s -- this path never sees GGUF's quantized wrapper.
+ """
+ required = (
+ "model.embed_tokens.weight",
+ "model.layers.0.self_attn.q_proj.weight",
+ "model.layers.0.self_attn.k_proj.weight",
+ "model.layers.0.mlp.gate_proj.weight",
+ )
+ missing = [key for key in required if key not in state_dict]
+ if missing:
+ raise ValueError(f"Ministral 3B state dict is missing {', '.join(missing)}")
+ embed, q_proj, k_proj, gate_proj = (state_dict[key] for key in required)
+ layer_indices = _mistral_layer_indices(state_dict)
+
+ # hidden_size is 3072 while the 32 heads are 128 wide, so head_dim cannot be inferred from the
+ # width the way it can for the Mistral Small 3 encoders.
+ head_dim = _MINISTRAL_3B_HEAD_DIM
+ return Ministral3Config(
+ vocab_size=int(_shape_of(embed)[0]),
+ hidden_size=int(_shape_of(embed)[1]),
+ intermediate_size=int(_shape_of(gate_proj)[0]),
+ num_hidden_layers=max(layer_indices) + 1,
+ num_attention_heads=int(_shape_of(q_proj)[0]) // head_dim,
+ num_key_value_heads=int(_shape_of(k_proj)[0]) // head_dim,
+ head_dim=head_dim,
+ max_position_embeddings=_MINISTRAL_3B_MAX_POSITION_EMBEDDINGS,
+ rms_norm_eps=_MINISTRAL_3B_RMS_NORM_EPS,
+ # The released config ties them. The file ships no `lm_head` and the encoder-only model
+ # builds none, so this records the released intent rather than changing what loads.
+ tie_word_embeddings=True,
+ attention_dropout=0.0,
+ dtype=torch_dtype,
)
@@ -575,8 +703,13 @@ def _extract_tekken_bytes(model_path: Path) -> Optional[bytes]:
return None
-def _try_load_embedded_tekken(model_path: Path, logger: Any) -> Optional[AnyModel]:
- """Extract the embedded Tekken tokenizer and wrap it in the HF-compatible adapter.
+def _try_load_embedded_tekken(model_path: Path, logger: Any, *, flux2_template: bool) -> Optional[AnyModel]:
+ """Extract the embedded Tekken tokenizer in the form this encoder family needs.
+
+ FLUX.2's encoders get the raw-text adapter, which splices the template's structural markers
+ as single Tekken ids. An encoder with no chat template gets transformers' own mistral-common
+ backend instead: the same ids, but a real ``PreTrainedTokenizerBase`` returning plain id
+ lists, which is what the conditioning nodes accept.
Returns ``None`` (so callers fall through to HF) if:
- the file isn't a single-file container, or
@@ -602,25 +735,26 @@ def _try_load_embedded_tekken(model_path: Path, logger: Any) -> Optional[AnyMode
)
return None
- import os
+ import shutil
import tempfile
- fd, tmp_path = tempfile.mkstemp(suffix=".json", prefix="invokeai-tekken-")
+ # `MistralCommonBackend.from_pretrained` reads a *directory*, so stage the blob under the
+ # name it looks for. Both routes parse the file before returning, so the copy does not have
+ # to outlive this call.
+ tmp_dir = Path(tempfile.mkdtemp(prefix="invokeai-tekken-"))
try:
- with os.fdopen(fd, "wb") as f:
- f.write(tekken_bytes)
- mistral_tok = MistralTokenizer.from_file(tmp_path)
+ (tmp_dir / _TEKKEN_FILENAME).write_bytes(tekken_bytes)
+ if not flux2_template:
+ return _tekken_backend_from_dir(tmp_dir, f"the blob embedded in {model_path.name}", logger)
+ mistral_tok = MistralTokenizer.from_file(str(tmp_dir / _TEKKEN_FILENAME))
except Exception as e:
logger.warning(
f"Failed to load embedded Tekken tokenizer from {model_path.name}: {type(e).__name__}: {e}. "
- "Falling back to the HuggingFace BFL tokenizer."
+ "Falling back to the HuggingFace tokenizer."
)
return None
finally:
- try:
- os.unlink(tmp_path)
- except OSError:
- pass
+ shutil.rmtree(tmp_dir, ignore_errors=True)
logger.info(f"Loaded embedded Tekken tokenizer from {model_path.name}")
return _TekkenRawTextAdapter(mistral_tok)
@@ -655,8 +789,32 @@ def _tekken_adapter_from_file(tekken_path: Path, description: str, logger: Any)
return _TekkenRawTextAdapter(mistral_tok)
-def _try_load_tekken_from_dir(path: Path, description: str, logger: Any) -> Optional[AnyModel]:
- """Wrap a directory's standalone ``tekken.json`` in the raw-text adapter.
+def _tekken_backend_from_dir(path: Path, description: str, logger: Any) -> Optional[AnyModel]:
+ """Load a directory's ``tekken.json`` as transformers' mistral-common backend.
+
+ This is the non-FLUX.2 route. Without a chat template there are no structural markers to
+ splice, so the backend encodes correctly on its own -- checked id-for-id against
+ ERNIE-Image's released ``tokenizer.json`` -- while being a real ``PreTrainedTokenizerBase``
+ that returns id lists, which is what the conditioning nodes require. ``None`` on any failure,
+ so the caller keeps falling through the ladder.
+ """
+ try:
+ tokenizer = MistralCommonBackend.from_pretrained(
+ path, local_files_only=True, model_max_length=_MINISTRAL_3B_MAX_PROMPT_TOKENS
+ )
+ except Exception as e: # noqa: BLE001 - a probe rung must never kill the load
+ logger.warning(
+ f"Failed to load the Tekken tokenizer from {description}: {type(e).__name__}: {e}. "
+ "Falling through to the next tokenizer source."
+ )
+ return None
+
+ logger.info(f"Loaded Tekken tokenizer from {description} as {type(tokenizer).__name__}")
+ return tokenizer
+
+
+def _try_load_tekken_from_dir(path: Path, description: str, logger: Any, *, flux2_template: bool) -> Optional[AnyModel]:
+ """Load a directory's standalone ``tekken.json`` in the form this encoder family needs.
This rung must run *before* the `AutoProcessor` / `AutoTokenizer` probe. A directory holding
`tekken.json` next to a `config.json` (`model_type: "mistral3"`) — the layout of an official
@@ -668,12 +826,17 @@ def _try_load_tekken_from_dir(path: Path, description: str, logger: Any) -> Opti
tekken_path = path / _TEKKEN_FILENAME
if not tekken_path.is_file():
return None
+ if not flux2_template:
+ return _tekken_backend_from_dir(path, description, logger)
return _tekken_adapter_from_file(tekken_path, description, logger)
-def _normalize_tokenizer(obj: AnyModel, description: str, logger: Any) -> Optional[AnyModel]:
+def _normalize_tokenizer(obj: AnyModel, description: str, logger: Any, *, flux2_template: bool) -> Optional[AnyModel]:
"""Return a tokenizer safe to use for FLUX.2 conditioning, or ``None`` to keep falling.
+ Only applies to the encoders that consume FLUX.2's template. For the others a
+ mistral-common-backed tokenizer is exactly what we want and is returned untouched.
+
`AutoTokenizer` resolves a Tekken-carrying directory to a mistral-common-backed tokenizer
(`MistralCommonBackend` on transformers 5.x, `MistralCommonTokenizer` on 4.5x). Its
``__call__`` runs the raw BPE, so the template's structural markers become literal text
@@ -681,6 +844,9 @@ def _normalize_tokenizer(obj: AnyModel, description: str, logger: Any) -> Option
the underlying ``MistralTokenizer``, so re-wrap that in the same adapter the embedded-Tekken
rung uses; only when it cannot be reached do we discard the result and keep falling.
"""
+ if not flux2_template:
+ return obj
+
if not any(cls.__module__.endswith("tokenization_mistral_common") for cls in type(obj).__mro__):
return obj
@@ -730,7 +896,7 @@ def _log_tokenizer_probe_failure(loader_cls: Any, description: str, exc: Excepti
logger.warning(message)
-def _try_load_tokenizer_from_dir(path: Path, description: str, logger: Any) -> AnyModel | None:
+def _try_load_tokenizer_from_dir(path: Path, description: str, logger: Any, *, flux2_template: bool) -> AnyModel | None:
"""Try both loader classes against a local directory. Returns None if neither works."""
for loader_cls in _TOKENIZER_LOADER_CLASSES:
try:
@@ -738,7 +904,7 @@ def _try_load_tokenizer_from_dir(path: Path, description: str, logger: Any) -> A
except Exception as e: # noqa: BLE001 - a probe rung must never kill the load
_log_tokenizer_probe_failure(loader_cls, description, e, logger)
continue
- normalized = _normalize_tokenizer(obj, description, logger)
+ normalized = _normalize_tokenizer(obj, description, logger, flux2_template=flux2_template)
if normalized is None:
continue
logger.info(f"Loaded Mistral tokenizer from {description}: {type(normalized).__name__}")
@@ -746,9 +912,9 @@ def _try_load_tokenizer_from_dir(path: Path, description: str, logger: Any) -> A
return None
-def _load_tokenizer_from_hf(logger: Any) -> AnyModel:
- """Download / load the BFL canonical FLUX.2 tokenizer from HuggingFace."""
- source, subfolder = _TOKENIZER_FALLBACK_SOURCE
+def _load_tokenizer_from_hf(logger: Any, *, policy: _TokenizerPolicy) -> AnyModel:
+ """Download / load the canonical tokenizer for this encoder family from HuggingFace."""
+ source, subfolder = policy.fallback_source
attempts: list[str] = []
for local_only in (True, False):
for loader_cls in _TOKENIZER_LOADER_CLASSES:
@@ -759,7 +925,7 @@ def _load_tokenizer_from_hf(logger: Any) -> AnyModel:
_log_tokenizer_probe_failure(loader_cls, description, e, logger)
attempts.append(f"{loader_cls.__name__}(local_only={local_only}): {type(e).__name__}")
continue
- normalized = _normalize_tokenizer(obj, description, logger)
+ normalized = _normalize_tokenizer(obj, description, logger, flux2_template=policy.flux2_template)
if normalized is None:
attempts.append(f"{loader_cls.__name__}(local_only={local_only}): unusable {type(obj).__name__}")
continue
@@ -767,19 +933,23 @@ def _load_tokenizer_from_hf(logger: Any) -> AnyModel:
return normalized
raise RuntimeError(
- f"Could not load FLUX.2 Mistral tokenizer from {source}:{subfolder}. "
- "Workarounds: (1) install a Mistral encoder that embeds the Tekken tokenizer "
+ f"Could not load the Mistral tokenizer from {source}:{subfolder}. "
+ "Workarounds: (1) install an encoder that embeds the Tekken tokenizer "
"(Comfy-Org safetensors or gguf-org cow GGUFs) and `pip install mistral-common`, "
"(2) run once with internet access to populate the HF cache, or "
- "(3) pre-cache the tokenizer: "
- "`huggingface-cli download black-forest-labs/FLUX.2-dev --include 'tokenizer/*'`. "
+ f"(3) pre-cache the tokenizer: `huggingface-cli download {source} --include '{subfolder}/*'`. "
f"Tried: {'; '.join(attempts)}"
)
-def _load_tokenizer_for_model(model_path: Path, logger: Any) -> AnyModel:
+def _load_tokenizer_for_model(model_path: Path, logger: Any, variant: MistralVariantType) -> AnyModel:
"""Load a tokenizer matching the given Mistral encoder model path.
+ The variant decides the *form*, not just the source. FLUX.2's encoders consume a
+ pre-formatted template whose structural markers have to be spliced in as single Tekken ids,
+ which is what ``_TekkenRawTextAdapter`` exists for. Ministral 3B (ERNIE-Image) has no chat
+ template, so it takes a plain HuggingFace tokenizer over the same vocab instead.
+
Strategy (first hit wins):
1. **Embedded Tekken** — Comfy-Org safetensors and gguf-org cow GGUFs ship
@@ -793,11 +963,14 @@ def _load_tokenizer_for_model(model_path: Path, logger: Any) -> AnyModel:
4. **Root-directory processor / tokenizer files** — standalone downloads that
ship them alongside the encoder weights at the folder root. BFL-style
``model_type: "mistral3"`` layouts resolve only via ``AutoTokenizer``.
- 5. **BFL HuggingFace fallback** — fetches the canonical tokenizer from
- ``black-forest-labs/FLUX.2-dev/tokenizer``.
+ 5. **HuggingFace fallback** — fetches the canonical tokenizer for the family, BFL's for
+ FLUX.2 and ERNIE-Image's for Ministral 3B.
"""
+ policy = _tokenizer_policy(variant)
+ flux2_template = policy.flux2_template
+
# 1. Single-file with embedded Tekken
- embedded = _try_load_embedded_tekken(model_path, logger)
+ embedded = _try_load_embedded_tekken(model_path, logger, flux2_template=flux2_template)
if embedded is not None:
return embedded
@@ -807,13 +980,15 @@ def _load_tokenizer_for_model(model_path: Path, logger: Any) -> AnyModel:
# 2. A standalone tekken.json anywhere we would otherwise probe with transformers.
for probe_dir, description in ((tokenizer_dir, "sibling tokenizer/"), (model_path, "model root")):
if probe_dir.is_dir():
- tekken = _try_load_tekken_from_dir(probe_dir, description, logger)
+ tekken = _try_load_tekken_from_dir(probe_dir, description, logger, flux2_template=flux2_template)
if tekken is not None:
return tekken
# 3. Diffusers folder with sibling tokenizer/
if tokenizer_dir.exists():
- obj = _try_load_tokenizer_from_dir(tokenizer_dir, "sibling tokenizer/", logger)
+ obj = _try_load_tokenizer_from_dir(
+ tokenizer_dir, "sibling tokenizer/", logger, flux2_template=flux2_template
+ )
if obj is not None:
return obj
# Some diffusers folders ship the encoder weights as text_encoder/*.safetensors
@@ -821,16 +996,16 @@ def _load_tokenizer_for_model(model_path: Path, logger: Any) -> AnyModel:
text_encoder_dir = model_path / "text_encoder"
if text_encoder_dir.is_dir():
for st in sorted(text_encoder_dir.glob("*.safetensors")):
- embedded = _try_load_embedded_tekken(st, logger)
+ embedded = _try_load_embedded_tekken(st, logger, flux2_template=flux2_template)
if embedded is not None:
return embedded
# 4. Processor / tokenizer files alongside the encoder weights at the folder root.
- obj = _try_load_tokenizer_from_dir(model_path, "model root", logger)
+ obj = _try_load_tokenizer_from_dir(model_path, "model root", logger, flux2_template=flux2_template)
if obj is not None:
return obj
# 5. HF fallback
- return _load_tokenizer_from_hf(logger)
+ return _load_tokenizer_from_hf(logger, policy=policy)
@ModelLoaderRegistry.register(
@@ -868,7 +1043,7 @@ class MistralEncoderDiffusersLoader(ModelLoader):
logger = InvokeAILogger.get_logger("MistralEncoderProcessor")
# Let the multi-strategy loader own the full ladder: embedded Tekken,
# sibling tokenizer/, root-level processor files, then the HF fallback.
- return _load_tokenizer_for_model(model_path, logger)
+ return _load_tokenizer_for_model(model_path, logger, config.variant)
case SubModelType.TextEncoder:
# Lazy import: transformers may load `Mistral3ForConditionalGeneration`
# only when the diffusers/transformers version supports it.
@@ -926,7 +1101,7 @@ class MistralEncoderCheckpointLoader(ModelLoader):
return self._load_text_encoder(config)
case SubModelType.Tokenizer:
logger = InvokeAILogger.get_logger("MistralEncoderProcessor")
- return _load_tokenizer_for_model(Path(config.path), logger)
+ return _load_tokenizer_for_model(Path(config.path), logger, config.variant)
raise ValueError(
"Only Tokenizer and TextEncoder submodels are supported. "
@@ -944,6 +1119,18 @@ class MistralEncoderCheckpointLoader(ModelLoader):
sd = load_file(model_path)
sd = _strip_known_prefixes(sd)
+ # Comfy-Org's Ministral 3B file ships the full multimodal stack: a Pixtral vision tower and
+ # its projector, 222 tensors and ~0.9 GB. Only the language tower encodes prompts and the
+ # encoder-only model has no slot for the rest, so drop them before the dequantize/cast pass
+ # pays to convert weights that would then be reported as unexpected keys.
+ vision_keys = [
+ key for key in sd if isinstance(key, str) and key.startswith(("vision_tower.", "multi_modal_projector."))
+ ]
+ for key in vision_keys:
+ del sd[key]
+ if vision_keys:
+ logger.info(f"Mistral encoder: dropped {len(vision_keys)} vision-tower tensor(s); prompts use the LM only")
+
# These redistributions are ComfyUI 'scaled fp8': an fp8 weight plus a `weight_scale`.
# Folding the scale doubles the encoder -- 16.8 GiB on disk becomes 32.3 GiB in bf16, which
# does not fit on a 24 GB card even on its own. Keeping the weights quantized is therefore
@@ -976,11 +1163,22 @@ class MistralEncoderCheckpointLoader(ModelLoader):
for k in [k for k in sd if isinstance(k, str) and (k.endswith(".scale") or k.startswith("scaled_fp8"))]:
del sd[k]
- mistral_config = _build_mistral_config(sd, torch_dtype=model_dtype)
+ # Ministral 3B is a different architecture, not a smaller Mistral Small 3: YaRN RoPE and a
+ # position-dependent attention scale that only `Ministral3Model` applies. The variant was
+ # decided from the geometry at install time and is the single source of truth here.
+ encoder_config: MistralConfig | Ministral3Config
+ model_class: type[MistralModel] | type[Ministral3Model]
+ if config.variant is MistralVariantType.Ministral3B:
+ encoder_config = _build_ministral3_config(sd, torch_dtype=model_dtype)
+ model_class = Ministral3Model
+ else:
+ encoder_config = _build_mistral_config(sd, torch_dtype=model_dtype)
+ model_class = MistralModel
logger.info(
- f"Mistral encoder config (checkpoint): layers={mistral_config.num_hidden_layers}, "
- f"hidden={mistral_config.hidden_size}, heads={mistral_config.num_attention_heads}, "
- f"kv_heads={mistral_config.num_key_value_heads}, intermediate={mistral_config.intermediate_size}"
+ f"Mistral encoder config (checkpoint): variant={config.variant.value}, "
+ f"layers={encoder_config.num_hidden_layers}, hidden={encoder_config.hidden_size}, "
+ f"heads={encoder_config.num_attention_heads}, kv_heads={encoder_config.num_key_value_heads}, "
+ f"intermediate={encoder_config.intermediate_size}"
)
# Drop the LM head before casting: it's the single largest tensor (vocab × hidden),
@@ -998,7 +1196,7 @@ class MistralEncoderCheckpointLoader(ModelLoader):
}
with accelerate.init_empty_weights():
- model = MistralModel(mistral_config)
+ model = model_class(encoder_config)
# Layers the cast would dequantize anyway are folded here, scale applied, so the cast never
# strips a scale that can no longer be put back.
@@ -1026,7 +1224,7 @@ class MistralEncoderCheckpointLoader(ModelLoader):
continue
# Re-init any remaining meta buffers (e.g. RoPE inv_freq is computed from config).
- _reinit_inv_freq(model, mistral_config, model_dtype)
+ _reinit_inv_freq(model, encoder_config, model_dtype)
_materialize_remaining_meta_tensors(model, model_dtype, logger)
_strip_final_norm_for_cow(model, config.variant, logger)
@@ -1069,7 +1267,7 @@ class MistralEncoderGGUFLoader(ModelLoader):
return self._load_from_gguf(config)
case SubModelType.Tokenizer:
logger = InvokeAILogger.get_logger("MistralEncoderProcessor")
- return _load_tokenizer_for_model(Path(config.path), logger)
+ return _load_tokenizer_for_model(Path(config.path), logger, config.variant)
raise ValueError(
"Only Tokenizer and TextEncoder submodels are supported. "
diff --git a/invokeai/backend/model_manager/starter_models/__init__.py b/invokeai/backend/model_manager/starter_models/__init__.py
index a6f17efe61..cc281cd66f 100644
--- a/invokeai/backend/model_manager/starter_models/__init__.py
+++ b/invokeai/backend/model_manager/starter_models/__init__.py
@@ -56,7 +56,10 @@ from invokeai.backend.model_manager.starter_models.common import (
)
from invokeai.backend.model_manager.starter_models.ernie_image import (
ernie_image,
+ ernie_image_mistral_encoder,
+ ernie_image_single_file,
ernie_image_turbo,
+ ernie_image_turbo_single_file,
)
from invokeai.backend.model_manager.starter_models.external import (
alibabacloud_qwen_image_2,
@@ -390,6 +393,9 @@ STARTER_MODELS: list[StarterModel] = [
z_image_controlnet_tile,
ernie_image,
ernie_image_turbo,
+ ernie_image_single_file,
+ ernie_image_turbo_single_file,
+ ernie_image_mistral_encoder,
krea2_turbo,
krea2_raw,
krea2_turbo_gguf_q4_k_m,
diff --git a/invokeai/backend/model_manager/starter_models/ernie_image.py b/invokeai/backend/model_manager/starter_models/ernie_image.py
index 48ee173fcd..1639fa46a6 100644
--- a/invokeai/backend/model_manager/starter_models/ernie_image.py
+++ b/invokeai/backend/model_manager/starter_models/ernie_image.py
@@ -1,11 +1,26 @@
"""ERNIE-Image starter models."""
+from invokeai.backend.model_manager.starter_models.flux2 import flux2_vae
from invokeai.backend.model_manager.starter_models.types import StarterModel
from invokeai.backend.model_manager.taxonomy import (
BaseModelType,
ModelType,
)
+# Comfy-Org's single-file releases: the transformer alone, paired with a standalone encoder and
+# VAE. The prompt enhancer is only in the diffusers pipelines above.
+ernie_image_mistral_encoder = StarterModel(
+ name="ERNIE-Image Ministral Encoder",
+ base=BaseModelType.Any,
+ source="https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/text_encoders/ministral-3-3b.safetensors",
+ description=(
+ "Ministral 3B text encoder for the single-file ERNIE-Image transformers. A different "
+ "architecture from the Mistral Small 3 encoder FLUX.2 uses; the two are not "
+ "interchangeable. ~7.7GB"
+ ),
+ type=ModelType.MistralEncoder,
+)
+
# region ERNIE-Image
ernie_image = StarterModel(
name="ERNIE-Image",
@@ -28,3 +43,27 @@ ernie_image_turbo = StarterModel(
),
type=ModelType.Main,
)
+
+ernie_image_single_file = StarterModel(
+ name="ERNIE-Image (single file)",
+ base=BaseModelType.ErnieImage,
+ source="https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/diffusion_models/ernie-image.safetensors",
+ description=(
+ "Comfy-Org single-file ERNIE-Image transformer. Installs with the Ministral 3B encoder and the "
+ "FLUX.2 VAE; no prompt enhancer (the diffusers pipeline carries that). ~16GB"
+ ),
+ type=ModelType.Main,
+ dependencies=[ernie_image_mistral_encoder, flux2_vae],
+)
+
+ernie_image_turbo_single_file = StarterModel(
+ name="ERNIE-Image Turbo (single file)",
+ base=BaseModelType.ErnieImage,
+ source="https://huggingface.co/Comfy-Org/ERNIE-Image/resolve/main/diffusion_models/ernie-image-turbo.safetensors",
+ description=(
+ "Comfy-Org single-file ERNIE-Image-Turbo transformer, tuned for 8 steps with CFG disabled. "
+ "Installs with the Ministral 3B encoder and the FLUX.2 VAE. ~16GB"
+ ),
+ type=ModelType.Main,
+ dependencies=[ernie_image_mistral_encoder, flux2_vae],
+)
diff --git a/invokeai/backend/model_manager/taxonomy.py b/invokeai/backend/model_manager/taxonomy.py
index 22ce899c86..3ca8b5a17f 100644
--- a/invokeai/backend/model_manager/taxonomy.py
+++ b/invokeai/backend/model_manager/taxonomy.py
@@ -271,7 +271,7 @@ class MiniMaxH3VariantType(str, Enum):
class MistralVariantType(str, Enum):
- """Mistral text encoder variants used by FLUX.2 [dev]."""
+ """Mistral text encoder variants used by FLUX.2 [dev] and ERNIE-Image."""
Cow = "cow_mistral3_small"
"""The 30-layer BFL "cow-mistral3-small" distillation (hidden_size=5120).
@@ -289,6 +289,14 @@ class MistralVariantType(str, Enum):
weaker prompt adherence than the cow distillation, so the cow variants
remain the recommended default."""
+ Ministral3B = "ministral3_3b"
+ """The 26-layer Ministral 3B (hidden_size=3072) ERNIE-Image encodes its
+ prompts with. A different model family from the two above, not a smaller
+ build of them: it is loaded as ``Ministral3Model`` and uses YaRN RoPE
+ scaling, so the geometry alone decides the variant. The final RMSNorm is
+ kept — ERNIE reads the second-to-last hidden state, which the norm never
+ touches."""
+
class PiDDecoderVariantType(str, Enum):
"""PiD (Pixel Diffusion Decoder) resolution presets distributed by NVIDIA.
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index 7d60d4ed94..03b91db682 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -1422,6 +1422,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -1856,6 +1859,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -2290,6 +2296,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -2769,6 +2778,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -3275,6 +3287,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -4635,6 +4650,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -17215,6 +17233,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -29649,7 +29670,7 @@
},
"model": {
"$ref": "#/components/schemas/ModelIdentifierField",
- "description": "ERNIE-Image diffusers pipeline (provides transformer, VAE, text encoder, and optional prompt enhancer)",
+ "description": "ERNIE-Image model. A diffusers pipeline provides every submodel; a single-file transformer needs a text encoder and a VAE selected below.",
"field_kind": "input",
"input": "direct",
"orig_required": true,
@@ -29657,9 +29678,46 @@
"ui_model_base": ["ernie-image"],
"ui_model_type": ["main"]
},
+ "text_encoder_model": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ModelIdentifierField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Standalone Mistral3 text encoder. Required when the model is a single-file transformer.",
+ "field_kind": "input",
+ "input": "direct",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "Text Encoder",
+ "ui_model_type": ["mistral_encoder"]
+ },
+ "vae_model": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ModelIdentifierField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Standalone VAE (AutoencoderKLFlux2, the one ERNIE-Image shares with FLUX.2). Required when the model is a single-file transformer.",
+ "field_kind": "input",
+ "input": "direct",
+ "orig_default": null,
+ "orig_required": false,
+ "title": "VAE",
+ "ui_model_base": ["ernie-image", "flux2"],
+ "ui_model_type": ["vae"]
+ },
"use_prompt_enhancer": {
"default": true,
- "description": "If true and the pipeline ships with a prompt-enhancer submodel, expose it on the output.",
+ "description": "If true and the pipeline ships with a prompt-enhancer submodel, expose it on the output. Single-file transformers carry no prompt enhancer.",
"field_kind": "input",
"input": "any",
"orig_default": true,
@@ -62625,6 +62683,171 @@
"title": "Main_Checkpoint_Anima_Config",
"description": "Model config for Anima single-file checkpoint models (safetensors).\n\nAnima is built on NVIDIA Cosmos Predict2 DiT with a custom LLM Adapter\nthat bridges Qwen3 0.6B text encoder outputs to the DiT."
},
+ "Main_Checkpoint_ErnieImage_Config": {
+ "properties": {
+ "key": {
+ "type": "string",
+ "title": "Key",
+ "description": "A unique key for this model."
+ },
+ "hash": {
+ "type": "string",
+ "title": "Hash",
+ "description": "The hash of the model file(s)."
+ },
+ "path": {
+ "type": "string",
+ "title": "Path",
+ "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
+ },
+ "file_size": {
+ "type": "integer",
+ "title": "File Size",
+ "description": "The size of the model in bytes."
+ },
+ "name": {
+ "type": "string",
+ "title": "Name",
+ "description": "Name of the model."
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Description",
+ "description": "Model description"
+ },
+ "source": {
+ "type": "string",
+ "title": "Source",
+ "description": "The original source of the model (path, URL or repo_id)."
+ },
+ "source_type": {
+ "$ref": "#/components/schemas/ModelSourceType",
+ "description": "The type of source"
+ },
+ "source_api_response": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Source Api Response",
+ "description": "The original API response from the source, as stringified JSON."
+ },
+ "source_url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Source Url",
+ "description": "Optional URL for the model (e.g. download page or model page)."
+ },
+ "cover_image": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Cover Image",
+ "description": "Url for image to preview model"
+ },
+ "type": {
+ "type": "string",
+ "const": "main",
+ "title": "Type",
+ "default": "main"
+ },
+ "trigger_phrases": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "uniqueItems": true
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Trigger Phrases",
+ "description": "Set of trigger phrases for this model"
+ },
+ "default_settings": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/MainModelDefaultSettings"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Default settings for this model"
+ },
+ "config_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Config Path",
+ "description": "Path to the config for this model, if any."
+ },
+ "base": {
+ "type": "string",
+ "const": "ernie-image",
+ "title": "Base",
+ "default": "ernie-image"
+ },
+ "format": {
+ "type": "string",
+ "const": "checkpoint",
+ "title": "Format",
+ "default": "checkpoint"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "hash",
+ "path",
+ "file_size",
+ "name",
+ "description",
+ "source",
+ "source_type",
+ "source_api_response",
+ "source_url",
+ "cover_image",
+ "type",
+ "trigger_phrases",
+ "default_settings",
+ "config_path",
+ "base",
+ "format"
+ ],
+ "title": "Main_Checkpoint_ErnieImage_Config",
+ "description": "Model config for ERNIE-Image single-file checkpoint models (safetensors).\n\nERNIE-Image and ERNIE-Image-Turbo share an architecture and a key layout, so a single file\ncannot be told apart from its weights. The architecture's default settings pick the Turbo\nnumbers from the model name, exactly as they do for the diffusers pipelines."
+ },
"Main_Checkpoint_FLUX_Config": {
"properties": {
"key": {
@@ -75188,9 +75411,9 @@
},
"MistralVariantType": {
"type": "string",
- "enum": ["cow_mistral3_small", "mistral3_24b"],
+ "enum": ["cow_mistral3_small", "mistral3_24b", "ministral3_3b"],
"title": "MistralVariantType",
- "description": "Mistral text encoder variants used by FLUX.2 [dev]."
+ "description": "Mistral text encoder variants used by FLUX.2 [dev] and ERNIE-Image."
},
"ModelFormat": {
"type": "string",
@@ -75527,6 +75750,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -76207,6 +76433,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -76772,6 +77001,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -77193,6 +77425,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
@@ -78087,6 +78322,9 @@
{
"$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
},
+ {
+ "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
+ },
{
"$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
},
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index d78f592c02..9b2b770fbf 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -5032,7 +5032,7 @@ export type components = {
*/
type: "anima_text_encoder";
};
- AnyModelConfig: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ AnyModelConfig: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
/**
* AppVersion
* @description App Version Response
@@ -11428,12 +11428,24 @@ export type components = {
use_cache?: boolean;
/**
* ERNIE-Image Model
- * @description ERNIE-Image diffusers pipeline (provides transformer, VAE, text encoder, and optional prompt enhancer)
+ * @description ERNIE-Image model. A diffusers pipeline provides every submodel; a single-file transformer needs a text encoder and a VAE selected below.
*/
model: components["schemas"]["ModelIdentifierField"];
+ /**
+ * Text Encoder
+ * @description Standalone Mistral3 text encoder. Required when the model is a single-file transformer.
+ * @default null
+ */
+ text_encoder_model?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * VAE
+ * @description Standalone VAE (AutoencoderKLFlux2, the one ERNIE-Image shares with FLUX.2). Required when the model is a single-file transformer.
+ * @default null
+ */
+ vae_model?: components["schemas"]["ModelIdentifierField"] | null;
/**
* Use Prompt Enhancer
- * @description If true and the pipeline ships with a prompt-enhancer submodel, expose it on the output.
+ * @description If true and the pipeline ships with a prompt-enhancer submodel, expose it on the output. Single-file transformers carry no prompt enhancer.
* @default true
*/
use_prompt_enhancer?: boolean;
@@ -25583,6 +25595,98 @@ export type components = {
*/
format: "checkpoint";
};
+ /**
+ * Main_Checkpoint_ErnieImage_Config
+ * @description Model config for ERNIE-Image single-file checkpoint models (safetensors).
+ *
+ * ERNIE-Image and ERNIE-Image-Turbo share an architecture and a key layout, so a single file
+ * cannot be told apart from its weights. The architecture's default settings pick the Turbo
+ * numbers from the model name, exactly as they do for the diffusers pipelines.
+ */
+ Main_Checkpoint_ErnieImage_Config: {
+ /**
+ * Key
+ * @description A unique key for this model.
+ */
+ key: string;
+ /**
+ * Hash
+ * @description The hash of the model file(s).
+ */
+ hash: string;
+ /**
+ * Path
+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.
+ */
+ path: string;
+ /**
+ * File Size
+ * @description The size of the model in bytes.
+ */
+ file_size: number;
+ /**
+ * Name
+ * @description Name of the model.
+ */
+ name: string;
+ /**
+ * Description
+ * @description Model description
+ */
+ description: string | null;
+ /**
+ * Source
+ * @description The original source of the model (path, URL or repo_id).
+ */
+ source: string;
+ /** @description The type of source */
+ source_type: components["schemas"]["ModelSourceType"];
+ /**
+ * Source Api Response
+ * @description The original API response from the source, as stringified JSON.
+ */
+ source_api_response: string | null;
+ /**
+ * Source Url
+ * @description Optional URL for the model (e.g. download page or model page).
+ */
+ source_url: string | null;
+ /**
+ * Cover Image
+ * @description Url for image to preview model
+ */
+ cover_image: string | null;
+ /**
+ * Type
+ * @default main
+ * @constant
+ */
+ type: "main";
+ /**
+ * Trigger Phrases
+ * @description Set of trigger phrases for this model
+ */
+ trigger_phrases: string[] | null;
+ /** @description Default settings for this model */
+ default_settings: components["schemas"]["MainModelDefaultSettings"] | null;
+ /**
+ * Config Path
+ * @description Path to the config for this model, if any.
+ */
+ config_path: string | null;
+ /**
+ * Base
+ * @default ernie-image
+ * @constant
+ */
+ base: "ernie-image";
+ /**
+ * Format
+ * @default checkpoint
+ * @constant
+ */
+ format: "checkpoint";
+ };
/**
* Main_Checkpoint_FLUX_Config
* @description Model config for main checkpoint models.
@@ -32168,10 +32272,10 @@ export type components = {
};
/**
* MistralVariantType
- * @description Mistral text encoder variants used by FLUX.2 [dev].
+ * @description Mistral text encoder variants used by FLUX.2 [dev] and ERNIE-Image.
* @enum {string}
*/
- MistralVariantType: "cow_mistral3_small" | "mistral3_24b";
+ MistralVariantType: "cow_mistral3_small" | "mistral3_24b" | "ministral3_3b";
/**
* ModelFormat
* @description Storage format of model.
@@ -32314,7 +32418,7 @@ export type components = {
* Config
* @description The installed model's config
*/
- config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
/**
* ModelInstallDownloadProgressEvent
@@ -32480,7 +32584,7 @@ export type components = {
* Config Out
* @description After successful installation, this will hold the configuration object.
*/
- config_out?: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"]) | null;
+ config_out?: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"]) | null;
/**
* Inplace
* @description Leave model in its current location; otherwise install under models directory
@@ -32566,7 +32670,7 @@ export type components = {
* Config
* @description The model's config
*/
- config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
/**
* @description The submodel type, if any
* @default null
@@ -32593,7 +32697,7 @@ export type components = {
* Config
* @description The model's config
*/
- config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ config: components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
/**
* @description The submodel type, if any
* @default null
@@ -32820,7 +32924,7 @@ export type components = {
*/
ModelsList: {
/** Models */
- models: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"])[];
+ models: (components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"])[];
};
/**
* Multiply Integers
@@ -47705,7 +47809,7 @@ export interface operations {
[name: string]: unknown;
};
content: {
- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Validation Error */
@@ -47737,7 +47841,7 @@ export interface operations {
[name: string]: unknown;
};
content: {
- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Validation Error */
@@ -47789,7 +47893,7 @@ export interface operations {
* "upcast_attention": false
* }
*/
- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Bad request */
@@ -47903,7 +48007,7 @@ export interface operations {
* "upcast_attention": false
* }
*/
- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Bad request */
@@ -47976,7 +48080,7 @@ export interface operations {
* "upcast_attention": false
* }
*/
- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Bad request */
@@ -48735,7 +48839,7 @@ export interface operations {
* "upcast_attention": false
* }
*/
- "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_MiniMaxH3_Config"] | components["schemas"]["LoRA_LyCORIS_Wan_Config"] | components["schemas"]["LoRA_LyCORIS_Anima_Config"] | components["schemas"]["LoRA_OMI_SDXL_Config"] | components["schemas"]["LoRA_OMI_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_SD1_Config"] | components["schemas"]["LoRA_Diffusers_SD2_Config"] | components["schemas"]["LoRA_Diffusers_SDXL_Config"] | components["schemas"]["LoRA_Diffusers_Flux2_Config"] | components["schemas"]["LoRA_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_Diffusers_ZImage_Config"] | components["schemas"]["ControlLoRA_LyCORIS_FLUX_Config"] | components["schemas"]["T5Encoder_T5Encoder_Config"] | components["schemas"]["T5Encoder_BnBLLMint8_Config"] | components["schemas"]["T5Encoder_SDNQ_Config"] | components["schemas"]["T5Encoder_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Qwen3VLEncoder_Checkpoint_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen3Encoder_Qwen3Encoder_Config"] | components["schemas"]["Qwen3Encoder_Checkpoint_Config"] | components["schemas"]["Qwen3Encoder_GGUF_Config"] | components["schemas"]["Qwen3Encoder_SDNQ_Folder_Config"] | components["schemas"]["MistralEncoder_Diffusers_Config"] | components["schemas"]["MistralEncoder_Checkpoint_Config"] | components["schemas"]["MistralEncoder_GGUF_Config"] | components["schemas"]["Gemma2Encoder_Gemma2Encoder_Config"] | components["schemas"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Bad request */
diff --git a/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json b/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
index a9be598108..69ede25c7e 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
+++ b/invokeai/frontend/webv2/src/features/generation/core/__fixtures__/architectureCapabilities.json
@@ -135,7 +135,14 @@
"cpu_only": null,
"fp8_storage": null
},
- "vae": null
+ "vae": {
+ "accepted": [
+ {
+ "base": "flux2",
+ "latent_channels": null
+ }
+ ]
+ }
},
{
"base": "flux",
diff --git a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/generateGraphNodeTypes.json b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/generateGraphNodeTypes.json
index 42ef8d8eb5..c268a821d6 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/generateGraphNodeTypes.json
+++ b/invokeai/frontend/webv2/src/features/generation/core/__snapshots__/generateGraphNodeTypes.json
@@ -136,7 +136,10 @@
"ernie-image": {
"componentsFilled": {
"diffusers": [],
- "standalone-components": []
+ "standalone-components": [
+ "mistralEncoderModel",
+ "vae"
+ ]
},
"nodeTypes": [
"core_metadata",
@@ -712,12 +715,14 @@
true
],
"model": [],
+ "text_encoder_model": [],
"use_cache": [
true
],
"use_prompt_enhancer": [
false
- ]
+ ],
+ "vae_model": []
},
"outputs": [
"text_encoder",
diff --git a/invokeai/frontend/webv2/src/features/generation/core/baseGenerationPolicies.ts b/invokeai/frontend/webv2/src/features/generation/core/baseGenerationPolicies.ts
index 064aab6f32..0c0a36eb1f 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/baseGenerationPolicies.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/baseGenerationPolicies.ts
@@ -35,6 +35,7 @@ import {
isClipVariant,
isDiffusersMainForBase,
isFlux2DiffusersSourceForModel,
+ isErnieImageMistralEncoder,
isFlux2MistralEncoder,
isFlux2Qwen3EncoderForModel,
isNonAnimaQwen3Encoder,
@@ -812,14 +813,17 @@ const qwen3EncoderSlot = (helpText: string, filter?: GenerateComponentFilter): C
: (candidate) => candidate.type === 'qwen3_encoder',
});
-const mistralEncoderSlot = (helpText: string): ComponentSlotPolicy =>
+const mistralEncoderSlot = (
+ helpText: string,
+ filter: GenerateComponentFilter = isFlux2MistralEncoder
+): ComponentSlotPolicy =>
slot({
key: 'mistralEncoderModel',
label: 'Mistral Encoder',
modelTypes: TYPE_MISTRAL,
valueKind: 'component',
helpText,
- filter: wrapFilter(isFlux2MistralEncoder),
+ filter: wrapFilter(filter),
});
const clipVariantSlot = (
@@ -1069,6 +1073,27 @@ const getBaseComponentSectionPolicy = (
missingMessage: 'Generate needs a Qwen3-VL Encoder for non-Diffusers Krea-2 models.',
},
]);
+ case 'ernie-image':
+ // A single-file ERNIE-Image transformer carries only itself, so its encoder and VAE are
+ // selected here; a diffusers pipeline directory bundles both and the loader reads them out.
+ return createPolicy(model.format !== 'diffusers', [
+ {
+ ...mistralEncoderSlot(
+ 'ERNIE-Image conditions on Ministral 3B, a different architecture from the Mistral Small 3 encoder FLUX.2 uses. Required for non-Diffusers ERNIE-Image models.',
+ isErnieImageMistralEncoder
+ ),
+ required: (ctx) => ctx.model.format !== 'diffusers',
+ missingMessage: 'Generate needs a Ministral 3B encoder for non-Diffusers ERNIE-Image models.',
+ },
+ {
+ ...vaeSlot(
+ 'ERNIE-Image decodes with the FLUX.2 32-channel VAE, so VAEs installed under the FLUX.2 base are listed too. Required for non-Diffusers ERNIE-Image models.',
+ isAcceptedVae
+ ),
+ required: (ctx) => ctx.model.format !== 'diffusers',
+ missingMessage: 'Generate needs a VAE for non-Diffusers ERNIE-Image models.',
+ },
+ ]);
case 'wan':
// A GGUF Wan main carries only the transformer; the VAE and UMT5-XXL encoder must come
// from standalone models or a Diffusers component source.
diff --git a/invokeai/frontend/webv2/src/features/generation/core/componentCompatibility.ts b/invokeai/frontend/webv2/src/features/generation/core/componentCompatibility.ts
index 19ba42b397..08623ac43f 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/componentCompatibility.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/componentCompatibility.ts
@@ -75,7 +75,19 @@ export const isAnimaQwen3Encoder: GenerateComponentFilter = (model) =>
export const isNonAnimaQwen3Encoder: GenerateComponentFilter = (model) =>
model.type === 'qwen3_encoder' && model.variant !== 'qwen3_06b';
-export const isFlux2MistralEncoder: GenerateComponentFilter = (model) => model.type === 'mistral_encoder';
+/**
+ * ERNIE-Image's encoder is recorded as a `mistral_encoder` too, but it is a different architecture
+ * (Ministral 3B, hidden 3072) from the Mistral Small 3 encoders FLUX.2 was trained against. Offering
+ * either one to the other family produces a shape error deep in denoise, so the variant separates
+ * them on both sides.
+ */
+const MINISTRAL_3B_VARIANT = 'ministral3_3b';
+
+export const isFlux2MistralEncoder: GenerateComponentFilter = (model) =>
+ model.type === 'mistral_encoder' && model.variant !== MINISTRAL_3B_VARIANT;
+
+export const isErnieImageMistralEncoder: GenerateComponentFilter = (model) =>
+ model.type === 'mistral_encoder' && model.variant === MINISTRAL_3B_VARIANT;
export const isFlux2Qwen3EncoderForModel = (selectedModel: GenerateModelConfig): GenerateComponentFilter => {
if (selectedModel.variant === 'dev') {
diff --git a/invokeai/frontend/webv2/src/features/generation/core/graph.ts b/invokeai/frontend/webv2/src/features/generation/core/graph.ts
index 09c12d8ca0..2445a0985a 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/graph.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/graph.ts
@@ -844,9 +844,18 @@ const buildErnieImageGraph = (
outputIsIntermediate: boolean,
projectSettings: GenerationProjectSettings
): BackendGraphContract => {
- // No component slots: ernie_image_model_loader reads the transformer, VAE, text encoder and
- // optional prompt enhancer out of one diffusers pipeline directory, so there is nothing for the
- // user to supply separately and nothing to validate here.
+ // A diffusers pipeline directory carries every submodel, so the loader reads them out of it. A
+ // single-file transformer carries only itself: its Ministral encoder and FLUX.2 VAE are selected
+ // in the component section and sent here, the same shape Krea-2 uses.
+ const isDiffusers = model.format === 'diffusers';
+ const vaeModel = getCompatibleVae(settings, model);
+ const mistralEncoderModel = settings.mistralEncoderModel;
+
+ if (!isDiffusers) {
+ requireComponent(mistralEncoderModel, 'Mistral Encoder');
+ requireComponent(vaeModel, 'ERNIE-Image VAE');
+ }
+
const graph: BackendGraphContract = { edges: [], id: createId('ernie_image_graph'), nodes: {} };
const { negativePrompt, positivePrompt, seed } = addPromptAndSeedNodes(graph);
const scheduler = coerceSchedulerForGraph(model, settings.scheduler);
@@ -854,10 +863,12 @@ const buildErnieImageGraph = (
const modelLoader = addNode(graph, {
id: 'model_loader',
model,
+ text_encoder_model: mistralEncoderModel ?? undefined,
type: 'ernie_image_model_loader',
// The enhancer is a separate node with its own prompt rewriting and cannot be idle-offloaded;
// Generate does not surface it, so the loader is told not to hold it resident.
use_prompt_enhancer: false,
+ vae_model: vaeModel ?? undefined,
});
const posCond = addNode(graph, { id: 'pos_cond', type: 'ernie_image_text_encoder' });
const negCond = useCfg ? addNode(graph, { id: 'neg_cond', type: 'ernie_image_text_encoder' }) : null;
diff --git a/invokeai/frontend/webv2/src/features/generation/core/graphCoverage.test.ts b/invokeai/frontend/webv2/src/features/generation/core/graphCoverage.test.ts
index 46f9de3931..e397344552 100644
--- a/invokeai/frontend/webv2/src/features/generation/core/graphCoverage.test.ts
+++ b/invokeai/frontend/webv2/src/features/generation/core/graphCoverage.test.ts
@@ -99,6 +99,7 @@ const CANDIDATE_VARIANTS = [
'dev',
'klein_4b',
'klein_9b',
+ 'ministral3_3b',
] as const;
/** VAE widths. A served row can constrain the width as well as the base -- Wan ships 16 and 48. */
const CANDIDATE_LATENT_CHANNELS = [undefined, 16, 48] as const;
diff --git a/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts b/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
index bc973fb01f..e5c4619775 100644
--- a/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
@@ -133,6 +133,7 @@ export const MODEL_VARIANT_LABELS: Record<string, string> = {
krea2_base: 'Krea-2 Raw',
krea2_turbo: 'Krea-2 Turbo',
large: 'CLIP L',
+ ministral3_3b: 'Ministral 3B (ERNIE-Image)',
mistral3_24b: 'Mistral Small 3 (24B, FLUX.2)',
normal: 'Normal',
qwen3_06b: 'Qwen3 0.6B',
@@ -168,7 +169,7 @@ const MAIN_VARIANTS_BY_BASE: Record<string, readonly string[]> = {
const VARIANTS_BY_TYPE: Record<string, readonly string[]> = {
clip_embed: ['large', 'gigantic'],
- mistral_encoder: ['cow_mistral3_small', 'mistral3_24b'],
+ mistral_encoder: ['cow_mistral3_small', 'mistral3_24b', 'ministral3_3b'],
pid_decoder: ['res2k_sr4x', 'res2kto4k_sr4x'],
qwen3_encoder: ['qwen3_4b', 'qwen3_8b', 'qwen3_06b'],
};
diff --git a/tests/app/invocations/test_ernie_image_scheduler.py b/tests/app/invocations/test_ernie_image_scheduler.py
new file mode 100644
index 0000000000..3cebf992f7
--- /dev/null
+++ b/tests/app/invocations/test_ernie_image_scheduler.py
@@ -0,0 +1,105 @@
+"""Which noise schedule an ERNIE-Image generation actually runs on.
+
+`shift` reshapes every sigma in the schedule, and the driver hands the scheduler raw sigmas
+expecting it to apply that shift. Both released pipelines ship `shift: 4.0`; diffusers defaults to
+1.0. A single-file checkpoint carries no `scheduler/` directory at all -- `config.path` is the file
+-- so the fallback is not an edge case there, it is the only path, and getting it wrong produces a
+perfectly coherent image on the wrong schedule. Turbo feels it worst at 8 steps.
+"""
+
+import json
+from pathlib import Path
+from types import SimpleNamespace
+from unittest.mock import MagicMock
+
+import pytest
+
+from invokeai.app.invocations.ernie_image.ernie_image_denoise import ErnieImageDenoiseInvocation
+from invokeai.backend.flux.schedulers import ERNIE_IMAGE_SHIFT
+from invokeai.backend.model_manager.taxonomy import ModelFormat
+
+RELEASED_SHIFT = 4.0
+
+
+def _node(scheduler: str = "euler") -> ErnieImageDenoiseInvocation:
+ return ErnieImageDenoiseInvocation.model_construct(
+ scheduler=scheduler, transformer=SimpleNamespace(transformer=object())
+ )
+
+
+def _context(format: ModelFormat, models_path: Path, relative_path: str) -> SimpleNamespace:
+ return SimpleNamespace(
+ models=SimpleNamespace(get_config=lambda _model: SimpleNamespace(format=format, path=relative_path)),
+ config=SimpleNamespace(get=lambda: SimpleNamespace(models_path=models_path)),
+ logger=MagicMock(),
+ )
+
+
+def test_the_released_shift_is_what_we_carry() -> None:
+ assert ERNIE_IMAGE_SHIFT == RELEASED_SHIFT
+
+
+def test_a_single_file_denoises_on_the_released_schedule(tmp_path: Path) -> None:
+ """No `scheduler/` exists for a checkpoint, so this is every single-file generation."""
+ (tmp_path / "ernie-image.safetensors").touch()
+ context = _context(ModelFormat.Checkpoint, tmp_path, "ernie-image.safetensors")
+
+ scheduler = _node()._build_scheduler(context) # type: ignore[arg-type]
+
+ assert scheduler.config.shift == RELEASED_SHIFT
+ # A file having no scheduler directory is the normal case, not something to warn about.
+ context.logger.warning.assert_not_called()
+
+
+def test_a_pipeline_still_reads_its_own_scheduler_config(tmp_path: Path) -> None:
+ """The pipeline's own config wins over the constant -- a redistribution may ship another."""
+ pipeline = tmp_path / "ernie-pipeline"
+ (pipeline / "scheduler").mkdir(parents=True)
+ (pipeline / "scheduler" / "scheduler_config.json").write_text(
+ json.dumps({"_class_name": "FlowMatchEulerDiscreteScheduler", "num_train_timesteps": 1000, "shift": 3.0}),
+ encoding="utf-8",
+ )
+ context = _context(ModelFormat.Diffusers, tmp_path, "ernie-pipeline")
+
+ scheduler = _node()._build_scheduler(context) # type: ignore[arg-type]
+
+ assert scheduler.config.shift == 3.0
+
+
+def test_a_pipeline_without_a_scheduler_config_is_reported_and_still_shifted(tmp_path: Path) -> None:
+ """A diffusers directory *should* carry one, so its absence is worth saying out loud -- but the
+ generation still has to run on ERNIE's schedule rather than diffusers' unshifted default."""
+ (tmp_path / "ernie-pipeline").mkdir()
+ context = _context(ModelFormat.Diffusers, tmp_path, "ernie-pipeline")
+
+ scheduler = _node()._build_scheduler(context) # type: ignore[arg-type]
+
+ assert scheduler.config.shift == RELEASED_SHIFT
+ context.logger.warning.assert_called_once()
+
+
+def test_an_unreadable_scheduler_config_still_shifts(tmp_path: Path) -> None:
+ """A config that exists but cannot be parsed is the one remaining way to reach a
+ default-constructed scheduler. Diffusers' default is the unshifted schedule, which is wrong for
+ ERNIE whether or not we could read the file."""
+ pipeline = tmp_path / "ernie-pipeline"
+ (pipeline / "scheduler").mkdir(parents=True)
+ (pipeline / "scheduler" / "scheduler_config.json").write_text("{ not json", encoding="utf-8")
+ context = _context(ModelFormat.Diffusers, tmp_path, "ernie-pipeline")
+
+ scheduler = _node()._build_scheduler(context) # type: ignore[arg-type]
+
+ assert scheduler.config.shift == RELEASED_SHIFT
+ context.logger.warning.assert_called_once()
+
+
[email protected]("scheduler_name", ["euler", "heun"])
+def test_every_offered_scheduler_takes_the_shift(tmp_path: Path, scheduler_name: str) -> None:
+ """The dropdown offers more than Euler, and a class that ignored `shift` would silently run the
+ unshifted schedule for that choice alone."""
+ (tmp_path / "ernie-image.safetensors").touch()
+ context = _context(ModelFormat.Checkpoint, tmp_path, "ernie-image.safetensors")
+
+ scheduler = _node(scheduler_name)._build_scheduler(context) # type: ignore[arg-type]
+
+ assert scheduler.config.shift == RELEASED_SHIFT
diff --git a/tests/app/invocations/test_ernie_image_single_file_loader.py b/tests/app/invocations/test_ernie_image_single_file_loader.py
new file mode 100644
index 0000000000..592e0ae941
--- /dev/null
+++ b/tests/app/invocations/test_ernie_image_single_file_loader.py
@@ -0,0 +1,106 @@
+"""The ERNIE-Image loader node with a single-file transformer.
+
+A diffusers pipeline carries every submodel; a single file carries the transformer alone, so its
+text encoder and VAE are chosen on the node. Selecting one and forgetting the other has to fail
+with something a user can act on, rather than deep inside the loader at generate time.
+"""
+
+from types import SimpleNamespace
+
+import pytest
+
+from invokeai.app.invocations.ernie_image.ernie_image_model_loader import ErnieImageModelLoaderInvocation
+from invokeai.app.invocations.model import ModelIdentifierField
+from invokeai.backend.model_manager.taxonomy import (
+ BaseModelType,
+ MistralVariantType,
+ ModelFormat,
+ ModelType,
+ SubModelType,
+)
+
+
+def _identifier(key: str, type: ModelType = ModelType.Main) -> ModelIdentifierField:
+ return ModelIdentifierField(key=key, hash=f"hash:{key}", name=key, base=BaseModelType.ErnieImage, type=type)
+
+
+def _context(
+ format: ModelFormat, encoder_variant: MistralVariantType | None = MistralVariantType.Ministral3B
+) -> SimpleNamespace:
+ """A context whose `get_config` answers per model, so the encoder can carry its own variant."""
+
+ def get_config(model: ModelIdentifierField) -> SimpleNamespace:
+ if model.type is ModelType.MistralEncoder:
+ return SimpleNamespace(format=ModelFormat.Checkpoint, variant=encoder_variant)
+ return SimpleNamespace(format=format)
+
+ return SimpleNamespace(models=SimpleNamespace(get_config=get_config))
+
+
+def _node(**fields) -> ErnieImageModelLoaderInvocation:
+ defaults = {
+ "model": _identifier("transformer"),
+ "text_encoder_model": None,
+ "vae_model": None,
+ "use_prompt_enhancer": True,
+ }
+ return ErnieImageModelLoaderInvocation.model_construct(**{**defaults, **fields})
+
+
+def test_a_single_file_emits_the_chosen_encoder_and_vae() -> None:
+ node = _node(
+ text_encoder_model=_identifier("mistral", ModelType.MistralEncoder),
+ vae_model=_identifier("vae", ModelType.VAE),
+ )
+
+ output = node.invoke(_context(ModelFormat.Checkpoint))
+
+ assert output.transformer.transformer.key == "transformer"
+ assert output.transformer.transformer.submodel_type is SubModelType.Transformer
+ assert output.text_encoder.text_encoder.key == "mistral"
+ assert output.text_encoder.text_encoder.submodel_type is SubModelType.TextEncoder
+ assert output.text_encoder.tokenizer.submodel_type is SubModelType.Tokenizer
+ assert output.vae.vae.key == "vae"
+ assert output.vae.vae.submodel_type is SubModelType.VAE
+ # The prompt enhancer ships only with the pipeline, so a single file has none.
+ assert output.prompt_enhancer is None
+
+
+ "fields, missing",
+ [
+ ({"vae_model": _identifier("vae", ModelType.VAE)}, "Text Encoder"),
+ ({"text_encoder_model": _identifier("mistral", ModelType.MistralEncoder)}, "VAE"),
+ ({}, "Text Encoder and VAE"),
+ ],
+)
+def test_a_single_file_without_its_companions_says_which_one_is_missing(fields: dict, missing: str) -> None:
+ node = _node(**fields)
+
+ with pytest.raises(ValueError, match=missing):
+ node.invoke(_context(ModelFormat.Checkpoint))
+
+
+def test_an_encoder_from_the_wrong_family_is_refused_by_name(monkeypatch) -> None:
+ """Every Mistral encoder installs under one type, but FLUX.2's are 5120 wide against ERNIE's
+ 3072. Without this the mismatch surfaces as a shape error inside denoising, which tells the
+ user nothing about the model they picked."""
+ node = _node(
+ text_encoder_model=_identifier("cow-mistral", ModelType.MistralEncoder),
+ vae_model=_identifier("vae", ModelType.VAE),
+ )
+
+ with pytest.raises(ValueError, match="Ministral 3B"):
+ node.invoke(_context(ModelFormat.Checkpoint, encoder_variant=MistralVariantType.Cow))
+
+
+def test_a_diffusers_pipeline_still_takes_every_submodel_from_itself(monkeypatch) -> None:
+ """The pipeline path must not start demanding the new fields."""
+ node = _node()
+ monkeypatch.setattr(ErnieImageModelLoaderInvocation, "_pipeline_has_prompt_enhancer", lambda self, context: False)
+
+ output = node.invoke(_context(ModelFormat.Diffusers))
+
+ assert output.transformer.transformer.key == "transformer"
+ assert output.text_encoder.text_encoder.key == "transformer"
+ assert output.vae.vae.key == "transformer"
diff --git a/tests/backend/model_manager/configs/test_ernie_image_checkpoint_config.py b/tests/backend/model_manager/configs/test_ernie_image_checkpoint_config.py
new file mode 100644
index 0000000000..996bcc5e75
--- /dev/null
+++ b/tests/backend/model_manager/configs/test_ernie_image_checkpoint_config.py
@@ -0,0 +1,98 @@
+"""Identification of single-file ERNIE-Image transformers.
+
+Comfy-Org ships ERNIE-Image as one safetensors file carrying the transformer alone, under the same
+keys as the diffusers checkpoint. The fingerprint has to be specific enough not to claim Anima,
+which also has an `x_embedder`, and the base and Turbo releases are indistinguishable on disk — the
+architecture picks Turbo's defaults from the model name, so identification must leave that intact.
+"""
+
+from pathlib import Path
+
+import pytest
+import torch
+from safetensors.torch import save_file
+
+from invokeai.backend.model_manager.configs.factory import ModelConfigFactory
+from invokeai.backend.model_manager.configs.main import Main_Checkpoint_ErnieImage_Config
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat
+
+
+def _ernie_image_tensors() -> dict[str, torch.Tensor]:
+ """The released key layout at toy width: patch projection, text projection, model-level adaLN."""
+ return {
+ "x_embedder.proj.weight": torch.zeros(8, 4, 1, 1),
+ "x_embedder.proj.bias": torch.zeros(8),
+ "text_proj.weight": torch.zeros(8, 6),
+ "adaLN_modulation.1.weight": torch.zeros(48, 8),
+ "adaLN_modulation.1.bias": torch.zeros(48),
+ "final_norm.linear.weight": torch.zeros(16, 8),
+ "final_norm.linear.bias": torch.zeros(16),
+ "final_linear.weight": torch.zeros(4, 8),
+ "final_linear.bias": torch.zeros(4),
+ "time_embedding.linear_1.weight": torch.zeros(8, 8),
+ "layers.0.self_attention.to_q.weight": torch.zeros(8, 8),
+ }
+
+
+def _write(path: Path, tensors: dict[str, torch.Tensor]) -> Path:
+ save_file(tensors, str(path))
+ return path
+
+
+def test_a_single_file_transformer_is_identified(tmp_path: Path) -> None:
+ result = ModelConfigFactory.from_model_on_disk(
+ _write(tmp_path / "ernie-image.safetensors", _ernie_image_tensors()), allow_unknown=False
+ )
+
+ assert isinstance(result.config, Main_Checkpoint_ErnieImage_Config), result.details
+ assert result.config.base is BaseModelType.ErnieImage
+ assert result.config.format is ModelFormat.Checkpoint
+
+
+def test_the_turbo_release_keeps_its_own_defaults(tmp_path: Path) -> None:
+ """Turbo and the base model share every key, so the name is the only signal — and it is the
+ difference between 8 steps without CFG and 50 steps at CFG 4."""
+ base = ModelConfigFactory.from_model_on_disk(
+ _write(tmp_path / "ernie-image.safetensors", _ernie_image_tensors()), allow_unknown=False
+ ).config
+ turbo = ModelConfigFactory.from_model_on_disk(
+ _write(tmp_path / "ernie-image-turbo.safetensors", _ernie_image_tensors()), allow_unknown=False
+ ).config
+
+ assert base is not None and turbo is not None
+ assert (base.default_settings.steps, base.default_settings.cfg_scale) == (50, 4.0)
+ assert (turbo.default_settings.steps, turbo.default_settings.cfg_scale) == (8, 1.0)
+
+
+def test_an_anima_transformer_is_not_claimed(tmp_path: Path) -> None:
+ """Anima carries an `x_embedder` too; its `llm_adapter` is what tells them apart."""
+ tensors = {
+ "x_embedder.proj.weight": torch.zeros(8, 4, 1, 1),
+ "llm_adapter.proj.weight": torch.zeros(8, 8),
+ "blocks.0.attn.to_q.weight": torch.zeros(8, 8),
+ "t_embedder.linear_1.weight": torch.zeros(8, 8),
+ "final_layer.linear.weight": torch.zeros(4, 8),
+ }
+
+ result = ModelConfigFactory.from_model_on_disk(_write(tmp_path / "anima.safetensors", tensors), allow_unknown=True)
+
+ assert not isinstance(result.config, Main_Checkpoint_ErnieImage_Config)
+
+
+ "dropped",
+ [
+ "text_proj.weight",
+ "x_embedder.proj.weight",
+ "adaLN_modulation.1.weight",
+ "final_norm.linear.weight",
+ ],
+)
+def test_a_file_missing_part_of_the_fingerprint_is_refused(tmp_path: Path, dropped: str) -> None:
+ tensors = {key: value for key, value in _ernie_image_tensors().items() if key != dropped}
+
+ result = ModelConfigFactory.from_model_on_disk(
+ _write(tmp_path / "partial.safetensors", tensors), allow_unknown=True
+ )
+
+ assert not isinstance(result.config, Main_Checkpoint_ErnieImage_Config)
diff --git a/tests/backend/model_manager/configs/test_ministral3_encoder_config.py b/tests/backend/model_manager/configs/test_ministral3_encoder_config.py
new file mode 100644
index 0000000000..d169733e0e
--- /dev/null
+++ b/tests/backend/model_manager/configs/test_ministral3_encoder_config.py
@@ -0,0 +1,185 @@
+"""Identification of Ministral 3B, the text encoder ERNIE-Image encodes prompts with.
+
+It reaches the same `MistralEncoder` type as FLUX.2's encoders but is a different architecture:
+26 layers at hidden_size 3072 with YaRN RoPE, loaded as `Ministral3Model`. Geometry is the only
+discriminator, and the variant recorded here is what the loader keys its model class on -- so a
+misidentification does not fail loudly, it produces an encoder that loads and emits garbage.
+"""
+
+import json
+from pathlib import Path
+
+import pytest
+import torch
+from safetensors.torch import save_file
+
+from invokeai.backend.model_manager.configs import mistral_encoder as configs_mistral_encoder
+from invokeai.backend.model_manager.configs.factory import ModelConfigFactory
+from invokeai.backend.model_manager.configs.identification_utils import NotAMatchError
+from invokeai.backend.model_manager.configs.mistral_encoder import (
+ MistralEncoder_Checkpoint_Config,
+ MistralEncoder_Diffusers_Config,
+)
+from invokeai.backend.model_manager.model_on_disk import ModelOnDisk
+from invokeai.backend.model_manager.taxonomy import MistralVariantType, ModelFormat, ModelType
+
+# The released geometries. Widths are what separate the families; the tensors below are toy-sized
+# in every other dimension so the fixtures stay small.
+_TEKKEN_VOCAB = 131072
+_MINISTRAL_3B = (3072, 26)
+_COW = (5120, 30)
+_MISTRAL_24B = (5120, 40)
+
+
+def _encoder_tensors(
+ hidden_size: int,
+ num_layers: int,
+ vocab_size: int = _TEKKEN_VOCAB,
+ *,
+ with_vision_stack: bool = False,
+) -> dict[str, torch.Tensor]:
+ """A Mistral-family state dict at the given geometry, with one column per row kept tiny.
+
+ Only the embedding carries the real width -- that and the layer count are what the probe
+ reads. `torch.zeros` keeps the fixture a few MB rather than the size of a real encoder.
+
+ `with_vision_stack` reproduces the Mistral3 multimodal layout the released Ministral 3B
+ encoder ships. The FLUX.2 encoders are text-only, so it stays off for them.
+ """
+ tensors = {"model.embed_tokens.weight": torch.zeros(vocab_size, hidden_size, dtype=torch.bfloat16)}
+ for layer in range(num_layers):
+ tensors[f"model.layers.{layer}.self_attn.q_proj.weight"] = torch.zeros(4, 4, dtype=torch.bfloat16)
+ if with_vision_stack:
+ tensors["vision_tower.transformer.layers.0.attention.q_proj.weight"] = torch.zeros(4, 4, dtype=torch.bfloat16)
+ tensors["multi_modal_projector.linear_1.weight"] = torch.zeros(4, 4, dtype=torch.bfloat16)
+ return tensors
+
+
+def _identify(path: Path, tensors: dict[str, torch.Tensor]):
+ save_file(tensors, str(path))
+ return ModelConfigFactory.from_model_on_disk(path, allow_unknown=True).config
+
+
+def test_ministral_3b_is_identified_as_its_own_variant(tmp_path: Path) -> None:
+ config = _identify(
+ tmp_path / "ministral-3-3b.safetensors", _encoder_tensors(*_MINISTRAL_3B, with_vision_stack=True)
+ )
+
+ assert isinstance(config, MistralEncoder_Checkpoint_Config)
+ assert config.type is ModelType.MistralEncoder
+ assert config.format is ModelFormat.Checkpoint
+ assert config.variant is MistralVariantType.Ministral3B
+
+
+ "geometry, expected",
+ [(_COW, MistralVariantType.Cow), (_MISTRAL_24B, MistralVariantType.Mistral24B)],
+)
+def test_the_flux2_encoders_keep_their_variants(
+ tmp_path: Path, geometry: tuple[int, int], expected: MistralVariantType
+) -> None:
+ """Widening the probe must not reclassify the encoders that already installed."""
+ config = _identify(tmp_path / "mistral.safetensors", _encoder_tensors(*geometry))
+
+ assert isinstance(config, MistralEncoder_Checkpoint_Config)
+ assert config.variant is expected
+
+
+ "hidden_size, num_layers",
+ [
+ (3072, 30), # Ministral's width at the cow depth
+ (5120, 26), # Mistral Small 3's width at Ministral's depth
+ (2048, 26), # a narrower model entirely
+ ],
+)
+def test_a_geometry_between_the_families_is_refused(tmp_path: Path, hidden_size: int, num_layers: int) -> None:
+ """The pairs are matched as pairs. Accepting a loose combination would hand the loader a
+ variant whose model class does not fit the weights."""
+ config = _identify(tmp_path / "mixed.safetensors", _encoder_tensors(hidden_size, num_layers))
+
+ assert not isinstance(config, MistralEncoder_Checkpoint_Config)
+
+
+def test_a_small_vocabulary_is_still_refused_at_ministral_geometry(tmp_path: Path) -> None:
+ """The floor that keeps Llama-2 out has to cover the new geometry too -- it is the only thing
+ separating a Mistral encoder from an unrelated causal LM with the same key names.
+
+ The vision stack is present so the vocabulary is what decides; without it this would pass for
+ the reason the test below covers.
+ """
+ config = _identify(
+ tmp_path / "other-lm.safetensors",
+ _encoder_tensors(*_MINISTRAL_3B, vocab_size=32000, with_vision_stack=True),
+ )
+
+ assert not isinstance(config, MistralEncoder_Checkpoint_Config)
+
+
+def test_the_released_encoder_folder_is_identified_too(tmp_path: Path) -> None:
+ """`baidu/ERNIE-Image`'s `text_encoder/` folder is both directly installable and where the
+ tokenizer fallback points, so the folder probe has to recognize the same family the state-dict
+ probe does. Its `config.json` names the multimodal wrapper and nests the geometry under
+ `text_config`, which is the shape that decides here."""
+ folder = tmp_path / "text_encoder"
+ folder.mkdir()
+ (folder / "config.json").write_text(
+ json.dumps(
+ {
+ "architectures": ["Mistral3Model"],
+ "model_type": "mistral3",
+ "text_config": {"hidden_size": 3072, "model_type": "ministral3", "num_hidden_layers": 26},
+ }
+ ),
+ encoding="utf-8",
+ )
+
+ config = ModelConfigFactory.from_model_on_disk(folder, allow_unknown=True).config
+
+ assert isinstance(config, MistralEncoder_Diffusers_Config)
+ assert config.variant is MistralVariantType.Ministral3B
+
+
+def test_a_ministral_gguf_is_refused_rather_than_loaded_as_a_mistral(
+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ """The GGUF loader builds a `MistralModel`, which has neither Ministral's YaRN scaling nor its
+ attention scale -- it would load cleanly and encode garbage. The refusal has to sit ahead of
+ the variant lookup, so this pins the ordering rather than the message.
+
+ `_has_ggml_tensors` stands in for a real GGUF file: building one here would cost far more than
+ the ordering it protects.
+ """
+ monkeypatch.setattr(configs_mistral_encoder, "_has_ggml_tensors", lambda _state_dict: True)
+
+ config = _identify(
+ tmp_path / "ministral-3-3b-q8.gguf.safetensors",
+ _encoder_tensors(*_MINISTRAL_3B, with_vision_stack=True),
+ )
+
+ assert not isinstance(config, MistralEncoder_Checkpoint_Config)
+ assert getattr(config, "type", None) is not ModelType.MistralEncoder
+
+
+def test_the_prompt_enhancer_is_not_claimed_as_an_encoder(tmp_path: Path) -> None:
+ """ERNIE-Image's prompt enhancer sits in the same released folder as the encoder and carries
+ the identical geometry, vocabulary and embedded Tekken vocab -- it is a bare `Ministral3-
+ ForCausalLM` that rewrites prompts. Installing it as the encoder would load cleanly and
+ condition every prompt with the wrong weights, so the missing vision tower has to refuse it."""
+ config = _identify(
+ tmp_path / "ernie-image-prompt-enhancer.safetensors",
+ _encoder_tensors(*_MINISTRAL_3B, with_vision_stack=False),
+ )
+
+ assert not isinstance(config, MistralEncoder_Checkpoint_Config)
+
+
+def test_the_prompt_enhancer_refusal_says_which_file_to_install(tmp_path: Path) -> None:
+ """The generic geometry message is worse than unhelpful here -- it lists Ministral's 3072/26
+ among the *expected* geometries, which is precisely what this file has. Whoever grabbed the
+ wrong one of two files from the same folder has to be told so."""
+ path = tmp_path / "ernie-image-prompt-enhancer.safetensors"
+ save_file(_encoder_tensors(*_MINISTRAL_3B, with_vision_stack=False), str(path))
+
+ with pytest.raises(NotAMatchError, match="prompt enhancer"):
+ MistralEncoder_Checkpoint_Config.from_model_on_disk(ModelOnDisk(path), {})
diff --git a/tests/backend/model_manager/load/test_ernie_image_checkpoint_loader.py b/tests/backend/model_manager/load/test_ernie_image_checkpoint_loader.py
new file mode 100644
index 0000000000..aebdd219b4
--- /dev/null
+++ b/tests/backend/model_manager/load/test_ernie_image_checkpoint_loader.py
@@ -0,0 +1,139 @@
+"""Loading an ERNIE-Image transformer from a single safetensors file.
+
+The geometry is not in the file: Comfy-Org ships weights alone, so the loader carries the released
+`transformer/config.json` as a constant. Diffusers' own defaults describe a *different*, smaller
+model (3072 wide, 24 layers), so a constant that drifts from the release does not fall back to
+something reasonable -- it fails on the first generation after a ~16GB download, or builds the
+wrong network. Both the values and the kwarg contract are pinned here.
+"""
+
+from pathlib import Path
+from types import SimpleNamespace
+from unittest.mock import MagicMock
+
+import accelerate
+import pytest
+import torch
+from safetensors.torch import save_file
+
+import invokeai.backend.model_manager.load.model_loaders.ernie_image as loader_module
+from invokeai.backend.model_manager.configs.main import Main_Checkpoint_ErnieImage_Config
+from invokeai.backend.model_manager.load.model_loaders.ernie_image import (
+ ERNIE_IMAGE_TRANSFORMER_CONFIG,
+ ErnieImageCheckpointModel,
+)
+from invokeai.backend.model_manager.taxonomy import SubModelType
+
+# `baidu/ERNIE-Image`'s released `transformer/config.json`, verbatim. Kept as a literal so this
+# fails when the loader's constant drifts, rather than agreeing with whatever the loader says.
+RELEASED_TRANSFORMER_CONFIG = {
+ "eps": 1e-06,
+ "ffn_hidden_size": 12288,
+ "hidden_size": 4096,
+ "in_channels": 128,
+ "num_attention_heads": 32,
+ "num_layers": 36,
+ "out_channels": 128,
+ "patch_size": 1,
+ "qk_layernorm": True,
+ "rope_axes_dim": (32, 48, 48),
+ "rope_theta": 256,
+ "text_in_dim": 3072,
+}
+
+# The same shape at toy width: 2 heads of 32 make hidden 64, and `rope_axes_dim` has to sum to the
+# head dimension the way the released (32, 48, 48) sums to 4096/32.
+TINY_TRANSFORMER_CONFIG = {
+ "eps": 1e-06,
+ "ffn_hidden_size": 128,
+ "hidden_size": 64,
+ "in_channels": 8,
+ "num_attention_heads": 2,
+ "num_layers": 1,
+ "out_channels": 8,
+ "patch_size": 1,
+ "qk_layernorm": True,
+ "rope_axes_dim": (8, 12, 12),
+ "rope_theta": 256,
+ "text_in_dim": 16,
+}
+
+
+def test_the_carried_geometry_is_the_released_one() -> None:
+ """The file has no config of its own, so this constant *is* the architecture."""
+ carried = dict(ERNIE_IMAGE_TRANSFORMER_CONFIG)
+ carried["rope_axes_dim"] = tuple(carried["rope_axes_dim"])
+
+ assert carried == RELEASED_TRANSFORMER_CONFIG
+
+
+def test_the_released_geometry_still_builds_a_model() -> None:
+ """Pins the kwarg contract against a diffusers bump. Under `init_empty_weights` the 8B model
+ allocates nothing, so this stays cheap while covering every name the constant uses."""
+ from diffusers import ErnieImageTransformer2DModel
+
+ with accelerate.init_empty_weights():
+ model = ErnieImageTransformer2DModel(**ERNIE_IMAGE_TRANSFORMER_CONFIG)
+
+ assert model.config.num_layers == RELEASED_TRANSFORMER_CONFIG["num_layers"]
+ assert model.config.hidden_size == RELEASED_TRANSFORMER_CONFIG["hidden_size"]
+ assert model.config.text_in_dim == RELEASED_TRANSFORMER_CONFIG["text_in_dim"]
+
+
+def _loader(monkeypatch: pytest.MonkeyPatch) -> tuple[ErnieImageCheckpointModel, MagicMock]:
+ ram_cache = MagicMock()
+ loader = object.__new__(ErnieImageCheckpointModel)
+ loader._ram_cache = ram_cache
+ loader._apply_fp8_layerwise_casting = lambda model, _config, _submodel: model
+ monkeypatch.setattr(loader_module.TorchDevice, "choose_torch_device", staticmethod(lambda: torch.device("cpu")))
+ monkeypatch.setattr(
+ loader_module.TorchDevice, "choose_bfloat16_safe_dtype", staticmethod(lambda _device: torch.float32)
+ )
+ return loader, ram_cache
+
+
+def _tiny_checkpoint(path: Path) -> torch.nn.Module:
+ from diffusers import ErnieImageTransformer2DModel
+
+ torch.manual_seed(0)
+ reference = ErnieImageTransformer2DModel(**TINY_TRANSFORMER_CONFIG)
+ save_file({key: value.contiguous() for key, value in reference.state_dict().items()}, str(path))
+ return reference
+
+
+def test_a_single_file_loads_into_the_model_it_describes(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
+ """The load path itself: reserve, cast, build empty, assign, and leave nothing on meta."""
+ monkeypatch.setattr(loader_module, "ERNIE_IMAGE_TRANSFORMER_CONFIG", TINY_TRANSFORMER_CONFIG)
+ checkpoint = tmp_path / "ernie-image.safetensors"
+ reference = _tiny_checkpoint(checkpoint)
+ loader, ram_cache = _loader(monkeypatch)
+ config = Main_Checkpoint_ErnieImage_Config.model_construct(path=str(checkpoint), name="ernie-image")
+
+ model = loader._load_model(config, SubModelType.Transformer)
+
+ assert [name for name, param in model.named_parameters() if param.is_meta] == []
+ expected = reference.state_dict()
+ for name, param in model.named_parameters():
+ assert torch.equal(param, expected[name]), name
+ # The reservation is what keeps a 16GB file from evicting itself mid-load.
+ ram_cache.make_room.assert_called_once()
+ assert ram_cache.make_room.call_args.args[0] > 0
+
+
+def test_the_checkpoint_refuses_submodels_it_does_not_contain(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
+ """A single file holds the transformer alone. An old workflow wired to take a VAE out of the
+ main model has to be told what to do instead, not handed a shape error."""
+ loader, _ = _loader(monkeypatch)
+ config = Main_Checkpoint_ErnieImage_Config.model_construct(
+ path=str(tmp_path / "ernie-image.safetensors"), name="ernie-image"
+ )
+
+ with pytest.raises(ValueError, match="holds only the transformer"):
+ loader._load_model(config, SubModelType.VAE)
+
+
+def test_a_foreign_config_is_refused(monkeypatch: pytest.MonkeyPatch) -> None:
+ loader, _ = _loader(monkeypatch)
+
+ with pytest.raises(ValueError, match="Main_Checkpoint_ErnieImage_Config"):
+ loader._load_model(SimpleNamespace(path="whatever"), SubModelType.Transformer) # type: ignore[arg-type]
diff --git a/tests/backend/model_manager/load/test_ministral3_encoder_loader.py b/tests/backend/model_manager/load/test_ministral3_encoder_loader.py
new file mode 100644
index 0000000000..8402d1f080
--- /dev/null
+++ b/tests/backend/model_manager/load/test_ministral3_encoder_loader.py
@@ -0,0 +1,154 @@
+"""Loading Ministral 3B, the single-file encoder ERNIE-Image encodes prompts with.
+
+The variant decides the model class. Ministral 3B is not a smaller Mistral Small 3: it applies
+YaRN RoPE and a position-dependent attention scale that only ``Ministral3Model`` implements, and
+its weights fit ``MistralModel`` well enough to load — so getting the class wrong produces an
+encoder that loads without complaint and encodes garbage. These drive the loader itself, off real
+safetensors files, and check what comes out the other end.
+"""
+
+from pathlib import Path
+
+import pytest
+import torch
+from safetensors.torch import save_file
+from transformers import Ministral3Config, Ministral3Model, MistralConfig, MistralModel
+
+import invokeai.backend.model_manager.load.model_loaders.mistral_encoder as loader_module
+from invokeai.backend.model_manager.configs.mistral_encoder import MistralEncoder_Checkpoint_Config
+from invokeai.backend.model_manager.load.model_loaders.mistral_encoder import (
+ MistralEncoderCheckpointLoader,
+ _build_ministral3_config,
+)
+from invokeai.backend.model_manager.taxonomy import MistralVariantType
+
+# The released RoPE settings, from `baidu/ERNIE-Image`'s `text_encoder/config.json`. The loader
+# leaves these to `Ministral3Config`'s defaults rather than restating them; this is the copy that
+# notices if a transformers upgrade moves them.
+RELEASED_ROPE = {
+ "rope_type": "yarn",
+ "rope_theta": 1000000.0,
+ "factor": 16.0,
+ "original_max_position_embeddings": 16384,
+ "beta_fast": 32.0,
+ "beta_slow": 1.0,
+ "mscale": 1.0,
+ "mscale_all_dim": 1.0,
+ "llama_4_scaling_beta": 0.1,
+}
+RELEASED_MAX_POSITION_EMBEDDINGS = 262144
+
+# Toy geometry. `head_dim` must stay 128 because the loader reads the head counts off the
+# projections against exactly that width -- it is the one number a Mistral-family checkpoint does
+# not reveal.
+_HEAD_DIM = 128
+_GEOMETRY = {
+ "vocab_size": 512,
+ "hidden_size": 128,
+ "intermediate_size": 256,
+ "num_hidden_layers": 2,
+ "num_attention_heads": 2,
+ "num_key_value_heads": 1,
+ "head_dim": _HEAD_DIM,
+}
+
+
[email protected](autouse=True)
+def _cpu_float32(monkeypatch: pytest.MonkeyPatch) -> None:
+ """Pin the loader to CPU/float32 so the round-trip below is exact on any machine."""
+ monkeypatch.setattr(loader_module.TorchDevice, "choose_torch_device", staticmethod(lambda: torch.device("cpu")))
+ monkeypatch.setattr(
+ loader_module.TorchDevice, "choose_bfloat16_safe_dtype", staticmethod(lambda _device: torch.float32)
+ )
+
+
+def _write_checkpoint(path: Path, reference: torch.nn.Module, *, with_vision: bool = False) -> Path:
+ """Save a model the way a redistribution ships it: `model.`-prefixed keys, extras alongside."""
+ state_dict = {f"model.{key}": value.contiguous() for key, value in reference.state_dict().items()}
+ if with_vision:
+ # Comfy-Org's Ministral file carries the whole multimodal stack; the encoder needs none of it.
+ state_dict["vision_tower.transformer.layers.0.attention.q_proj.weight"] = torch.zeros(4, 4)
+ state_dict["vision_tower.patch_conv.weight"] = torch.zeros(4, 4)
+ state_dict["multi_modal_projector.linear_1.weight"] = torch.zeros(4, 4)
+ save_file(state_dict, str(path))
+ return path
+
+
+def _load(path: Path, variant: MistralVariantType) -> torch.nn.Module:
+ config = MistralEncoder_Checkpoint_Config.model_construct(path=str(path), name=path.stem, variant=variant)
+ loader = object.__new__(MistralEncoderCheckpointLoader)
+ return loader._load_text_encoder(config)
+
+
+def test_ministral_3b_loads_as_a_ministral_model_with_the_released_rope(tmp_path: Path) -> None:
+ torch.manual_seed(0)
+ reference = Ministral3Model(Ministral3Config(**_GEOMETRY)).eval()
+ path = _write_checkpoint(tmp_path / "ministral-3-3b.safetensors", reference, with_vision=True)
+
+ model = _load(path, MistralVariantType.Ministral3B)
+
+ assert isinstance(model, Ministral3Model)
+ assert model.config.max_position_embeddings == RELEASED_MAX_POSITION_EMBEDDINGS
+ assert {key: model.config.rope_parameters[key] for key in RELEASED_ROPE} == RELEASED_ROPE
+ # The YaRN ratio is derived, not configured: it has to come out at the configured factor.
+ assert (
+ model.config.max_position_embeddings / model.config.rope_parameters["original_max_position_embeddings"]
+ == model.config.rope_parameters["factor"]
+ )
+
+
+def test_the_weights_survive_the_load_and_the_encoder_reproduces_the_reference(tmp_path: Path) -> None:
+ """A model that loads is not the point; one that encodes the same thing is."""
+ torch.manual_seed(0)
+ reference = Ministral3Model(Ministral3Config(**_GEOMETRY)).eval()
+ path = _write_checkpoint(tmp_path / "ministral-3-3b.safetensors", reference, with_vision=True)
+
+ model = _load(path, MistralVariantType.Ministral3B).eval()
+
+ assert [name for name, param in model.named_parameters() if param.is_meta] == []
+ input_ids = torch.tensor([[1, 7, 23, 99, 4]])
+ with torch.no_grad():
+ expected = reference(input_ids=input_ids, output_hidden_states=True).hidden_states[-2]
+ actual = model(input_ids=input_ids, output_hidden_states=True).hidden_states[-2]
+ assert torch.equal(actual, expected)
+
+
+def test_the_vision_tower_is_left_behind(tmp_path: Path) -> None:
+ """222 tensors and ~0.9GB of the released file are a Pixtral vision tower the encoder-only
+ model has no slot for. Carrying them through the cast would cost real memory and then report
+ them as unexpected keys."""
+ torch.manual_seed(0)
+ reference = Ministral3Model(Ministral3Config(**_GEOMETRY))
+ path = _write_checkpoint(tmp_path / "ministral-3-3b.safetensors", reference, with_vision=True)
+
+ model = _load(path, MistralVariantType.Ministral3B)
+
+ assert getattr(model, "vision_tower", None) is None
+ assert getattr(model, "multi_modal_projector", None) is None
+ assert not [name for name, _ in model.named_parameters() if "vision" in name or "multi_modal" in name]
+
+
+def test_a_flux2_encoder_still_loads_as_a_mistral_model(tmp_path: Path) -> None:
+ """The branch must not capture the encoders that were already installing."""
+ torch.manual_seed(0)
+ reference = MistralModel(MistralConfig(**_GEOMETRY))
+ path = _write_checkpoint(tmp_path / "cow-mistral3-small.safetensors", reference)
+
+ model = _load(path, MistralVariantType.Cow)
+
+ assert isinstance(model, MistralModel)
+ assert not isinstance(model, Ministral3Model)
+
+
+def test_geometry_that_cannot_be_read_is_refused_rather_than_guessed() -> None:
+ """`_build_mistral_config` substitutes nominal geometry when a projection is missing, which
+ suits the GGUFs it also serves. Here a guess would build a model that loads and encodes
+ garbage, so the shapes are required."""
+ torch.manual_seed(0)
+ complete = {
+ f"model.{key}": value for key, value in Ministral3Model(Ministral3Config(**_GEOMETRY)).state_dict().items()
+ }
+ without_gate = {key: value for key, value in complete.items() if "mlp.gate_proj" not in key}
+
+ with pytest.raises(ValueError, match="mlp.gate_proj.weight"):
+ _build_ministral3_config(without_gate, torch_dtype=torch.float32)
diff --git a/tests/backend/model_manager/load/test_mistral_tokenizer_ladder.py b/tests/backend/model_manager/load/test_mistral_tokenizer_ladder.py
index 8b11f19bcc..cd1567e5ea 100644
--- a/tests/backend/model_manager/load/test_mistral_tokenizer_ladder.py
+++ b/tests/backend/model_manager/load/test_mistral_tokenizer_ladder.py
@@ -16,9 +16,17 @@ from typing import Any
from unittest.mock import MagicMock
import pytest
-from transformers import AutoProcessor, AutoTokenizer
+import torch
+from safetensors.torch import save_file
+from transformers import AutoProcessor, AutoTokenizer, PreTrainedTokenizerBase
from invokeai.backend.model_manager.load.model_loaders import mistral_encoder
+from invokeai.backend.model_manager.taxonomy import MistralVariantType
+
+# These rungs exist for the encoders that consume FLUX.2's template, so that is the variant they
+# are exercised with. `Ministral3B` takes a different route through the same ladder — see the
+# tests at the bottom of this module.
+FLUX2_VARIANT = MistralVariantType.Cow
def test_ladder_contract() -> None:
@@ -53,7 +61,7 @@ def model_dir(tmp_path: Path) -> Path:
def _no_hf_fallback(monkeypatch: pytest.MonkeyPatch) -> None:
- def _fail(logger: Any) -> Any:
+ def _fail(logger: Any, **_kwargs: Any) -> Any:
raise AssertionError("ladder fell through to the HuggingFace fetch")
monkeypatch.setattr(mistral_encoder, "_load_tokenizer_from_hf", _fail)
@@ -66,7 +74,7 @@ def test_root_directory_falls_back_to_autotokenizer(monkeypatch: pytest.MonkeyPa
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (processor, auto_tokenizer))
_no_hf_fallback(monkeypatch)
- assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock()) is tokenizer
+ assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), FLUX2_VARIANT) is tokenizer
# Order matters: AutoProcessor stays the preferred loader, AutoTokenizer is the fallback.
assert processor.calls == [model_dir]
assert auto_tokenizer.calls == [model_dir]
@@ -81,7 +89,7 @@ def test_sibling_tokenizer_dir_falls_back_to_autotokenizer(monkeypatch: pytest.M
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (processor, auto_tokenizer))
_no_hf_fallback(monkeypatch)
- assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock()) is tokenizer
+ assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), FLUX2_VARIANT) is tokenizer
assert auto_tokenizer.calls == [tokenizer_dir]
@@ -93,9 +101,9 @@ def test_tekken_only_dir_keyerror_does_not_escape(monkeypatch: pytest.MonkeyPatc
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (processor, auto_tokenizer))
from_hf = object()
- monkeypatch.setattr(mistral_encoder, "_load_tokenizer_from_hf", lambda logger: from_hf)
+ monkeypatch.setattr(mistral_encoder, "_load_tokenizer_from_hf", lambda logger, **_kwargs: from_hf)
- assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock()) is from_hf
+ assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), FLUX2_VARIANT) is from_hf
def test_hf_fallback_reports_every_attempt_instead_of_raising_keyerror(
@@ -107,8 +115,8 @@ def test_hf_fallback_reports_every_attempt_instead_of_raising_keyerror(
auto_tokenizer = _FakeLoader("AutoTokenizer", raises=KeyError("special_tokens"))
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (processor, auto_tokenizer))
- with pytest.raises(RuntimeError, match="Could not load FLUX.2 Mistral tokenizer") as exc_info:
- mistral_encoder._load_tokenizer_from_hf(MagicMock())
+ with pytest.raises(RuntimeError, match="Could not load the Mistral tokenizer") as exc_info:
+ mistral_encoder._load_tokenizer_from_hf(MagicMock(), policy=mistral_encoder._tokenizer_policy(FLUX2_VARIANT))
assert "AutoTokenizer(local_only=True): KeyError" in str(exc_info.value)
@@ -134,9 +142,9 @@ def test_unknown_tokenizer_class_attributeerror_does_not_escape(
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (processor, auto_tokenizer))
from_hf = object()
- monkeypatch.setattr(mistral_encoder, "_load_tokenizer_from_hf", lambda logger: from_hf)
+ monkeypatch.setattr(mistral_encoder, "_load_tokenizer_from_hf", lambda logger, **_kwargs: from_hf)
- assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock()) is from_hf
+ assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), FLUX2_VARIANT) is from_hf
assert auto_tokenizer.calls == [model_dir]
@@ -146,8 +154,8 @@ def test_hf_fallback_records_attributeerror_instead_of_escaping(monkeypatch: pyt
auto_tokenizer = _FakeLoader("AutoTokenizer", raises=_UNKNOWN_TOKENIZER_CLASS_ERROR)
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (processor, auto_tokenizer))
- with pytest.raises(RuntimeError, match="Could not load FLUX.2 Mistral tokenizer") as exc_info:
- mistral_encoder._load_tokenizer_from_hf(MagicMock())
+ with pytest.raises(RuntimeError, match="Could not load the Mistral tokenizer") as exc_info:
+ mistral_encoder._load_tokenizer_from_hf(MagicMock(), policy=mistral_encoder._tokenizer_policy(FLUX2_VARIANT))
assert "AutoTokenizer(local_only=True): AttributeError" in str(exc_info.value)
@@ -220,7 +228,7 @@ def test_valid_tekken_file_is_read_before_transformers_sees_the_dir(
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (probe,))
_no_hf_fallback(monkeypatch)
- tokenizer = mistral_encoder._load_tokenizer_for_model(tekken_model_dir, MagicMock())
+ tokenizer = mistral_encoder._load_tokenizer_for_model(tekken_model_dir, MagicMock(), FLUX2_VARIANT)
assert isinstance(tokenizer, mistral_encoder._TekkenRawTextAdapter)
assert tokenizer is not probe_result
@@ -231,7 +239,7 @@ def test_tekken_markers_encode_as_single_special_ids(tekken_model_dir: Path) ->
"""The reason the rung exists: the markers must be spliced as single Tekken ids. A
mistral-common tokenizer would emit the BPE of the literal characters instead, which "works"
and silently degrades conditioning."""
- tokenizer = mistral_encoder._load_tokenizer_for_model(tekken_model_dir, MagicMock())
+ tokenizer = mistral_encoder._load_tokenizer_for_model(tekken_model_dir, MagicMock(), FLUX2_VARIANT)
special_ids = tokenizer._special_ids
assert set(special_ids) == {"[SYSTEM_PROMPT]", "[/SYSTEM_PROMPT]", "[INST]", "[/INST]"}
@@ -265,7 +273,7 @@ def test_mistral_common_backed_result_is_rewrapped(monkeypatch: pytest.MonkeyPat
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (probe,))
_no_hf_fallback(monkeypatch)
- tokenizer = mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock())
+ tokenizer = mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), FLUX2_VARIANT)
assert isinstance(tokenizer, mistral_encoder._TekkenRawTextAdapter)
assert tokenizer._tok is inner
@@ -280,9 +288,9 @@ def test_mistral_common_backed_result_without_inner_tokenizer_keeps_falling(
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (probe,))
from_hf = object()
- monkeypatch.setattr(mistral_encoder, "_load_tokenizer_from_hf", lambda logger: from_hf)
+ monkeypatch.setattr(mistral_encoder, "_load_tokenizer_from_hf", lambda logger, **_kwargs: from_hf)
- assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock()) is from_hf
+ assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), FLUX2_VARIANT) is from_hf
def test_ordinary_tokenizers_are_not_rewrapped(monkeypatch: pytest.MonkeyPatch, model_dir: Path) -> None:
@@ -292,4 +300,67 @@ def test_ordinary_tokenizers_are_not_rewrapped(monkeypatch: pytest.MonkeyPatch,
monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (probe,))
_no_hf_fallback(monkeypatch)
- assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock()) is tokenizer
+ assert mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), FLUX2_VARIANT) is tokenizer
+
+
+# ---------------------------------------------------------------------------------------------
+# Ministral 3B (ERNIE-Image) takes the same vocab through a different form.
+# ---------------------------------------------------------------------------------------------
+
+
+def embedded_tekken_file(tmp_path: Path) -> Path:
+ """A single file the way Comfy-Org ships one: the Tekken vocab as a `tekken_model` U8 tensor."""
+ vocab = tmp_path / "vocab.json"
+ _write_valid_tekken(vocab)
+ path = tmp_path / "ministral-3-3b.safetensors"
+ save_file({"tekken_model": torch.frombuffer(bytearray(vocab.read_bytes()), dtype=torch.uint8)}, str(path))
+ return path
+
+
+def test_the_embedded_blob_rung_serves_each_family_its_own_form(
+ monkeypatch: pytest.MonkeyPatch, embedded_tekken_file: Path
+) -> None:
+ """The rung every released single file actually takes, and the one whose failure is invisible:
+ if it stops returning a tokenizer the ladder falls through to the HuggingFace fetch, which
+ still succeeds wherever the cache is warm and fails only on an offline install."""
+ _no_hf_fallback(monkeypatch)
+
+ ministral = mistral_encoder._load_tokenizer_for_model(
+ embedded_tekken_file, MagicMock(), MistralVariantType.Ministral3B
+ )
+ flux2 = mistral_encoder._load_tokenizer_for_model(embedded_tekken_file, MagicMock(), FLUX2_VARIANT)
+
+ assert isinstance(ministral, PreTrainedTokenizerBase)
+ assert isinstance(flux2, mistral_encoder._TekkenRawTextAdapter)
+
+
+def test_ministral_gets_a_real_huggingface_tokenizer_not_the_adapter(
+ monkeypatch: pytest.MonkeyPatch, tekken_model_dir: Path
+) -> None:
+ """The adapter exists to splice FLUX.2's template markers. Ministral 3B has no chat template,
+ and the conditioning node type-checks for `PreTrainedTokenizerBase` and indexes plain id
+ lists — the adapter is neither, so this route hands back transformers' own backend."""
+ _no_hf_fallback(monkeypatch)
+
+ tokenizer = mistral_encoder._load_tokenizer_for_model(tekken_model_dir, MagicMock(), MistralVariantType.Ministral3B)
+
+ assert isinstance(tokenizer, PreTrainedTokenizerBase)
+ assert not isinstance(tokenizer, mistral_encoder._TekkenRawTextAdapter)
+ assert isinstance(tokenizer("hello", add_special_tokens=True, padding=False)["input_ids"], list)
+ # The backend carries no length limit of its own; ERNIE-Image's released tokenizer config
+ # truncates at 2048, and a dropped kwarg here would silently re-encode long prompts in full.
+ assert tokenizer.model_max_length == mistral_encoder._MINISTRAL_3B_MAX_PROMPT_TOKENS
+
+
+def test_ministral_keeps_a_mistral_common_probe_result_as_is(monkeypatch: pytest.MonkeyPatch, model_dir: Path) -> None:
+ """The re-wrap into the adapter is FLUX.2-only. Applying it here would replace a usable HF
+ tokenizer with one the ERNIE-Image conditioning node rejects."""
+ probe_result = _FakeMistralCommonTokenizer(object())
+ probe = _FakeLoader("AutoTokenizer", result=probe_result)
+ monkeypatch.setattr(mistral_encoder, "_TOKENIZER_LOADER_CLASSES", (probe,))
+ _no_hf_fallback(monkeypatch)
+
+ tokenizer = mistral_encoder._load_tokenizer_for_model(model_dir, MagicMock(), MistralVariantType.Ministral3B)
+
+ assert tokenizer is probe_result