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(previews): render live denoise previews with Tiny AutoEncoders (#10040)

Alexander Eichhorn21608ce1c991
diff --git a/docs/src/content/docs/Users Guide/03.Models/03.model-format-support.mdx b/docs/src/content/docs/Users Guide/03.Models/03.model-format-support.mdx
index 5341068978..7332e672a1 100644
--- a/docs/src/content/docs/Users Guide/03.Models/03.model-format-support.mdx
+++ b/docs/src/content/docs/Users Guide/03.Models/03.model-format-support.mdx
@@ -1,7 +1,7 @@
---
title: Model Format Support
description: Which file formats and quantizations InvokeAI loads for every model family, text encoder, VAE and adapter.
-lastUpdated: 2026-10-21
+lastUpdated: 2026-10-26
sidebar:
order: 3
---
@@ -105,6 +105,35 @@ Quantized VAE files (fp8, int8, nvfp4) are not supported; use the unquantized VA
Qwen-Image-2.1, Wan, Anima and Ideogram 4 VAEs fail with a message when they load. The FLUX.1 and SD 1.x / SDXL single-file VAEs do
not check, so a quantized file there fails with an unclear error or decodes incorrectly.
+## Preview decoders (Tiny AutoEncoders)
+
+Tiny AutoEncoders render [live denoising previews](/users-guide/image-generation/advanced-topics/tiny-autoencoder-previews/)
+and nothing else. Each one is a single file, a `.safetensors`, `.pth` or `.pt`.
+
+| Tiny AutoEncoder | File | Installs under | Previews for |
+|---|---|---|---|
+| TAESD | `taesd_decoder.safetensors` | SD 1.x | SD 1.x, SD 2.x |
+| TAESDXL | `taesdxl_decoder.safetensors` | SDXL | SDXL, SDXL Refiner |
+| TAESD3 | `diffusion_pytorch_model.safetensors` from `madebyollin/taesd3` | SD 3 | SD 3 |
+| TAEF1 | `diffusion_pytorch_model.safetensors` from `madebyollin/taef1` | FLUX.1 | FLUX.1, Z-Image |
+| TAEF2 | `taef2.safetensors` | FLUX.2 | FLUX.2, ERNIE-Image |
+| TAEQI2.1 | `taeqi2_1.safetensors` | Qwen-Image-2.1 | Qwen-Image-2.1 |
+
+Both published layouts load: the decoder-only files (the `*_decoder.safetensors` files above, and the
+`*_decoder.pth` files ComfyUI keeps in `models/vae_approx/`) and the files that hold encoder and decoder together
+(`diffusion_pytorch_model.safetensors`, `taef2.safetensors`, `taeqi2_1.safetensors`).
+
+TAESD and TAESDXL read the same 4-channel latents with the same network, and so do TAESD3 and TAEF1 with
+16 channels. For these four the file name, its folder name or the download source has to name the TAE (`taesd`,
+`taesdxl`, `taesd3` or `taef1`); a file that names none of them is refused (**R**). The starter models set the base
+themselves.
+
+- **R:** the "tinier" TAEQI2.1 (`taeqi2_1_tinier`); the message asks for `taeqi2_1.safetensors` instead.
+- **Not recognized:** other Tiny AutoEncoders, such as the 32× Sana decoder and the TAEHV video decoders
+ (`taew2_1`, `taew2_2`, `taeltx_2`). They install as unknown models.
+- A Diffusers `AutoencoderTiny` folder (for example the `madebyollin/taesdxl` repository as a whole) installs as a
+ VAE and is not used for previews. Install the single file instead.
+
## LoRAs and adapters
| Family | LoRA | ControlNet | Other adapters |
diff --git a/docs/src/content/docs/Users Guide/04.Image Generation/Advanced Topics/tiny-autoencoder-previews.mdx b/docs/src/content/docs/Users Guide/04.Image Generation/Advanced Topics/tiny-autoencoder-previews.mdx
new file mode 100644
index 0000000000..365b082dee
--- /dev/null
+++ b/docs/src/content/docs/Users Guide/04.Image Generation/Advanced Topics/tiny-autoencoder-previews.mdx
@@ -0,0 +1,79 @@
+---
+title: Tiny AutoEncoder Previews
+lastUpdated: 2026-10-28
+sidebar:
+ order: 13
+---
+
+import { Steps, Aside } from '@astrojs/starlight/components'
+
+While a model denoises, InvokeAI shows a preview of the image after each step. By default the preview is a linear
+projection of the latents: one pixel per latent, upscaled, so it is blurry and its colours are approximate. A
+**Tiny AutoEncoder** (TAE) is a small decoder by [madebyollin](https://github.com/madebyollin/taesd) (MIT license)
+that turns the same latents into a preview close to the final image, in about 25 ms on an RTX 4090. It needs a GPU:
+on CPU-only installs it is not recommended (see [Cost and fallback](#cost-and-fallback)).
+
+TAE previews change only what you see while a generation runs. The finished image is decoded by the model's VAE as
+always and is identical with the setting on or off.
+
+## Enabling TAE previews
+
+<Steps>
+1. Set the option in `invokeai.yaml`, then restart InvokeAI:
+
+ ```yaml
+ tiny_autoencoder_previews: true
+ ```
+
+ It is a server setting and is off by default. See [All Settings](/configuration/invokeai-yaml/#all-settings).
+
+2. In **Model Manager → Starter Models**, install the Tiny AutoEncoder for the families you generate with
+ (search for *preview decoder*). Each one is 5 to 31 MB.
+</Steps>
+
+| Starter model | Previews for |
+|---|---|
+| TAESD (SD 1.x/2.x preview decoder) | SD 1.x, SD 2.x |
+| TAESDXL (SDXL preview decoder) | SDXL, SDXL Refiner |
+| TAESD3 (SD3 preview decoder) | SD 3 |
+| TAEF1 (FLUX.1 preview decoder) | FLUX.1, Z-Image |
+| TAEF2 (FLUX.2 preview decoder) | FLUX.2, ERNIE-Image |
+| TAEQI2.1 (Qwen-Image-2.1 preview decoder) | Qwen-Image-2.1 |
+
+A TAE serves every family that denoises in its latent space, so you need only one per row. To install a TAE file
+you already have, see [Preview decoders](/users-guide/models/model-format-support/#preview-decoders-tiny-autoencoders)
+for the files InvokeAI accepts.
+
+FLUX.1, FLUX.2 and ERNIE-Image preview the image the model predicts, so the preview is clean from the first step.
+Z-Image, SD 3 and Qwen-Image-2.1 preview the current noisy latent: early previews show sharp noise, which clears as
+denoising proceeds. SD 1.x/2.x and SDXL depend on the scheduler: DDIM, DDPM, Euler, Euler a, Heun, LMS, KDPM2,
+KDPM2 a and DPM++ SDE report their prediction and preview cleanly; DPM++ 2M, 2M SDE, 3M and 2S, UniPC, DEIS, PNDM,
+LCM, TCD and ER-SDE preview the noisy latent.
+
+All other families keep the linear preview: Qwen-Image, Qwen-Image Edit, Krea-2, Anima, CogView4, Ideogram 4,
+Wan 2.2 and LTX-2. MiniMax H3 previews with its own built-in decoder whatever this setting says.
+
+## Cost and fallback
+
+Only the preview frames that are actually sent to the UI are decoded, between two denoising steps. Previews are at
+most 1024 pixels on their long edge; larger generations are previewed at reduced resolution and shown at full size.
+At that size, on an RTX 4090, a preview takes about 25 ms and about 0.65 GB of VRAM while it decodes (about 0.16 GB
+for Qwen-Image-2.1). Without a GPU a preview takes about 2 seconds, so TAE previews are not recommended on CPU-only
+installs.
+
+InvokeAI spaces TAE preview frames so that previews cost at most about a tenth of the denoising time. On fast models
+the preview therefore updates a few times per second rather than after every step. In practice the cost is lower: on
+an RTX 4090, denoising a 1024×1024 SDXL image in 30 steps took about 4.44 s with TAE previews against 4.18 s
+without, roughly 6% more.
+
+InvokeAI falls back to the linear preview by itself, and the generation always continues:
+
+- **No matching TAE installed:** linear previews. The server log names the family once.
+- **The TAE does not fit in VRAM** next to the running model: linear previews for that generation, noted once in
+ the server log. This is the case whenever the main model is only partially loaded into VRAM, as on low-VRAM cards.
+- **Loading or decoding the TAE fails:** a warning with the error in the server log, once per kind of failure,
+ then linear previews for the rest of that generation.
+
+<Aside type="note">
+If more than one installed TAE fits a family, InvokeAI uses the one that is alphabetically first by name.
+</Aside>
diff --git a/docs/src/content/docs/contributing/new-model-integration.mdx b/docs/src/content/docs/contributing/new-model-integration.mdx
index 68ec7136e8..936b53e0d0 100644
--- a/docs/src/content/docs/contributing/new-model-integration.mdx
+++ b/docs/src/content/docs/contributing/new-model-integration.mdx
@@ -1,7 +1,7 @@
---
title: New Model Type Integration Checklist
description: A step-by-step checklist for integrating a new model architecture into InvokeAI, from the model manager to the webv2 frontend and the tests that enforce completeness.
-lastUpdated: 2026-10-18
+lastUpdated: 2026-10-28
---
import { Steps, FileTree } from '@astrojs/starlight/components';
@@ -157,7 +157,7 @@ It checks only that the facets are *present*, not that their values are right.
| Facet | Required | What it declares | Read by |
| --- | --- | --- | --- |
-| `LatentSpaceFacet` | yes | Latent channels, spatial compression, latent→RGB projection | Step previews (`app/util/step_callback.py`) |
+| `LatentSpaceFacet` | yes | Latent channels, spatial compression, latent→RGB projection | Step previews (`app/util/step_callback.py`), and which Tiny AutoEncoder renders them |
| `ConditioningFacet` | yes | The `*ConditioningInfo` class the text encoder writes | The safe-globals list for conditioning deserialization |
| `DefaultSettingsFacet` | yes | Steps, CFG or guidance, scheduler and size per variant (`None` is the fallback); optional `by_name_hint` | Stored on the model config at identification; prefills the UI |
| `ModalityFacet` | yes | Modes (`txt2img`, `img2img`, `inpaint`, `outpaint`, video modes) and `metadata_slug` | Must equal `GENERATION_MODES`; which canvas tools the UI offers |
@@ -634,7 +634,7 @@ Packages are discovered automatically. A directory of node modules without an `_
- **External noise (optional).** Only if the denoise node accepts a noise tensor: extend `LatentNoiseType` and its shape and grid logic in `invokeai/app/invocations/latent_noise.py`, and extend `noise_type` in `invocations/noise.py`. Validate with `validate_noise_tensor_shape`.
- **Timestep-dependent conditioning.** Most architectures turn the text embeddings into the transformer's context once, before the loop. If a module between encoder and transformer reads the timestep -- Anima-3.8B's semantic connector does -- the context has to be recomputed at every step, for the positive, the negative and every regional conditioning. Pass the timestep exactly as the reference does: the connector scales sigma by 1000 before embedding it, so it gets a float32 sigma, where bf16's rounding would move its high frequencies by radians. A mask that leaves a query no key (an empty prompt encoded as one masked token) needs a defined result; `masked_sdpa` makes it zero instead of leaving it to the SDPA backend.
- **Inpainting.** Rectified-flow models use `RectifiedFlowInpaintExtension` (`invokeai/backend/rectified_flow/rectified_flow_inpaint_extension.py`).
-- **Previews.** `LatentSpaceFacet` provides them; there is nothing to add in the step callback.
+- **Previews.** `LatentSpaceFacet` provides them; there is nothing to add in the step callback. With `tiny_autoencoder_previews` on, the same callback decodes with an installed Tiny AutoEncoder for the space ([Tiny AutoEncoder previews](#tiny-autoencoder-previews)).
---
@@ -902,6 +902,21 @@ Paths below are relative to `invokeai/frontend/webv2/src/features/generation/cor
Declare `PiDDecoderVariantType` in the `VariantFacet`, and extend `configs/pid_decoder.py`, `load/model_loaders/pid_decoder.py` and `backend/pid/decode.py`. In webv2, update `pid.ts` and `pidGraph.ts`.
+### Tiny AutoEncoder previews
+
+A Tiny AutoEncoder (TAE) record serves every architecture whose step-callback sample resolves to the same `LatentSpace` object: `latent_space_with_channels(record.base, record.latent_channels) is resolve_latent_space(base, sample)` (`backend/tiny_autoencoder/preview.py`). An architecture that reuses a declared space, as Z-Image reuses `FLUX_16` and ERNIE-Image `FLUX2_32`, gets TAE previews from the existing records with no further work.
+
+A new latent space gets TAE previews only if a TAE exists for it. Then:
+
+- **Config:** a `TinyAutoencoder_Checkpoint_<Base>_Config` in `configs/tiny_autoencoder.py` with its `ARCH`, listed in `_CONFIG_CLASSES` and in `AnyModelConfig` (`configs/factory.py`). If another base's TAE has the same architecture and channel count, both TAEs' published names must be in `_TAE_NAME_PATTERNS`: identification tells them apart only by name.
+- **Loader:** one more `@ModelLoaderRegistry.register(base=..., type=ModelType.TinyAutoencoder, format=ModelFormat.Checkpoint)` on `TinyAutoencoderLoader` (`load/model_loaders/tiny_autoencoder.py`).
+- **Starter:** next to the family's VAE in its starter module, with a pinned `resolve/<sha>` URL and the shared `TINY_AUTOENCODER_NOTE` closing the description; listed in `STARTER_MODELS`, not in a bundle.
+- **Decoder:** a network the vendored code in `backend/tiny_autoencoder/` does not have is vendored there, and `checkpoint.py` learns its fingerprint, so that identification and the loader keep accepting exactly the same files.
+
+The TAE decodes the latent the denoise node hands to the step callback, so check that this is the latent the TAE was trained on, with the same normalization and channel order. The previews must also go through `context.util.sd_step_callback` (or `flux_step_callback`/`flux2_step_callback`); a node that renders its own preview image does not get TAE previews.
+
+Send the first step callback, step 0 included, only once the denoise model is locked (`model_on_device`). The TAE is loaded at the first preview and locked only if it fits next to the models already in VRAM; before the main model is locked, it always fits.
+
---
## 13. Tests and CI gates
diff --git a/docs/src/generated/settings.json b/docs/src/generated/settings.json
index 667bed0525..4755ca5fc0 100644
--- a/docs/src/generated/settings.json
+++ b/docs/src/generated/settings.json
@@ -769,6 +769,17 @@
"type": "<class 'bool'>",
"validation": {}
},
+ {
+ "category": "GENERATION",
+ "default": false,
+ "description": "Render denoising previews with an installed Tiny AutoEncoder instead of the linear latent projection. Install the matching Tiny AutoEncoder starter model; families without one keep linear previews. A preview costs about 25 ms and 0.65 GB of transient VRAM on an RTX 4090; not recommended on CPU-only installs, where one takes about 2 s.",
+ "env_var": "INVOKEAI_TINY_AUTOENCODER_PREVIEWS",
+ "literal_values": [],
+ "name": "tiny_autoencoder_previews",
+ "required": false,
+ "type": "<class 'bool'>",
+ "validation": {}
+ },
{
"category": "GENERATION",
"default": "auto",
diff --git a/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.py b/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.py
index 2fe3dfa4ae..08d9bb43c2 100644
--- a/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.py
+++ b/invokeai/app/invocations/qwen_image_2_1/qwen_image_2_1_denoise.py
@@ -423,17 +423,19 @@ class QwenImage21DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):
total_steps = len(sigmas) - 1
step_callback = self._step_callback(context)
- step_callback(
- PipelineIntermediateState(
- step=0,
- order=1,
- total_steps=total_steps,
- timestep=int(sigmas[0].item() * 1000),
- latents=unpack_latents(latents, latent_height, latent_width),
- )
- )
with transformer_info.model_on_device(working_mem_bytes=working_memory) as (_, transformer):
+ # Inside the lock: a Tiny AutoEncoder preview loads its TAE only if it fits next to the locked model.
+ step_callback(
+ PipelineIntermediateState(
+ step=0,
+ order=1,
+ total_steps=total_steps,
+ timestep=int(sigmas[0].item() * 1000),
+ latents=unpack_latents(latents, latent_height, latent_width),
+ )
+ )
+
# One cache per guidance branch, for this run only.
num_blocks = len(transformer.transformer_blocks)
pos_cache = QwenImage21KVCache(num_blocks) if use_cache else None
diff --git a/invokeai/app/invocations/sd3/sd3_denoise.py b/invokeai/app/invocations/sd3/sd3_denoise.py
index eb575611c6..d0402496ec 100644
--- a/invokeai/app/invocations/sd3/sd3_denoise.py
+++ b/invokeai/app/invocations/sd3/sd3_denoise.py
@@ -270,19 +270,20 @@ class SD3DenoiseInvocation(BaseInvocation, WithMetadata, WithBoard):
step_callback = self._build_step_callback(context)
- step_callback(
- PipelineIntermediateState(
- step=0,
- order=1,
- total_steps=total_steps,
- timestep=int(timesteps[0]),
- latents=latents,
- ),
- )
-
with transformer_info.model_on_device() as (cached_weights, transformer):
assert isinstance(transformer, SD3Transformer2DModel)
+ # Inside the lock: a Tiny AutoEncoder preview loads its TAE only if it fits next to the locked model.
+ step_callback(
+ PipelineIntermediateState(
+ step=0,
+ order=1,
+ total_steps=total_steps,
+ timestep=int(timesteps[0]),
+ latents=latents,
+ ),
+ )
+
# 6. Denoising loop
for step_idx, (t_curr, t_prev) in tqdm(
list(enumerate(zip(timesteps[:-1], timesteps[1:], strict=True))),
diff --git a/invokeai/app/services/config/config_default.py b/invokeai/app/services/config/config_default.py
index 84a6eeb64f..e5e2c2743b 100644
--- a/invokeai/app/services/config/config_default.py
+++ b/invokeai/app/services/config/config_default.py
@@ -135,6 +135,7 @@ class InvokeAIAppConfig(BaseSettings):
noise_dtype: The dtype seeded noise is drawn in for SD1.5/SDXL, SD3, FLUX.1, FLUX.2, CogView4 and the Z-Image seed variance enhancer. `float32` draws the same noise on every platform. `float16` is the half-precision draw of earlier versions: on macOS it keeps the images your seeds gave before this update; on Windows and Linux both values give (nearly) the same images, and images made before the update cannot be reproduced there.<br>Valid values: `float32`, `float16`
wan_memory_optimization: Enable experimental Wan memory optimizations at the cost of slower generation.
pid_memory_optimization: Enable experimental PiD decode memory optimizations. Roughly halves the peak activation memory of a PiD decode; in exchange the decoded image changes slightly, because neither the chunked pixel pathway nor the float32 sampler intermediates are bit-exact with the default path.
+ tiny_autoencoder_previews: Render denoising previews with an installed Tiny AutoEncoder instead of the linear latent projection. Install the matching Tiny AutoEncoder starter model; families without one keep linear previews. A preview costs about 25 ms and 0.65 GB of transient VRAM on an RTX 4090; not recommended on CPU-only installs, where one takes about 2 s.
attention_type: Attention type.<br>Valid values: `auto`, `normal`, `xformers`, `sliced`, `torch-sdp`
attention_slice_size: Slice size, valid when attention_type=="sliced".<br>Valid values: `auto`, `balanced`, `max`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`
attention_backend: Attention kernel for the attention inside diffusion models. `auto` lets PyTorch choose among its exact SDPA kernels and never selects a quantized one. `sage` uses SageAttention 2 for the models listed in the SageAttention docs: faster, most at high resolutions and for video, but quantized, so images differ slightly from `auto` at the same seed. SageAttention is installed separately and needs an NVIDIA GPU with compute capability 8.0 or newer; masked attention, text encoders and VAEs keep PyTorch SDPA.<br>Valid values: `auto`, `sage`
@@ -271,6 +272,7 @@ class InvokeAIAppConfig(BaseSettings):
noise_dtype: NOISE_DTYPE = Field(default="float32", description="The dtype seeded noise is drawn in for SD1.5/SDXL, SD3, FLUX.1, FLUX.2, CogView4 and the Z-Image seed variance enhancer. `float32` draws the same noise on every platform. `float16` is the half-precision draw of earlier versions: on macOS it keeps the images your seeds gave before this update; on Windows and Linux both values give (nearly) the same images, and images made before the update cannot be reproduced there.")
wan_memory_optimization: bool = Field(default=False, description="Enable experimental Wan memory optimizations at the cost of slower generation.")
pid_memory_optimization: bool = Field(default=False, description="Enable experimental PiD decode memory optimizations. Roughly halves the peak activation memory of a PiD decode; in exchange the decoded image changes slightly, because neither the chunked pixel pathway nor the float32 sampler intermediates are bit-exact with the default path.")
+ tiny_autoencoder_previews: bool = Field(default=False, description="Render denoising previews with an installed Tiny AutoEncoder instead of the linear latent projection. Install the matching Tiny AutoEncoder starter model; families without one keep linear previews. A preview costs about 25 ms and 0.65 GB of transient VRAM on an RTX 4090; not recommended on CPU-only installs, where one takes about 2 s.")
attention_type: ATTENTION_TYPE = Field(default="auto", description="Attention type.")
attention_slice_size: ATTENTION_SLICE_SIZE = Field(default="auto", description='Slice size, valid when attention_type=="sliced".')
attention_backend: ATTENTION_BACKEND = Field(default="auto", description="Attention kernel for the attention inside diffusion models. `auto` lets PyTorch choose among its exact SDPA kernels and never selects a quantized one. `sage` uses SageAttention 2 for the models listed in the SageAttention docs: faster, most at high resolutions and for video, but quantized, so images differ slightly from `auto` at the same seed. SageAttention is installed separately and needs an NVIDIA GPU with compute capability 8.0 or newer; masked attention, text encoders and VAEs keep PyTorch SDPA.")
diff --git a/invokeai/app/services/progress_previews/progress_previews_base.py b/invokeai/app/services/progress_previews/progress_previews_base.py
index 493ddb2ed9..3f7b87ff8f 100644
--- a/invokeai/app/services/progress_previews/progress_previews_base.py
+++ b/invokeai/app/services/progress_previews/progress_previews_base.py
@@ -21,13 +21,17 @@ class ProgressPreviewsBase(ABC):
"""
@abstractmethod
- def reserve_revision(self, item_id: int, session_id: str, percentage: float | None) -> int | None:
+ def reserve_revision(
+ self, item_id: int, session_id: str, percentage: float | None, min_interval_s: float | None = None
+ ) -> int | None:
"""Allocate the revision for a new image-bearing frame, or None if the frame should be dropped.
Args:
item_id: The queue item the frame belongs to.
session_id: The session producing it; a new session on the same item starts a new epoch.
percentage: The frame's progress, if determinate. A final frame (1.0) is never dropped.
+ min_interval_s: A longer interval the producer needs between its frames, e.g. because each
+ one is expensive to render. Never shortens the store's own interval.
"""
pass
diff --git a/invokeai/app/services/progress_previews/progress_previews_default.py b/invokeai/app/services/progress_previews/progress_previews_default.py
index e79b182b67..a119707020 100644
--- a/invokeai/app/services/progress_previews/progress_previews_default.py
+++ b/invokeai/app/services/progress_previews/progress_previews_default.py
@@ -33,15 +33,18 @@ class MemoryProgressPreviews(ProgressPreviewsBase):
self._lock = Lock()
self._items: dict[int, _ItemPreview] = {}
- def reserve_revision(self, item_id: int, session_id: str, percentage: float | None) -> int | None:
+ def reserve_revision(
+ self, item_id: int, session_id: str, percentage: float | None, min_interval_s: float | None = None
+ ) -> int | None:
now = self._clock()
+ interval = self._min_interval_s if min_interval_s is None else max(self._min_interval_s, min_interval_s)
with self._lock:
item = self._items.get(item_id)
if item is None or item.session_id != session_id:
item = _ItemPreview(session_id=session_id)
self._items[item_id] = item
is_final = percentage is None or percentage >= 1.0
- if not is_final and item.last_emitted_at is not None and now - item.last_emitted_at < self._min_interval_s:
+ if not is_final and item.last_emitted_at is not None and now - item.last_emitted_at < interval:
return None
item.revision += 1
item.last_emitted_at = now
diff --git a/invokeai/app/services/session_processor/session_processor_default.py b/invokeai/app/services/session_processor/session_processor_default.py
index 6ad998f177..d807c191bb 100644
--- a/invokeai/app/services/session_processor/session_processor_default.py
+++ b/invokeai/app/services/session_processor/session_processor_default.py
@@ -499,7 +499,8 @@ class DefaultSessionRunner(SessionRunnerBase):
return
# Invoke the node, optionally on a borrowed idle GPU (text encoders only).
- with self._maybe_offload_to_idle_gpu(invocation):
+ # Leaving `invocation_resources` releases what the context held for the run, however it ended.
+ with self._maybe_offload_to_idle_gpu(invocation), data.invocation_resources:
run_result = invocation.invoke_internal_with_effects(context=context, services=self._services)
output = run_result.output
control_collection = None
diff --git a/invokeai/app/services/shared/invocation_context.py b/invokeai/app/services/shared/invocation_context.py
index 469e0ce031..d4ce960227 100644
--- a/invokeai/app/services/shared/invocation_context.py
+++ b/invokeai/app/services/shared/invocation_context.py
@@ -1,5 +1,6 @@
+from contextlib import ExitStack
from copy import deepcopy
-from dataclasses import dataclass
+from dataclasses import dataclass, field
from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, Optional, Union
@@ -30,7 +31,8 @@ from invokeai.app.services.shared.execution_effects import ExecutionEffectsRecor
from invokeai.app.services.shared.pagination import SQLiteDirection
from invokeai.app.services.videos.videos_common import VideoDTO
from invokeai.app.services.wildcard_records.wildcard_records_common import build_wildcard_manager
-from invokeai.app.util.step_callback import diffusion_step_callback
+from invokeai.app.util.step_callback import PreviewRender, diffusion_step_callback
+from invokeai.app.util.tiny_autoencoder_previews import TinyAutoencoderPreviews
from invokeai.backend.model_manager.configs.base import Config_Base
from invokeai.backend.model_manager.configs.factory import AnyModelConfig
from invokeai.backend.model_manager.load.load_base import LoadedModel, LoadedModelWithoutConfig
@@ -90,6 +92,10 @@ class InvocationContextData:
"""Engine-owned saved-workflow authorization callback, when enabled."""
execution_workflow_inputs: dict[str, Any] | None = None
"""Resolved saved-workflow inputs supplied by the execution adapter."""
+ invocation_resources: ExitStack = field(default_factory=ExitStack)
+ """What the context holds for this run of the invocation, such as a Tiny AutoEncoder locked for previews.
+
+ Whoever runs the invocation closes it once the invocation returns or raises."""
class InvocationContextInterface:
@@ -851,6 +857,7 @@ class UtilInterface(InvocationContextInterface):
) -> None:
super().__init__(services, data)
self._is_canceled = is_canceled
+ self._previews: TinyAutoencoderPreviews | None = None
def is_canceled(self) -> bool:
"""Checks if the current session has been canceled.
@@ -873,10 +880,11 @@ class UtilInterface(InvocationContextInterface):
"""
diffusion_step_callback(
- signal_progress=self.signal_progress,
+ signal_preview=self._signal_preview,
intermediate_state=intermediate_state,
base_model=base_model,
is_canceled=self.is_canceled,
+ render=self._get_previews().render,
)
def flux_step_callback(self, intermediate_state: PipelineIntermediateState) -> None:
@@ -891,10 +899,11 @@ class UtilInterface(InvocationContextInterface):
"""
diffusion_step_callback(
- signal_progress=self.signal_progress,
+ signal_preview=self._signal_preview,
intermediate_state=intermediate_state,
base_model=BaseModelType.Flux,
is_canceled=self.is_canceled,
+ render=self._get_previews().render,
)
def flux2_step_callback(self, intermediate_state: PipelineIntermediateState) -> None:
@@ -906,10 +915,11 @@ class UtilInterface(InvocationContextInterface):
"""
diffusion_step_callback(
- signal_progress=self.signal_progress,
+ signal_preview=self._signal_preview,
intermediate_state=intermediate_state,
base_model=BaseModelType.Flux2,
is_canceled=self.is_canceled,
+ render=self._get_previews().render,
)
def signal_progress(
@@ -966,6 +976,22 @@ class UtilInterface(InvocationContextInterface):
original size.
"""
+ if image is not None:
+ self._signal_preview(message, percentage, lambda: (image, image_size))
+ return
+
+ # See _signal_preview: imageless progress is a step boundary too.
+ TorchDevice.flush_deferred_empty_cache()
+ self._services.events.emit_invocation_progress(
+ queue_item=self._data.queue_item,
+ invocation=self._data.invocation,
+ message=message,
+ percentage=percentage,
+ )
+
+ def _signal_preview(self, message: str, percentage: float | None, render: PreviewRender) -> None:
+ """Signal an image-bearing progress frame, rendering the image only if the frame is emitted."""
+
# Every denoise loop reports here once per step, so this is where a busy worker reaches a
# natural boundary in its own GPU work. If a peer deferred a process-global empty_cache
# (skipped so as not to stall THIS worker mid-step), run it now, from this thread, where
@@ -973,34 +999,46 @@ class UtilInterface(InvocationContextInterface):
# blocks. A flag test when nothing is pending.
TorchDevice.flush_deferred_empty_cache()
- queue_item = self._data.queue_item
-
- if image is None:
- self._services.events.emit_invocation_progress(
- queue_item=queue_item,
- invocation=self._data.invocation,
- message=message,
- percentage=percentage,
- )
- return
-
# Image-bearing frames are revisioned and throttled by the preview store, and the emitted
# event is retained there so a reconnecting client can be given the latest frame instead
- # of waiting for the next step. Throttled frames are dropped before the JPEG encode.
+ # of waiting for the next step. Throttled frames are dropped before the render and the
+ # JPEG encode. A Tiny AutoEncoder's frames are expensive enough to widen the interval.
+ queue_item = self._data.queue_item
previews = self._services.progress_previews
- revision = previews.reserve_revision(queue_item.item_id, queue_item.session_id, percentage)
+ renderer = self._get_previews()
+ revision = previews.reserve_revision(
+ queue_item.item_id, queue_item.session_id, percentage, min_interval_s=renderer.min_frame_interval_s
+ )
if revision is None:
return
+ with renderer.measure_frame():
+ image, image_size = render()
+ progress_image = ProgressImage.build(image, image_size)
event = self._services.events.emit_invocation_progress(
queue_item=queue_item,
invocation=self._data.invocation,
message=message,
percentage=percentage,
- image=ProgressImage.build(image, image_size),
+ image=progress_image,
revision=revision,
)
previews.record(event)
+ def _get_previews(self) -> TinyAutoencoderPreviews:
+ """What renders and paces this invocation's preview frames, created on the first one.
+
+ With `tiny_autoencoder_previews` off, it renders every frame linearly at the store's interval.
+ """
+ if self._previews is None:
+ self._previews = TinyAutoencoderPreviews(
+ self._services,
+ user_id=self._data.queue_item.user_id,
+ enabled=self._services.configuration.tiny_autoencoder_previews,
+ )
+ # A TAE stays locked from the first preview until the invocation's runner closes this.
+ self._data.invocation_resources.callback(self._previews.close)
+ return self._previews
+
class WildcardsInterface(InvocationContextInterface):
def get_manager(self) -> WildcardManager:
diff --git a/invokeai/app/util/step_callback.py b/invokeai/app/util/step_callback.py
index 4f6b7d22c4..d33a339534 100644
--- a/invokeai/app/util/step_callback.py
+++ b/invokeai/app/util/step_callback.py
@@ -1,6 +1,7 @@
from math import floor
from typing import Callable, TypeAlias
+import torch
from PIL import Image
from invokeai.app.services.session_processor.session_processor_common import CanceledException
@@ -28,14 +29,40 @@ def calc_percentage(intermediate_state: PipelineIntermediateState) -> float:
return step / total_steps
-SignalProgressFunc: TypeAlias = Callable[[str, float | None, Image.Image | None, tuple[int, int] | None], None]
+PreviewFrame: TypeAlias = tuple[Image.Image, tuple[int, int] | None]
+"""A preview image and the size to display it at (`None`: the image's own size)."""
+
+PreviewRender: TypeAlias = Callable[[], PreviewFrame]
+"""Renders one preview frame. Called only for a frame the preview throttle lets through."""
+
+PreviewRenderer: TypeAlias = Callable[[BaseModelType, torch.Tensor], PreviewFrame]
+"""Renders a preview of a latent sample denoised by `base_model`."""
+
+SignalPreviewFunc: TypeAlias = Callable[[str, float | None, PreviewRender], None]
+
+
+def render_linear_preview(base_model: BaseModelType, sample: torch.Tensor) -> tuple[Image.Image, tuple[int, int]]:
+ """Project `sample` onto RGB with the architecture's linear latent factors.
+
+ The image is one `spatial_compression`-th of the generated image per side; the returned display
+ size is the full generated size.
+ """
+ # Which projection, which bias, whether to smooth, and how much the VAE downscales are all facts
+ # about the architecture, and they live in invokeai/backend/architectures/defs/. This used to be
+ # a fifteen-branch if/elif ending in `raise ValueError(f"Unsupported base model: {base_model}")`,
+ # which fired on the first preview step — after the model had loaded and generation had started.
+ # An architecture that declares no latent space now fails at boot instead.
+ latent_space = resolve_latent_space(base_model, sample)
+ image = latent_space.preview(sample)
+ return image, (image.width * latent_space.spatial_compression, image.height * latent_space.spatial_compression)
def diffusion_step_callback(
- signal_progress: SignalProgressFunc,
+ signal_preview: SignalPreviewFunc,
intermediate_state: PipelineIntermediateState,
base_model: BaseModelType,
is_canceled: Callable[[], bool],
+ render: PreviewRenderer = render_linear_preview,
) -> None:
if is_canceled():
raise CanceledException
@@ -48,17 +75,4 @@ def diffusion_step_callback(
else:
sample = intermediate_state.latents
- # Which projection, which bias, whether to smooth, and how much the VAE downscales are all facts
- # about the architecture, and they live in invokeai/backend/architectures/defs/. This used to be
- # a fifteen-branch if/elif ending in `raise ValueError(f"Unsupported base model: {base_model}")`,
- # which fired on the first preview step — after the model had loaded and generation had started.
- # An architecture that declares no latent space now fails at boot instead.
- latent_space = resolve_latent_space(base_model, sample)
- image = latent_space.preview(sample)
-
- signal_progress(
- "Denoising",
- calc_percentage(intermediate_state),
- image,
- (image.width * latent_space.spatial_compression, image.height * latent_space.spatial_compression),
- )
+ signal_preview("Denoising", calc_percentage(intermediate_state), lambda: render(base_model, sample))
diff --git a/invokeai/app/util/tiny_autoencoder_previews.py b/invokeai/app/util/tiny_autoencoder_previews.py
new file mode 100644
index 0000000000..d66fc562bb
--- /dev/null
+++ b/invokeai/app/util/tiny_autoencoder_previews.py
@@ -0,0 +1,266 @@
+import logging
+from collections.abc import Hashable, Iterator
+from contextlib import ExitStack, contextmanager
+from dataclasses import dataclass
+from threading import Lock
+from time import monotonic
+from typing import TYPE_CHECKING
+
+import torch
+from PIL import Image
+
+from invokeai.app.util.step_callback import render_linear_preview
+from invokeai.backend.architectures import LatentSpace, resolve_latent_space
+from invokeai.backend.model_manager.configs.factory import AnyModelConfig
+from invokeai.backend.model_manager.configs.tiny_autoencoder import is_tiny_autoencoder_supported
+from invokeai.backend.model_manager.load.load_base import LoadedModel
+from invokeai.backend.model_manager.load.model_cache.model_cache import MODEL_LOAD_LOCK
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType
+from invokeai.backend.tiny_autoencoder.preview import (
+ decode_preview,
+ decode_working_memory_bytes,
+ select_tiny_autoencoder,
+)
+from invokeai.backend.tiny_autoencoder.taesd import TaesdDecoder
+from invokeai.backend.util.devices import TorchDevice
+
+if TYPE_CHECKING:
+ from invokeai.app.services.invocation_services import InvocationServices
+
+# Fallback causes already reported once, so later generations log them at DEBUG: they repeat on every
+# generation until the user acts, and every generation is a new session. Keyed by the cause and what it
+# concerns: a space with no installed TAE (by the space's `id()` -- spaces are module-level constants that
+# live as long as the process, and `LatentSpace` holds lists, so it does not hash), a TAE record whose file
+# is gone or that does not fit in VRAM (by the record's key), and a failure (by the space and the exception
+# type). All of them are finite, so the set is bounded. Shared by every generation thread.
+_reported: set[Hashable] = set()
+_reported_lock = Lock()
+
+# A TAE frame (decode plus the JPEG encode of a full-size image) runs on the generation thread between
+# two denoise steps; frames are accepted no closer than this many measured frame costs apart. The
+# measurement excludes the bubble the frame leaves behind: syncing and encoding on the CPU drains the
+# queue the CPU normally keeps ahead of the GPU, so the next step's launch latency shows, and on SDXL on
+# an RTX 4090 that cost about as much again as the frame. A factor of 20 keeps the whole overhead near
+# 10% whatever the GPU or the step time; the store's 0.1 s floor still applies to cheap frames.
+RENDER_COST_INTERVAL_FACTOR = 20
+
+# Weight of the newest frame in the running render-cost estimate: recent enough to follow a change in
+# load, smooth enough that one slow frame does not stall the previews.
+RENDER_COST_SMOOTHING = 0.5
+
+
+def _first_report(key: Hashable) -> bool:
+ with _reported_lock:
+ first = key not in _reported
+ _reported.add(key)
+ return first
+
+
+@dataclass(frozen=True)
+class _HeldDecoder:
+ decoder: TaesdDecoder
+ device: torch.device
+
+
+class TinyAutoencoderPreviews:
+ """Denoising previews decoded by an installed Tiny AutoEncoder, for one invocation.
+
+ The TAE is locked in the model cache when it first resolves and stays locked until `close()`, which
+ the invocation's teardown calls however the invocation ends. Locking it per frame instead would end
+ every lock in the cache's allocator-reserve release, an `empty_cache()` at up to the preview rate.
+
+ Falls back to the linear projection when no TAE decodes the sample's latent space, when the TAE
+ would not be fully resident in VRAM, and, for the rest of the invocation, after any load or decode
+ failure. Created with `enabled=False` (the `tiny_autoencoder_previews` setting off), it renders every
+ frame linearly and never looks a TAE up. Only the invocation's generation thread calls `render`, so
+ its state needs no lock.
+ """
+
+ def __init__(self, services: "InvocationServices", user_id: str | None = None, enabled: bool = True) -> None:
+ self._services = services
+ self._user_id = user_id
+ self._disabled = not enabled
+ self._configs: list[AnyModelConfig] | None = None
+ # One entry per latent space seen, compared by identity; None when the space renders linearly.
+ self._decoders: list[tuple[LatentSpace, _HeldDecoder | None]] = []
+ self._locks = ExitStack()
+ # The render-cost estimate covers only frames the TAE decoded: a linear frame costs next to nothing
+ # and must not pace anything, but its `.cpu()` waits for queued denoise work, so timing it would.
+ self._tae_frames = 0
+ self._render_cost_s: float | None = None
+ self._decoded_on: torch.device | None = None # where this frame's TAE decode ran; None if linear
+ self._last_tae_device: torch.device | None = None
+
+ @property
+ def min_frame_interval_s(self) -> float | None:
+ """How far apart TAE frames must be to keep their cost near 10% of the denoise; None for the store's own
+ interval, which applies until a TAE frame was measured and again once the TAE is disabled."""
+ if self._disabled or self._render_cost_s is None:
+ return None
+ return RENDER_COST_INTERVAL_FACTOR * self._render_cost_s
+
+ @contextmanager
+ def measure_frame(self) -> Iterator[None]:
+ """Time one emitted frame, from its render through its encode, into the render-cost estimate.
+
+ The TAE's device is synchronized first, so denoise work still queued on it is not counted as the
+ frame's. After that, wall time is the frame's whole cost: the decode copies its image to the CPU,
+ which waits for the decode. The first TAE frame is not counted, because it also looks the TAE up,
+ loads and locks it.
+ """
+ if self._last_tae_device is not None:
+ TorchDevice.synchronize(self._last_tae_device)
+ self._decoded_on = None
+ start = monotonic()
+ yield
+ cost = monotonic() - start
+ if self._decoded_on is None or self._disabled:
+ return
+ self._last_tae_device = self._decoded_on
+ self._tae_frames += 1
+ if self._tae_frames == 1:
+ return
+ if self._render_cost_s is None:
+ self._render_cost_s = cost
+ else:
+ self._render_cost_s += RENDER_COST_SMOOTHING * (cost - self._render_cost_s)
+
+ def render(self, base_model: BaseModelType, sample: torch.Tensor) -> tuple[Image.Image, tuple[int, int]]:
+ space = resolve_latent_space(base_model, sample)
+ if not self._disabled:
+ try:
+ held = self._decoder_for(base_model, space, sample)
+ if held is not None:
+ image = decode_preview(held.decoder, sample, device=held.device)
+ self._decoded_on = held.device
+ size = (sample.shape[-1] * space.spatial_compression, sample.shape[-2] * space.spatial_compression)
+ return image, size
+ except Exception as error:
+ # OOM included: the preview is optional, the denoise around it is not.
+ self._disable()
+ # The TAE that failed is the one `_resolve` selected for the space (None if the lookup itself failed).
+ config = select_tiny_autoencoder(self._configs or [], space)
+ self._log_once(
+ ("failed", None if config is None else config.key, id(space), type(error)),
+ logging.WARNING,
+ "Tiny AutoEncoder preview failed; using linear previews for the rest of this invocation.",
+ exc_info=True,
+ )
+ return render_linear_preview(base_model, sample)
+
+ def close(self) -> None:
+ """Release every TAE this invocation locked. Later frames render linearly."""
+ self._disable()
+
+ def _disable(self) -> None:
+ self._disabled = True
+ self._last_tae_device = None
+ self._decoders.clear()
+ self._locks.close()
+
+ def _decoder_for(self, base_model: BaseModelType, space: LatentSpace, sample: torch.Tensor) -> _HeldDecoder | None:
+ for known, held in self._decoders:
+ if known is space:
+ return held
+ held = self._resolve(base_model, space, sample)
+ if not self._disabled:
+ self._decoders.append((space, held))
+ return held
+
+ def _resolve(self, base_model: BaseModelType, space: LatentSpace, sample: torch.Tensor) -> _HeldDecoder | None:
+ model_manager = self._services.model_manager
+ if self._configs is None:
+ self._configs = model_manager.store.search_by_attr(model_type=ModelType.TinyAutoencoder)
+ config = select_tiny_autoencoder(self._configs, space)
+ if config is None:
+ self._report_missing(base_model, space)
+ return None
+
+ # Loaded through the service rather than `context.models.load`, which would signal a "Loading model"
+ # progress message mid-denoise. The service's model_load_started/complete events still fire, once per
+ # invocation.
+ try:
+ loaded = model_manager.load.load_model(config, user_id=self._user_id)
+ except FileNotFoundError as error:
+ self._report_unloadable(config, error)
+ return None
+
+ decoder = loaded.model # the very module the lock moves and yields
+ if not isinstance(decoder, TaesdDecoder):
+ raise TypeError(f"expected a TaesdDecoder, the loader returned {type(decoder).__name__}")
+ # Reserved once, with the lock: a denoise keeps its size, so every later frame decodes the same.
+ working_mem_bytes = decode_working_memory_bytes(decoder, sample)
+ if not self._fits_in_vram(loaded, working_mem_bytes):
+ self._report_not_resident(config)
+ return None
+
+ lock = ExitStack()
+ lock.enter_context(loaded.model_on_device(working_mem_bytes=working_mem_bytes))
+ if loaded.compute_device.type != "cpu" and loaded.resident_weight_bytes < loaded.weight_bytes:
+ # The cache's own budget (which `max_vram_cache_size_gb` caps) left the TAE partly in RAM. A CPU
+ # model reports no resident bytes at all: its lock does not move it.
+ lock.close()
+ self._disable()
+ self._report_not_resident(config)
+ return None
+ self._locks.push(lock)
+ return _HeldDecoder(decoder=decoder, device=loaded.compute_device)
+
+ def _fits_in_vram(self, loaded: LoadedModel, working_mem_bytes: int) -> bool:
+ """Whether locking `loaded` with `working_mem_bytes` reserved would make it fully resident, asked before
+ locking it.
+
+ `make_room_in_vram` offloads unlocked models by the policy a lock applies and keeps the reserve the
+ lock will keep, so a TAE that would not fit is refused without the lock's "VRAM budget short"
+ warning -- under partial loading, on every generation. It measures the device, not the cache's cap,
+ so `_resolve` checks residency again after locking.
+
+ The offload is a VRAM move, so it holds MODEL_LOAD_LOCK's read lock like every other: a construction on
+ another worker would otherwise strand the offloaded weights on `meta`. Taken before the cache's own lock,
+ per the lock order, and only around the offload -- `load_model` and the lock take it themselves.
+ """
+ if loaded.compute_device.type == "cpu":
+ return True
+ missing = loaded.weight_bytes - loaded.resident_weight_bytes
+ if missing <= 0:
+ return True
+ ram_cache = self._services.model_manager.load.ram_cache
+ with MODEL_LOAD_LOCK.read_lock():
+ available = ram_cache.make_room_in_vram(missing, working_mem_bytes=working_mem_bytes)
+ return available >= missing
+
+ def _report_missing(self, base_model: BaseModelType, space: LatentSpace) -> None:
+ if is_tiny_autoencoder_supported(space):
+ message = (
+ f"No installed Tiny AutoEncoder decodes {base_model.value} latents; using linear previews. "
+ "Install the matching Tiny AutoEncoder starter model."
+ )
+ else:
+ message = f"{base_model.value} has no Tiny AutoEncoder; using linear previews."
+ self._log_once(("space", id(space)), logging.INFO, message)
+
+ def _report_unloadable(self, config: AnyModelConfig, error: FileNotFoundError) -> None:
+ self._log_once(
+ ("file", config.key),
+ logging.WARNING,
+ f"Tiny AutoEncoder '{config.name}' could not be loaded ({error}); using linear previews. "
+ "Reinstall it or remove it from the model manager.",
+ )
+
+ def _report_not_resident(self, config: AnyModelConfig) -> None:
+ self._log_once(
+ ("not resident", config.key),
+ logging.INFO,
+ f"Tiny AutoEncoder '{config.name}' does not fit in VRAM next to the running model; "
+ "using linear previews for this invocation.",
+ )
+
+ def _log_once(self, key: Hashable, level: int, message: str, exc_info: bool | None = None) -> None:
+ """Log `message` at `level` the first time `key` is reported in this process, at DEBUG after that.
+
+ The traceback, if any, goes with the first report only.
+ """
+ if _first_report(key):
+ self._services.logger.log(level, message, exc_info=exc_info)
+ else:
+ self._services.logger.debug(message)
diff --git a/invokeai/backend/architectures/__init__.py b/invokeai/backend/architectures/__init__.py
index 52fa95a238..386140931e 100644
--- a/invokeai/backend/architectures/__init__.py
+++ b/invokeai/backend/architectures/__init__.py
@@ -30,6 +30,7 @@ from invokeai.backend.architectures.facets.features import (
from invokeai.backend.architectures.facets.latent_space import (
LatentSpace,
LatentSpaceFacet,
+ latent_space_with_channels,
resolve_latent_space,
)
from invokeai.backend.architectures.facets.modality import (
@@ -89,6 +90,7 @@ __all__ = [
"generation_modes",
"get_max_unet_downscale",
"get_variant_enum",
+ "latent_space_with_channels",
"resolve_default_settings",
"resolve_latent_space",
"defs_module_path",
diff --git a/invokeai/backend/architectures/facets/latent_space.py b/invokeai/backend/architectures/facets/latent_space.py
index e7fc92a6ec..c3bd78eab4 100644
--- a/invokeai/backend/architectures/facets/latent_space.py
+++ b/invokeai/backend/architectures/facets/latent_space.py
@@ -19,7 +19,7 @@ import torch
from PIL import Image
from invokeai.backend.architectures.facet import Facet
-from invokeai.backend.architectures.registry import ArchitectureError, require
+from invokeai.backend.architectures.registry import ArchitectureError, get, require
from invokeai.backend.model_manager.taxonomy import AnyVariant, BaseModelType
_DEFS_PACKAGE: Final = "invokeai/backend/architectures/defs/"
@@ -659,6 +659,29 @@ class LatentSpaceFacet(Facet):
return space
return self.primary
+ def with_channels(self, channels: int) -> LatentSpace | None:
+ """The declared space with this many latent channels, or None.
+
+ Unlike `resolve`, an unknown count is no match rather than the primary: a caller asking by
+ channel count is pairing a model with a space, and a fallback would pair it with the wrong one.
+ `by_variant` names no space of its own, so `primary` and `alternates` cover it.
+ """
+ return next((space for space in (self.primary, *self.alternates) if space.channels == channels), None)
+
+
+def latent_space_with_channels(base: BaseModelType, channels: int) -> LatentSpace | None:
+ """The space `base` denoises in that has `channels` latent channels; None if it declares none.
+
+ Tiny AutoEncoders consume diffusion-space latents, which is exactly what a `LatentSpace` describes,
+ so a TAE recorded as `(base, channels)` serves every architecture whose sample resolves to the same
+ space *object*. Spaces are shared by identity -- SD15_4 by SD 1 and SD 2, FLUX_16 by FLUX.1 and
+ Z-Image, FLUX2_32 by FLUX.2, ERNIE-Image and Ideogram 4, WAN21_16 by Wan, Qwen-Image, Krea-2 and
+ Anima -- so one TAE record serves them all. Compare results with `is`: `LatentSpace` holds lists
+ and is unhashable.
+ """
+ facet = get(base, LatentSpaceFacet)
+ return None if facet is None else facet.with_channels(channels)
+
def resolve_latent_space(base: BaseModelType, sample: torch.Tensor) -> LatentSpace:
"""The latent space `base` is denoising `sample` in.
diff --git a/invokeai/backend/image_util/controlnet_processor.py b/invokeai/backend/image_util/controlnet_processor.py
index 81eed42097..98fa327683 100644
--- a/invokeai/backend/image_util/controlnet_processor.py
+++ b/invokeai/backend/image_util/controlnet_processor.py
@@ -170,7 +170,8 @@ def process_controlnet_image(image_name: str, model_key: str, services: Invocati
)
# Invoke the processor
- output = invocation.invoke(context)
+ with context_data.invocation_resources:
+ output = invocation.invoke(context)
# Get the processed image DTO
processed_image_dto = services.images.get_dto(output.image.image_name)
diff --git a/invokeai/backend/model_manager/configs/backbone_names.py b/invokeai/backend/model_manager/configs/backbone_names.py
index 0bfb73f0dd..3a2462597d 100644
--- a/invokeai/backend/model_manager/configs/backbone_names.py
+++ b/invokeai/backend/model_manager/configs/backbone_names.py
@@ -8,6 +8,7 @@ have not already allowed.
"""
import re
+from pathlib import PureWindowsPath
from typing import Any
from invokeai.backend.model_manager.model_on_disk import ModelOnDisk
@@ -29,18 +30,41 @@ def name_components(mod: ModelOnDisk, override_fields: dict[str, Any]) -> tuple[
first and was registered as FLUX although the file itself says sd3. Matching component by
component and taking the first that names exactly one backbone lets the more specific name win.
- A local install contributes no source: the model manager sets `source` to the file's own path
- when there is no remote one (`ModelConfigFactory.build_common_fields`), so trusting it would mean
- matching against arbitrary ancestor directories of wherever the user keeps their models. Nothing
- is lost by dropping it — `install_path` identifies a local file *before* it moves it, so the
- filename and parent directory are still the originals.
+ A local install's source is the path the file was installed from
+ (`ModelConfigFactory.build_common_fields`). Only its file and folder name count, never the whole
+ path: that would mean matching against arbitrary ancestor directories of wherever the user keeps
+ their models. An install identifies a local file at that path, before moving it into a folder
+ named for its key, so these are the names the install read; re-identifying the moved file reads
+ them again. `folder_names` says which of the components are folder names.
"""
components = [mod.path.name, mod.path.parent.name]
- if override_fields.get("source_type") != ModelSourceType.Path:
+ local_source = _local_source(override_fields)
+ if local_source is not None:
+ components += [local_source.name, local_source.parent.name]
+ else:
components.append(str(override_fields.get("source") or ""))
return tuple(c for c in components if c)
+def folder_names(mod: ModelOnDisk, override_fields: dict[str, Any]) -> frozenset[str]:
+ """The components of `name_components` that name a folder rather than a file: the file's own folder and, for a
+ local install, the folder it was installed from."""
+ local_source = _local_source(override_fields)
+ folders = {mod.path.parent.name, "" if local_source is None else local_source.parent.name}
+ return frozenset(f for f in folders if f)
+
+
+def _local_source(override_fields: dict[str, Any]) -> PureWindowsPath | None:
+ """The path a local install came from, or None for a remote source.
+
+ Parsed as a Windows path, which splits on both separators, so a source recorded on either OS yields the same file
+ and folder name wherever the model is re-identified.
+ """
+ if override_fields.get("source_type") != ModelSourceType.Path:
+ return None
+ return PureWindowsPath(str(override_fields.get("source") or ""))
+
+
# Ordered so that a more specific spelling is consumed before a more general one that it contains:
# `flux2` before `flux`. That is precedence between two spellings of one answer, not between two
# answers — see `backbone_named_in`.
diff --git a/invokeai/backend/model_manager/configs/factory.py b/invokeai/backend/model_manager/configs/factory.py
index 5de386b089..1a8f32d2a7 100644
--- a/invokeai/backend/model_manager/configs/factory.py
+++ b/invokeai/backend/model_manager/configs/factory.py
@@ -191,6 +191,14 @@ from invokeai.backend.model_manager.configs.textual_inversion import (
TI_Folder_SD2_Config,
TI_Folder_SDXL_Config,
)
+from invokeai.backend.model_manager.configs.tiny_autoencoder import (
+ TinyAutoencoder_Checkpoint_Flux2_Config,
+ TinyAutoencoder_Checkpoint_FLUX_Config,
+ TinyAutoencoder_Checkpoint_QwenImage21_Config,
+ TinyAutoencoder_Checkpoint_SD1_Config,
+ TinyAutoencoder_Checkpoint_SD3_Config,
+ TinyAutoencoder_Checkpoint_SDXL_Config,
+)
from invokeai.backend.model_manager.configs.unknown import Unknown_Config
from invokeai.backend.model_manager.configs.vae import (
VAE_Checkpoint_Anima_Config,
@@ -502,6 +510,15 @@ AnyModelConfig = Annotated[
Annotated[PiDDecoder_Checkpoint_SD3_Config, PiDDecoder_Checkpoint_SD3_Config.get_tag()],
Annotated[PiDDecoder_Checkpoint_SDXL_Config, PiDDecoder_Checkpoint_SDXL_Config.get_tag()],
Annotated[PiDDecoder_Checkpoint_QwenImage_Config, PiDDecoder_Checkpoint_QwenImage_Config.get_tag()],
+ # Tiny AutoEncoder (denoise preview decoder) - checkpoint format
+ Annotated[TinyAutoencoder_Checkpoint_SD1_Config, TinyAutoencoder_Checkpoint_SD1_Config.get_tag()],
+ Annotated[TinyAutoencoder_Checkpoint_SDXL_Config, TinyAutoencoder_Checkpoint_SDXL_Config.get_tag()],
+ Annotated[TinyAutoencoder_Checkpoint_SD3_Config, TinyAutoencoder_Checkpoint_SD3_Config.get_tag()],
+ Annotated[TinyAutoencoder_Checkpoint_FLUX_Config, TinyAutoencoder_Checkpoint_FLUX_Config.get_tag()],
+ Annotated[TinyAutoencoder_Checkpoint_Flux2_Config, TinyAutoencoder_Checkpoint_Flux2_Config.get_tag()],
+ Annotated[
+ TinyAutoencoder_Checkpoint_QwenImage21_Config, TinyAutoencoder_Checkpoint_QwenImage21_Config.get_tag()
+ ],
# ControlNet - checkpoint format
Annotated[ControlNet_Checkpoint_SD1_Config, ControlNet_Checkpoint_SD1_Config.get_tag()],
Annotated[ControlNet_Checkpoint_SD2_Config, ControlNet_Checkpoint_SD2_Config.get_tag()],
diff --git a/invokeai/backend/model_manager/configs/pid_decoder.py b/invokeai/backend/model_manager/configs/pid_decoder.py
index 88310bc5eb..7bab0748aa 100644
--- a/invokeai/backend/model_manager/configs/pid_decoder.py
+++ b/invokeai/backend/model_manager/configs/pid_decoder.py
@@ -16,7 +16,11 @@ from typing import Any, Literal, Self
from pydantic import Field
-from invokeai.backend.model_manager.configs.backbone_names import backbone_from_components, name_components
+from invokeai.backend.model_manager.configs.backbone_names import (
+ backbone_from_components,
+ folder_names,
+ name_components,
+)
from invokeai.backend.model_manager.configs.base import Checkpoint_Config_Base, Config_Base
from invokeai.backend.model_manager.configs.identification_utils import (
InvalidMatchError,
@@ -223,7 +227,7 @@ def _variant_from_components(
return _SINGLE_VARIANT_BACKBONES.get(base, PiDDecoderVariantType.Res2k_Sr4x)
-def _raise_if_named_undistilled(components: tuple[str, ...], folder_name: str) -> None:
+def _raise_if_named_undistilled(components: tuple[str, ...], folders: frozenset[str]) -> None:
"""Reject a v1.5 decoder whose name marks it as NVIDIA's undistilled teacher.
NVIDIA published each v1.5 decoder twice: the 4-step distilled student the decode nodes sample, and the
@@ -233,12 +237,12 @@ def _raise_if_named_undistilled(components: tuple[str, ...], folder_name: str) -
neither is accepted.
Comfy-Org's spelling marks the teacher by what its file name lacks, so it is only read off file names — the
- last segment of the file's own name or of its install source — never off ``folder_name``, the folder a local
- install is identified in, which a user may well have named `pid_1.5_decoders`.
+ last segment of the file's own name or of its install source — never off ``folders``, the folder a local
+ install is identified in and the one it was installed from, which a user may well have named `pid_1.5_decoders`.
"""
for component in components:
n = component.lower()
- file_name = "" if component == folder_name else n.replace("\\", "/").rsplit("/", 1)[-1]
+ file_name = "" if component in folders else n.replace("\\", "/").rsplit("/", 1)[-1]
if "undistilled" in n or (file_name.startswith("pid_1.5_") and "4step" not in file_name):
raise InvalidMatchError(
f"PiD v1.5 checkpoint {component!r} is named as an undistilled (teacher) decoder. InvokeAI samples "
@@ -373,7 +377,7 @@ class PiDDecoder_Checkpoint_Config_Base(Checkpoint_Config_Base):
latent_channels = shapes[_LATENT_PROJ_KEY][1] # type: ignore[index]
components = name_components(mod, override_fields)
if version is PiDVersion.V1_5:
- _raise_if_named_undistilled(components, mod.path.parent.name)
+ _raise_if_named_undistilled(components, folder_names(mod, override_fields))
cls._validate_base(
latent_channels=latent_channels,
diff --git a/invokeai/backend/model_manager/configs/tiny_autoencoder.py b/invokeai/backend/model_manager/configs/tiny_autoencoder.py
new file mode 100644
index 0000000000..78349aba01
--- /dev/null
+++ b/invokeai/backend/model_manager/configs/tiny_autoencoder.py
@@ -0,0 +1,177 @@
+"""Tiny AutoEncoders (madebyollin's TAESD family), used only to render denoising previews.
+
+A TAE decodes the latents an architecture denoises in, so a record is filed under the base whose
+`LatentSpace` its weights fit, and serves every base sharing that space (`latent_space_with_channels`).
+Only single files are TAEs here: a diffusers `AutoencoderTiny` folder stays a VAE, as it always was.
+
+The weights fix the latent width and the decoder architecture. Two widths are shared by two bases with
+the same default decoder -- 4 channels (SD 1, SDXL) and 16 (SD3, FLUX.1) -- and there an explicit
+`base` override decides, else the TAE's published name. A file that names none of them is refused
+rather than guessed: a wrong guess would install cleanly and render every preview in wrong colours.
+"""
+
+import re
+from typing import ClassVar, Literal, Self
+
+from pydantic import Field
+from typing_extensions import Any
+
+from invokeai.backend.architectures import LatentSpace, latent_space_with_channels
+from invokeai.backend.model_manager.configs.backbone_names import name_components
+from invokeai.backend.model_manager.configs.base import Checkpoint_Config_Base, Config_Base
+from invokeai.backend.model_manager.configs.identification_utils import (
+ InvalidMatchError,
+ NotAMatchError,
+ raise_for_override_fields,
+ raise_if_not_file,
+)
+from invokeai.backend.model_manager.model_on_disk import ModelOnDisk
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat, ModelType
+from invokeai.backend.tiny_autoencoder.checkpoint import (
+ TAESD_CHECKPOINT_SUFFIXES,
+ TaesdArch,
+ TaesdLayout,
+ detect_taesd_layout,
+ is_tinier_taesd,
+)
+
+# madebyollin's names, as they appear in file names, repo names and install URLs. Boundary-aware, so
+# `taesd` matches neither `taesdxl` nor `taesd3`.
+_TAE_NAME_PATTERNS: tuple[tuple[BaseModelType, re.Pattern[str]], ...] = tuple(
+ (base, re.compile(rf"(?<![a-z0-9]){re.escape(name)}(?![a-z0-9])"))
+ for base, name in (
+ (BaseModelType.StableDiffusionXL, "taesdxl"),
+ (BaseModelType.StableDiffusion3, "taesd3"),
+ (BaseModelType.StableDiffusion1, "taesd"),
+ (BaseModelType.Flux, "taef1"),
+ (BaseModelType.Flux2, "taef2"),
+ (BaseModelType.QwenImage21, "taeqi2_1"),
+ )
+)
+
+
+def _tae_named_in(components: tuple[str, ...]) -> BaseModelType | None:
+ """The base named by the most specific name component that names exactly one TAE."""
+ for component in components:
+ named = {base for base, pattern in _TAE_NAME_PATTERNS if pattern.search(component.lower())}
+ if len(named) == 1:
+ return named.pop()
+ return None
+
+
+class TinyAutoencoder_Checkpoint_Config_Base(Checkpoint_Config_Base):
+ """Model config for a Tiny AutoEncoder preview decoder."""
+
+ type: Literal[ModelType.TinyAutoencoder] = Field(default=ModelType.TinyAutoencoder)
+ format: Literal[ModelFormat.Checkpoint] = Field(default=ModelFormat.Checkpoint)
+ latent_channels: int = Field(description="Latent channels the decoder consumes.")
+
+ ARCH: ClassVar[TaesdArch]
+ """The decoder architecture this base's TAE uses."""
+
+ @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)
+
+ if mod.path.suffix.lower() not in TAESD_CHECKPOINT_SUFFIXES:
+ raise NotAMatchError(f"the Tiny AutoEncoder loader does not read {mod.path.suffix} files")
+
+ state_dict = mod.load_state_dict()
+ layout = detect_taesd_layout(state_dict)
+ if layout is None:
+ if is_tinier_taesd(state_dict):
+ raise InvalidMatchError(
+ "This is the 'tinier' TAEQI2.1 preview decoder, which InvokeAI does not support. "
+ "Install taeqi2_1.safetensors from the same repository instead."
+ )
+ raise NotAMatchError("state dict is not a TAESD decoder")
+
+ base: BaseModelType = cls.model_fields["base"].default
+ candidates = _bases_fitting(layout)
+ if base not in candidates:
+ if override_fields.get("base") is not None:
+ # The override has already been held to this class's base, so the user asked for a base
+ # whose latents this decoder cannot read. Falling through would file it as Unknown.
+ raise InvalidMatchError(
+ f"This preview decoder ({layout.latent_channels} latent channels, {layout.arch} architecture) "
+ f"cannot decode {base.value} latents."
+ )
+ raise NotAMatchError(f"a {layout.latent_channels}-channel {layout.arch} TAE is not for {base.value}")
+
+ if len(candidates) > 1 and override_fields.get("base") is None:
+ named = _tae_named_in(name_components(mod, override_fields))
+ if named not in candidates:
+ names = " or ".join(sorted(b.value for b in candidates))
+ raise InvalidMatchError(
+ f"This preview decoder reads {layout.latent_channels}-channel latents, which {names} share, "
+ "and its name does not say which it is for. Install it from the starter models, or name the "
+ "file after the TAE it is (taesd, taesdxl, taesd3 or taef1)."
+ )
+ if named is not base:
+ raise NotAMatchError(f"named for {named.value}, not {base.value}")
+
+ return cls(**override_fields, latent_channels=layout.latent_channels)
+
+
+class TinyAutoencoder_Checkpoint_SD1_Config(TinyAutoencoder_Checkpoint_Config_Base, Config_Base):
+ base: Literal[BaseModelType.StableDiffusion1] = Field(default=BaseModelType.StableDiffusion1)
+ ARCH: ClassVar[TaesdArch] = "default"
+
+
+class TinyAutoencoder_Checkpoint_SDXL_Config(TinyAutoencoder_Checkpoint_Config_Base, Config_Base):
+ base: Literal[BaseModelType.StableDiffusionXL] = Field(default=BaseModelType.StableDiffusionXL)
+ ARCH: ClassVar[TaesdArch] = "default"
+
+
+class TinyAutoencoder_Checkpoint_SD3_Config(TinyAutoencoder_Checkpoint_Config_Base, Config_Base):
+ base: Literal[BaseModelType.StableDiffusion3] = Field(default=BaseModelType.StableDiffusion3)
+ ARCH: ClassVar[TaesdArch] = "default"
+
+
+class TinyAutoencoder_Checkpoint_FLUX_Config(TinyAutoencoder_Checkpoint_Config_Base, Config_Base):
+ base: Literal[BaseModelType.Flux] = Field(default=BaseModelType.Flux)
+ ARCH: ClassVar[TaesdArch] = "default"
+
+
+class TinyAutoencoder_Checkpoint_Flux2_Config(TinyAutoencoder_Checkpoint_Config_Base, Config_Base):
+ base: Literal[BaseModelType.Flux2] = Field(default=BaseModelType.Flux2)
+ ARCH: ClassVar[TaesdArch] = "flux_2"
+
+
+class TinyAutoencoder_Checkpoint_QwenImage21_Config(TinyAutoencoder_Checkpoint_Config_Base, Config_Base):
+ base: Literal[BaseModelType.QwenImage21] = Field(default=BaseModelType.QwenImage21)
+ ARCH: ClassVar[TaesdArch] = "f16"
+
+
+_CONFIG_CLASSES: tuple[type[TinyAutoencoder_Checkpoint_Config_Base], ...] = (
+ TinyAutoencoder_Checkpoint_SD1_Config,
+ TinyAutoencoder_Checkpoint_SDXL_Config,
+ TinyAutoencoder_Checkpoint_SD3_Config,
+ TinyAutoencoder_Checkpoint_FLUX_Config,
+ TinyAutoencoder_Checkpoint_Flux2_Config,
+ TinyAutoencoder_Checkpoint_QwenImage21_Config,
+)
+
+
+def _base_of(config: type[TinyAutoencoder_Checkpoint_Config_Base]) -> BaseModelType:
+ return config.model_fields["base"].default
+
+
+def _bases_fitting(layout: TaesdLayout) -> frozenset[BaseModelType]:
+ """Every base with a TAE config whose architecture and latent space this decoder fits."""
+ return frozenset(
+ _base_of(config)
+ for config in _CONFIG_CLASSES
+ if config.ARCH == layout.arch
+ and latent_space_with_channels(_base_of(config), layout.latent_channels) is not None
+ )
+
+
+def is_tiny_autoencoder_supported(space: LatentSpace) -> bool:
+ """Whether InvokeAI identifies a TAE that decodes `space`, i.e. whether there is one worth installing.
+
+ Every TAE config class has a starter model, so this is also whether a starter serves the space.
+ """
+ return any(latent_space_with_channels(_base_of(config), space.channels) is space for config in _CONFIG_CLASSES)
diff --git a/invokeai/backend/model_manager/load/model_cache/model_cache.py b/invokeai/backend/model_manager/load/model_cache/model_cache.py
index d0610b528e..ab4ae65364 100644
--- a/invokeai/backend/model_manager/load/model_cache/model_cache.py
+++ b/invokeai/backend/model_manager/load/model_cache/model_cache.py
@@ -2443,9 +2443,9 @@ class ModelCache:
except Exception:
return 0
- def _get_physical_vram_available(self) -> int:
- """VRAM a load *outside* the cache can still take on the execution device, less the configured working-memory
- reserve.
+ def _get_physical_vram_available(self, working_mem_bytes: Optional[int] = None) -> int:
+ """VRAM a load *outside* the cache can still take on the execution device, less the working-memory reserve
+ (`working_mem_bytes`, never less than the configured one).
Unlike `_get_vram_available`, this ignores `max_vram_cache_size_gb`: the cap limits how much of the card the
cache may occupy, but an out-of-cache model (e.g. the BitsAndBytes-quantized Qwen encoder) is not subject to
@@ -2457,7 +2457,7 @@ class ModelCache:
trailing `empty_cache()`. Crediting the raw reserved-minus-allocated figure instead over-reports under
expandable segments and by intra-segment slack — the measured-OOM cases that helper exists to exclude.
"""
- return self._get_vram_available(None, honor_cap=False)
+ return self._get_vram_available(working_mem_bytes, honor_cap=False)
def calibration_capacity(self) -> int:
"""What the measured lock of a working-memory calibration can get on the execution device, its working memory
@@ -3132,7 +3132,7 @@ class ModelCache:
return len(dropped)
@synchronized
- def make_room_in_vram(self, vram_bytes_needed: int) -> int:
+ def make_room_in_vram(self, vram_bytes_needed: int, working_mem_bytes: Optional[int] = None) -> int:
"""Offload unlocked models from VRAM to RAM until `vram_bytes_needed` bytes are free on the execution device.
This is the entry point for code that has to put a model on the GPU *outside* the cache - e.g. a
@@ -3143,8 +3143,10 @@ class ModelCache:
The same policy as `lock()` is used (`_offload_unlocked_models`): unlocked models are offloaded to RAM until
the availability check is satisfied, and kept in the cache so a later use re-streams weights instead of
- rebuilding from disk. Locked (in-use) models are never touched. The configured working-memory reserve is
- kept free on top of the request, exactly as in `lock()`. The availability check is the device's *physical*
+ rebuilding from disk. Locked (in-use) models are never touched. The working-memory reserve is kept free on
+ top of the request, exactly as in `lock()`: `working_mem_bytes`, but never less than `device_working_mem_gb`.
+ A caller that will lock a model with `working_mem_bytes` can thus ask beforehand whether the lock would fit
+ it. The availability check is the device's *physical*
free memory (`_get_physical_vram_available`), not the cache's own budget: `max_vram_cache_size_gb` caps what
the cache may occupy, not what an out-of-cache model may.
@@ -3157,8 +3159,12 @@ class ModelCache:
"""
if self._execution_device.type == "cpu":
return 0
- self._offload_unlocked_models(vram_bytes_needed, vram_available_fn=self._get_physical_vram_available)
- return self._get_physical_vram_available()
+
+ def vram_available() -> int:
+ return self._get_physical_vram_available(working_mem_bytes)
+
+ self._offload_unlocked_models(vram_bytes_needed, vram_available_fn=vram_available)
+ return vram_available()
@synchronized
def offload_model_from_vram(self, model_key: str) -> int:
diff --git a/invokeai/backend/model_manager/load/model_loaders/tiny_autoencoder.py b/invokeai/backend/model_manager/load/model_loaders/tiny_autoencoder.py
new file mode 100644
index 0000000000..740c0520a6
--- /dev/null
+++ b/invokeai/backend/model_manager/load/model_loaders/tiny_autoencoder.py
@@ -0,0 +1,61 @@
+"""Loader for Tiny AutoEncoder preview decoders (madebyollin's TAESD family)."""
+
+from pathlib import Path
+from typing import Any, Optional
+
+import torch
+from safetensors.torch import load_file as safetensors_load_file
+
+from invokeai.backend.model_manager.configs.factory import AnyModelConfig
+from invokeai.backend.model_manager.configs.tiny_autoencoder import TinyAutoencoder_Checkpoint_Config_Base
+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.model_on_disk import unwrap_state_dict
+from invokeai.backend.model_manager.taxonomy import AnyModel, BaseModelType, ModelFormat, ModelType, SubModelType
+from invokeai.backend.tiny_autoencoder.checkpoint import (
+ PICKLE_SUFFIXES,
+ SAFETENSORS_SUFFIX,
+ build_taesd_decoder,
+ detect_taesd_layout,
+ taesd_decoder_state_dict,
+)
+
+
+def _read_checkpoint(path: Path) -> dict[str, Any]:
+ if path.suffix.lower() == SAFETENSORS_SUFFIX:
+ return safetensors_load_file(path)
+ if path.suffix.lower() in PICKLE_SUFFIXES:
+ return unwrap_state_dict(torch.load(path, map_location="cpu", weights_only=True))
+ raise ValueError(f"Unrecognised Tiny AutoEncoder checkpoint extension: {path.suffix!r}")
+
+
+ base=BaseModelType.StableDiffusion1, type=ModelType.TinyAutoencoder, format=ModelFormat.Checkpoint
+)
+ base=BaseModelType.StableDiffusionXL, type=ModelType.TinyAutoencoder, format=ModelFormat.Checkpoint
+)
+ base=BaseModelType.StableDiffusion3, type=ModelType.TinyAutoencoder, format=ModelFormat.Checkpoint
+)
[email protected](base=BaseModelType.Flux, type=ModelType.TinyAutoencoder, format=ModelFormat.Checkpoint)
[email protected](base=BaseModelType.Flux2, type=ModelType.TinyAutoencoder, format=ModelFormat.Checkpoint)
+ base=BaseModelType.QwenImage21, type=ModelType.TinyAutoencoder, format=ModelFormat.Checkpoint
+)
+class TinyAutoencoderLoader(ModelLoader):
+ """Builds the TAESD decoder a checkpoint holds and loads it strictly, in either published layout."""
+
+ def _load_model(self, config: AnyModelConfig, submodel_type: Optional[SubModelType] = None) -> AnyModel:
+ if submodel_type is not None:
+ raise ValueError("Unexpected submodel requested for a Tiny AutoEncoder.")
+ if not isinstance(config, TinyAutoencoder_Checkpoint_Config_Base):
+ raise ValueError(f"Unexpected model config type: {type(config)}.")
+
+ state_dict = taesd_decoder_state_dict(_read_checkpoint(Path(config.path)))
+ layout = detect_taesd_layout(state_dict)
+ if layout is None:
+ raise ValueError(f"'{config.name}' is not a TAESD decoder checkpoint.")
+ decoder = build_taesd_decoder(layout)
+ decoder.load_state_dict(state_dict, strict=True)
+ return decoder.to(self._torch_dtype).eval().requires_grad_(False)
diff --git a/invokeai/backend/model_manager/model_on_disk.py b/invokeai/backend/model_manager/model_on_disk.py
index 99a8a520e2..34fd299906 100644
--- a/invokeai/backend/model_manager/model_on_disk.py
+++ b/invokeai/backend/model_manager/model_on_disk.py
@@ -81,6 +81,15 @@ def _safetensors_meta_state_dict(path: Path) -> StateDict:
}
+def unwrap_state_dict(checkpoint: dict[Any, Any]) -> StateDict:
+ """A checkpoint's weights: training checkpoints nest them under `state_dict`.
+
+ Identification reads its state dicts through this (`ModelOnDisk.load_state_dict`). A loader that reads a pickle
+ itself unwraps through it too, so it loads the weights identification accepted.
+ """
+ return checkpoint.get("state_dict", checkpoint)
+
+
def _is_sdnq_safetensors(path: Path) -> bool:
"""Check if a safetensors file contains SDNQ-quantized weights by checking for weight+scale pairs."""
try:
@@ -217,7 +226,7 @@ class ModelOnDisk:
else:
raise ValueError(f"Unrecognized model extension: {path.suffix}")
- state_dict = checkpoint.get("state_dict", checkpoint)
+ state_dict = unwrap_state_dict(checkpoint)
# Normalize PEFT named-adapter keys (e.g. `lora_A.default.weight` → `lora_A.weight`).
# Pattern is LoRA-specific, so this is a no-op for non-LoRA state dicts.
diff --git a/invokeai/backend/model_manager/starter_models/__init__.py b/invokeai/backend/model_manager/starter_models/__init__.py
index 9776aa28e8..7ff1415e93 100644
--- a/invokeai/backend/model_manager/starter_models/__init__.py
+++ b/invokeai/backend/model_manager/starter_models/__init__.py
@@ -128,6 +128,7 @@ from invokeai.backend.model_manager.starter_models.flux import (
pid_1_5_decoder_flux_2kto4k_int8,
pid_decoder_flux_2k,
pid_decoder_flux_2kto4k,
+ taef1,
union_cnet_flux,
)
from invokeai.backend.model_manager.starter_models.flux2 import (
@@ -156,6 +157,7 @@ from invokeai.backend.model_manager.starter_models.flux2 import (
pid_1_5_decoder_flux2_2kto4k_int8,
pid_decoder_flux2_2k,
pid_decoder_flux2_2kto4k,
+ taef2,
)
from invokeai.backend.model_manager.starter_models.ideogram_4 import (
ideogram_4_fp8,
@@ -230,6 +232,7 @@ from invokeai.backend.model_manager.starter_models.qwen_image_2_1 import (
qwen_image_2_1_gguf_q4_k_m,
qwen_image_2_1_turbo,
qwen_image_2_1_vae,
+ taeqi2_1,
)
from invokeai.backend.model_manager.starter_models.sd_1 import (
canny_sd1,
@@ -258,6 +261,7 @@ from invokeai.backend.model_manager.starter_models.sd_1 import (
t2i_canny_sd1,
t2i_depth_sd1,
t2i_sketch_sd1,
+ taesd,
tile_sd1,
)
from invokeai.backend.model_manager.starter_models.sd_3 import (
@@ -265,6 +269,7 @@ from invokeai.backend.model_manager.starter_models.sd_3 import (
pid_decoder_sd3_2kto4k,
sd35_large,
sd35_medium,
+ taesd3,
)
from invokeai.backend.model_manager.starter_models.sdxl import (
alien_lora_sdxl,
@@ -285,6 +290,7 @@ from invokeai.backend.model_manager.starter_models.sdxl import (
t2i_canny_sdxl,
t2i_lineart_sdxl,
t2i_sketch_sdxl,
+ taesdxl,
tile_sdxl,
union_cnet_sdxl,
)
@@ -338,6 +344,7 @@ STARTER_MODELS: list[StarterModel] = [
flux_schnell_sdnq,
sd35_medium,
sd35_large,
+ taesd3,
ideogram_4_nf4,
ideogram_4_fp8,
ideogram_4_single_file,
@@ -361,7 +368,10 @@ STARTER_MODELS: list[StarterModel] = [
archvis_sdxl,
sdxl_refiner,
sdxl_fp16_vae_fix,
+ taesd,
+ taesdxl,
flux_vae,
+ taef1,
alien_lora_sdxl,
noodle_lora_sdxl,
easy_neg_sd1,
@@ -421,6 +431,7 @@ STARTER_MODELS: list[StarterModel] = [
smollm2_1_7b_instruct,
flux_fill,
flux2_vae,
+ taef2,
flux2_klein_4b,
flux2_klein_4b_single,
flux2_klein_4b_fp8,
@@ -504,6 +515,7 @@ STARTER_MODELS: list[StarterModel] = [
qwen_image_2_1,
qwen_image_2_1_gguf_q4_k_m,
qwen_image_2_1_vae,
+ taeqi2_1,
qwen3_vl_encoder_8b,
moss_image_base,
moss_image_sft,
diff --git a/invokeai/backend/model_manager/starter_models/common.py b/invokeai/backend/model_manager/starter_models/common.py
index 52768930cf..af029321fa 100644
--- a/invokeai/backend/model_manager/starter_models/common.py
+++ b/invokeai/backend/model_manager/starter_models/common.py
@@ -8,6 +8,12 @@ from invokeai.backend.model_manager.taxonomy import (
ModelType,
)
+TINY_AUTOENCODER_NOTE = (
+ "Tiny AutoEncoder by madebyollin (MIT). Used only for live denoise previews when "
+ "`tiny_autoencoder_previews: true` is set in invokeai.yaml."
+)
+"""Closes the description of every Tiny AutoEncoder starter, one per family module."""
+
# This is CLIP-ViT-H-14-laion2B-s32B-b79K
ip_adapter_sd_image_encoder = StarterModel(
name="IP Adapter SD1.5 Image Encoder",
diff --git a/invokeai/backend/model_manager/starter_models/flux.py b/invokeai/backend/model_manager/starter_models/flux.py
index 53f1892637..b2fd3fe709 100644
--- a/invokeai/backend/model_manager/starter_models/flux.py
+++ b/invokeai/backend/model_manager/starter_models/flux.py
@@ -1,6 +1,7 @@
"""FLUX.1 starter models."""
from invokeai.backend.model_manager.starter_models.common import (
+ TINY_AUTOENCODER_NOTE,
clip_l_encoder,
clip_vit_l_image_encoder,
gemma2_2b_encoder,
@@ -24,6 +25,15 @@ flux_vae = StarterModel(
type=ModelType.VAE,
)
+taef1 = StarterModel(
+ name="TAEF1 (FLUX.1 preview decoder)",
+ base=BaseModelType.Flux,
+ source="https://huggingface.co/madebyollin/taef1/resolve/b1b2d00e9e440cfbf3dedb34266864da86016ceb/diffusion_pytorch_model.safetensors",
+ description=f"Sharp live previews for FLUX.1 and Z-Image. {TINY_AUTOENCODER_NOTE} ~10MB",
+ type=ModelType.TinyAutoencoder,
+ format=ModelFormat.Checkpoint,
+)
+
# NVIDIA PiD decoders (https://huggingface.co/nvidia/PiD). Code is Apache-2.0; weights are NSCLv1 (non-commercial /
# research). Each is a 4x super-resolution decoder that replaces the regular VAE decode and needs the Gemma-2 encoder.
pid_decoder_flux_2k = StarterModel(
diff --git a/invokeai/backend/model_manager/starter_models/flux2.py b/invokeai/backend/model_manager/starter_models/flux2.py
index 1d8533ca1f..06fb4d0200 100644
--- a/invokeai/backend/model_manager/starter_models/flux2.py
+++ b/invokeai/backend/model_manager/starter_models/flux2.py
@@ -1,6 +1,7 @@
"""FLUX.2 starter models."""
from invokeai.backend.model_manager.starter_models.common import (
+ TINY_AUTOENCODER_NOTE,
flux2_dev_cow_mistral_q4,
flux2_dev_cow_mistral_q8,
flux2_klein_qwen3_4b_encoder,
@@ -73,6 +74,15 @@ flux2_vae = StarterModel(
type=ModelType.VAE,
)
+taef2 = StarterModel(
+ name="TAEF2 (FLUX.2 preview decoder)",
+ base=BaseModelType.Flux2,
+ source="https://huggingface.co/madebyollin/taef2/resolve/bd244ebfe4398c84fbf312a2f1c868c676b500e3/taef2.safetensors",
+ description=f"Sharp live previews for FLUX.2 and ERNIE-Image. {TINY_AUTOENCODER_NOTE} ~11MB",
+ type=ModelType.TinyAutoencoder,
+ format=ModelFormat.Checkpoint,
+)
+
flux2_klein_4b = StarterModel(
name="FLUX.2 Klein 4B (Diffusers)",
base=BaseModelType.Flux2,
diff --git a/invokeai/backend/model_manager/starter_models/qwen_image_2_1.py b/invokeai/backend/model_manager/starter_models/qwen_image_2_1.py
index 6c3966bcb1..77a136c4a4 100644
--- a/invokeai/backend/model_manager/starter_models/qwen_image_2_1.py
+++ b/invokeai/backend/model_manager/starter_models/qwen_image_2_1.py
@@ -1,10 +1,10 @@
"""Qwen-Image-2.1 starter models.
-Every one is under the Qwen Research License: research and evaluation only, no commercial use without a separate
-license from Alibaba's Tongyi Lab.
+Every one but the MIT-licensed preview decoder is under the Qwen Research License: research and evaluation only, no
+commercial use without a separate license from Alibaba's Tongyi Lab.
"""
-from invokeai.backend.model_manager.starter_models.common import qwen3_vl_encoder_8b
+from invokeai.backend.model_manager.starter_models.common import TINY_AUTOENCODER_NOTE, qwen3_vl_encoder_8b
from invokeai.backend.model_manager.starter_models.types import StarterModel
from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat, ModelType, QwenImage21VariantType
@@ -18,6 +18,15 @@ qwen_image_2_1_vae = StarterModel(
type=ModelType.VAE,
)
+taeqi2_1 = StarterModel(
+ name="TAEQI2.1 (Qwen-Image-2.1 preview decoder)",
+ base=BaseModelType.QwenImage21,
+ source="https://huggingface.co/madebyollin/taeqi2_1/resolve/5d62f11fee0068b4df7bd699ddab685e32174010/taeqi2_1.safetensors",
+ description=f"Sharp live previews for Qwen-Image-2.1. {TINY_AUTOENCODER_NOTE} ~31MB",
+ type=ModelType.TinyAutoencoder,
+ format=ModelFormat.Checkpoint,
+)
+
qwen_image_2_1 = StarterModel(
name="Qwen-Image-2.1",
base=BaseModelType.QwenImage21,
diff --git a/invokeai/backend/model_manager/starter_models/sd_1.py b/invokeai/backend/model_manager/starter_models/sd_1.py
index c8b7634130..fbf6f14429 100644
--- a/invokeai/backend/model_manager/starter_models/sd_1.py
+++ b/invokeai/backend/model_manager/starter_models/sd_1.py
@@ -1,12 +1,22 @@
"""Stable Diffusion 1.x starter models."""
-from invokeai.backend.model_manager.starter_models.common import ip_adapter_sd_image_encoder
+from invokeai.backend.model_manager.starter_models.common import TINY_AUTOENCODER_NOTE, ip_adapter_sd_image_encoder
from invokeai.backend.model_manager.starter_models.types import StarterModel
from invokeai.backend.model_manager.taxonomy import (
BaseModelType,
+ ModelFormat,
ModelType,
)
+taesd = StarterModel(
+ name="TAESD (SD 1.x/2.x preview decoder)",
+ base=BaseModelType.StableDiffusion1,
+ source="https://huggingface.co/madebyollin/taesd/resolve/614f76814bbe30edbe2e627ace1c2234c81a2c0e/taesd_decoder.safetensors",
+ description=f"Sharp live previews for SD 1.x and SD 2.x. {TINY_AUTOENCODER_NOTE} ~5MB",
+ type=ModelType.TinyAutoencoder,
+ format=ModelFormat.Checkpoint,
+)
+
cyberrealistic_negative = StarterModel(
name="CyberRealistic Negative v3",
base=BaseModelType.StableDiffusion1,
diff --git a/invokeai/backend/model_manager/starter_models/sd_3.py b/invokeai/backend/model_manager/starter_models/sd_3.py
index 4fea9cbcda..deb39a3a24 100644
--- a/invokeai/backend/model_manager/starter_models/sd_3.py
+++ b/invokeai/backend/model_manager/starter_models/sd_3.py
@@ -1,6 +1,6 @@
"""Stable Diffusion 3.5 starter models."""
-from invokeai.backend.model_manager.starter_models.common import gemma2_2b_encoder
+from invokeai.backend.model_manager.starter_models.common import TINY_AUTOENCODER_NOTE, gemma2_2b_encoder
from invokeai.backend.model_manager.starter_models.types import StarterModel
from invokeai.backend.model_manager.taxonomy import (
BaseModelType,
@@ -9,6 +9,16 @@ from invokeai.backend.model_manager.taxonomy import (
PiDDecoderVariantType,
)
+# Same network and file name as TAEF1; the base override the installer sends is what files it under SD3.
+taesd3 = StarterModel(
+ name="TAESD3 (SD3 preview decoder)",
+ base=BaseModelType.StableDiffusion3,
+ source="https://huggingface.co/madebyollin/taesd3/resolve/d58dcaccd2b36fcb7a6b9e93c1cc507acab5a778/diffusion_pytorch_model.safetensors",
+ description=f"Sharp live previews for SD3.5. {TINY_AUTOENCODER_NOTE} ~10MB",
+ type=ModelType.TinyAutoencoder,
+ format=ModelFormat.Checkpoint,
+)
+
# SD3 uses a 16-channel latent, architecturally identical to FLUX.1. The config probe disambiguates via the
# checkpoint's directory name (`…official_sd3_distill…`); if the HF single-file download drops that name, the
# explicit base=StableDiffusion3 override the installer sends is trusted instead (see pid_decoder.py::_validate_base).
diff --git a/invokeai/backend/model_manager/starter_models/sdxl.py b/invokeai/backend/model_manager/starter_models/sdxl.py
index ab69fcb149..cee3ecf9ad 100644
--- a/invokeai/backend/model_manager/starter_models/sdxl.py
+++ b/invokeai/backend/model_manager/starter_models/sdxl.py
@@ -1,6 +1,10 @@
"""SDXL starter models."""
-from invokeai.backend.model_manager.starter_models.common import gemma2_2b_encoder, ip_adapter_sdxl_image_encoder
+from invokeai.backend.model_manager.starter_models.common import (
+ TINY_AUTOENCODER_NOTE,
+ gemma2_2b_encoder,
+ ip_adapter_sdxl_image_encoder,
+)
from invokeai.backend.model_manager.starter_models.types import StarterModel
from invokeai.backend.model_manager.taxonomy import (
BaseModelType,
@@ -18,6 +22,15 @@ sdxl_fp16_vae_fix = StarterModel(
type=ModelType.VAE,
)
+taesdxl = StarterModel(
+ name="TAESDXL (SDXL preview decoder)",
+ base=BaseModelType.StableDiffusionXL,
+ source="https://huggingface.co/madebyollin/taesdxl/resolve/b20258aaef75ef61e659c1e0f14f251cf0ad153e/taesdxl_decoder.safetensors",
+ description=f"Sharp live previews for SDXL and the SDXL Refiner. {TINY_AUTOENCODER_NOTE} ~5MB",
+ type=ModelType.TinyAutoencoder,
+ format=ModelFormat.Checkpoint,
+)
+
# SDXL uses a 4-channel latent, which is unambiguous (no FLUX/SD3-style directory-name disambiguation needed).
# NVIDIA ships only the 2K-to-4K preset for SDXL (no plain 2K checkpoint).
pid_decoder_sdxl_2kto4k = StarterModel(
diff --git a/invokeai/backend/model_manager/taxonomy.py b/invokeai/backend/model_manager/taxonomy.py
index 19c5ee1c20..8d159f0dc6 100644
--- a/invokeai/backend/model_manager/taxonomy.py
+++ b/invokeai/backend/model_manager/taxonomy.py
@@ -114,6 +114,7 @@ class ModelType(str, Enum):
ExternalImageGenerator = "external_image_generator"
PiDDecoder = "pid_decoder"
LTX2DurationHead = "ltx2_duration_head"
+ TinyAutoencoder = "tiny_autoencoder"
Unknown = "unknown"
diff --git a/invokeai/backend/tiny_autoencoder/__init__.py b/invokeai/backend/tiny_autoencoder/__init__.py
new file mode 100644
index 0000000000..c3f6e4bd02
--- /dev/null
+++ b/invokeai/backend/tiny_autoencoder/__init__.py
@@ -0,0 +1 @@
+"""madebyollin's Tiny AutoEncoders, used to render denoising previews from diffusion-space latents."""
diff --git a/invokeai/backend/tiny_autoencoder/checkpoint.py b/invokeai/backend/tiny_autoencoder/checkpoint.py
new file mode 100644
index 0000000000..c80a700bd1
--- /dev/null
+++ b/invokeai/backend/tiny_autoencoder/checkpoint.py
@@ -0,0 +1,137 @@
+"""Which TAESD decoder a checkpoint holds, and its weights in the decoder's own key layout.
+
+The one place that reads TAESD checkpoints, so identification and the loader cannot disagree about
+what a file is. Two layouts are published:
+
+- **A, native**: decoder-only, keyed by the upstream `nn.Sequential` (`1.weight`, `3.conv.0.weight`,
+ ... `19.weight`). taesd, taesdxl, and ComfyUI's `vae_approx/*_decoder.pth`.
+- **B, diffusers-style**: encoder and decoder in one file, `decoder.layers.N.*` and `encoder.layers.*`.
+ diffusers' `DecoderTiny` keeps the `Clamp` out of its Sequential and applies it in `forward`, so its
+ index N is native N+1. taesd3, taef1, taef2, taeqi2_1.
+
+Everything is checked after normalising to layout A. A file is a TAESD decoder only if its keys and
+shapes are exactly those of the decoder `build_taesd_decoder` builds for it, which is also what the
+loader's strict load requires: identification never accepts a file the loader would refuse.
+"""
+
+from collections.abc import Mapping
+from dataclasses import dataclass
+from typing import Any, Literal
+
+import torch
+
+from invokeai.backend.tiny_autoencoder.taesd import Decoder, F16Decoder, TaesdDecoder
+
+TaesdArch = Literal["default", "flux_2", "f16"]
+
+SAFETENSORS_SUFFIX = ".safetensors"
+PICKLE_SUFFIXES = frozenset({".pth", ".pt"})
+"""ComfyUI's `vae_approx/*_decoder.pth`: a plain tensor dict, read with `weights_only=True`."""
+TAESD_CHECKPOINT_SUFFIXES = frozenset({SAFETENSORS_SUFFIX, *PICKLE_SUFFIXES})
+"""The file types the loader reads. Identification refuses any other, though it could read their shapes."""
+
+_LAYOUT_B_DECODER_PREFIX = "decoder.layers."
+_LAYOUT_B_ENCODER_PREFIX = "encoder."
+
+
+@dataclass(frozen=True)
+class TaesdLayout:
+ latent_channels: int
+ arch: TaesdArch
+ """`default` (8x), `flux_2` (8x, with mid-block pooling) or `f16` (16x, 2x2 output patchify)."""
+ image_channels: int
+ """3 for RGB, 4 for RGBA (TAEQI2.1)."""
+
+
+def taesd_decoder_state_dict(sd: Mapping[str, Any]) -> dict[str, Any]:
+ """The decoder's weights keyed by the native Sequential (layout A), whichever layout `sd` is in.
+
+ Layout B drops its encoder and shifts each decoder index by one. Keys that belong to neither half
+ are kept, so a strict load refuses a file that carries something this decoder does not have.
+ """
+ if not any(isinstance(k, str) and k.startswith(_LAYOUT_B_DECODER_PREFIX) for k in sd):
+ return dict(sd)
+ converted: dict[str, Any] = {}
+ for key, value in sd.items():
+ if isinstance(key, str) and key.startswith(_LAYOUT_B_ENCODER_PREFIX):
+ continue
+ if isinstance(key, str) and key.startswith(_LAYOUT_B_DECODER_PREFIX):
+ index, _, rest = key.removeprefix(_LAYOUT_B_DECODER_PREFIX).partition(".")
+ if index.isdigit():
+ key = f"{int(index) + 1}.{rest}"
+ converted[key] = value
+ return converted
+
+
+def _may_be_taesd(sd: Mapping[str, Any]) -> bool:
+ """Cheap pre-check, so identifying an unrelated multi-gigabyte checkpoint never copies its key set."""
+ return "1.weight" in sd or f"{_LAYOUT_B_DECODER_PREFIX}0.weight" in sd
+
+
+def build_taesd_decoder(layout: TaesdLayout) -> TaesdDecoder:
+ if layout.arch == "f16":
+ return F16Decoder(layout.latent_channels, layout.image_channels)
+ return Decoder(
+ layout.latent_channels, use_midblock_gn=layout.arch == "flux_2", image_channels=layout.image_channels
+ )
+
+
+def _shape(sd: Mapping[str, Any], key: str) -> tuple[int, ...] | None:
+ shape = getattr(sd.get(key), "shape", None)
+ return None if shape is None else tuple(shape)
+
+
+def _candidate_layout(sd: Mapping[str, Any]) -> TaesdLayout | None:
+ """The layout the fingerprint tensors point at, before the full key set is checked."""
+ first, last = _shape(sd, "1.weight"), _shape(sd, "19.weight")
+ if first is None or last is None or len(first) != 4 or len(last) != 4 or first[2:] != (3, 3):
+ return None
+ latent_channels = first[1]
+ if first[0] == 64 and last[1:] == (64, 3, 3):
+ arch: TaesdArch = "flux_2" if "3.pool.0.weight" in sd else "default"
+ return TaesdLayout(latent_channels=latent_channels, arch=arch, image_channels=last[0])
+ if first[0] == 256 and last[1:] == (64, 3, 3) and last[0] % 4 == 0:
+ return TaesdLayout(latent_channels=latent_channels, arch="f16", image_channels=last[0] // 4)
+ return None
+
+
+def _decoder_shapes(layout: TaesdLayout) -> dict[str, tuple[int, ...]]:
+ with torch.device("meta"):
+ decoder = build_taesd_decoder(layout)
+ return {key: tuple(value.shape) for key, value in decoder.state_dict().items()}
+
+
+def detect_taesd_layout(sd: Mapping[str, Any]) -> TaesdLayout | None:
+ """The TAESD decoder `sd` holds, or None if it is not exactly one.
+
+ Accepts either layout and a state dict on the `meta` device; only shapes are read. None for real
+ VAEs (`decoder.conv_in`), TAEHV checkpoints (`decoder.N.*`), the tinier TAEQI2.1 (see
+ `is_tinier_taesd`), the 32x Sana decoder, and a truncated or extended TAESD file.
+ """
+ if not _may_be_taesd(sd):
+ return None
+ normalised = taesd_decoder_state_dict(sd)
+ layout = _candidate_layout(normalised)
+ if layout is None:
+ return None
+ actual = {key: _shape(normalised, key) for key in normalised}
+ return layout if actual == _decoder_shapes(layout) else None
+
+
+def is_tinier_taesd(sd: Mapping[str, Any]) -> bool:
+ """Whether `sd` is TAEQI2.1's "tinier" build, whose low-res blocks are ConvNeXt-style `SuperBlock`s.
+
+ Recognised so identification can name the file to install instead; InvokeAI does not vendor
+ `SuperBlock`. Its first block opens with a 7x7 depthwise convolution where `Block` has a 3x3 one.
+ """
+ if not _may_be_taesd(sd):
+ return False
+ normalised = taesd_decoder_state_dict(sd)
+ first, depthwise = _shape(normalised, "1.weight"), _shape(normalised, "3.conv.0.weight")
+ return (
+ first is not None
+ and depthwise is not None
+ and len(first) == 4
+ and depthwise == (first[0], 1, 7, 7)
+ and "19.weight" in normalised
+ )
diff --git a/invokeai/backend/tiny_autoencoder/preview.py b/invokeai/backend/tiny_autoencoder/preview.py
new file mode 100644
index 0000000000..e644519f0d
--- /dev/null
+++ b/invokeai/backend/tiny_autoencoder/preview.py
@@ -0,0 +1,123 @@
+"""Rendering a denoising preview with a Tiny AutoEncoder, and choosing which installed TAE renders it."""
+
+import math
+from collections.abc import Iterable
+from typing import Final, TypeVar
+
+import torch
+import torch.nn.functional as F
+from PIL import Image
+
+from invokeai.backend.architectures import LatentSpace, latent_space_with_channels
+from invokeai.backend.model_manager.configs.tiny_autoencoder import TinyAutoencoder_Checkpoint_Config_Base
+from invokeai.backend.tiny_autoencoder.taesd import TaesdDecoder
+
+MAX_PREVIEW_EDGE: Final = 1024
+"""Longest edge of a TAE preview, in pixels. Bounds the decode's memory and the frame's payload.
+
+At 1024 a decode costs ~640 MiB of VRAM for the 8x TAEs (~160 MiB for TAEQI2.1) and ~25 ms (RTX 4090,
+fp16) at any generation size; uncapped, 2048 costs ~2.5 GiB and ~100 ms. Decoding at full size and then
+scaling down would look better (SDXL 36.3 vs 30.7 dB against the VAE) but carries that uncapped cost, which
+is why the latent is area-downsampled before the decode instead.
+"""
+
+_LAST_STAGE_CHANNELS: Final = 64
+"""Width of a TAESD decoder's full-resolution stage, the last `Block` and the convolution before it."""
+
+_LIVE_ACTIVATIONS: Final = 3
+"""Full-resolution activations a TAESD decode holds at once, read off the vendored decoder.
+
+The peak is in the last `Block`, the only one at full resolution. Its input stays referenced while its conv branch
+runs, and `nn.ReLU` is not in place, so each layer of the branch has its own input and output live next to the block's
+input: three tensors. Adding the branch's output to the input (the skip is an identity) and fusing the sum holds three
+again. Every earlier stage runs at half resolution or less. TAEQI2.1's last stage runs at half resolution and holds a
+quarter of this; the bound reserves it the same.
+"""
+
+_CONV_WORKSPACE_ACTIVATIONS: Final = 2
+"""The convolutions' workspace on top, in activation-sized buffers. Measured, and it depends on the algorithm the
+backend picks: on an RTX 4090 in fp16, `max_memory_allocated` grew by 640 MiB over a 1024x1024 decode, five
+activations, two more than the structure holds.
+"""
+
+
+_POOLING_NEEDS_DIVISIBLE_SIZES: Final = frozenset({"mps"})
+"""Device types whose adaptive average pooling, behind `F.interpolate(mode="area")`, refuses an output size that does
+not divide the input ("input sizes must be divisible by output sizes", pytorch#96056); macOS stays on torch 2.7."""
+
+TinyAutoencoderConfig = TypeVar("TinyAutoencoderConfig", bound=TinyAutoencoder_Checkpoint_Config_Base)
+
+
+def _preview_latent_size(decoder: TaesdDecoder, height: int, width: int) -> tuple[int, int]:
+ """The latent size a `(height, width)` latent is decoded at: downsampled until the image fits `MAX_PREVIEW_EDGE`."""
+ longest_edge = max(height, width) * decoder.spatial_compression
+ if longest_edge <= MAX_PREVIEW_EDGE:
+ return height, width
+ scale = MAX_PREVIEW_EDGE / longest_edge
+ return max(1, math.floor(height * scale)), max(1, math.floor(width * scale))
+
+
+def decode_working_memory_bytes(decoder: TaesdDecoder, sample: torch.Tensor) -> int:
+ """The working memory `decode_preview(decoder, sample)` needs on its device besides the decoder's weights.
+
+ The live activations plus the convolutions' workspace, at the capped output size and the decoder's element size:
+ 640 MiB at 1024x1024 in fp16. The cache's working-memory floor (`device_working_mem_gb`, 3 GB by default) covers
+ it, so the reservation matters only where that floor is set lower.
+ """
+ height, width = _preview_latent_size(decoder, *sample.shape[-2:])
+ activation_bytes = height * width * decoder.spatial_compression**2 * _LAST_STAGE_CHANNELS
+ activation_bytes *= next(decoder.parameters()).element_size()
+ return (_LIVE_ACTIVATIONS + _CONV_WORKSPACE_ACTIVATIONS) * activation_bytes
+
+
+def _area_downsample(latents: torch.Tensor, size: tuple[int, int]) -> torch.Tensor:
+ height, width = latents.shape[-2:]
+ if latents.device.type in _POOLING_NEEDS_DIVISIBLE_SIZES and (height % size[0] or width % size[1]):
+ # Pooled on the CPU instead, in float32 for CPU builds without half-precision pooling. The latent is small.
+ pooled = F.interpolate(latents.cpu().float(), size=size, mode="area")
+ return pooled.to(device=latents.device, dtype=latents.dtype)
+ return F.interpolate(latents, size=size, mode="area")
+
+
+def decode_preview(decoder: TaesdDecoder, sample: torch.Tensor, device: torch.device | None = None) -> Image.Image:
+ """Decode the first latent of `sample` into an RGB preview no larger than `MAX_PREVIEW_EDGE`.
+
+ `sample` is `(C, h, w)` or `(B, C, h, w)` in the decoder's latent space. A latent whose decode would
+ exceed the cap is area-downsampled first, which is far cheaper than decoding at full size and scaling
+ the image. Alpha, where the decoder has it, is dropped.
+
+ The decode runs on `device`, which a caller holding the model through the model cache passes as the
+ cache's compute device: a partially loaded decoder keeps some weights elsewhere, so its parameters
+ do not say where it runs. Without one, the first parameter's device is used. The dtype is always the
+ decoder's.
+ """
+ if sample.dim() == 3:
+ sample = sample.unsqueeze(0)
+ elif sample.dim() != 4:
+ raise ValueError(f"expected a (C, h, w) or (B, C, h, w) latent, got shape {tuple(sample.shape)}")
+ if sample.shape[1] != decoder.latent_channels:
+ raise ValueError(
+ f"the decoder reads {decoder.latent_channels} latent channels, the sample has {sample.shape[1]}"
+ )
+
+ parameter = next(decoder.parameters())
+ with torch.inference_mode():
+ latents = sample[0:1].to(device=device or parameter.device, dtype=parameter.dtype)
+ size = _preview_latent_size(decoder, *latents.shape[-2:])
+ if size != tuple(latents.shape[-2:]):
+ latents = _area_downsample(latents, size)
+ image = decoder(latents)[0, :3].clamp(0, 1)
+ pixels = image.mul(255).round().to(torch.uint8).permute(1, 2, 0).cpu()
+ return Image.fromarray(pixels.numpy())
+
+
+def select_tiny_autoencoder(
+ configs: Iterable[TinyAutoencoderConfig], space: LatentSpace
+) -> TinyAutoencoderConfig | None:
+ """The installed TAE that decodes `space`, or None.
+
+ A record serves every base that shares its latent space, matched by identity. Among several that fit,
+ the choice is deterministic -- by name, then key -- so a preview does not change decoder between runs.
+ """
+ fitting = [c for c in configs if latent_space_with_channels(c.base, c.latent_channels) is space]
+ return min(fitting, key=lambda c: (c.name, c.key), default=None)
diff --git a/invokeai/backend/tiny_autoencoder/taesd.py b/invokeai/backend/tiny_autoencoder/taesd.py
new file mode 100644
index 0000000000..a704b9f4c1
--- /dev/null
+++ b/invokeai/backend/tiny_autoencoder/taesd.py
@@ -0,0 +1,107 @@
+"""Tiny AutoEncoder for Stable Diffusion (TAESD): the decoder half, used for denoising previews.
+
+Adapted from madebyollin's TAESD, pinned to:
+https://github.com/madebyollin/taesd/blob/fdbae2df989db95761f482efb8977e1182fb68d2/taesd.py
+
+Kept: `conv`, `Clamp`, `Block` (with the `flux_2` mid-block pooling), the default 8x `Decoder` and the
+16x `F16Decoder` that TAEQI2.1 uses. Left out: the encoders, the 32x Sana decoder, and `SuperBlock`
+(the "tinier" TAEQI2.1), none of which InvokeAI loads. The decoders return a `TaesdDecoder` -- the
+upstream `nn.Sequential` plus the two facts a caller needs to feed it -- instead of a bare Sequential.
+
+The `nn.Sequential` indices are the state-dict contract with the released decoder-only checkpoints
+(`1.weight`, `3.conv.0.weight`, ...): do not reorder, insert or remove layers. Output is upstream's
+convention: image channels in roughly [0, 1], unclamped.
+
+Original license:
+
+MIT License
+
+Copyright (c) 2023 Ollin Boer Bohan
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+"""
+
+import torch
+import torch.nn as nn
+
+
+def conv(n_in: int, n_out: int, **kwargs) -> nn.Conv2d:
+ return nn.Conv2d(n_in, n_out, 3, padding=1, **kwargs)
+
+
+class Clamp(nn.Module):
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ return torch.tanh(x / 3) * 3
+
+
+class Block(nn.Module):
+ def __init__(self, n_in: int, n_out: int, use_midblock_gn: bool = False):
+ super().__init__()
+ self.conv = nn.Sequential(conv(n_in, n_out), nn.ReLU(), conv(n_out, n_out), nn.ReLU(), conv(n_out, n_out))
+ self.skip = nn.Conv2d(n_in, n_out, 1, bias=False) if n_in != n_out else nn.Identity()
+ self.fuse = nn.ReLU()
+ self.pool = None
+ if use_midblock_gn:
+ n_gn = n_in * 4
+ self.pool = nn.Sequential(
+ nn.Conv2d(n_in, n_gn, 1, bias=False),
+ nn.GroupNorm(4, n_gn),
+ nn.ReLU(inplace=True),
+ nn.Conv2d(n_gn, n_in, 1, bias=False),
+ )
+
+ def forward(self, x: torch.Tensor) -> torch.Tensor:
+ if self.pool is not None:
+ x = x + self.pool(x)
+ return self.fuse(self.conv(x) + self.skip(x))
+
+
+class TaesdDecoder(nn.Sequential):
+ """An upstream decoder `nn.Sequential`, and what its input and output look like."""
+
+ def __init__(self, *layers: nn.Module, latent_channels: int, spatial_compression: int):
+ super().__init__(*layers)
+ self.latent_channels = latent_channels
+ self.spatial_compression = spatial_compression
+
+
+def Decoder(latent_channels: int = 4, use_midblock_gn: bool = False, image_channels: int = 3) -> TaesdDecoder:
+ mb_kw = {"use_midblock_gn": use_midblock_gn}
+ return TaesdDecoder(
+ Clamp(), conv(latent_channels, 64), nn.ReLU(),
+ Block(64, 64, **mb_kw), Block(64, 64, **mb_kw), Block(64, 64, **mb_kw), nn.Upsample(scale_factor=2), conv(64, 64, bias=False),
+ Block(64, 64), Block(64, 64), Block(64, 64), nn.Upsample(scale_factor=2), conv(64, 64, bias=False),
+ Block(64, 64), Block(64, 64), Block(64, 64), nn.Upsample(scale_factor=2), conv(64, 64, bias=False),
+ Block(64, 64), conv(64, image_channels),
+ latent_channels=latent_channels,
+ spatial_compression=8,
+ ) # fmt: skip
+
+
+def F16Decoder(latent_channels: int = 64, image_channels: int = 3) -> TaesdDecoder:
+ """Decoder variant with 16x spatial upscaling, wider low-res stages, and 2x2 output patchify."""
+ return TaesdDecoder(
+ Clamp(), conv(latent_channels, 256), nn.ReLU(),
+ Block(256, 256), Block(256, 256), Block(256, 256), nn.Upsample(scale_factor=2), conv(256, 128, bias=False),
+ Block(128, 128), Block(128, 128), Block(128, 128), nn.Upsample(scale_factor=2), conv(128, 64, bias=False),
+ Block(64, 64), Block(64, 64), Block(64, 64), nn.Upsample(scale_factor=2), conv(64, 64, bias=False),
+ Block(64, 64), conv(64, image_channels * 4), nn.PixelShuffle(2),
+ latent_channels=latent_channels,
+ spatial_compression=16,
+ ) # fmt: skip
diff --git a/invokeai/backend/util/devices.py b/invokeai/backend/util/devices.py
index 1706c12aa0..3e77b82ef7 100644
--- a/invokeai/backend/util/devices.py
+++ b/invokeai/backend/util/devices.py
@@ -430,6 +430,16 @@ class TorchDevice:
device = torch.device(device.type, torch.xpu.current_device())
return device
+ @classmethod
+ def synchronize(cls, device: torch.device) -> None:
+ """Wait for the work already queued on `device`. A no-op on CPU, which runs synchronously."""
+ if device.type == "cuda":
+ torch.cuda.synchronize(device)
+ elif device.type == "xpu":
+ torch.xpu.synchronize(device)
+ elif device.type == "mps":
+ torch.mps.synchronize()
+
@classmethod
def empty_cache(cls, force: bool = False) -> bool:
"""Clear the GPU device cache — unless another generation device is mid-session. Says whether it ran.
diff --git a/invokeai/frontend/api/openapi.json b/invokeai/frontend/api/openapi.json
index 1a076b5d0f..703be1500c 100644
--- a/invokeai/frontend/api/openapi.json
+++ b/invokeai/frontend/api/openapi.json
@@ -1595,6 +1595,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -2116,6 +2134,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -2637,6 +2673,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -3203,6 +3257,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -3796,6 +3868,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -5264,6 +5354,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -20989,6 +21097,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -63026,6 +63152,12 @@
"description": "Enable experimental PiD decode memory optimizations. Roughly halves the peak activation memory of a PiD decode; in exchange the decoded image changes slightly, because neither the chunked pixel pathway nor the float32 sampler intermediates are bit-exact with the default path.",
"default": false
},
+ "tiny_autoencoder_previews": {
+ "type": "boolean",
+ "title": "Tiny Autoencoder Previews",
+ "description": "Render denoising previews with an installed Tiny AutoEncoder instead of the linear latent projection. Install the matching Tiny AutoEncoder starter model; families without one keep linear previews. A preview costs about 25 ms and 0.65 GB of transient VRAM on an RTX 4090; not recommended on CPU-only installs, where one takes about 2 s.",
+ "default": false
+ },
"attention_type": {
"type": "string",
"enum": ["auto", "normal", "xformers", "sliced", "torch-sdp"],
@@ -63376,7 +63508,7 @@
"additionalProperties": false,
"type": "object",
"title": "InvokeAIAppConfig",
- "description": "Invoke's global app configuration.\n\nTypically, you won't need to interact with this class directly. Instead, use the `get_config` function from `invokeai.app.services.config` to get a singleton config object.\n\nAttributes:\n host: IP address to bind to. Use `0.0.0.0` to serve to your local network.\n port: Port to bind to.\n allow_origins: Allowed CORS origins.\n allow_credentials: Allow CORS credentials.\n allow_methods: Methods allowed for CORS.\n allow_headers: Headers allowed for CORS.\n ssl_certfile: SSL certificate file for HTTPS. See https://www.uvicorn.dev/settings/#https.\n ssl_keyfile: SSL key file for HTTPS. See https://www.uvicorn.dev/settings/#https.\n show_donation_link: Show the Donate to InvokeAI link in the frontend menus.\n log_tokenization: Enable logging of parsed prompt tokens.\n patchmatch: Enable patchmatch inpaint code.\n models_dir: Path to the models directory.\n convert_cache_dir: Path to the converted models cache directory (DEPRECATED, but do not delete because it is needed for migration from previous versions).\n download_cache_dir: Path to the directory that contains dynamically downloaded models.\n legacy_conf_dir: Path to directory of legacy checkpoint config files.\n db_dir: Path to InvokeAI databases directory.\n db_url: URL of a MySQL 8.4+ or MariaDB 10.11+ database to use instead of the SQLite database in `db_dir`, e.g. `mariadb+pymysql://invokeai:[email protected]/invokeai`. Needs the `mysql` extra. One InvokeAI process uses a database at a time. Read at startup only.\n db_synchronous: SQLite durability setting. `full`, the default and what InvokeAI has always used, flushes every commit to disk. `normal` acknowledges commits without waiting for that flush - measured at roughly 12x shorter commits on an SSD - and cannot corrupt the database under WAL, which is why it is refused, with a warning, when WAL is unavailable for the database file. What `normal` gives up is the most recent transactions on a power loss or OS crash: a just-written image record or queue status, not the image file itself.<br>Valid values: `full`, `normal`\n outputs_dir: Path to directory for outputs.\n image_subfolder_strategy: Strategy for organizing images into subfolders. 'flat' stores all images in a single folder. 'date' organizes by YYYY/MM/DD. 'type' organizes by image category. 'hash' uses first 2 characters of UUID for filesystem performance.<br>Valid values: `flat`, `date`, `type`, `hash`\n custom_nodes_dir: Path to directory for custom nodes.\n style_presets_dir: Path to directory for style presets.\n workflow_thumbnails_dir: Path to directory for workflow thumbnails.\n log_handlers: Log handler. Valid options are \"console\", \"file=<path>\", \"syslog=path|address:host:port\", \"http=<url>\".\n log_format: Log format. Use \"plain\" for text-only, \"color\" for colorized output, \"legacy\" for 2.3-style logging and \"syslog\" for syslog-style.<br>Valid values: `plain`, `color`, `syslog`, `legacy`\n log_level: Emit logging messages at this level or higher.<br>Valid values: `debug`, `info`, `warning`, `error`, `critical`\n log_sql: Log SQL queries. `log_level` must be `debug` for this to do anything. Extremely verbose.\n log_level_network: Log level for network-related messages. 'info' and 'debug' are very verbose.<br>Valid values: `debug`, `info`, `warning`, `error`, `critical`\n use_memory_db: Use in-memory database. Useful for development.\n dev_reload: Automatically reload when Python sources are changed. Does not reload node definitions.\n profile_graphs: Enable graph profiling using `cProfile`.\n profile_prefix: An optional prefix for profile output files.\n profiles_dir: Path to profiles output directory.\n max_cache_ram_gb: The maximum amount of CPU RAM to use for model caching in GB. If unset, the limit will be configured based on the available RAM. In most cases, it is recommended to leave this unset.\n max_cache_vram_gb: The amount of VRAM to use for model caching in GB. If unset, the limit will be configured based on the available VRAM and the device_working_mem_gb. In most cases, it is recommended to leave this unset.\n reserve_vram_gb: The amount of VRAM (in GB) to subtract from the model cache's available memory budget. Defaults to 0.\n log_memory_usage: If True, a memory snapshot will be captured before and after every model cache operation, and the result will be logged (at debug level). There is a time cost to capturing the memory snapshots, so it is recommended to only enable this feature if you are actively inspecting the model cache's behaviour.\n model_cache_keep_alive_min: How long to keep models in cache after last use, in minutes. A value of 0 (the default) means models are kept in cache indefinitely. If no model generations occur within the timeout period, the model cache is cleared using the same logic as the 'Clear Model Cache' button.\n device_working_mem_gb: The amount of working memory to keep available on the compute device (in GB). Has no effect if running on CPU. If you are experiencing OOM errors, try increasing this value.\n enable_partial_loading: Enable partial loading of models. This enables models to run with reduced VRAM requirements (at the cost of slower speed) by streaming the model from RAM to VRAM as its used. In some edge cases, partial loading can cause models to run more slowly if they were previously being fully loaded into VRAM.\n keep_ram_copy_of_weights: Whether to keep a full RAM copy of a model's weights when the model is loaded in VRAM. Keeping a RAM copy increases average RAM usage, but speeds up model switching and LoRA patching (assuming there is sufficient RAM). Set this to False if RAM pressure is consistently high.\n offload_on_architecture_switch: When a session uses main models of another architecture than the previous one on the same GPU, move every model it does not use from VRAM to RAM before it runs. Models both sessions use stay. Switching back reloads the moved models from RAM, which costs a few seconds per switch when both architectures would have fit in VRAM together; turn this off if you alternate between such models.\n clear_vram_after_session: After every queue item (each image of a batch), move the models held in VRAM to RAM and return the freed memory to the GPU driver. The models stay cached in RAM; the next item reloads them from there, which costs a few seconds (more with keep_ram_copy_of_weights off). Changes nothing where VRAM is system memory (CPU, MPS, integrated GPUs). Turn this on if a generation that runs fine the first time runs out of memory, or slows down sharply because the GPU spills into shared memory, when it is repeated.\n fp8_compute: Keep ComfyUI 'scaled fp8' checkpoints quantized instead of dequantizing them at load, and run their matmuls on the fp8 tensor cores (requires an Ada/SM 8.9 or newer NVIDIA GPU, or a ROCm GPU that passes an fp8 matmul probe; falls back automatically otherwise). Speeds up denoising and keeps the transformer at fp8 size - FP8 Storage alone also keeps it at that size, without the speedup - but quantizes activations as well, so images will differ from previous versions at the same seed. Reproducibility also requires the model to be FULLY resident in VRAM: a layer whose weights are still in RAM falls back to the dequantized path, and since which layers are resident shifts from run to run, the same seed then yields visibly different images. For repeatable output, ensure the model loads at 100% (e.g. enable_partial_loading=false with enough free VRAM).\n fp8_compute_full_precision_hints: Honor the per-layer 'full_precision_matrix_mult' flags that some scaled-fp8 checkpoints ship. Those layers then dequantize on every forward instead of using the fp8 tensor cores, which can cost a large part of the fp8_compute speedup - on checkpoints that mark many layers, most of it. Set to false to run every quantized layer on the fp8 tensor cores, ignoring the producer's instruction; faster, but the marked layers were flagged as numerically sensitive, so quality may suffer. Only has an effect when fp8_compute is enabled.\n int8_compute: Run the matmuls of ComfyUI int8 builds quantized with convrot ('int8_tensorwise' with 'convrot') on the int8 tensor cores instead of dequantizing their weights on every forward (requires an NVIDIA GPU with compute capability 8.0 or newer and Triton; falls back automatically otherwise, including on AMD, Apple and Intel GPUs and the CPU). Speeds up denoising with these builds, but quantizes activations per token as well, so images will differ from the dequantized path at the same seed. The kernels are tuned once per layer shape and token-count bucket: about 35 seconds for the first image after enabling it, about 1-5 seconds for a later size in a new token-count bucket, cached on disk across restarts.\n ram: DEPRECATED: This setting is no longer used. It has been replaced by `max_cache_ram_gb`, but most users will not need to use this config since automatic cache size limits should work well in most cases. This config setting will be removed once the new model cache behavior is stable.\n vram: DEPRECATED: This setting is no longer used. It has been replaced by `max_cache_vram_gb`, but most users will not need to use this config since automatic cache size limits should work well in most cases. This config setting will be removed once the new model cache behavior is stable.\n lazy_offload: DEPRECATED: This setting is no longer used. Lazy-offloading is enabled by default. This config setting will be removed once the new model cache behavior is stable.\n pytorch_cuda_alloc_conf: Configure the Torch CUDA memory allocator. This will impact peak reserved VRAM usage and performance. Setting to \"backend:cudaMallocAsync\" works well on many systems. The optimal configuration is highly dependent on the system configuration (device type, VRAM, CUDA driver version, etc.), so must be tuned experimentally. Unset on a ROCm build of PyTorch on Windows, \"expandable_segments:True\" is used.\n device: Preferred execution device. `auto` will choose the device depending on the hardware platform and the installed torch capabilities.<br>Valid values: `auto`, `cpu`, `cuda`, `mps`, `xpu`, `cuda:N`, `xpu:N` (where N is a device number)\n precision: Floating point precision. `float16` will consume half the memory of `float32` but produce slightly lower-quality images. The `auto` setting will guess the proper precision based on your video card and operating system.<br>Valid values: `auto`, `float16`, `bfloat16`, `float32`\n rocm_aotriton_experimental: Use AOTriton's fused (flash and memory-efficient) attention kernels on AMD GPUs that PyTorch marks experimental for them, such as the RX 7600/7700/7800 series, Ryzen AI 300/Max and the RX 9060 series, by setting TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL. Without them, attention on those GPUs runs on the slower math kernel, which also needs far more memory. `auto` turns them on only with a ROCm 10 build of PyTorch, and only when every GPU used for generation is one they were measured correct on (so far gfx1200, the RX 9060 series); `on` and `off` decide for any build and GPU. A TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL value already set in the environment takes precedence. Has no effect on other GPUs.<br>Valid values: `auto`, `on`, `off`\n sequential_guidance: Whether to calculate guidance in serial instead of in parallel, lowering memory requirements.\n noise_dtype: The dtype seeded noise is drawn in for SD1.5/SDXL, SD3, FLUX.1, FLUX.2, CogView4 and the Z-Image seed variance enhancer. `float32` draws the same noise on every platform. `float16` is the half-precision draw of earlier versions: on macOS it keeps the images your seeds gave before this update; on Windows and Linux both values give (nearly) the same images, and images made before the update cannot be reproduced there.<br>Valid values: `float32`, `float16`\n wan_memory_optimization: Enable experimental Wan memory optimizations at the cost of slower generation.\n pid_memory_optimization: Enable experimental PiD decode memory optimizations. Roughly halves the peak activation memory of a PiD decode; in exchange the decoded image changes slightly, because neither the chunked pixel pathway nor the float32 sampler intermediates are bit-exact with the default path.\n attention_type: Attention type.<br>Valid values: `auto`, `normal`, `xformers`, `sliced`, `torch-sdp`\n attention_slice_size: Slice size, valid when attention_type==\"sliced\".<br>Valid values: `auto`, `balanced`, `max`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`\n attention_backend: Attention kernel for the attention inside diffusion models. `auto` lets PyTorch choose among its exact SDPA kernels and never selects a quantized one. `sage` uses SageAttention 2 for the models listed in the SageAttention docs: faster, most at high resolutions and for video, but quantized, so images differ slightly from `auto` at the same seed. SageAttention is installed separately and needs an NVIDIA GPU with compute capability 8.0 or newer; masked attention, text encoders and VAEs keep PyTorch SDPA.<br>Valid values: `auto`, `sage`\n force_tiled_decode: Whether to enable tiled VAE decode (reduces memory consumption with some performance penalty). A tiled decode is not pixel-identical to a single-pass one: a VAE decoder normalises and attends over the whole image, so the difference is spread across it rather than confined to the tile seams. Also tiles the encode. Read by the SD1.5/SDXL, FLUX.1, FLUX.2, Z-Image, Qwen-Image and Qwen-Image-2.1 VAE nodes, the Anima encode, the Z-Image control encode and the Krea-2 style reference; other model families ignore it.\n auto_tiled_decode: Decode large images in tiles when an untiled decode's estimated working memory would take most of the GPU's memory (FLUX.1, FLUX.2, Z-Image, Qwen-Image, Qwen-Image-2.1, Krea-2 and Wan decodes, and Qwen-Image-2.1 encodes). Turn off to decode untiled unless tiling is requested; the FLUX.1, FLUX.2 and Z-Image decodes then still retry tiled after running out of memory. Anima keeps tiling a decode too large for its GPU either way, because tiling is what makes that case fast there.\n pil_compress_level: The compress_level setting of PIL.Image.save(), used for PNG encoding. All settings are lossless. 0 = no compression, 1 = fastest with slightly larger filesize, 9 = slowest with smallest filesize. 1 is typically the best setting.\n max_queue_size: Maximum number of items in the session queue.\n session_queue_mode: Session queue mode. Use 'FIFO' for traditional first-in-first-out, or 'round_robin' to serve each user's jobs in turn. In single-user mode, FIFO is always used regardless of this setting.<br>Valid values: `FIFO`, `round_robin`\n clear_queue_on_startup: Empties session queue on startup. If true, disables `max_queue_history`.\n max_queue_history: Keep the last N completed, failed, and canceled queue items. Older items are deleted on startup. Set to 0 to prune all terminal items. Ignored if `clear_queue_on_startup` is true.\n allow_nodes: List of nodes to allow. Omit to allow all.\n deny_nodes: List of nodes to deny. Omit to deny none.\n node_cache_size: How many cached nodes to keep in memory.\n hashing_algorithm: Model hashing algorthim for model installs. 'blake3_multi' is best for SSDs. 'blake3_single' is best for spinning disk HDDs. 'random' disables hashing, instead assigning a UUID to models. Useful when using a memory db to reduce model installation time, or if you don't care about storing stable hashes for models. Alternatively, any other hashlib algorithm is accepted, though these are not nearly as performant as blake3.<br>Valid values: `blake3_multi`, `blake3_single`, `random`, `md5`, `sha1`, `sha224`, `sha256`, `sha384`, `sha512`, `blake2b`, `blake2s`, `sha3_224`, `sha3_256`, `sha3_384`, `sha3_512`, `shake_128`, `shake_256`\n remote_api_tokens: List of regular expression and token pairs used when downloading models from URLs. The download URL is tested against the regex, and if it matches, the token is provided in as a Bearer token.\n scan_models_on_startup: Scan the models directory on startup, registering orphaned models. This is typically only used in conjunction with `use_memory_db` for testing purposes.\n allow_private_download_urls: Allow the download queue to fetch from loopback, link-local and private-network addresses. Disabled by default so that a download URL cannot be used to reach services that are only reachable from the server. Enable this only if you install models from a mirror on your own network.\n download_proxy: Optional HTTP proxy for model downloads. The proxy must enforce the public-address policy because proxy-side DNS cannot be checked by InvokeAI.\n unsafe_disable_picklescan: UNSAFE. Disable the picklescan security check during model installation. Recommended only for development and testing purposes. This will allow arbitrary code execution during model installation, so should never be used in production.\n allow_unknown_models: Allow installation of models that we are unable to identify. If enabled, models will be marked as `unknown` in the database, and will not have any metadata associated with them. If disabled, unknown models will be rejected during installation.\n multiuser: Enable multiuser support. When disabled, the application runs in single-user mode using a default system account with administrator privileges. When enabled, requires user authentication and authorization.\n strict_password_checking: Enforce strict password requirements. When True, passwords must contain uppercase, lowercase, and numbers. When False (default), any password is accepted but its strength (weak/moderate/strong) is reported to the user.\n image_index_enabled: Maintain a semantic embedding index of gallery images and videos, used by the image map and semantic search features.\n image_index_model: Name of the installed CLIP Vision or SigLIP model used to embed gallery images and video thumbnails. Changing the model discards embeddings computed by the previous model.\n image_index_device: Set to `cpu` to compute image embeddings on the CPU with a service-local copy of the model - avoids VRAM use and lets indexing run during generations. Any other value is ignored: embeddings otherwise run on the model cache's device, pausing while generations are in progress.\n image_index_batch_size: Number of gallery items embedded per batch by the image index worker.\n external_alibabacloud_api_key: API key for Alibaba Cloud DashScope image generation.\n external_alibabacloud_base_url: Base URL override for Alibaba Cloud DashScope image generation.\n external_atlascloud_api_key: API key for Atlas Cloud image generation.\n external_atlascloud_base_url: Base URL override for Atlas Cloud image generation.\n external_gemini_api_key: API key for Gemini image generation.\n external_openai_api_key: API key for OpenAI image generation.\n external_gemini_base_url: Base URL override for Gemini image generation.\n external_openai_base_url: Base URL override for OpenAI image generation.\n external_seedream_api_key: API key for Seedream image generation.\n external_seedream_base_url: Base URL override for Seedream image generation.\n base_url: Public base path when running behind a reverse proxy under a sub-path, e.g. `/invoke`. Set only when the proxy PRESERVES the sub-path (the backend receives `/invoke/api/...`). Leave unset when the proxy strips the sub-path or when serving at the domain root.\n forwarded_allow_ips: Comma-separated list of IPs (or `*`) allowed to set X-Forwarded-* headers. Set to the reverse proxy's IP. Only used when `base_url` is set.\n http_compression_level: Compression level for gzipped HTTP API responses. 0 disables response compression entirely, 1 is fastest, 9 (the default) is smallest. Compression runs on the event loop and blocks the whole server while it works, and level 9 costs about 5.5x the time of level 1 for 0.4 percentage points of extra compression, so lowering this makes the app noticeably more responsive on large libraries. Set to 0 when a reverse proxy already compresses responses."
+ "description": "Invoke's global app configuration.\n\nTypically, you won't need to interact with this class directly. Instead, use the `get_config` function from `invokeai.app.services.config` to get a singleton config object.\n\nAttributes:\n host: IP address to bind to. Use `0.0.0.0` to serve to your local network.\n port: Port to bind to.\n allow_origins: Allowed CORS origins.\n allow_credentials: Allow CORS credentials.\n allow_methods: Methods allowed for CORS.\n allow_headers: Headers allowed for CORS.\n ssl_certfile: SSL certificate file for HTTPS. See https://www.uvicorn.dev/settings/#https.\n ssl_keyfile: SSL key file for HTTPS. See https://www.uvicorn.dev/settings/#https.\n show_donation_link: Show the Donate to InvokeAI link in the frontend menus.\n log_tokenization: Enable logging of parsed prompt tokens.\n patchmatch: Enable patchmatch inpaint code.\n models_dir: Path to the models directory.\n convert_cache_dir: Path to the converted models cache directory (DEPRECATED, but do not delete because it is needed for migration from previous versions).\n download_cache_dir: Path to the directory that contains dynamically downloaded models.\n legacy_conf_dir: Path to directory of legacy checkpoint config files.\n db_dir: Path to InvokeAI databases directory.\n db_url: URL of a MySQL 8.4+ or MariaDB 10.11+ database to use instead of the SQLite database in `db_dir`, e.g. `mariadb+pymysql://invokeai:[email protected]/invokeai`. Needs the `mysql` extra. One InvokeAI process uses a database at a time. Read at startup only.\n db_synchronous: SQLite durability setting. `full`, the default and what InvokeAI has always used, flushes every commit to disk. `normal` acknowledges commits without waiting for that flush - measured at roughly 12x shorter commits on an SSD - and cannot corrupt the database under WAL, which is why it is refused, with a warning, when WAL is unavailable for the database file. What `normal` gives up is the most recent transactions on a power loss or OS crash: a just-written image record or queue status, not the image file itself.<br>Valid values: `full`, `normal`\n outputs_dir: Path to directory for outputs.\n image_subfolder_strategy: Strategy for organizing images into subfolders. 'flat' stores all images in a single folder. 'date' organizes by YYYY/MM/DD. 'type' organizes by image category. 'hash' uses first 2 characters of UUID for filesystem performance.<br>Valid values: `flat`, `date`, `type`, `hash`\n custom_nodes_dir: Path to directory for custom nodes.\n style_presets_dir: Path to directory for style presets.\n workflow_thumbnails_dir: Path to directory for workflow thumbnails.\n log_handlers: Log handler. Valid options are \"console\", \"file=<path>\", \"syslog=path|address:host:port\", \"http=<url>\".\n log_format: Log format. Use \"plain\" for text-only, \"color\" for colorized output, \"legacy\" for 2.3-style logging and \"syslog\" for syslog-style.<br>Valid values: `plain`, `color`, `syslog`, `legacy`\n log_level: Emit logging messages at this level or higher.<br>Valid values: `debug`, `info`, `warning`, `error`, `critical`\n log_sql: Log SQL queries. `log_level` must be `debug` for this to do anything. Extremely verbose.\n log_level_network: Log level for network-related messages. 'info' and 'debug' are very verbose.<br>Valid values: `debug`, `info`, `warning`, `error`, `critical`\n use_memory_db: Use in-memory database. Useful for development.\n dev_reload: Automatically reload when Python sources are changed. Does not reload node definitions.\n profile_graphs: Enable graph profiling using `cProfile`.\n profile_prefix: An optional prefix for profile output files.\n profiles_dir: Path to profiles output directory.\n max_cache_ram_gb: The maximum amount of CPU RAM to use for model caching in GB. If unset, the limit will be configured based on the available RAM. In most cases, it is recommended to leave this unset.\n max_cache_vram_gb: The amount of VRAM to use for model caching in GB. If unset, the limit will be configured based on the available VRAM and the device_working_mem_gb. In most cases, it is recommended to leave this unset.\n reserve_vram_gb: The amount of VRAM (in GB) to subtract from the model cache's available memory budget. Defaults to 0.\n log_memory_usage: If True, a memory snapshot will be captured before and after every model cache operation, and the result will be logged (at debug level). There is a time cost to capturing the memory snapshots, so it is recommended to only enable this feature if you are actively inspecting the model cache's behaviour.\n model_cache_keep_alive_min: How long to keep models in cache after last use, in minutes. A value of 0 (the default) means models are kept in cache indefinitely. If no model generations occur within the timeout period, the model cache is cleared using the same logic as the 'Clear Model Cache' button.\n device_working_mem_gb: The amount of working memory to keep available on the compute device (in GB). Has no effect if running on CPU. If you are experiencing OOM errors, try increasing this value.\n enable_partial_loading: Enable partial loading of models. This enables models to run with reduced VRAM requirements (at the cost of slower speed) by streaming the model from RAM to VRAM as its used. In some edge cases, partial loading can cause models to run more slowly if they were previously being fully loaded into VRAM.\n keep_ram_copy_of_weights: Whether to keep a full RAM copy of a model's weights when the model is loaded in VRAM. Keeping a RAM copy increases average RAM usage, but speeds up model switching and LoRA patching (assuming there is sufficient RAM). Set this to False if RAM pressure is consistently high.\n offload_on_architecture_switch: When a session uses main models of another architecture than the previous one on the same GPU, move every model it does not use from VRAM to RAM before it runs. Models both sessions use stay. Switching back reloads the moved models from RAM, which costs a few seconds per switch when both architectures would have fit in VRAM together; turn this off if you alternate between such models.\n clear_vram_after_session: After every queue item (each image of a batch), move the models held in VRAM to RAM and return the freed memory to the GPU driver. The models stay cached in RAM; the next item reloads them from there, which costs a few seconds (more with keep_ram_copy_of_weights off). Changes nothing where VRAM is system memory (CPU, MPS, integrated GPUs). Turn this on if a generation that runs fine the first time runs out of memory, or slows down sharply because the GPU spills into shared memory, when it is repeated.\n fp8_compute: Keep ComfyUI 'scaled fp8' checkpoints quantized instead of dequantizing them at load, and run their matmuls on the fp8 tensor cores (requires an Ada/SM 8.9 or newer NVIDIA GPU, or a ROCm GPU that passes an fp8 matmul probe; falls back automatically otherwise). Speeds up denoising and keeps the transformer at fp8 size - FP8 Storage alone also keeps it at that size, without the speedup - but quantizes activations as well, so images will differ from previous versions at the same seed. Reproducibility also requires the model to be FULLY resident in VRAM: a layer whose weights are still in RAM falls back to the dequantized path, and since which layers are resident shifts from run to run, the same seed then yields visibly different images. For repeatable output, ensure the model loads at 100% (e.g. enable_partial_loading=false with enough free VRAM).\n fp8_compute_full_precision_hints: Honor the per-layer 'full_precision_matrix_mult' flags that some scaled-fp8 checkpoints ship. Those layers then dequantize on every forward instead of using the fp8 tensor cores, which can cost a large part of the fp8_compute speedup - on checkpoints that mark many layers, most of it. Set to false to run every quantized layer on the fp8 tensor cores, ignoring the producer's instruction; faster, but the marked layers were flagged as numerically sensitive, so quality may suffer. Only has an effect when fp8_compute is enabled.\n int8_compute: Run the matmuls of ComfyUI int8 builds quantized with convrot ('int8_tensorwise' with 'convrot') on the int8 tensor cores instead of dequantizing their weights on every forward (requires an NVIDIA GPU with compute capability 8.0 or newer and Triton; falls back automatically otherwise, including on AMD, Apple and Intel GPUs and the CPU). Speeds up denoising with these builds, but quantizes activations per token as well, so images will differ from the dequantized path at the same seed. The kernels are tuned once per layer shape and token-count bucket: about 35 seconds for the first image after enabling it, about 1-5 seconds for a later size in a new token-count bucket, cached on disk across restarts.\n ram: DEPRECATED: This setting is no longer used. It has been replaced by `max_cache_ram_gb`, but most users will not need to use this config since automatic cache size limits should work well in most cases. This config setting will be removed once the new model cache behavior is stable.\n vram: DEPRECATED: This setting is no longer used. It has been replaced by `max_cache_vram_gb`, but most users will not need to use this config since automatic cache size limits should work well in most cases. This config setting will be removed once the new model cache behavior is stable.\n lazy_offload: DEPRECATED: This setting is no longer used. Lazy-offloading is enabled by default. This config setting will be removed once the new model cache behavior is stable.\n pytorch_cuda_alloc_conf: Configure the Torch CUDA memory allocator. This will impact peak reserved VRAM usage and performance. Setting to \"backend:cudaMallocAsync\" works well on many systems. The optimal configuration is highly dependent on the system configuration (device type, VRAM, CUDA driver version, etc.), so must be tuned experimentally. Unset on a ROCm build of PyTorch on Windows, \"expandable_segments:True\" is used.\n device: Preferred execution device. `auto` will choose the device depending on the hardware platform and the installed torch capabilities.<br>Valid values: `auto`, `cpu`, `cuda`, `mps`, `xpu`, `cuda:N`, `xpu:N` (where N is a device number)\n precision: Floating point precision. `float16` will consume half the memory of `float32` but produce slightly lower-quality images. The `auto` setting will guess the proper precision based on your video card and operating system.<br>Valid values: `auto`, `float16`, `bfloat16`, `float32`\n rocm_aotriton_experimental: Use AOTriton's fused (flash and memory-efficient) attention kernels on AMD GPUs that PyTorch marks experimental for them, such as the RX 7600/7700/7800 series, Ryzen AI 300/Max and the RX 9060 series, by setting TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL. Without them, attention on those GPUs runs on the slower math kernel, which also needs far more memory. `auto` turns them on only with a ROCm 10 build of PyTorch, and only when every GPU used for generation is one they were measured correct on (so far gfx1200, the RX 9060 series); `on` and `off` decide for any build and GPU. A TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL value already set in the environment takes precedence. Has no effect on other GPUs.<br>Valid values: `auto`, `on`, `off`\n sequential_guidance: Whether to calculate guidance in serial instead of in parallel, lowering memory requirements.\n noise_dtype: The dtype seeded noise is drawn in for SD1.5/SDXL, SD3, FLUX.1, FLUX.2, CogView4 and the Z-Image seed variance enhancer. `float32` draws the same noise on every platform. `float16` is the half-precision draw of earlier versions: on macOS it keeps the images your seeds gave before this update; on Windows and Linux both values give (nearly) the same images, and images made before the update cannot be reproduced there.<br>Valid values: `float32`, `float16`\n wan_memory_optimization: Enable experimental Wan memory optimizations at the cost of slower generation.\n pid_memory_optimization: Enable experimental PiD decode memory optimizations. Roughly halves the peak activation memory of a PiD decode; in exchange the decoded image changes slightly, because neither the chunked pixel pathway nor the float32 sampler intermediates are bit-exact with the default path.\n tiny_autoencoder_previews: Render denoising previews with an installed Tiny AutoEncoder instead of the linear latent projection. Install the matching Tiny AutoEncoder starter model; families without one keep linear previews. A preview costs about 25 ms and 0.65 GB of transient VRAM on an RTX 4090; not recommended on CPU-only installs, where one takes about 2 s.\n attention_type: Attention type.<br>Valid values: `auto`, `normal`, `xformers`, `sliced`, `torch-sdp`\n attention_slice_size: Slice size, valid when attention_type==\"sliced\".<br>Valid values: `auto`, `balanced`, `max`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`\n attention_backend: Attention kernel for the attention inside diffusion models. `auto` lets PyTorch choose among its exact SDPA kernels and never selects a quantized one. `sage` uses SageAttention 2 for the models listed in the SageAttention docs: faster, most at high resolutions and for video, but quantized, so images differ slightly from `auto` at the same seed. SageAttention is installed separately and needs an NVIDIA GPU with compute capability 8.0 or newer; masked attention, text encoders and VAEs keep PyTorch SDPA.<br>Valid values: `auto`, `sage`\n force_tiled_decode: Whether to enable tiled VAE decode (reduces memory consumption with some performance penalty). A tiled decode is not pixel-identical to a single-pass one: a VAE decoder normalises and attends over the whole image, so the difference is spread across it rather than confined to the tile seams. Also tiles the encode. Read by the SD1.5/SDXL, FLUX.1, FLUX.2, Z-Image, Qwen-Image and Qwen-Image-2.1 VAE nodes, the Anima encode, the Z-Image control encode and the Krea-2 style reference; other model families ignore it.\n auto_tiled_decode: Decode large images in tiles when an untiled decode's estimated working memory would take most of the GPU's memory (FLUX.1, FLUX.2, Z-Image, Qwen-Image, Qwen-Image-2.1, Krea-2 and Wan decodes, and Qwen-Image-2.1 encodes). Turn off to decode untiled unless tiling is requested; the FLUX.1, FLUX.2 and Z-Image decodes then still retry tiled after running out of memory. Anima keeps tiling a decode too large for its GPU either way, because tiling is what makes that case fast there.\n pil_compress_level: The compress_level setting of PIL.Image.save(), used for PNG encoding. All settings are lossless. 0 = no compression, 1 = fastest with slightly larger filesize, 9 = slowest with smallest filesize. 1 is typically the best setting.\n max_queue_size: Maximum number of items in the session queue.\n session_queue_mode: Session queue mode. Use 'FIFO' for traditional first-in-first-out, or 'round_robin' to serve each user's jobs in turn. In single-user mode, FIFO is always used regardless of this setting.<br>Valid values: `FIFO`, `round_robin`\n clear_queue_on_startup: Empties session queue on startup. If true, disables `max_queue_history`.\n max_queue_history: Keep the last N completed, failed, and canceled queue items. Older items are deleted on startup. Set to 0 to prune all terminal items. Ignored if `clear_queue_on_startup` is true.\n allow_nodes: List of nodes to allow. Omit to allow all.\n deny_nodes: List of nodes to deny. Omit to deny none.\n node_cache_size: How many cached nodes to keep in memory.\n hashing_algorithm: Model hashing algorthim for model installs. 'blake3_multi' is best for SSDs. 'blake3_single' is best for spinning disk HDDs. 'random' disables hashing, instead assigning a UUID to models. Useful when using a memory db to reduce model installation time, or if you don't care about storing stable hashes for models. Alternatively, any other hashlib algorithm is accepted, though these are not nearly as performant as blake3.<br>Valid values: `blake3_multi`, `blake3_single`, `random`, `md5`, `sha1`, `sha224`, `sha256`, `sha384`, `sha512`, `blake2b`, `blake2s`, `sha3_224`, `sha3_256`, `sha3_384`, `sha3_512`, `shake_128`, `shake_256`\n remote_api_tokens: List of regular expression and token pairs used when downloading models from URLs. The download URL is tested against the regex, and if it matches, the token is provided in as a Bearer token.\n scan_models_on_startup: Scan the models directory on startup, registering orphaned models. This is typically only used in conjunction with `use_memory_db` for testing purposes.\n allow_private_download_urls: Allow the download queue to fetch from loopback, link-local and private-network addresses. Disabled by default so that a download URL cannot be used to reach services that are only reachable from the server. Enable this only if you install models from a mirror on your own network.\n download_proxy: Optional HTTP proxy for model downloads. The proxy must enforce the public-address policy because proxy-side DNS cannot be checked by InvokeAI.\n unsafe_disable_picklescan: UNSAFE. Disable the picklescan security check during model installation. Recommended only for development and testing purposes. This will allow arbitrary code execution during model installation, so should never be used in production.\n allow_unknown_models: Allow installation of models that we are unable to identify. If enabled, models will be marked as `unknown` in the database, and will not have any metadata associated with them. If disabled, unknown models will be rejected during installation.\n multiuser: Enable multiuser support. When disabled, the application runs in single-user mode using a default system account with administrator privileges. When enabled, requires user authentication and authorization.\n strict_password_checking: Enforce strict password requirements. When True, passwords must contain uppercase, lowercase, and numbers. When False (default), any password is accepted but its strength (weak/moderate/strong) is reported to the user.\n image_index_enabled: Maintain a semantic embedding index of gallery images and videos, used by the image map and semantic search features.\n image_index_model: Name of the installed CLIP Vision or SigLIP model used to embed gallery images and video thumbnails. Changing the model discards embeddings computed by the previous model.\n image_index_device: Set to `cpu` to compute image embeddings on the CPU with a service-local copy of the model - avoids VRAM use and lets indexing run during generations. Any other value is ignored: embeddings otherwise run on the model cache's device, pausing while generations are in progress.\n image_index_batch_size: Number of gallery items embedded per batch by the image index worker.\n external_alibabacloud_api_key: API key for Alibaba Cloud DashScope image generation.\n external_alibabacloud_base_url: Base URL override for Alibaba Cloud DashScope image generation.\n external_atlascloud_api_key: API key for Atlas Cloud image generation.\n external_atlascloud_base_url: Base URL override for Atlas Cloud image generation.\n external_gemini_api_key: API key for Gemini image generation.\n external_openai_api_key: API key for OpenAI image generation.\n external_gemini_base_url: Base URL override for Gemini image generation.\n external_openai_base_url: Base URL override for OpenAI image generation.\n external_seedream_api_key: API key for Seedream image generation.\n external_seedream_base_url: Base URL override for Seedream image generation.\n base_url: Public base path when running behind a reverse proxy under a sub-path, e.g. `/invoke`. Set only when the proxy PRESERVES the sub-path (the backend receives `/invoke/api/...`). Leave unset when the proxy strips the sub-path or when serving at the domain root.\n forwarded_allow_ips: Comma-separated list of IPs (or `*`) allowed to set X-Forwarded-* headers. Set to the reverse proxy's IP. Only used when `base_url` is set.\n http_compression_level: Compression level for gzipped HTTP API responses. 0 disables response compression entirely, 1 is fastest, 9 (the default) is smallest. Compression runs on the event loop and blocks the whole server while it works, and level 9 costs about 5.5x the time of level 1 for 0.4 percentage points of extra compression, so lowering this makes the app noticeably more responsive on large libraries. Set to 0 when a reverse proxy already compresses responses."
},
"InvokeAIAppConfigWithSetFields": {
"properties": {
@@ -89827,6 +89959,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -90594,6 +90744,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -91291,6 +91459,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -91799,6 +91985,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -92568,6 +92772,7 @@
"external_image_generator",
"pid_decoder",
"ltx2_duration_head",
+ "tiny_autoencoder",
"unknown"
],
"title": "ModelType",
@@ -92800,6 +93005,24 @@
{
"$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
},
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ {
+ "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
{
"$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
},
@@ -112404,6 +112627,852 @@
"$ref": "#/components/schemas/LatentsOutput"
}
},
+ "TinyAutoencoder_Checkpoint_FLUX_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"
+ },
+ "config_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Config Path",
+ "description": "Path to the config for this model, if any."
+ },
+ "type": {
+ "type": "string",
+ "const": "tiny_autoencoder",
+ "title": "Type",
+ "default": "tiny_autoencoder"
+ },
+ "format": {
+ "type": "string",
+ "const": "checkpoint",
+ "title": "Format",
+ "default": "checkpoint"
+ },
+ "latent_channels": {
+ "type": "integer",
+ "title": "Latent Channels",
+ "description": "Latent channels the decoder consumes."
+ },
+ "base": {
+ "type": "string",
+ "const": "flux",
+ "title": "Base",
+ "default": "flux"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "hash",
+ "path",
+ "file_size",
+ "name",
+ "description",
+ "source",
+ "source_type",
+ "source_api_response",
+ "source_url",
+ "cover_image",
+ "config_path",
+ "type",
+ "format",
+ "latent_channels",
+ "base"
+ ],
+ "title": "TinyAutoencoder_Checkpoint_FLUX_Config"
+ },
+ "TinyAutoencoder_Checkpoint_Flux2_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"
+ },
+ "config_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Config Path",
+ "description": "Path to the config for this model, if any."
+ },
+ "type": {
+ "type": "string",
+ "const": "tiny_autoencoder",
+ "title": "Type",
+ "default": "tiny_autoencoder"
+ },
+ "format": {
+ "type": "string",
+ "const": "checkpoint",
+ "title": "Format",
+ "default": "checkpoint"
+ },
+ "latent_channels": {
+ "type": "integer",
+ "title": "Latent Channels",
+ "description": "Latent channels the decoder consumes."
+ },
+ "base": {
+ "type": "string",
+ "const": "flux2",
+ "title": "Base",
+ "default": "flux2"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "hash",
+ "path",
+ "file_size",
+ "name",
+ "description",
+ "source",
+ "source_type",
+ "source_api_response",
+ "source_url",
+ "cover_image",
+ "config_path",
+ "type",
+ "format",
+ "latent_channels",
+ "base"
+ ],
+ "title": "TinyAutoencoder_Checkpoint_Flux2_Config"
+ },
+ "TinyAutoencoder_Checkpoint_QwenImage21_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"
+ },
+ "config_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Config Path",
+ "description": "Path to the config for this model, if any."
+ },
+ "type": {
+ "type": "string",
+ "const": "tiny_autoencoder",
+ "title": "Type",
+ "default": "tiny_autoencoder"
+ },
+ "format": {
+ "type": "string",
+ "const": "checkpoint",
+ "title": "Format",
+ "default": "checkpoint"
+ },
+ "latent_channels": {
+ "type": "integer",
+ "title": "Latent Channels",
+ "description": "Latent channels the decoder consumes."
+ },
+ "base": {
+ "type": "string",
+ "const": "qwen-image-2-1",
+ "title": "Base",
+ "default": "qwen-image-2-1"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "hash",
+ "path",
+ "file_size",
+ "name",
+ "description",
+ "source",
+ "source_type",
+ "source_api_response",
+ "source_url",
+ "cover_image",
+ "config_path",
+ "type",
+ "format",
+ "latent_channels",
+ "base"
+ ],
+ "title": "TinyAutoencoder_Checkpoint_QwenImage21_Config"
+ },
+ "TinyAutoencoder_Checkpoint_SD1_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"
+ },
+ "config_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Config Path",
+ "description": "Path to the config for this model, if any."
+ },
+ "type": {
+ "type": "string",
+ "const": "tiny_autoencoder",
+ "title": "Type",
+ "default": "tiny_autoencoder"
+ },
+ "format": {
+ "type": "string",
+ "const": "checkpoint",
+ "title": "Format",
+ "default": "checkpoint"
+ },
+ "latent_channels": {
+ "type": "integer",
+ "title": "Latent Channels",
+ "description": "Latent channels the decoder consumes."
+ },
+ "base": {
+ "type": "string",
+ "const": "sd-1",
+ "title": "Base",
+ "default": "sd-1"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "hash",
+ "path",
+ "file_size",
+ "name",
+ "description",
+ "source",
+ "source_type",
+ "source_api_response",
+ "source_url",
+ "cover_image",
+ "config_path",
+ "type",
+ "format",
+ "latent_channels",
+ "base"
+ ],
+ "title": "TinyAutoencoder_Checkpoint_SD1_Config"
+ },
+ "TinyAutoencoder_Checkpoint_SD3_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"
+ },
+ "config_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Config Path",
+ "description": "Path to the config for this model, if any."
+ },
+ "type": {
+ "type": "string",
+ "const": "tiny_autoencoder",
+ "title": "Type",
+ "default": "tiny_autoencoder"
+ },
+ "format": {
+ "type": "string",
+ "const": "checkpoint",
+ "title": "Format",
+ "default": "checkpoint"
+ },
+ "latent_channels": {
+ "type": "integer",
+ "title": "Latent Channels",
+ "description": "Latent channels the decoder consumes."
+ },
+ "base": {
+ "type": "string",
+ "const": "sd-3",
+ "title": "Base",
+ "default": "sd-3"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "hash",
+ "path",
+ "file_size",
+ "name",
+ "description",
+ "source",
+ "source_type",
+ "source_api_response",
+ "source_url",
+ "cover_image",
+ "config_path",
+ "type",
+ "format",
+ "latent_channels",
+ "base"
+ ],
+ "title": "TinyAutoencoder_Checkpoint_SD3_Config"
+ },
+ "TinyAutoencoder_Checkpoint_SDXL_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"
+ },
+ "config_path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Config Path",
+ "description": "Path to the config for this model, if any."
+ },
+ "type": {
+ "type": "string",
+ "const": "tiny_autoencoder",
+ "title": "Type",
+ "default": "tiny_autoencoder"
+ },
+ "format": {
+ "type": "string",
+ "const": "checkpoint",
+ "title": "Format",
+ "default": "checkpoint"
+ },
+ "latent_channels": {
+ "type": "integer",
+ "title": "Latent Channels",
+ "description": "Latent channels the decoder consumes."
+ },
+ "base": {
+ "type": "string",
+ "const": "sdxl",
+ "title": "Base",
+ "default": "sdxl"
+ }
+ },
+ "type": "object",
+ "required": [
+ "key",
+ "hash",
+ "path",
+ "file_size",
+ "name",
+ "description",
+ "source",
+ "source_type",
+ "source_api_response",
+ "source_url",
+ "cover_image",
+ "config_path",
+ "type",
+ "format",
+ "latent_channels",
+ "base"
+ ],
+ "title": "TinyAutoencoder_Checkpoint_SDXL_Config"
+ },
"TransformerField": {
"properties": {
"transformer": {
diff --git a/invokeai/frontend/api/schema.ts b/invokeai/frontend/api/schema.ts
index abaaea062a..c62b9fd220 100644
--- a/invokeai/frontend/api/schema.ts
+++ b/invokeai/frontend/api/schema.ts
@@ -5895,7 +5895,7 @@ export type components = {
* @enum {string}
*/
AnimaVariantType: "anima_qwen3" | "anima_qwen35";
- 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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
/**
* AppVersion
* @description App Version Response
@@ -23987,6 +23987,7 @@ export type components = {
* noise_dtype: The dtype seeded noise is drawn in for SD1.5/SDXL, SD3, FLUX.1, FLUX.2, CogView4 and the Z-Image seed variance enhancer. `float32` draws the same noise on every platform. `float16` is the half-precision draw of earlier versions: on macOS it keeps the images your seeds gave before this update; on Windows and Linux both values give (nearly) the same images, and images made before the update cannot be reproduced there.<br>Valid values: `float32`, `float16`
* wan_memory_optimization: Enable experimental Wan memory optimizations at the cost of slower generation.
* pid_memory_optimization: Enable experimental PiD decode memory optimizations. Roughly halves the peak activation memory of a PiD decode; in exchange the decoded image changes slightly, because neither the chunked pixel pathway nor the float32 sampler intermediates are bit-exact with the default path.
+ * tiny_autoencoder_previews: Render denoising previews with an installed Tiny AutoEncoder instead of the linear latent projection. Install the matching Tiny AutoEncoder starter model; families without one keep linear previews. A preview costs about 25 ms and 0.65 GB of transient VRAM on an RTX 4090; not recommended on CPU-only installs, where one takes about 2 s.
* attention_type: Attention type.<br>Valid values: `auto`, `normal`, `xformers`, `sliced`, `torch-sdp`
* attention_slice_size: Slice size, valid when attention_type=="sliced".<br>Valid values: `auto`, `balanced`, `max`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`
* attention_backend: Attention kernel for the attention inside diffusion models. `auto` lets PyTorch choose among its exact SDPA kernels and never selects a quantized one. `sage` uses SageAttention 2 for the models listed in the SageAttention docs: faster, most at high resolutions and for video, but quantized, so images differ slightly from `auto` at the same seed. SageAttention is installed separately and needs an NVIDIA GPU with compute capability 8.0 or newer; masked attention, text encoders and VAEs keep PyTorch SDPA.<br>Valid values: `auto`, `sage`
@@ -24451,6 +24452,12 @@ export type components = {
* @default false
*/
pid_memory_optimization?: boolean;
+ /**
+ * Tiny Autoencoder Previews
+ * @description Render denoising previews with an installed Tiny AutoEncoder instead of the linear latent projection. Install the matching Tiny AutoEncoder starter model; families without one keep linear previews. A preview costs about 25 ms and 0.65 GB of transient VRAM on an RTX 4090; not recommended on CPU-only installs, where one takes about 2 s.
+ * @default false
+ */
+ tiny_autoencoder_previews?: boolean;
/**
* Attention Type
* @description Attention type.
@@ -38761,7 +38768,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
/**
* ModelInstallDownloadProgressEvent
@@ -38927,7 +38934,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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
@@ -39034,7 +39041,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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
@@ -39061,7 +39068,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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
@@ -39275,7 +39282,7 @@ export type components = {
* @description Model type.
* @enum {string}
*/
- ModelType: "onnx" | "main" | "vae" | "lora" | "control_lora" | "controlnet" | "embedding" | "ip_adapter" | "clip_vision" | "clip_embed" | "t2i_adapter" | "t5_encoder" | "qwen3_encoder" | "qwen_vl_encoder" | "qwen3_vl_encoder" | "qwen3_5_encoder" | "mistral_encoder" | "wan_t5_encoder" | "gemma2_encoder" | "gemma4_encoder" | "spandrel_image_to_image" | "siglip" | "flux_redux" | "llava_onevision" | "prompt_enhancer" | "text_llm" | "external_image_generator" | "pid_decoder" | "ltx2_duration_head" | "unknown";
+ ModelType: "onnx" | "main" | "vae" | "lora" | "control_lora" | "controlnet" | "embedding" | "ip_adapter" | "clip_vision" | "clip_embed" | "t2i_adapter" | "t5_encoder" | "qwen3_encoder" | "qwen_vl_encoder" | "qwen3_vl_encoder" | "qwen3_5_encoder" | "mistral_encoder" | "wan_t5_encoder" | "gemma2_encoder" | "gemma4_encoder" | "spandrel_image_to_image" | "siglip" | "flux_redux" | "llava_onevision" | "prompt_enhancer" | "text_llm" | "external_image_generator" | "pid_decoder" | "ltx2_duration_head" | "tiny_autoencoder" | "unknown";
/**
* ModelVariantType
* @description Variant type.
@@ -39288,7 +39295,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"])[];
};
/**
* MossImageConditioningField
@@ -49771,6 +49778,504 @@ export type components = {
*/
type: "tiled_multi_diffusion_denoise_latents";
};
+ /** TinyAutoencoder_Checkpoint_FLUX_Config */
+ TinyAutoencoder_Checkpoint_FLUX_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;
+ /**
+ * Config Path
+ * @description Path to the config for this model, if any.
+ */
+ config_path: string | null;
+ /**
+ * Type
+ * @default tiny_autoencoder
+ * @constant
+ */
+ type: "tiny_autoencoder";
+ /**
+ * Format
+ * @default checkpoint
+ * @constant
+ */
+ format: "checkpoint";
+ /**
+ * Latent Channels
+ * @description Latent channels the decoder consumes.
+ */
+ latent_channels: number;
+ /**
+ * Base
+ * @default flux
+ * @constant
+ */
+ base: "flux";
+ };
+ /** TinyAutoencoder_Checkpoint_Flux2_Config */
+ TinyAutoencoder_Checkpoint_Flux2_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;
+ /**
+ * Config Path
+ * @description Path to the config for this model, if any.
+ */
+ config_path: string | null;
+ /**
+ * Type
+ * @default tiny_autoencoder
+ * @constant
+ */
+ type: "tiny_autoencoder";
+ /**
+ * Format
+ * @default checkpoint
+ * @constant
+ */
+ format: "checkpoint";
+ /**
+ * Latent Channels
+ * @description Latent channels the decoder consumes.
+ */
+ latent_channels: number;
+ /**
+ * Base
+ * @default flux2
+ * @constant
+ */
+ base: "flux2";
+ };
+ /** TinyAutoencoder_Checkpoint_QwenImage21_Config */
+ TinyAutoencoder_Checkpoint_QwenImage21_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;
+ /**
+ * Config Path
+ * @description Path to the config for this model, if any.
+ */
+ config_path: string | null;
+ /**
+ * Type
+ * @default tiny_autoencoder
+ * @constant
+ */
+ type: "tiny_autoencoder";
+ /**
+ * Format
+ * @default checkpoint
+ * @constant
+ */
+ format: "checkpoint";
+ /**
+ * Latent Channels
+ * @description Latent channels the decoder consumes.
+ */
+ latent_channels: number;
+ /**
+ * Base
+ * @default qwen-image-2-1
+ * @constant
+ */
+ base: "qwen-image-2-1";
+ };
+ /** TinyAutoencoder_Checkpoint_SD1_Config */
+ TinyAutoencoder_Checkpoint_SD1_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;
+ /**
+ * Config Path
+ * @description Path to the config for this model, if any.
+ */
+ config_path: string | null;
+ /**
+ * Type
+ * @default tiny_autoencoder
+ * @constant
+ */
+ type: "tiny_autoencoder";
+ /**
+ * Format
+ * @default checkpoint
+ * @constant
+ */
+ format: "checkpoint";
+ /**
+ * Latent Channels
+ * @description Latent channels the decoder consumes.
+ */
+ latent_channels: number;
+ /**
+ * Base
+ * @default sd-1
+ * @constant
+ */
+ base: "sd-1";
+ };
+ /** TinyAutoencoder_Checkpoint_SD3_Config */
+ TinyAutoencoder_Checkpoint_SD3_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;
+ /**
+ * Config Path
+ * @description Path to the config for this model, if any.
+ */
+ config_path: string | null;
+ /**
+ * Type
+ * @default tiny_autoencoder
+ * @constant
+ */
+ type: "tiny_autoencoder";
+ /**
+ * Format
+ * @default checkpoint
+ * @constant
+ */
+ format: "checkpoint";
+ /**
+ * Latent Channels
+ * @description Latent channels the decoder consumes.
+ */
+ latent_channels: number;
+ /**
+ * Base
+ * @default sd-3
+ * @constant
+ */
+ base: "sd-3";
+ };
+ /** TinyAutoencoder_Checkpoint_SDXL_Config */
+ TinyAutoencoder_Checkpoint_SDXL_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;
+ /**
+ * Config Path
+ * @description Path to the config for this model, if any.
+ */
+ config_path: string | null;
+ /**
+ * Type
+ * @default tiny_autoencoder
+ * @constant
+ */
+ type: "tiny_autoencoder";
+ /**
+ * Format
+ * @default checkpoint
+ * @constant
+ */
+ format: "checkpoint";
+ /**
+ * Latent Channels
+ * @description Latent channels the decoder consumes.
+ */
+ latent_channels: number;
+ /**
+ * Base
+ * @default sdxl
+ * @constant
+ */
+ base: "sdxl";
+ };
/** TransformerField */
TransformerField: {
/** @description Info to load Transformer submodel */
@@ -57095,7 +57600,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Validation Error */
@@ -57127,7 +57632,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Validation Error */
@@ -57179,7 +57684,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Bad request */
@@ -57293,7 +57798,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Bad request */
@@ -57366,7 +57871,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];
};
};
/** @description Bad request */
@@ -58160,7 +58665,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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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_QwenImage21_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_Diffusers_LTX2_Config"] | components["schemas"]["Main_Diffusers_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_Ideogram4_Config"] | components["schemas"]["Main_Checkpoint_Krea2_Config"] | components["schemas"]["Main_Checkpoint_Anima_Config"] | components["schemas"]["Main_Checkpoint_MiniMaxH3_Config"] | components["schemas"]["Main_Checkpoint_LTX2_Config"] | components["schemas"]["Main_Checkpoint_MossImage_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_QwenImage21_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_GGUF_Ideogram4_Config"] | components["schemas"]["Main_GGUF_ErnieImage_Config"] | components["schemas"]["Main_GGUF_LTX2_Config"] | components["schemas"]["Main_GGUF_Anima_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_SD3_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_Checkpoint_QwenImage21_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_FLUX_Config"] | components["schemas"]["VAE_Diffusers_SD3_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["VAE_Diffusers_QwenImage21_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"]["TinyAutoencoder_Checkpoint_SD1_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SDXL_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_SD3_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_FLUX_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_Flux2_Config"] | components["schemas"]["TinyAutoencoder_Checkpoint_QwenImage21_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_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Flux2_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_LTX2_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_GGUF_Config"] | components["schemas"]["Qwen3VLEncoder_Qwen3VLEncoder_Config"] | components["schemas"]["Qwen35Encoder_Checkpoint_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"]["Gemma4Encoder_Gemma4Encoder_LTX2_Config"] | components["schemas"]["Gemma4Encoder_GGUF_LTX2_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"]["IPAdapter_Checkpoint_Anima_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"]["CLIPEmbed_Checkpoint_G_Config"] | components["schemas"]["CLIPEmbed_Checkpoint_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LTX2DurationHead_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/models/core/taxonomy.ts b/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
index 5ea9e004ad..20c8b216d1 100644
--- a/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/taxonomy.ts
@@ -30,6 +30,7 @@ export const MODEL_CATEGORIES: CategoryDefinition[] = [
{ label: 'Gemma 2 Encoder', pluralLabel: 'Gemma 2 Encoders', type: 'gemma2_encoder' },
{ label: 'Gemma 4 Encoder', pluralLabel: 'Gemma 4 Encoders', type: 'gemma4_encoder' },
{ label: 'PiD Decoder', pluralLabel: 'PiD Decoders', type: 'pid_decoder' },
+ { label: 'Tiny AutoEncoder', pluralLabel: 'Tiny AutoEncoders', type: 'tiny_autoencoder' },
{ label: 'LTX-2 Duration Head', pluralLabel: 'LTX-2 Duration Heads', type: 'ltx2_duration_head' },
{ label: 'CLIP Embed', pluralLabel: 'CLIP Embeds', type: 'clip_embed' },
{ label: 'CLIP Vision', pluralLabel: 'CLIP Visions', type: 'clip_vision' },
diff --git a/invokeai/frontend/webv2/src/features/models/core/types.ts b/invokeai/frontend/webv2/src/features/models/core/types.ts
index 9954d95ada..2356b30cf1 100644
--- a/invokeai/frontend/webv2/src/features/models/core/types.ts
+++ b/invokeai/frontend/webv2/src/features/models/core/types.ts
@@ -55,6 +55,7 @@ export type ModelTaxonomyType =
| 'gemma4_encoder'
| 'pid_decoder'
| 'ltx2_duration_head'
+ | 'tiny_autoencoder'
| 'siglip'
| 'spandrel_image_to_image'
| 'flux_redux'
diff --git a/tests/app/invocations/test_qwen_image_2_1_nodes.py b/tests/app/invocations/test_qwen_image_2_1_nodes.py
index a5d2e53f7d..2be21fb81a 100644
--- a/tests/app/invocations/test_qwen_image_2_1_nodes.py
+++ b/tests/app/invocations/test_qwen_image_2_1_nodes.py
@@ -89,22 +89,27 @@ class _Transformer:
class _TransformerInfo:
- def __init__(self, transformer: _Transformer) -> None:
+ def __init__(self, transformer: _Transformer, events: list[str]) -> None:
self.model = transformer
+ self.events = events
@contextmanager
def model_on_device(self, **_kwargs):
+ self.events.append("lock")
yield ({}, self.model)
+ self.events.append("unlock")
def _context(
transformer: _Transformer,
variant: QwenImage21VariantType,
init_latents: torch.Tensor | None = None,
+ events: list[str] | None = None,
*,
infos: dict[str, QwenImage21ConditioningInfo] | None = None,
tensors: dict[str, torch.Tensor] | None = None,
):
+ events = [] if events is None else events
infos = infos or {
"pos": QwenImage21ConditioningInfo(prompt_embeds=torch.ones(1, 3, 8)),
"neg": QwenImage21ConditioningInfo(prompt_embeds=-torch.ones(1, 2, 8)),
@@ -113,12 +118,12 @@ def _context(
tensors = tensors or {}
return SimpleNamespace(
models=SimpleNamespace(
- load=lambda _identifier: _TransformerInfo(transformer),
+ load=lambda _identifier: _TransformerInfo(transformer, events),
get_config=lambda _identifier: SimpleNamespace(variant=variant),
),
conditioning=SimpleNamespace(load=lambda name: conditionings[name]),
tensors=SimpleNamespace(load=lambda name: tensors.get(name, init_latents)),
- util=SimpleNamespace(sd_step_callback=lambda *_args: None),
+ util=SimpleNamespace(sd_step_callback=lambda *_args: events.append("preview")),
)
@@ -166,6 +171,15 @@ def test_each_guidance_branch_prefills_its_own_cache_on_the_first_step() -> None
assert len(caches["pos"]) == len(caches["neg"]) == 1 and caches["pos"] != caches["neg"]
+def test_every_preview_is_sent_while_the_transformer_is_locked() -> None:
+ """A Tiny AutoEncoder preview places its TAE next to the locked model; before the lock there is none to fit."""
+ events: list[str] = []
+
+ _denoise(steps=3)._run_diffusion(_context(_Transformer(), QwenImage21VariantType.Base, events=events))
+
+ assert events == ["lock", "preview", "preview", "preview", "preview", "unlock"]
+
+
def test_without_guidance_the_negative_prompt_is_never_run() -> None:
transformer = _Transformer()
_denoise(cfg_scale=1.0)._run_diffusion(_context(transformer, QwenImage21VariantType.Base))
diff --git a/tests/app/invocations/test_sd3_denoise.py b/tests/app/invocations/test_sd3_denoise.py
new file mode 100644
index 0000000000..874c5763dc
--- /dev/null
+++ b/tests/app/invocations/test_sd3_denoise.py
@@ -0,0 +1,82 @@
+"""The SD3 denoise node, run against stand-ins for the transformer and the context."""
+
+from contextlib import contextmanager
+from types import SimpleNamespace
+
+import pytest
+import torch
+
+from invokeai.app.invocations.fields import SD3ConditioningField
+from invokeai.app.invocations.model import ModelIdentifierField, TransformerField
+from invokeai.app.invocations.sd3.sd3_denoise import SD3DenoiseInvocation
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType
+from invokeai.backend.stable_diffusion.diffusion.conditioning_data import ConditioningFieldData, SD3ConditioningInfo
+
+DENOISE = "invokeai.app.invocations.sd3.sd3_denoise"
+
+
+class _Transformer:
+ config = SimpleNamespace(in_channels=16, joint_attention_dim=8)
+
+ def __call__(self, *, hidden_states: torch.Tensor, **_kwargs) -> tuple[torch.Tensor]:
+ return (torch.zeros_like(hidden_states),)
+
+
+class _TransformerInfo:
+ def __init__(self, events: list[str]) -> None:
+ self.model = _Transformer()
+ self.events = events
+
+ @contextmanager
+ def model_on_device(self, **_kwargs):
+ self.events.append("lock")
+ yield ({}, self.model)
+ self.events.append("unlock")
+
+
+def _conditioning() -> ConditioningFieldData:
+ info = SD3ConditioningInfo(
+ clip_l_pooled_embeds=torch.zeros(1, 4),
+ clip_l_embeds=torch.zeros(1, 2, 4),
+ clip_g_pooled_embeds=torch.zeros(1, 4),
+ clip_g_embeds=torch.zeros(1, 2, 4),
+ t5_embeds=torch.zeros(1, 3, 8),
+ )
+ return ConditioningFieldData(conditionings=[info])
+
+
[email protected](autouse=True)
+def _cpu(monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(f"{DENOISE}.TorchDevice.choose_torch_device", lambda: torch.device("cpu"))
+ monkeypatch.setattr(f"{DENOISE}.TorchDevice.choose_torch_dtype", lambda: torch.float32)
+ monkeypatch.setattr(f"{DENOISE}.SD3Transformer2DModel", _Transformer)
+
+
+def test_every_preview_is_sent_while_the_transformer_is_locked() -> None:
+ """A Tiny AutoEncoder preview places its TAE next to the locked model; before the lock there is none to fit."""
+ events: list[str] = []
+ context = SimpleNamespace(
+ models=SimpleNamespace(load=lambda _identifier: _TransformerInfo(events)),
+ conditioning=SimpleNamespace(load=lambda _name: _conditioning()),
+ util=SimpleNamespace(sd_step_callback=lambda *_args: events.append("preview")),
+ )
+ model = ModelIdentifierField(key="m", hash="h", name="m", base=BaseModelType.StableDiffusion3, type=ModelType.Main)
+ invocation = SD3DenoiseInvocation.model_construct(
+ transformer=TransformerField(transformer=model, loras=[]),
+ positive_conditioning=SD3ConditioningField(conditioning_name="pos"),
+ negative_conditioning=SD3ConditioningField(conditioning_name="neg"),
+ latents=None,
+ noise=None,
+ denoise_mask=None,
+ denoising_start=0.0,
+ denoising_end=1.0,
+ cfg_scale=3.5,
+ width=64,
+ height=64,
+ steps=3,
+ seed=0,
+ )
+
+ invocation._run_diffusion(context) # type: ignore[arg-type]
+
+ assert events == ["lock", "preview", "preview", "preview", "preview", "unlock"]
diff --git a/tests/app/services/model_manager/test_model_record_changes.py b/tests/app/services/model_manager/test_model_record_changes.py
index cf7b73f2cd..6a086a44da 100644
--- a/tests/app/services/model_manager/test_model_record_changes.py
+++ b/tests/app/services/model_manager/test_model_record_changes.py
@@ -32,18 +32,22 @@ from invokeai.backend.model_manager.configs.main import Main_Checkpoint_SD1_Conf
from invokeai.backend.model_manager.configs.spandrel import Spandrel_Checkpoint_Config
from invokeai.backend.model_manager.load import LoadedModel, ModelCache, ModelLoader
from invokeai.backend.model_manager.load.model_cache.model_cache import MODEL_LOAD_LOCK
+from invokeai.backend.model_manager.starter_models import STARTER_MODELS, StarterModel
from invokeai.backend.model_manager.taxonomy import (
AnyModel,
BaseModelType,
ModelSourceType,
+ ModelType,
ModelVariantType,
SubModelType,
)
+from invokeai.backend.tiny_autoencoder.checkpoint import TaesdLayout
from invokeai.backend.util.logging import InvokeAILogger
from tests.backend.model_manager.load.state_dicts import clip_g_comfy_keys, clip_l_comfy_keys
from tests.backend.model_manager.load.state_dicts.utils import write_header_only_safetensors
from tests.fixtures.spandrel_models import write_compact_upscaler
from tests.fixtures.sqlite_database import create_mock_sqlite_database
+from tests.fixtures.tiny_autoencoders import TAEF2, TAEQI2_1, TAESD, TAESD3, diffusers_weights, native_weights
KEY = "model-key"
MODEL_PATH = "sd-1/main/model.safetensors"
@@ -437,6 +441,74 @@ def test_reidentify_keeps_a_backbone_only_the_install_source_names(harness: _Har
assert harness.manager.reidentify_model(KEY).base is BaseModelType.StableDiffusion3
+def _write_tae(path: Path, layout: TaesdLayout, combined: bool) -> None:
+ native = native_weights(layout, dtype=torch.float16)
+ path.parent.mkdir(parents=True, exist_ok=True)
+ save_file(diffusers_weights(native) if combined else native, path)
+
+
+# The four Tiny AutoEncoders that share their latent space with another base, so only a name can say which they are.
+_NAME_AMBIGUOUS_TAES = [
+ pytest.param("taesd", TAESD, False, BaseModelType.StableDiffusion1, id="taesd"),
+ pytest.param("taesdxl", TAESD, False, BaseModelType.StableDiffusionXL, id="taesdxl"),
+ pytest.param("taesd3", TAESD3, True, BaseModelType.StableDiffusion3, id="taesd3"),
+ pytest.param("taef1", TAESD3, True, BaseModelType.Flux, id="taef1"),
+]
+
+
[email protected](("folder", "layout", "combined", "base"), _NAME_AMBIGUOUS_TAES)
+def test_reidentify_keeps_the_base_a_local_install_read_off_the_folder_it_came_from(
+ harness: _Harness, folder: str, layout: TaesdLayout, combined: bool, base: BaseModelType
+) -> None:
+ """The install moves the file into a folder named for its key and keeps its generic name. The folder that named the
+ TAE survives only in the recorded source path."""
+ source = harness.models_path.parent / "downloads" / folder / "diffusion_pytorch_model.safetensors"
+ _write_tae(source, layout, combined)
+
+ key = harness.manager.install.install_path(source)
+
+ installed = harness.store.get_model(key)
+ assert installed.base is base
+ assert Path(installed.path) == Path(key) / "diffusion_pytorch_model.safetensors"
+ assert harness.manager.reidentify_model(key).base is base
+
+
+_TAE_STARTERS = [m for m in STARTER_MODELS if m.type is ModelType.TinyAutoencoder]
+
+
[email protected]("starter", _TAE_STARTERS, ids=lambda m: m.name)
+def test_reidentify_keeps_the_base_of_a_tiny_autoencoder_starter(harness: _Harness, starter: StarterModel) -> None:
+ """A starter downloads to a file named like its URL, filed under the base the starter sets, then moved into a folder
+ named for its key. TAESD3 and TAEF1 publish the same generic file name; their URLs name them."""
+ layouts = {
+ BaseModelType.StableDiffusion1: (TAESD, False),
+ BaseModelType.StableDiffusionXL: (TAESD, False),
+ BaseModelType.StableDiffusion3: (TAESD3, True),
+ BaseModelType.Flux: (TAESD3, True),
+ BaseModelType.Flux2: (TAEF2, True),
+ BaseModelType.QwenImage21: (TAEQI2_1, True),
+ }
+ path = harness.models_path / KEY / starter.source.rsplit("/", 1)[-1]
+ _write_tae(path, *layouts[starter.base])
+ installed = ModelConfigFactory.from_model_on_disk(
+ path,
+ {
+ "key": KEY,
+ "base": starter.base,
+ "type": starter.type,
+ "format": starter.format,
+ "name": starter.name,
+ "source": starter.source,
+ "source_type": ModelSourceType.Url,
+ },
+ allow_unknown=False,
+ ).config
+ assert installed is not None and installed.base is starter.base
+ harness.store.add_model(installed)
+
+ assert harness.manager.reidentify_model(KEY).base is starter.base
+
+
def test_reidentify_of_files_no_config_accepts_raises_and_keeps_the_record(harness: _Harness) -> None:
keys = dict(clip_g_comfy_keys.state_dict_keys)
del keys["text_projection.weight"]
diff --git a/tests/app/services/progress_previews/test_progress_previews.py b/tests/app/services/progress_previews/test_progress_previews.py
index 89eb6de062..adda011e55 100644
--- a/tests/app/services/progress_previews/test_progress_previews.py
+++ b/tests/app/services/progress_previews/test_progress_previews.py
@@ -61,6 +61,20 @@ def test_frames_inside_the_interval_are_dropped_except_final_and_indeterminate_o
assert store.reserve_revision(1, "session-1", 0.3) == 4
+def test_a_producer_interval_widens_the_throttle_but_never_narrows_it() -> None:
+ clock = _Clock()
+ store = MemoryProgressPreviews(clock=clock)
+
+ assert store.reserve_revision(1, "session-1", 0.1, min_interval_s=1.0) == 1
+ clock.now += 0.5
+ assert store.reserve_revision(1, "session-1", 0.2, min_interval_s=1.0) is None
+ assert store.reserve_revision(1, "session-1", 1.0, min_interval_s=1.0) == 2
+ clock.now += 1.0
+ assert store.reserve_revision(1, "session-1", 0.3, min_interval_s=1.0) == 3
+ clock.now += PROGRESS_IMAGE_MIN_INTERVAL_S / 2
+ assert store.reserve_revision(1, "session-1", 0.4, min_interval_s=0.0) is None
+
+
def test_throttle_is_per_item() -> None:
clock = _Clock()
store = MemoryProgressPreviews(clock=clock)
diff --git a/tests/app/services/progress_previews/test_signal_progress.py b/tests/app/services/progress_previews/test_signal_progress.py
index 20dbf51402..573dd71ca5 100644
--- a/tests/app/services/progress_previews/test_signal_progress.py
+++ b/tests/app/services/progress_previews/test_signal_progress.py
@@ -5,7 +5,7 @@ from types import SimpleNamespace
from PIL import Image
from invokeai.app.services.progress_previews.progress_previews_default import MemoryProgressPreviews
-from invokeai.app.services.shared.invocation_context import UtilInterface
+from invokeai.app.services.shared.invocation_context import InvocationContextData, UtilInterface
class _Clock:
@@ -36,9 +36,17 @@ class _FakeEvents:
def _util(clock: _Clock) -> tuple[UtilInterface, _FakeEvents, MemoryProgressPreviews]:
events = _FakeEvents()
previews = MemoryProgressPreviews(clock=clock)
- services = SimpleNamespace(events=events, progress_previews=previews)
+ services = SimpleNamespace(
+ events=events,
+ progress_previews=previews,
+ configuration=SimpleNamespace(tiny_autoencoder_previews=False),
+ )
queue_item = SimpleNamespace(item_id=7, session_id="session-7", user_id="owner", queue_id="default")
- data = SimpleNamespace(queue_item=queue_item, invocation=SimpleNamespace(id="node"))
+ data = InvocationContextData(
+ queue_item=queue_item, # type: ignore[arg-type]
+ invocation=SimpleNamespace(id="node"), # type: ignore[arg-type]
+ source_invocation_id="node",
+ )
return UtilInterface(services, data, is_canceled=lambda: False), events, previews # type: ignore[arg-type]
@@ -87,3 +95,59 @@ def test_signal_progress_flushes_a_deferred_empty_cache(monkeypatch) -> None:
assert len(flushes) == 1
util.signal_progress("Denoising", 0.2, Image.new("RGB", (8, 8)), (64, 64))
assert len(flushes) == 2
+
+
+class _Render:
+ """A preview render that counts its calls."""
+
+ def __init__(self) -> None:
+ self.calls = 0
+
+ def __call__(self) -> tuple[Image.Image, tuple[int, int]]:
+ self.calls += 1
+ return Image.new("RGB", (8, 8)), (64, 64)
+
+
+def test_a_throttled_preview_frame_is_never_rendered() -> None:
+ clock = _Clock()
+ util, events, _previews = _util(clock)
+ first, throttled, later = _Render(), _Render(), _Render()
+
+ util._signal_preview("Denoising", 0.1, first)
+ clock.now += 0.01
+ util._signal_preview("Denoising", 0.2, throttled)
+ clock.now += 1
+ util._signal_preview("Denoising", 0.3, later)
+
+ assert (first.calls, throttled.calls, later.calls) == (1, 0, 1)
+ assert [call["percentage"] for call in events.emitted] == [0.1, 0.3]
+ assert [(call["image"].width, call["image"].height) for call in events.emitted] == [(64, 64), (64, 64)]
+
+
+def test_the_final_preview_frame_renders_inside_the_throttle_interval() -> None:
+ clock = _Clock()
+ util, events, previews = _util(clock)
+ final = _Render()
+
+ util._signal_preview("Denoising", 0.9, _Render())
+ clock.now += 0.01
+ util._signal_preview("Denoising", 1.0, final)
+
+ assert final.calls == 1
+ assert [call["revision"] for call in events.emitted] == [1, 2]
+ retained = previews.get(7)
+ assert retained is not None and retained.revision == 2
+
+
+def test_signal_preview_flushes_a_deferred_empty_cache_even_when_throttled(monkeypatch) -> None:
+ from invokeai.backend.util.devices import TorchDevice
+
+ flushes: list[int] = []
+ monkeypatch.setattr(TorchDevice, "flush_deferred_empty_cache", classmethod(lambda cls: flushes.append(1)))
+ clock = _Clock()
+ util, _events, _previews = _util(clock)
+
+ util._signal_preview("Denoising", 0.1, _Render())
+ util._signal_preview("Denoising", 0.2, _Render()) # throttled
+
+ assert len(flushes) == 2
diff --git a/tests/app/services/session_processor/test_invocation_resources.py b/tests/app/services/session_processor/test_invocation_resources.py
new file mode 100644
index 0000000000..1b10a62bba
--- /dev/null
+++ b/tests/app/services/session_processor/test_invocation_resources.py
@@ -0,0 +1,69 @@
+"""The session runner releases what an invocation's context held, however the invocation ends."""
+
+from contextlib import nullcontext
+from threading import Event
+from types import SimpleNamespace
+from unittest.mock import Mock
+
+import pytest
+
+from invokeai.app.invocations.primitives import IntegerInvocation
+from invokeai.app.services.invocation_cache.invocation_cache_memory import MemoryInvocationCache
+from invokeai.app.services.progress_previews.progress_previews_default import MemoryProgressPreviews
+from invokeai.app.services.session_processor.session_processor_common import CanceledException
+from invokeai.app.services.session_processor.session_processor_default import DefaultSessionRunner
+from invokeai.app.services.shared.execution_effects import ExecutionEffectsRecorder
+from invokeai.app.services.shared.graph import Graph, GraphExecutionState
+
+
[email protected]("outcome", ["completed", "failed", "canceled"])
+def test_resources_held_during_an_invocation_are_released_when_it_ends(
+ monkeypatch: pytest.MonkeyPatch, outcome: str
+) -> None:
+ graph = Graph()
+ graph.add_node(IntegerInvocation(id="source", value=1))
+ session = GraphExecutionState(graph=graph)
+ invocation = IntegerInvocation(id="node", value=1)
+ session.execution_graph.add_node(invocation)
+ session._register_prepared_exec_node(invocation.id, "source")
+ session.indegree[invocation.id] = 0
+
+ services = SimpleNamespace(
+ configuration=SimpleNamespace(node_cache_size=0),
+ progress_previews=MemoryProgressPreviews(),
+ events=Mock(),
+ logger=Mock(),
+ performance_statistics=Mock(),
+ session_queue=Mock(),
+ invocation_cache=MemoryInvocationCache(max_cache_size=0),
+ )
+ services.performance_statistics.collect_stats.return_value = nullcontext()
+ monkeypatch.setattr(
+ "invokeai.app.services.session_processor.session_processor_default.build_invocation_context",
+ lambda data, services, is_canceled: SimpleNamespace(
+ _data=data,
+ execution_effects=ExecutionEffectsRecorder(source_node_id=data.invocation.id, frame_path=()),
+ ),
+ )
+
+ timeline: list[str] = []
+ run = IntegerInvocation.invoke_internal_with_effects
+
+ def run_holding_a_resource(self, context, services):
+ # What a denoise does on its first preview: hold something until the invocation ends.
+ context._data.invocation_resources.callback(timeline.append, "released")
+ timeline.append("invoked")
+ if outcome == "failed":
+ raise RuntimeError("the node failed")
+ if outcome == "canceled":
+ raise CanceledException
+ return run(self, context, services)
+
+ monkeypatch.setattr(IntegerInvocation, "invoke_internal_with_effects", run_holding_a_resource)
+ runner = DefaultSessionRunner()
+ runner.start(services=services, cancel_event=Event())
+
+ runner.run_node(invocation, Mock(session=session, session_id="session", item_id=1))
+
+ assert timeline == ["invoked", "released"]
+ assert services.session_queue.fail_queue_item.called is (outcome == "failed")
diff --git a/tests/app/util/test_tiny_autoencoder_previews.py b/tests/app/util/test_tiny_autoencoder_previews.py
new file mode 100644
index 0000000000..b281ee556e
--- /dev/null
+++ b/tests/app/util/test_tiny_autoencoder_previews.py
@@ -0,0 +1,570 @@
+"""Tiny AutoEncoder denoising previews, the lock they hold, and the linear fallback around them."""
+
+import logging
+from contextlib import contextmanager
+from types import SimpleNamespace
+
+import numpy as np
+import pytest
+import torch
+
+from invokeai.app.services.progress_previews.progress_previews_default import MemoryProgressPreviews
+from invokeai.app.services.session_processor.session_processor_common import ProgressImage
+from invokeai.app.services.shared.invocation_context import InvocationContextData, UtilInterface
+from invokeai.app.util import tiny_autoencoder_previews
+from invokeai.app.util.step_callback import render_linear_preview
+from invokeai.app.util.tiny_autoencoder_previews import TinyAutoencoderPreviews
+from invokeai.backend.model_manager.load.model_cache.model_cache import MODEL_LOAD_LOCK
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelType
+from invokeai.backend.stable_diffusion.extensions.preview import PipelineIntermediateState
+from invokeai.backend.tiny_autoencoder import preview
+from invokeai.backend.tiny_autoencoder.taesd import Decoder
+
+LOGGER_NAME = "test.tiny_autoencoder_previews"
+
+
+class _Store:
+ def __init__(self, configs: list[SimpleNamespace]) -> None:
+ self.configs = configs
+ self.searches = 0
+
+ def search_by_attr(self, model_type: ModelType | None = None, **_filters) -> list[SimpleNamespace]:
+ self.searches += 1
+ return [config for config in self.configs if model_type is None or config.type == model_type]
+
+
+def _model_load_lock_state() -> str | None:
+ """How MODEL_LOAD_LOCK is held right now. These tests run on one thread, so any holder is the code under test."""
+ if MODEL_LOAD_LOCK._writer_active:
+ return "write"
+ return "read" if MODEL_LOAD_LOCK._readers else None
+
+
+class _LoadedModel:
+ """A cache entry: counts locks, and reports how much of the decoder a lock leaves resident.
+
+ Like the cache's full-load wrapper, a CPU model reports nothing resident: its lock does not move it.
+ """
+
+ def __init__(self, decoder: torch.nn.Module, device: str = "cpu", resident_fraction_when_locked: float = 1.0):
+ self.decoder = decoder
+ self.model = decoder
+ self.compute_device = torch.device(device)
+ self.weight_bytes = sum(p.numel() * p.element_size() for p in decoder.parameters())
+ self._resident_when_locked = int(self.weight_bytes * resident_fraction_when_locked)
+ self.locks_taken = 0
+ self.locks_held = 0
+ self.working_mem_requests: list[int | None] = []
+ self.model_load_lock_at_lock: list[str | None] = []
+
+ @property
+ def resident_weight_bytes(self) -> int:
+ if self.compute_device.type == "cpu" or not self.locks_held:
+ return 0
+ return self._resident_when_locked
+
+ @contextmanager
+ def model_on_device(self, working_mem_bytes: int | None = None):
+ self.working_mem_requests.append(working_mem_bytes)
+ self.model_load_lock_at_lock.append(_model_load_lock_state())
+ self.locks_taken += 1
+ self.locks_held += 1
+ try:
+ yield None, self.decoder
+ finally:
+ self.locks_held -= 1
+
+
+class _Load:
+ """The model load service. Its cache's `make_room_in_vram` reports `vram_available` beyond the configured
+ working-memory reserve, `working_mem_floor`; a larger requested reserve takes the difference from it, as the
+ cache's own does."""
+
+ def __init__(
+ self,
+ loaded: _LoadedModel,
+ vram_available: int = 0,
+ error: Exception | None = None,
+ working_mem_floor: int = 3 * 2**30,
+ ) -> None:
+ self.loaded = loaded
+ self.loads = 0
+ self.error = error
+ # (call, how MODEL_LOAD_LOCK was held during it), in call order.
+ self.model_load_lock_during: list[tuple[str, str | None]] = []
+
+ def make_room_in_vram(_needed: int, working_mem_bytes: int | None = None) -> int:
+ self.model_load_lock_during.append(("make_room_in_vram", _model_load_lock_state()))
+ return vram_available - max(0, (working_mem_bytes or 0) - working_mem_floor)
+
+ self.ram_cache = SimpleNamespace(make_room_in_vram=make_room_in_vram)
+
+ def load_model(self, config, submodel_type=None, user_id=None) -> _LoadedModel:
+ self.model_load_lock_during.append(("load_model", _model_load_lock_state()))
+ self.loads += 1
+ if self.error is not None:
+ raise self.error
+ return self.loaded
+
+
+class _Events:
+ def __init__(self) -> None:
+ self.emitted: list[dict] = []
+
+ def emit_invocation_progress(self, **kwargs):
+ self.emitted.append(kwargs)
+ queue_item = kwargs["queue_item"]
+ return SimpleNamespace(
+ invocation=kwargs["invocation"],
+ item_id=queue_item.item_id,
+ session_id=queue_item.session_id,
+ revision=kwargs.get("revision"),
+ )
+
+
+def _tae_config(base: BaseModelType = BaseModelType.StableDiffusion1, key: str = "tae-key") -> SimpleNamespace:
+ return SimpleNamespace(key=key, name="TAESD", type=ModelType.TinyAutoencoder, base=base, latent_channels=4)
+
+
+def _decoder() -> torch.nn.Module:
+ torch.manual_seed(0)
+ return Decoder(latent_channels=4).eval()
+
+
+def _sample(seed: int = 1, height: int = 16, width: int = 24) -> torch.Tensor:
+ return torch.randn(1, 4, height, width, generator=torch.Generator().manual_seed(seed))
+
+
+class _Clock:
+ def __init__(self) -> None:
+ self.now = 0.0
+
+ def __call__(self) -> float:
+ return self.now
+
+
+def _services(
+ store: _Store, load: _Load, enabled: bool = True, previews: MemoryProgressPreviews | None = None
+) -> SimpleNamespace:
+ return SimpleNamespace(
+ logger=logging.getLogger(LOGGER_NAME),
+ model_manager=SimpleNamespace(store=store, load=load),
+ configuration=SimpleNamespace(tiny_autoencoder_previews=enabled),
+ events=_Events(),
+ progress_previews=previews or MemoryProgressPreviews(min_interval_s=0),
+ )
+
+
+def _load(decoder: torch.nn.Module | None = None, **kwargs) -> _Load:
+ return _Load(_LoadedModel(decoder or _decoder(), **kwargs))
+
+
+def _count_calls(module: torch.nn.Module) -> list[int]:
+ calls: list[int] = []
+ module.register_forward_pre_hook(lambda *_args: calls.append(1))
+ return calls
+
+
+def _messages(caplog: pytest.LogCaptureFixture, level: int) -> list[str]:
+ return [r.getMessage() for r in caplog.records if r.name == LOGGER_NAME and r.levelno == level]
+
+
+def _is_linear(frame: tuple, sample: torch.Tensor) -> bool:
+ linear, size = render_linear_preview(BaseModelType.StableDiffusion1, sample)
+ return frame[1] == size and np.array_equal(np.asarray(frame[0]), np.asarray(linear))
+
+
[email protected](autouse=True)
+def clock(monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture) -> _Clock:
+ """Fresh process state, and a clock that only moves when a test moves it: a frame costs nothing
+ unless the test says what it costs."""
+ monkeypatch.setattr(tiny_autoencoder_previews, "_reported", set())
+ caplog.set_level(logging.DEBUG, logger=LOGGER_NAME)
+ clock = _Clock()
+ monkeypatch.setattr(tiny_autoencoder_previews, "monotonic", clock)
+ return clock
+
+
+def _invocation(services: SimpleNamespace) -> tuple[UtilInterface, InvocationContextData]:
+ queue_item = SimpleNamespace(item_id=1, session_id="session", user_id="owner", queue_id="default")
+ data = InvocationContextData(
+ queue_item=queue_item, # type: ignore[arg-type]
+ invocation=SimpleNamespace(id="denoise"), # type: ignore[arg-type]
+ source_invocation_id="denoise",
+ )
+ return UtilInterface(services, data, is_canceled=lambda: False), data # type: ignore[arg-type]
+
+
+def _step(util: UtilInterface, sample: torch.Tensor, step: int = 0) -> None:
+ state = PipelineIntermediateState(step=step, order=1, total_steps=10, timestep=0, latents=sample)
+ util.sd_step_callback(state, BaseModelType.StableDiffusion1)
+
+
+def _previews(services: SimpleNamespace) -> TinyAutoencoderPreviews:
+ return TinyAutoencoderPreviews(services) # type: ignore[arg-type]
+
+
+def test_setting_off_renders_linear_previews_without_a_lookup_or_a_lock() -> None:
+ store, load = _Store([_tae_config()]), _load()
+ services = _services(store, load, enabled=False)
+ util, _data = _invocation(services)
+
+ _step(util, _sample(), step=0)
+ _step(util, _sample(), step=1)
+
+ assert (store.searches, load.loads, load.loaded.locks_taken) == (0, 0, 0)
+ linear = ProgressImage.build(*render_linear_preview(BaseModelType.StableDiffusion1, _sample()))
+ assert [call["image"] for call in services.events.emitted] == [linear, linear]
+
+
+def test_the_tae_is_locked_once_per_invocation_and_released_with_its_resources() -> None:
+ store, load = _Store([_tae_config()]), _load()
+ loaded = load.loaded
+ decodes = _count_calls(loaded.decoder)
+ services = _services(store, load)
+
+ for invocation in range(1, 3):
+ util, data = _invocation(services)
+ for step in range(4):
+ _step(util, _sample(step, height=8, width=8), step=step)
+ assert loaded.locks_held == 1
+ assert (store.searches, load.loads, loaded.locks_taken) == (invocation, invocation, invocation)
+
+ data.invocation_resources.close()
+ assert loaded.locks_held == 0
+
+ assert len(decodes) == 8
+ assert all((call["image"].width, call["image"].height) == (64, 64) for call in services.events.emitted)
+
+
+def test_the_tae_lock_reserves_the_working_memory_of_a_decode() -> None:
+ load = _load()
+ previews = _previews(_services(_Store([_tae_config()]), load))
+
+ previews.render(BaseModelType.StableDiffusion1, _sample(height=16, width=24))
+ previews.render(BaseModelType.StableDiffusion1, _sample(height=16, width=24))
+
+ # One lock for the invocation, keeping three live 64-channel float32 activations of the 128 x 192 image and two
+ # of convolution workspace free.
+ assert load.loaded.working_mem_requests == [(3 + 2) * 64 * (128 * 192) * 4]
+
+
+def test_tae_frame_is_full_resolution_and_reports_the_linear_display_size() -> None:
+ previews = _previews(_services(_Store([_tae_config()]), _load()))
+ sample = _sample()
+
+ image, size = previews.render(BaseModelType.StableDiffusion1, sample)
+ linear, linear_size = render_linear_preview(BaseModelType.StableDiffusion1, sample)
+
+ assert size == linear_size == (192, 128)
+ assert image.size == (192, 128) and linear.size == (24, 16)
+ assert image.mode == "RGB"
+
+
+def test_capped_tae_frame_still_reports_the_full_generation_size(monkeypatch: pytest.MonkeyPatch) -> None:
+ monkeypatch.setattr(preview, "MAX_PREVIEW_EDGE", 96)
+ previews = _previews(_services(_Store([_tae_config()]), _load()))
+
+ image, size = previews.render(BaseModelType.StableDiffusion1, _sample(height=32, width=48))
+
+ assert max(image.size) <= 96
+ assert size == (48 * 8, 32 * 8)
+
+
+def test_sibling_architecture_shares_the_tae_of_its_latent_space() -> None:
+ load = _load()
+ previews = _previews(_services(_Store([_tae_config(BaseModelType.StableDiffusion1)]), load))
+
+ image, _size = previews.render(BaseModelType.StableDiffusion2, _sample())
+
+ assert load.loads == 1
+ assert image.size == (192, 128)
+
+
+def test_missing_tae_renders_linear_suggests_the_starter_and_logs_info_once_per_process(
+ caplog: pytest.LogCaptureFixture,
+) -> None:
+ load = _load()
+ services = _services(_Store([_tae_config(BaseModelType.StableDiffusionXL)]), load) # a different space
+ sample = _sample()
+
+ frames = [_previews(services).render(BaseModelType.StableDiffusion1, sample) for _ in range(2)]
+
+ assert all(_is_linear(frame, sample) for frame in frames)
+ assert (load.loads, load.loaded.locks_taken) == (0, 0)
+ [info] = _messages(caplog, logging.INFO)
+ assert "sd-1" in info and "starter model" in info
+ assert len(_messages(caplog, logging.DEBUG)) == 1
+
+
+def test_family_without_any_tae_is_told_so_rather_than_sent_to_the_starters(
+ caplog: pytest.LogCaptureFixture,
+) -> None:
+ previews = _previews(_services(_Store([_tae_config()]), _load()))
+ wan_sample = torch.randn(1, 16, 8, 8, generator=torch.Generator().manual_seed(0))
+
+ previews.render(BaseModelType.Wan, wan_sample)
+
+ [info] = _messages(caplog, logging.INFO)
+ assert "has no Tiny AutoEncoder" in info and "starter" not in info
+
+
+def test_tae_whose_file_is_gone_warns_once_per_process_without_a_traceback(
+ caplog: pytest.LogCaptureFixture,
+) -> None:
+ load = _load()
+ load.error = FileNotFoundError("Files for model 'TAESD' not found at /models/taesd.safetensors")
+ services = _services(_Store([_tae_config()]), load)
+ sample = _sample()
+
+ frames = [_previews(services).render(BaseModelType.StableDiffusion1, sample) for _ in range(2)]
+
+ assert all(_is_linear(frame, sample) for frame in frames)
+ warnings = [r for r in caplog.records if r.name == LOGGER_NAME and r.levelno == logging.WARNING]
+ assert len(warnings) == 1 and warnings[0].exc_info is None
+ assert "TAESD" in warnings[0].getMessage()
+
+
+def test_decode_failure_releases_the_lock_and_renders_linear_for_the_rest_of_the_invocation(
+ caplog: pytest.LogCaptureFixture,
+) -> None:
+ decoder = _decoder()
+ attempts: list[int] = []
+
+ def fail(*_args) -> None:
+ attempts.append(1)
+ raise torch.OutOfMemoryError("CUDA out of memory")
+
+ decoder.register_forward_pre_hook(fail)
+ load = _load(decoder)
+ previews = _previews(_services(_Store([_tae_config()]), load))
+ sample = _sample()
+
+ frames = [previews.render(BaseModelType.StableDiffusion1, sample) for _ in range(3)]
+
+ assert len(attempts) == 1
+ assert load.loaded.locks_held == 0
+ assert all(_is_linear(frame, sample) for frame in frames)
+ warnings = [r for r in caplog.records if r.name == LOGGER_NAME and r.levelno == logging.WARNING]
+ assert len(warnings) == 1 and warnings[0].exc_info is not None
+
+
+def test_tae_left_partly_in_ram_by_its_lock_is_released_and_renders_linear(caplog: pytest.LogCaptureFixture) -> None:
+ decoder = _decoder()
+ decodes = _count_calls(decoder)
+ # The device is only read by the residency checks; nothing is decoded on it.
+ loaded = _LoadedModel(decoder, device="cuda", resident_fraction_when_locked=0.5)
+ load = _Load(loaded, vram_available=loaded.weight_bytes)
+ previews = _previews(_services(_Store([_tae_config()]), load))
+ sample = _sample()
+
+ frames = [previews.render(BaseModelType.StableDiffusion1, sample) for _ in range(2)]
+
+ assert all(_is_linear(frame, sample) for frame in frames)
+ assert decodes == []
+ assert (load.loads, load.loaded.locks_taken, load.loaded.locks_held) == (1, 1, 0)
+ assert len(_messages(caplog, logging.INFO)) == 1
+
+
+def test_the_fit_check_offloads_under_the_model_load_read_lock_and_loads_and_locks_outside_it() -> None:
+ """The offload is a VRAM move: a construction on another worker would strand the weights it registers on `meta`
+ unless it holds the read lock, as every VRAM move does. The load (a writer on a cache miss) and the lock take
+ MODEL_LOAD_LOCK themselves, and the lock is not reentrant: held around either, it would deadlock."""
+ # Locked half-resident, so the invocation stops before decoding on a device it does not have.
+ loaded = _LoadedModel(_decoder(), device="cuda", resident_fraction_when_locked=0.5)
+ load = _Load(loaded, vram_available=loaded.weight_bytes)
+ previews = _previews(_services(_Store([_tae_config()]), load))
+
+ previews.render(BaseModelType.StableDiffusion1, _sample())
+
+ assert load.model_load_lock_during == [("load_model", None), ("make_room_in_vram", "read")]
+ assert loaded.model_load_lock_at_lock == [None]
+ assert _model_load_lock_state() is None
+
+
+def test_tae_that_would_not_fit_in_vram_is_never_locked(caplog: pytest.LogCaptureFixture) -> None:
+ # The device is only read by the residency decision; nothing is decoded on it.
+ loaded = _LoadedModel(_decoder(), device="cuda")
+ load = _Load(loaded, vram_available=loaded.weight_bytes // 2)
+ previews = _previews(_services(_Store([_tae_config()]), load))
+ sample = _sample()
+
+ frames = [previews.render(BaseModelType.StableDiffusion1, sample) for _ in range(2)]
+
+ assert all(_is_linear(frame, sample) for frame in frames)
+ assert (load.loads, loaded.locks_taken) == (1, 0)
+ assert len(_messages(caplog, logging.INFO)) == 1
+
+
+def test_tae_whose_decode_would_not_fit_next_to_it_is_never_locked(caplog: pytest.LogCaptureFixture) -> None:
+ """With `device_working_mem_gb` below the decode's reservation, the room the lock would keep decides, not the
+ weights alone: locking anyway would partially load the TAE, with the cache's warning, on every generation."""
+ loaded = _LoadedModel(_decoder(), device="cuda") # only read by the residency decision
+ load = _Load(loaded, vram_available=loaded.weight_bytes + 2**20, working_mem_floor=2**20)
+ previews = _previews(_services(_Store([_tae_config()]), load))
+ sample = _sample()
+
+ assert _is_linear(previews.render(BaseModelType.StableDiffusion1, sample), sample)
+ assert loaded.locks_taken == 0
+ assert len(_messages(caplog, logging.INFO)) == 1
+
+
+def test_a_tae_that_does_not_fit_is_reported_once_per_process_and_another_tae_again(
+ caplog: pytest.LogCaptureFixture,
+) -> None:
+ def generation(config: SimpleNamespace) -> None:
+ loaded = _LoadedModel(_decoder(), device="cuda") # only read by the residency decision
+ load = _Load(loaded, vram_available=0)
+ _previews(_services(_Store([config]), load)).render(BaseModelType.StableDiffusion1, _sample())
+
+ generation(_tae_config())
+ generation(_tae_config())
+ assert len(_messages(caplog, logging.INFO)) == 1
+ assert len(_messages(caplog, logging.DEBUG)) == 1
+
+ generation(_tae_config(key="another-tae"))
+ assert len(_messages(caplog, logging.INFO)) == 2
+
+
+def test_a_decode_failure_warns_with_its_traceback_once_per_process_and_a_new_failure_again(
+ caplog: pytest.LogCaptureFixture,
+) -> None:
+ def generation(error: Exception, key: str = "tae-key") -> None:
+ decoder = _decoder()
+
+ def fail(*_args) -> None:
+ raise error
+
+ decoder.register_forward_pre_hook(fail)
+ services = _services(_Store([_tae_config(key=key)]), _load(decoder))
+ _previews(services).render(BaseModelType.StableDiffusion1, _sample())
+
+ def warnings() -> list[logging.LogRecord]:
+ return [r for r in caplog.records if r.name == LOGGER_NAME and r.levelno == logging.WARNING]
+
+ generation(torch.OutOfMemoryError("CUDA out of memory"))
+ generation(torch.OutOfMemoryError("CUDA out of memory"))
+ assert [w.exc_info is not None for w in warnings()] == [True]
+ [repeat] = [r for r in caplog.records if r.name == LOGGER_NAME and r.levelno == logging.DEBUG]
+ assert repeat.exc_info is None
+
+ generation(RuntimeError("MPS backend failure"))
+ assert [w.exc_info is not None for w in warnings()] == [True, True]
+
+ generation(torch.OutOfMemoryError("CUDA out of memory"), key="another-tae") # another TAE for the same space
+ assert [w.exc_info is not None for w in warnings()] == [True, True, True]
+
+
+def test_close_releases_the_lock_and_later_frames_render_linear() -> None:
+ load = _load()
+ previews = _previews(_services(_Store([_tae_config()]), load))
+ sample = _sample()
+ previews.render(BaseModelType.StableDiffusion1, sample)
+
+ previews.close()
+ previews.close()
+
+ assert load.loaded.locks_held == 0
+ assert _is_linear(previews.render(BaseModelType.StableDiffusion1, sample), sample)
+ assert load.loaded.locks_taken == 1
+
+
+def test_tae_frames_are_spaced_by_their_render_cost_and_the_final_frame_still_renders(clock: _Clock) -> None:
+ decoder = _decoder()
+ decodes = _count_calls(decoder)
+ frame_cost = 0.05
+ decoder.register_forward_pre_hook(lambda *_args: setattr(clock, "now", clock.now + frame_cost))
+ services = _services(_Store([_tae_config()]), _load(decoder), previews=MemoryProgressPreviews(clock=clock))
+ util, _data = _invocation(services)
+
+ def step_after(seconds: float, step: int) -> None:
+ clock.now += seconds
+ _step(util, _sample(step), step=step)
+
+ step_after(0.0, 0) # warm-up frame: lookup, load and lock are not a frame cost
+ step_after(0.2, 1) # first measured frame; until now the store's 0.1 s interval applied
+ step_after(0.2, 2) # 0.25 s after the last frame, inside k x 0.05 s = 1 s: not rendered
+ step_after(0.8, 3) # 1.05 s after it: rendered
+ step_after(0.01, 10) # the final frame passes any interval
+
+ assert [call["percentage"] for call in services.events.emitted] == [0.0, 0.1, 0.3, 1.0]
+ assert len(decodes) == 4
+
+
+def test_linear_previews_keep_the_stores_interval(clock: _Clock) -> None:
+ services = _services(_Store([]), _load(), enabled=False, previews=MemoryProgressPreviews(clock=clock))
+ util, _data = _invocation(services)
+
+ for step in range(4):
+ clock.now += 0.15
+ _step(util, _sample(step), step=step)
+ clock.now += 0.05
+ _step(util, _sample(), step=4) # inside 0.1 s: dropped
+
+ assert [call["percentage"] for call in services.events.emitted] == [0.0, 0.1, 0.2, 0.3]
+
+
+def test_a_cpu_tae_is_used_although_its_lock_leaves_nothing_resident() -> None:
+ load = _load()
+ previews = _previews(_services(_Store([_tae_config()]), load))
+
+ image, _size = previews.render(BaseModelType.StableDiffusion1, _sample())
+
+ assert load.loaded.locks_held == 1 and load.loaded.resident_weight_bytes == 0
+ assert image.size == (192, 128)
+
+
+def _slow_linear_frames(monkeypatch: pytest.MonkeyPatch, clock: _Clock, seconds: float) -> None:
+ """A linear frame whose `.cpu()` waits out a long denoise step still queued on the GPU."""
+ render = tiny_autoencoder_previews.render_linear_preview
+
+ def slow(base_model, sample):
+ clock.now += seconds
+ return render(base_model, sample)
+
+ monkeypatch.setattr(tiny_autoencoder_previews, "render_linear_preview", slow)
+
+
+def test_slow_linear_frames_without_an_installed_tae_keep_the_stores_interval(
+ monkeypatch: pytest.MonkeyPatch, clock: _Clock
+) -> None:
+ _slow_linear_frames(monkeypatch, clock, seconds=1.0)
+ services = _services(_Store([]), _load(), previews=MemoryProgressPreviews(clock=clock))
+ util, _data = _invocation(services)
+
+ for step in range(4):
+ clock.now += 0.15
+ _step(util, _sample(step), step=step)
+
+ assert [call["percentage"] for call in services.events.emitted] == [0.0, 0.1, 0.2, 0.3]
+
+
+def test_frames_after_the_tae_fell_back_to_linear_return_to_the_stores_interval(
+ monkeypatch: pytest.MonkeyPatch, clock: _Clock
+) -> None:
+ decoder = _decoder()
+ decodes: list[int] = []
+
+ def decode_then_fail(*_args) -> None:
+ decodes.append(1)
+ clock.now += 0.05
+ if len(decodes) == 3:
+ raise torch.OutOfMemoryError("CUDA out of memory")
+
+ decoder.register_forward_pre_hook(decode_then_fail)
+ _slow_linear_frames(monkeypatch, clock, seconds=1.0)
+ syncs: list[torch.device] = []
+ monkeypatch.setattr(tiny_autoencoder_previews.TorchDevice, "synchronize", syncs.append)
+ services = _services(_Store([_tae_config()]), _load(decoder), previews=MemoryProgressPreviews(clock=clock))
+ util, _data = _invocation(services)
+
+ for step, after in enumerate([0.0, 0.2, 1.1, 0.15, 0.15]):
+ clock.now += after
+ _step(util, _sample(step), step=step)
+
+ # Two TAE frames paced at k x 0.05 s; the third decode fails and renders linearly, and the frames after
+ # it are 0.15 s apart again, with each linear frame's 1 s of waiting not counted as a cost.
+ assert [call["percentage"] for call in services.events.emitted] == [0.0, 0.1, 0.2, 0.3, 0.4]
+ assert len(decodes) == 3
+ # Only the frames after a TAE frame wait for the TAE's device; once it fell back, there is none to wait for.
+ assert len(syncs) == 2
diff --git a/tests/backend/architectures/test_latent_space.py b/tests/backend/architectures/test_latent_space.py
index c504b3b4aa..0afe85e563 100644
--- a/tests/backend/architectures/test_latent_space.py
+++ b/tests/backend/architectures/test_latent_space.py
@@ -10,7 +10,7 @@ the two rows are not interchangeable.
import pytest
import torch
-from invokeai.backend.architectures import generative_bases, resolve_latent_space
+from invokeai.backend.architectures import generative_bases, latent_space_with_channels, resolve_latent_space
from invokeai.backend.architectures.facets import latent_space
from invokeai.backend.architectures.facets.latent_space import (
COGVIEW4_16,
@@ -206,6 +206,42 @@ class TestResolution:
assert facet.resolve(torch.empty(0)) is WAN21_16
+class TestLookupByChannels:
+ """`latent_space_with_channels` pairs a model recorded as `(base, channels)` with a space."""
+
+ @pytest.mark.parametrize(
+ ("base", "expected"),
+ [
+ pytest.param(base, expected, id=base.value)
+ for base, expected in sorted(DECLARED_LATENT_SPACES.items(), key=lambda item: item[0].value)
+ ],
+ )
+ def test_every_declared_space_is_found_by_its_channel_count(
+ self, base: BaseModelType, expected: tuple[LatentSpace, ...]
+ ) -> None:
+ found = [latent_space_with_channels(base, space.channels) for space in expected]
+ assert [None if space is None else _name(space) for space in found] == [_name(space) for space in expected]
+
+ def test_an_unknown_channel_count_is_no_match_rather_than_the_primary(self) -> None:
+ """Unlike `resolve`: a fallback here would pair a 32-channel decoder with FLUX.1's 16-channel space."""
+ assert latent_space_with_channels(BaseModelType.Flux, 32) is None
+ assert latent_space_with_channels(BaseModelType.Wan, 7) is None
+
+ def test_a_base_without_an_architecture_has_no_space(self) -> None:
+ assert latent_space_with_channels(BaseModelType.Any, 4) is None
+
+ def test_architectures_sharing_a_vae_share_the_space_object(self) -> None:
+ assert latent_space_with_channels(BaseModelType.StableDiffusion1, 4) is latent_space_with_channels(
+ BaseModelType.StableDiffusion2, 4
+ )
+ assert latent_space_with_channels(BaseModelType.Flux, 16) is latent_space_with_channels(
+ BaseModelType.ZImage, 16
+ )
+ assert latent_space_with_channels(BaseModelType.Flux, 16) is not latent_space_with_channels(
+ BaseModelType.StableDiffusion3, 16
+ )
+
+
class TestWhatArchitecturesDeclare:
@pytest.mark.parametrize(
("base", "expected"),
diff --git a/tests/backend/model_manager/configs/test_pid_decoder_config.py b/tests/backend/model_manager/configs/test_pid_decoder_config.py
index f8115572f9..d7a8049208 100644
--- a/tests/backend/model_manager/configs/test_pid_decoder_config.py
+++ b/tests/backend/model_manager/configs/test_pid_decoder_config.py
@@ -195,6 +195,21 @@ def test_a_v1_5_student_in_a_folder_named_like_a_comfy_file_is_accepted() -> Non
assert config.base is BaseModelType.QwenImage
+def test_a_moved_v1_5_student_installed_from_a_folder_named_like_a_comfy_file_is_accepted() -> None:
+ """Re-identified after the install moved it into a folder named for its key, the folder it was installed from is
+ known only from its source path, and is still a folder name, not a file name to read the teacher spelling off."""
+ file_name = "pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors"
+ with TemporaryDirectory() as tmpdir:
+ mod = _mock_mod(
+ Path(tmpdir), _pid_state_dict(version=PiDVersion.V1_5), dir_name="0123abcd", file_name=file_name
+ )
+ config = PiDDecoder_Checkpoint_QwenImage_Config.from_model_on_disk(
+ mod,
+ dict(_OVERRIDE_FIELDS, base="qwen-image", source=f"D:/dl/pid_1.5_decoders/{file_name}", source_type="path"),
+ )
+ assert config.base is BaseModelType.QwenImage
+
+
def test_a_v1_5_file_whose_name_names_no_preset_is_2k_to_4k() -> None:
"""v1.5 exists only as 2K-to-4K, so a renamed FLUX.1 file must not take the v1 FLUX default of 2K."""
with TemporaryDirectory() as tmpdir:
@@ -667,10 +682,10 @@ class TestNameEvidence:
with pytest.raises(NotAMatchError, match="ambiguous 16-channel"):
PiDDecoder_Checkpoint_SD3_Config.from_model_on_disk(mod, dict(fields))
- def test_a_local_path_source_is_not_name_evidence(self) -> None:
- """The model manager sets `source` to the file's own path when there is no remote one, so
- trusting it would mean matching against arbitrary ancestor directories of the user's model
- library. Nothing is lost: a local install is identified before it is moved."""
+ def test_the_ancestors_of_a_local_path_source_are_not_name_evidence(self) -> None:
+ """A local install's `source` is the path it was installed from. Only its file and folder name
+ count: trusting the whole path would mean matching against arbitrary ancestor directories of
+ the user's model library."""
with TemporaryDirectory() as tmpdir:
mod = _mock_mod(Path(tmpdir), _pid_state_dict())
fields = {k: v for k, v in _OVERRIDE_FIELDS.items() if k != "base"} | {
diff --git a/tests/backend/model_manager/configs/test_tiny_autoencoder_config.py b/tests/backend/model_manager/configs/test_tiny_autoencoder_config.py
new file mode 100644
index 0000000000..28f3966ac1
--- /dev/null
+++ b/tests/backend/model_manager/configs/test_tiny_autoencoder_config.py
@@ -0,0 +1,240 @@
+"""Identifying Tiny AutoEncoder files, through the whole config factory as an install does.
+
+Files are written at the published shapes, so every other config class -- the VAEs, Spandrel, the
+LoRA and main-model heuristics -- also gets its say, and "exactly one match" proves they stay out.
+The weights decide the latent space; within the two spaces two bases share (4 channels: SD 1 / SDXL,
+16: SD3 / FLUX.1) the base override, then the TAE's published name, decides, and nothing else may.
+"""
+
+from pathlib import Path
+from typing import Any
+
+import pytest
+import torch
+from safetensors.torch import save_file
+
+from invokeai.backend.model_manager.configs.base import Config_Base
+from invokeai.backend.model_manager.configs.factory import ModelClassificationResult, ModelConfigFactory
+from invokeai.backend.model_manager.configs.identification_utils import InvalidMatchError
+from invokeai.backend.model_manager.load.model_loader_registry import ModelLoaderRegistry
+from invokeai.backend.model_manager.load.model_loaders.tiny_autoencoder import TinyAutoencoderLoader
+from invokeai.backend.model_manager.starter_models import STARTER_MODELS, StarterModel
+from invokeai.backend.model_manager.taxonomy import BaseModelType, ModelFormat, ModelType
+from invokeai.backend.tiny_autoencoder.checkpoint import TaesdLayout
+from tests.fixtures.tiny_autoencoders import (
+ TAEF2,
+ TAEQI2_1,
+ TAESD,
+ TAESD3,
+ diffusers_weights,
+ native_weights,
+ tinier_weights,
+)
+
+_COMMON: dict[str, Any] = {"hash": "blake3:fake", "file_size": 1000, "source_type": "path"}
+
+_TAEF1_URL = (
+ "https://huggingface.co/madebyollin/taef1/resolve/b1b2d00e9e440cfbf3dedb34266864da86016ceb/"
+ "diffusion_pytorch_model.safetensors"
+)
+_TAESD3_URL = (
+ "https://huggingface.co/madebyollin/taesd3/resolve/d58dcaccd2b36fcb7a6b9e93c1cc507acab5a778/"
+ "diffusion_pytorch_model.safetensors"
+)
+
+
+def _zeros(sd: dict[str, torch.Tensor]) -> dict[str, torch.Tensor]:
+ """Real shapes, no values: identification reads only the header."""
+ return {key: torch.zeros(value.shape, dtype=torch.float16) for key, value in sd.items()}
+
+
+def _write(path: Path, layout: TaesdLayout, combined: bool) -> Path:
+ native = native_weights(layout)
+ save_file(_zeros(diffusers_weights(native) if combined else native), path)
+ return path
+
+
+def _identify(path: Path, **overrides: Any) -> ModelClassificationResult:
+ return ModelConfigFactory.from_model_on_disk(path, {**_COMMON, "source": str(path), **overrides})
+
+
+def _single_tae(result: ModelClassificationResult) -> Any:
+ assert [type(c).__name__ for c in result.all_matches] == [type(result.config).__name__]
+ config = result.config
+ assert config.type is ModelType.TinyAutoencoder
+ assert config.format is ModelFormat.Checkpoint
+ return config
+
+
+ ("filename", "layout", "combined", "base"),
+ [
+ ("taesd_decoder.safetensors", TAESD, False, BaseModelType.StableDiffusion1),
+ ("taesdxl_decoder.safetensors", TAESD, False, BaseModelType.StableDiffusionXL),
+ ("taesd3_decoder.safetensors", TAESD3, False, BaseModelType.StableDiffusion3),
+ ("taef1.safetensors", TAESD3, True, BaseModelType.Flux),
+ # The two families no other base shares need no name at all.
+ ("preview.safetensors", TAEF2, True, BaseModelType.Flux2),
+ ("preview.safetensors", TAEQI2_1, True, BaseModelType.QwenImage21),
+ ],
+)
+def test_each_published_tae_is_filed_under_its_base_and_nothing_else_matches(
+ tmp_path: Path, filename: str, layout: TaesdLayout, combined: bool, base: BaseModelType
+) -> None:
+ config = _single_tae(_identify(_write(tmp_path / filename, layout, combined)))
+
+ assert config.base is base
+ assert config.latent_channels == layout.latent_channels
+
+
+ ("source", "base"), [(_TAEF1_URL, BaseModelType.Flux), (_TAESD3_URL, BaseModelType.StableDiffusion3)]
+)
+def test_the_install_url_names_a_file_its_own_name_does_not(tmp_path: Path, source: str, base: BaseModelType) -> None:
+ path = _write(tmp_path / "diffusion_pytorch_model.safetensors", TAESD3, combined=True)
+
+ assert _single_tae(_identify(path, source=source, source_type="url")).base is base
+
+
+def _moved(tmp_path: Path) -> Path:
+ """Where an install moves `diffusion_pytorch_model.safetensors`: a folder named for the record's key."""
+ (tmp_path / "0123abcd").mkdir()
+ return _write(tmp_path / "0123abcd" / "diffusion_pytorch_model.safetensors", TAESD3, combined=True)
+
+
+ ("source", "base"),
+ [
+ (r"C:\Users\me\Downloads\taef1\diffusion_pytorch_model.safetensors", BaseModelType.Flux),
+ ("/home/me/downloads/taesd3/diffusion_pytorch_model.safetensors", BaseModelType.StableDiffusion3),
+ ],
+)
+def test_a_moved_local_install_is_named_by_the_folder_of_its_source_path_from_either_os(
+ tmp_path: Path, source: str, base: BaseModelType
+) -> None:
+ """Re-identification reads the file and folder name of the recorded source, whichever OS recorded it."""
+ assert _single_tae(_identify(_moved(tmp_path), source=source, source_type="path")).base is base
+
+
+def test_an_ancestor_folder_of_a_local_source_path_does_not_name_the_tae(tmp_path: Path) -> None:
+ """Only the source's file and folder name are evidence, not the folders the user keeps those in."""
+ result = _identify(_moved(tmp_path), source=r"C:\taef1\Downloads\diffusion_pytorch_model.safetensors")
+
+ assert result.config is None
+ assert result.invalid_matches
+
+
[email protected]("base", [BaseModelType.StableDiffusion3, BaseModelType.Flux])
+def test_a_base_override_decides_within_the_shared_family(tmp_path: Path, base: BaseModelType) -> None:
+ """The starter installer always sends the base; it outranks a name that says otherwise."""
+ path = _write(tmp_path / "taesd3_decoder.safetensors", TAESD3, combined=False)
+
+ assert _single_tae(_identify(path, base=base.value)).base is base
+
+
+ ("filename", "layout"),
+ [
+ ("diffusion_pytorch_model.safetensors", TAESD3),
+ ("decoder.safetensors", TAESD),
+ # A name from the other family contradicts the weights and decides nothing.
+ ("taef1.safetensors", TAESD),
+ ],
+)
+def test_a_shared_family_file_nothing_names_is_refused_not_guessed(
+ tmp_path: Path, filename: str, layout: TaesdLayout
+) -> None:
+ result = _identify(_write(tmp_path / filename, layout, combined=True))
+
+ assert result.config is None
+ assert result.invalid_matches
+ assert all("starter models" in str(e) for e in result.invalid_matches)
+
+
+def test_the_tinier_taeqi2_1_is_refused_with_the_file_to_install(tmp_path: Path) -> None:
+ path = tmp_path / "taeqi2_1_tinier.safetensors"
+ save_file(tinier_weights(), path)
+
+ result = _identify(path)
+
+ assert result.config is None
+ assert result.invalid_matches
+ assert all("Install taeqi2_1.safetensors" in str(e) for e in result.invalid_matches)
+
+
+def test_a_base_override_the_weights_cannot_serve_is_refused_not_filed_as_unknown(tmp_path: Path) -> None:
+ path = _write(tmp_path / "taesd_decoder.safetensors", TAESD, combined=False)
+
+ result = _identify(path, base=BaseModelType.Flux.value)
+
+ assert result.config is None
+ assert any(isinstance(e, InvalidMatchError) for e in result.invalid_matches)
+
+
+def test_comfyui_pth_decoders_are_identified(tmp_path: Path) -> None:
+ path = tmp_path / "taesdxl_decoder.pth"
+ torch.save(native_weights(TAESD), path)
+
+ assert _single_tae(_identify(path)).base is BaseModelType.StableDiffusionXL
+
+
+def test_a_tae_in_a_file_type_the_loader_does_not_read_is_not_installed_as_one(tmp_path: Path) -> None:
+ """Identification reads `.ckpt` shapes fine; accepting it would install a model that cannot load."""
+ path = tmp_path / "taef2.ckpt"
+ torch.save(diffusers_weights(native_weights(TAEF2)), path)
+
+ result = _identify(path)
+
+ assert not any(config.type is ModelType.TinyAutoencoder for config in result.all_matches)
+ assert result.config is None or result.config.type is not ModelType.TinyAutoencoder
+
+
+# What each madebyollin repo publishes, independent of the starter entries: the base its latents belong to,
+# and the layout (native decoder-only for taesd/taesdxl, combined otherwise).
+_PUBLISHED_TAES: dict[str, tuple[BaseModelType, TaesdLayout, bool]] = {
+ "taesd": (BaseModelType.StableDiffusion1, TAESD, False),
+ "taesdxl": (BaseModelType.StableDiffusionXL, TAESD, False),
+ "taesd3": (BaseModelType.StableDiffusion3, TAESD3, True),
+ "taef1": (BaseModelType.Flux, TAESD3, True),
+ "taef2": (BaseModelType.Flux2, TAEF2, True),
+ "taeqi2_1": (BaseModelType.QwenImage21, TAEQI2_1, True),
+}
+_TAE_STARTERS = [m for m in STARTER_MODELS if m.type is ModelType.TinyAutoencoder]
+
+
+def _repo(starter: StarterModel) -> str:
+ return starter.source.removeprefix("https://huggingface.co/madebyollin/").split("/", 1)[0]
+
+
+def test_every_tae_config_has_exactly_one_starter() -> None:
+ config_bases = {
+ c.model_fields["base"].default
+ for c in Config_Base.CONFIG_CLASSES
+ if c.model_fields["type"].default is ModelType.TinyAutoencoder
+ }
+
+ assert sorted(_repo(m) for m in _TAE_STARTERS) == sorted(_PUBLISHED_TAES)
+ assert {base for base, _, _ in _PUBLISHED_TAES.values()} == config_bases
+
+
[email protected]("starter", _TAE_STARTERS, ids=_repo)
+def test_a_starter_install_identifies_round_trips_and_has_a_loader(tmp_path: Path, starter: StarterModel) -> None:
+ """The payload is the one the starter installer sends: base, type, format, name, description."""
+ base, layout, combined = _PUBLISHED_TAES[_repo(starter)]
+ path = _write(tmp_path / starter.source.rsplit("/", 1)[-1], layout, combined)
+ payload = {
+ "base": starter.base.value,
+ "type": starter.type.value,
+ "format": starter.format.value,
+ "name": starter.name,
+ "description": starter.description,
+ }
+
+ config = _single_tae(_identify(path, **payload, source=starter.source, source_type="url"))
+
+ assert config.base is base
+ assert config.name == starter.name
+ assert config.latent_channels == layout.latent_channels
+ assert ModelConfigFactory.from_json(config.model_dump_json()) == config
+ implementation, _, _ = ModelLoaderRegistry.get_implementation(config, None)
+ assert implementation is TinyAutoencoderLoader
diff --git a/tests/backend/model_manager/load/model_cache/test_model_cache_make_room_in_vram.py b/tests/backend/model_manager/load/model_cache/test_model_cache_make_room_in_vram.py
index d72883c771..d0d6b2d8a5 100644
--- a/tests/backend/model_manager/load/model_cache/test_model_cache_make_room_in_vram.py
+++ b/tests/backend/model_manager/load/model_cache/test_model_cache_make_room_in_vram.py
@@ -52,7 +52,7 @@ class _FakeVram:
self.available = available
self.moved: list[tuple[str, int]] = []
- def get_physical_vram_available(self):
+ def get_physical_vram_available(self, working_mem_bytes=None):
return self.available
def move_model_to_ram(self, cache_entry, vram_bytes_to_free, keep_required_weights_in_vram=None):
diff --git a/tests/backend/model_manager/load/model_cache/test_model_cache_vram_accounting.py b/tests/backend/model_manager/load/model_cache/test_model_cache_vram_accounting.py
index 937954df70..5dc2164b36 100644
--- a/tests/backend/model_manager/load/model_cache/test_model_cache_vram_accounting.py
+++ b/tests/backend/model_manager/load/model_cache/test_model_cache_vram_accounting.py
@@ -192,6 +192,33 @@ def test_physical_availability_shares_the_reclaimable_credit_policy(monkeypatch:
assert cache._get_physical_vram_available() == 3 * GB
+def test_making_room_keeps_free_the_reserve_a_lock_with_that_working_memory_keeps(monkeypatch: pytest.MonkeyPatch):
+ """A caller about to lock a model with `working_mem_bytes` asks `make_room_in_vram` with the same figure: the
+ reserve is that request, but never less than `device_working_mem_gb`, exactly as the lock's."""
+ cache = ModelCache(
+ execution_device_working_mem_gb=1.0,
+ enable_partial_loading=True,
+ keep_ram_copy_of_weights=True,
+ execution_device="cpu",
+ storage_device="cpu",
+ logger=MagicMock(),
+ shared_cpu_weights=None,
+ )
+ cache._execution_device = torch.device("cuda") # policy only; every VRAM query below is patched out
+ monkeypatch.setattr(torch.cuda, "mem_get_info", lambda device: (4 * GB, 24 * GB))
+ monkeypatch.setattr(torch.cuda, "memory_allocated", lambda device: 2 * GB)
+ monkeypatch.setattr(torch.cuda, "memory_reserved", lambda device: 5 * GB)
+ monkeypatch.setattr(torch.cuda, "memory_stats", lambda device: {"inactive_split_bytes.all.current": GB})
+ monkeypatch.delenv("PYTORCH_CUDA_ALLOC_CONF", raising=False)
+ monkeypatch.delenv("PYTORCH_ALLOC_CONF", raising=False)
+ monkeypatch.delenv("PYTORCH_HIP_ALLOC_CONF", raising=False)
+
+ # 4 GB free + 2 GB reclaimable, less the reserve.
+ assert cache.make_room_in_vram(GB) == 5 * GB
+ assert cache.make_room_in_vram(GB, working_mem_bytes=GB // 2) == 5 * GB
+ assert cache.make_room_in_vram(GB, working_mem_bytes=5 * GB // 2) == 7 * GB // 2
+
+
def test_the_windows_video_memory_budget_caps_the_measured_free_vram(monkeypatch: pytest.MonkeyPatch):
"""On Windows ROCm, torch reports the device total minus this process's usage. Windows pages allocations into
shared system memory once the process passes its video-memory budget, so the budget's headroom is what the cache
diff --git a/tests/backend/model_manager/load/test_tiny_autoencoder_loader.py b/tests/backend/model_manager/load/test_tiny_autoencoder_loader.py
new file mode 100644
index 0000000000..0828734896
--- /dev/null
+++ b/tests/backend/model_manager/load/test_tiny_autoencoder_loader.py
@@ -0,0 +1,115 @@
+"""Loading a Tiny AutoEncoder: the decoder a file holds, from either layout or a ComfyUI `.pth`."""
+
+from pathlib import Path
+from types import SimpleNamespace
+
+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.tiny_autoencoder import (
+ TinyAutoencoder_Checkpoint_Config_Base,
+ TinyAutoencoder_Checkpoint_FLUX_Config,
+ TinyAutoencoder_Checkpoint_QwenImage21_Config,
+ TinyAutoencoder_Checkpoint_SD1_Config,
+)
+from invokeai.backend.model_manager.load.model_loaders.tiny_autoencoder import TinyAutoencoderLoader
+from invokeai.backend.tiny_autoencoder.taesd import TaesdDecoder
+from tests.fixtures.tiny_autoencoders import TAEQI2_1, TAESD, TAESD3, diffusers_weights, native_weights
+
+
+def _load(
+ path: Path,
+ config_class: type[TinyAutoencoder_Checkpoint_Config_Base] = TinyAutoencoder_Checkpoint_SD1_Config,
+ dtype: torch.dtype = torch.float32,
+) -> TaesdDecoder:
+ loader = object.__new__(TinyAutoencoderLoader)
+ loader._torch_dtype = dtype
+ loader._logger = SimpleNamespace(info=lambda *_a, **_k: None, warning=lambda *_a, **_k: None)
+ config = config_class.model_construct(path=str(path), name=path.name)
+ return loader._load_model(config)
+
+
+def _assert_holds(decoder: TaesdDecoder, native: dict[str, torch.Tensor]) -> None:
+ loaded = decoder.state_dict()
+ assert loaded.keys() == native.keys()
+ for key, value in native.items():
+ torch.testing.assert_close(loaded[key], value.to(loaded[key].dtype), rtol=0, atol=0)
+
+
+def test_a_native_checkpoint_loads_into_an_inference_ready_decoder(tmp_path: Path) -> None:
+ native = native_weights(TAESD)
+ save_file(native, tmp_path / "taesd_decoder.safetensors")
+
+ decoder = _load(tmp_path / "taesd_decoder.safetensors")
+
+ _assert_holds(decoder, native)
+ assert decoder.latent_channels == 4 and decoder.spatial_compression == 8
+ assert not decoder.training
+ assert not any(p.requires_grad for p in decoder.parameters())
+
+
+def test_a_combined_checkpoint_loads_its_decoder_and_drops_the_encoder(tmp_path: Path) -> None:
+ native = native_weights(TAESD3)
+ save_file(diffusers_weights(native), tmp_path / "diffusion_pytorch_model.safetensors")
+
+ decoder = _load(tmp_path / "diffusion_pytorch_model.safetensors", TinyAutoencoder_Checkpoint_FLUX_Config)
+
+ _assert_holds(decoder, native)
+
+
+def test_an_f16_rgba_checkpoint_published_in_half_precision_loads_at_the_loader_dtype(tmp_path: Path) -> None:
+ native = native_weights(TAEQI2_1, dtype=torch.float16)
+ save_file(diffusers_weights(native), tmp_path / "taeqi2_1.safetensors")
+
+ decoder = _load(tmp_path / "taeqi2_1.safetensors", TinyAutoencoder_Checkpoint_QwenImage21_Config)
+
+ _assert_holds(decoder, native)
+ assert all(p.dtype == torch.float32 for p in decoder.parameters())
+ assert decoder.spatial_compression == 16
+
+
+def test_a_comfyui_pth_decoder_loads(tmp_path: Path) -> None:
+ native = native_weights(TAESD)
+ torch.save(native, tmp_path / "taesd_decoder.pth")
+
+ _assert_holds(_load(tmp_path / "taesd_decoder.pth"), native)
+
+
+def test_a_pth_decoder_wrapped_as_a_training_checkpoint_identifies_and_loads_the_weights_it_wraps(
+ tmp_path: Path,
+) -> None:
+ """Training checkpoints nest their weights under `state_dict`. Identification unwraps them, so the loader must
+ too: otherwise the file installs, then fails to load and every preview falls back to linear."""
+ native = native_weights(TAESD)
+ path = tmp_path / "taesd_decoder.pth"
+ torch.save({"state_dict": native}, path)
+
+ identified = ModelConfigFactory.from_model_on_disk(
+ path, {"hash": "blake3:fake", "file_size": 1, "source": str(path), "source_type": "path"}
+ ).config
+
+ assert isinstance(identified, TinyAutoencoder_Checkpoint_SD1_Config)
+ _assert_holds(_load(path, type(identified)), native)
+
+
+def test_the_decoder_takes_the_loaders_dtype(tmp_path: Path) -> None:
+ save_file(native_weights(TAESD), tmp_path / "taesd_decoder.safetensors")
+
+ decoder = _load(tmp_path / "taesd_decoder.safetensors", dtype=torch.float16)
+
+ assert all(p.dtype == torch.float16 for p in decoder.parameters())
+
+
[email protected]("change", ["missing", "extra"])
+def test_a_checkpoint_that_is_not_exactly_the_decoder_is_refused(tmp_path: Path, change: str) -> None:
+ sd = native_weights(TAESD)
+ if change == "missing":
+ del sd["18.conv.4.weight"]
+ else:
+ sd["18.conv.6.weight"] = torch.zeros(64, 64, 3, 3)
+ save_file(sd, tmp_path / "taesd_decoder.safetensors")
+
+ with pytest.raises(ValueError, match="not a TAESD decoder"):
+ _load(tmp_path / "taesd_decoder.safetensors")
diff --git a/tests/backend/tiny_autoencoder/__init__.py b/tests/backend/tiny_autoencoder/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/backend/tiny_autoencoder/test_checkpoint.py b/tests/backend/tiny_autoencoder/test_checkpoint.py
new file mode 100644
index 0000000000..17962d8823
--- /dev/null
+++ b/tests/backend/tiny_autoencoder/test_checkpoint.py
@@ -0,0 +1,106 @@
+"""Reading a TAESD checkpoint: which decoder it holds, in either published layout, and what it is not."""
+
+import pytest
+import torch
+
+from invokeai.backend.tiny_autoencoder.checkpoint import (
+ TaesdLayout,
+ build_taesd_decoder,
+ detect_taesd_layout,
+ is_tinier_taesd,
+ taesd_decoder_state_dict,
+)
+from tests.fixtures.tiny_autoencoders import (
+ TAEF2,
+ TAEQI2_1,
+ TAESD,
+ TAESD3,
+ diffusers_weights,
+ native_weights,
+ tinier_weights,
+)
+
+LAYOUTS = [TAESD, TAESD3, TAEF2, TAEQI2_1]
+
+
+def _on_meta(sd: dict[str, torch.Tensor]) -> dict[str, torch.Tensor]:
+ """What `ModelOnDisk.load_state_dict` hands identification: shapes, no data."""
+ return {key: torch.empty(value.shape, device="meta") for key, value in sd.items()}
+
+
[email protected]("layout", LAYOUTS, ids=lambda layout: f"{layout.arch}-{layout.latent_channels}")
+def test_both_layouts_are_detected_from_shapes_alone(layout: TaesdLayout) -> None:
+ native = native_weights(layout)
+
+ assert detect_taesd_layout(_on_meta(native)) == layout
+ assert detect_taesd_layout(_on_meta(diffusers_weights(native))) == layout
+
+
[email protected]("layout", [TAESD3, TAEF2, TAEQI2_1], ids=["default", "flux_2", "f16"])
+def test_diffusers_layout_converts_to_the_native_decoder(layout: TaesdLayout) -> None:
+ native = native_weights(layout)
+
+ converted = taesd_decoder_state_dict(diffusers_weights(native))
+
+ assert converted.keys() == native.keys()
+ assert all(converted[key] is native[key] for key in native)
+ decoder = build_taesd_decoder(layout)
+ decoder.load_state_dict(converted, strict=True)
+
+
+def test_native_layout_is_kept_as_it_is() -> None:
+ native = native_weights(TAESD)
+
+ kept = taesd_decoder_state_dict(native)
+
+ assert kept.keys() == native.keys()
+ assert all(kept[key] is native[key] for key in native)
+
+
+def test_tinier_taeqi2_1_is_recognised_but_not_detected_as_a_decoder() -> None:
+ tinier = _on_meta(tinier_weights())
+
+ assert detect_taesd_layout(tinier) is None
+ assert is_tinier_taesd(tinier)
+ assert not is_tinier_taesd(_on_meta(diffusers_weights(native_weights(TAEQI2_1))))
+
+
+def _vae_keys() -> dict[str, torch.Tensor]:
+ return {
+ "decoder.conv_in.weight": torch.empty(512, 4, 3, 3, device="meta"),
+ "decoder.conv_out.weight": torch.empty(3, 128, 3, 3, device="meta"),
+ "encoder.conv_in.weight": torch.empty(128, 3, 3, 3, device="meta"),
+ }
+
+
+def _taehv_keys() -> dict[str, torch.Tensor]:
+ """TAEHV (taeh3) keys its decoder Sequential as `decoder.N` with no `layers`."""
+ return {
+ "decoder.1.weight": torch.empty(256, 24, 3, 3, device="meta"),
+ "decoder.3.conv.0.weight": torch.empty(256, 512, 3, 3, device="meta"),
+ "decoder.22.weight": torch.empty(12, 64, 3, 3, device="meta"),
+ }
+
+
+def _truncated() -> dict[str, torch.Tensor]:
+ sd = native_weights(TAESD)
+ del sd["19.bias"]
+ return sd
+
+
+def _extended() -> dict[str, torch.Tensor]:
+ sd = native_weights(TAESD)
+ sd["20.weight"] = torch.zeros(3, 3, 3, 3)
+ return sd
+
+
+def _fingerprint_only() -> dict[str, torch.Tensor]:
+ return {"1.weight": torch.zeros(64, 4, 3, 3), "19.weight": torch.zeros(3, 64, 3, 3)}
+
+
[email protected]("make", [_vae_keys, _taehv_keys, _truncated, _extended, _fingerprint_only, dict])
+def test_what_is_not_exactly_a_taesd_decoder_is_not_detected(make) -> None:
+ sd = make()
+
+ assert detect_taesd_layout(sd) is None
+ assert not is_tinier_taesd(sd)
diff --git a/tests/backend/tiny_autoencoder/test_preview.py b/tests/backend/tiny_autoencoder/test_preview.py
new file mode 100644
index 0000000000..4a2d91372d
--- /dev/null
+++ b/tests/backend/tiny_autoencoder/test_preview.py
@@ -0,0 +1,268 @@
+"""Rendering a preview with a TAE, and choosing the installed TAE that renders a latent space."""
+
+import copy
+import math
+
+import numpy as np
+import pytest
+import torch
+
+from invokeai.backend.architectures import resolve_latent_space
+from invokeai.backend.model_manager.configs.tiny_autoencoder import (
+ TinyAutoencoder_Checkpoint_Config_Base,
+ TinyAutoencoder_Checkpoint_Flux2_Config,
+ TinyAutoencoder_Checkpoint_FLUX_Config,
+ TinyAutoencoder_Checkpoint_SD1_Config,
+ TinyAutoencoder_Checkpoint_SD3_Config,
+ TinyAutoencoder_Checkpoint_SDXL_Config,
+ is_tiny_autoencoder_supported,
+)
+from invokeai.backend.model_manager.taxonomy import BaseModelType
+from invokeai.backend.tiny_autoencoder import preview
+from invokeai.backend.tiny_autoencoder.preview import (
+ decode_preview,
+ decode_working_memory_bytes,
+ select_tiny_autoencoder,
+)
+from invokeai.backend.tiny_autoencoder.taesd import Decoder, F16Decoder, TaesdDecoder
+
+
[email protected](scope="module")
+def taesd() -> TaesdDecoder:
+ torch.manual_seed(0)
+ return Decoder(4).eval()
+
+
+def _latent(*shape: int, seed: int = 1) -> torch.Tensor:
+ return torch.randn(*shape, generator=torch.Generator().manual_seed(seed))
+
+
+def test_a_latent_with_or_without_batch_decodes_to_the_same_rgb_image(taesd: TaesdDecoder) -> None:
+ latent = _latent(4, 3, 5)
+
+ unbatched = decode_preview(taesd, latent)
+ batched = decode_preview(taesd, latent.unsqueeze(0))
+
+ assert unbatched.mode == "RGB"
+ assert unbatched.size == (40, 24)
+ assert np.array_equal(np.asarray(unbatched), np.asarray(batched))
+
+
+def test_only_the_first_latent_of_a_batch_is_decoded(taesd: TaesdDecoder) -> None:
+ first = _latent(1, 4, 3, 3, seed=1)
+ batch = torch.cat([first, _latent(1, 4, 3, 3, seed=2)])
+
+ assert np.array_equal(np.asarray(decode_preview(taesd, batch)), np.asarray(decode_preview(taesd, first)))
+
+
+def test_a_latent_of_another_width_is_refused(taesd: TaesdDecoder) -> None:
+ with pytest.raises(ValueError, match="4 latent channels"):
+ decode_preview(taesd, _latent(16, 3, 3))
+
+
+def test_an_oversized_latent_is_area_downsampled_to_the_cap(taesd: TaesdDecoder, monkeypatch) -> None:
+ """A latent of 2x2-constant blocks, halved by the cap, decodes exactly as the latent it was made from."""
+ monkeypatch.setattr(preview, "MAX_PREVIEW_EDGE", 48)
+ small = _latent(4, 4, 6)
+ large = small.repeat_interleave(2, dim=-2).repeat_interleave(2, dim=-1)
+
+ capped = decode_preview(taesd, large)
+
+ assert capped.size == (48, 32)
+ reference = np.asarray(decode_preview(taesd, small)).astype(int)
+ assert np.abs(np.asarray(capped).astype(int) - reference).max() <= 1 # the mean of four equal floats may round
+
+
+def test_the_cap_bounds_the_longest_edge_of_any_aspect(taesd: TaesdDecoder, monkeypatch) -> None:
+ monkeypatch.setattr(preview, "MAX_PREVIEW_EDGE", 64)
+
+ image = decode_preview(taesd, _latent(4, 6, 16))
+
+ assert image.size == (64, 24)
+
+
+def _area_pool(latent: torch.Tensor, height: int, width: int) -> torch.Tensor:
+ """Area downsampling written out: output cell i averages input cells floor(i * n / m) to ceil((i + 1) * n / m)."""
+
+ def windows(n: int, m: int) -> list[tuple[int, int]]:
+ return [(math.floor(i * n / m), math.ceil((i + 1) * n / m)) for i in range(m)]
+
+ rows = windows(latent.shape[-2], height)
+ cols = windows(latent.shape[-1], width)
+ return torch.stack(
+ [torch.stack([latent[..., r0:r1, c0:c1].mean(dim=(-2, -1)) for c0, c1 in cols], dim=-1) for r0, r1 in rows],
+ dim=-2,
+ )
+
+
[email protected]("pooled_on_cpu", [False, True], ids=["pooled on its device", "pooled on the CPU, as on MPS"])
+def test_a_latent_the_cap_does_not_divide_is_area_downsampled(
+ taesd: TaesdDecoder, monkeypatch, pooled_on_cpu: bool
+) -> None:
+ """Scaled by 2/3, as a 1536px SDXL latent (192) is to the 1024 cap (128): no output cell covers whole input cells.
+
+ MPS pools such a size on the CPU. The decoder here is float64, which that detour pools at float32 and must hand
+ back at the decoder's own width.
+ """
+ monkeypatch.setattr(preview, "MAX_PREVIEW_EDGE", 48)
+ if pooled_on_cpu:
+ monkeypatch.setattr(preview, "_POOLING_NEEDS_DIVISIBLE_SIZES", frozenset({"cpu"}))
+ decoder = copy.deepcopy(taesd).double()
+ large = _latent(4, 6, 9).double()
+ pooled: list[tuple[torch.device, torch.dtype]] = []
+ interpolate = torch.nn.functional.interpolate
+
+ def spy(input: torch.Tensor, *args, **kwargs) -> torch.Tensor:
+ if kwargs.get("mode") == "area":
+ pooled.append((input.device, input.dtype))
+ return interpolate(input, *args, **kwargs)
+
+ monkeypatch.setattr(torch.nn.functional, "interpolate", spy)
+
+ capped = decode_preview(decoder, large)
+
+ assert pooled == [(torch.device("cpu"), torch.float32 if pooled_on_cpu else torch.float64)]
+ assert capped.size == (48, 32)
+ reference = np.asarray(decode_preview(decoder, _area_pool(large, 4, 6))).astype(int)
+ assert np.abs(np.asarray(capped).astype(int) - reference).max() <= 1
+
+
+def test_a_decode_reserves_its_full_resolution_activations_at_the_capped_size(taesd: TaesdDecoder, monkeypatch) -> None:
+ monkeypatch.setattr(preview, "MAX_PREVIEW_EDGE", 48)
+ half = copy.deepcopy(taesd).half()
+
+ # Three live 64-channel activations and two of convolution workspace per output pixel, at the element size.
+ assert decode_working_memory_bytes(taesd, _latent(4, 3, 5)) == (3 + 2) * 64 * (24 * 40) * 4
+ assert decode_working_memory_bytes(half, _latent(4, 3, 5)) == (3 + 2) * 64 * (24 * 40) * 2
+ # 12 x 18 latents exceed the cap and are decoded at 4 x 6.
+ assert decode_working_memory_bytes(taesd, _latent(1, 4, 12, 18)) == (3 + 2) * 64 * (32 * 48) * 4
+
+
[email protected](scope="module")
+def taeqi() -> TaesdDecoder:
+ torch.manual_seed(0)
+ return F16Decoder(64, image_channels=4).eval()
+
+
+def test_the_cap_is_applied_at_the_decoders_own_compression(taeqi: TaesdDecoder, monkeypatch) -> None:
+ """An 8 x 4 latent fits a 96 cap at 8x (64 x 32) but not at TAEQI2.1's 16x, where it is scaled by 3/4."""
+ monkeypatch.setattr(preview, "MAX_PREVIEW_EDGE", 96)
+
+ image = decode_preview(taeqi, _latent(64, 8, 4))
+
+ assert image.size == (48, 96)
+
+
+def test_the_decode_runs_on_the_device_passed_not_where_the_weights_sit(taesd: TaesdDecoder) -> None:
+ """A partially loaded decoder's first parameter can be off the compute device the cache names."""
+
+ class _Stop(Exception):
+ pass
+
+ seen: list[torch.device] = []
+
+ def record(_module: torch.nn.Module, args: tuple[torch.Tensor, ...]) -> None:
+ seen.append(args[0].device)
+ raise _Stop
+
+ handle = taesd.register_forward_pre_hook(record)
+ try:
+ with pytest.raises(_Stop):
+ decode_preview(taesd, _latent(4, 2, 2), device=torch.device("meta"))
+ finally:
+ handle.remove()
+
+ assert seen == [torch.device("meta")]
+
+
+def test_alpha_is_dropped_from_an_rgba_decoder(taeqi: TaesdDecoder) -> None:
+ decoder = taeqi
+ latent = _latent(64, 2, 2)
+
+ image = decode_preview(decoder, latent)
+
+ with torch.inference_mode():
+ rgb = decoder(latent.unsqueeze(0))[0, :3].clamp(0, 1).mul(255).round().to(torch.uint8).permute(1, 2, 0)
+ assert image.mode == "RGB"
+ assert np.array_equal(np.asarray(image), rgb.numpy())
+
+
[email protected](("bias", "expected"), [(10.0, 255), (-10.0, 0)])
+def test_out_of_range_output_saturates_instead_of_wrapping(bias: float, expected: int) -> None:
+ torch.manual_seed(0)
+ decoder = Decoder(4).eval()
+ with torch.no_grad():
+ decoder[19].weight.zero_()
+ decoder[19].bias.fill_(bias)
+
+ image = decode_preview(decoder, _latent(4, 2, 2))
+
+ assert (np.asarray(image) == expected).all()
+
+
+def test_a_sample_follows_the_decoders_dtype(taesd: TaesdDecoder) -> None:
+ latent = _latent(4, 3, 3)
+
+ from_double = decode_preview(taesd, latent.double())
+
+ assert np.array_equal(np.asarray(from_double), np.asarray(decode_preview(taesd, latent)))
+
+
+def _record(config_class: type[TinyAutoencoder_Checkpoint_Config_Base], channels: int, name: str = "tae", key="k"):
+ return config_class.model_construct(name=name, key=key, latent_channels=channels)
+
+
+def _space(base: BaseModelType, channels: int):
+ return resolve_latent_space(base, torch.zeros(1, channels, 2, 2))
+
+
+SD1_TAE = _record(TinyAutoencoder_Checkpoint_SD1_Config, 4, "taesd")
+SDXL_TAE = _record(TinyAutoencoder_Checkpoint_SDXL_Config, 4, "taesdxl")
+SD3_TAE = _record(TinyAutoencoder_Checkpoint_SD3_Config, 16, "taesd3")
+FLUX_TAE = _record(TinyAutoencoder_Checkpoint_FLUX_Config, 16, "taef1")
+FLUX2_TAE = _record(TinyAutoencoder_Checkpoint_Flux2_Config, 32, "taef2")
+INSTALLED = [SD1_TAE, SDXL_TAE, SD3_TAE, FLUX_TAE, FLUX2_TAE]
+
+
+ ("base", "channels", "expected"),
+ [
+ (BaseModelType.StableDiffusion2, 4, SD1_TAE),
+ (BaseModelType.StableDiffusionXLRefiner, 4, SDXL_TAE),
+ (BaseModelType.ZImage, 16, FLUX_TAE),
+ (BaseModelType.StableDiffusion3, 16, SD3_TAE),
+ (BaseModelType.ErnieImage, 32, FLUX2_TAE),
+ (BaseModelType.CogView4, 16, None),
+ (BaseModelType.QwenImage, 16, None),
+ ],
+)
+def test_a_tae_serves_every_architecture_sharing_its_latent_space(
+ base: BaseModelType, channels: int, expected: TinyAutoencoder_Checkpoint_Config_Base | None
+) -> None:
+ assert select_tiny_autoencoder(INSTALLED, _space(base, channels)) is expected
+
+
+def test_the_choice_among_fitting_taes_is_by_name_then_key_whatever_the_order() -> None:
+ b = _record(TinyAutoencoder_Checkpoint_FLUX_Config, 16, "b", "1")
+ a2 = _record(TinyAutoencoder_Checkpoint_FLUX_Config, 16, "a", "2")
+ a1 = _record(TinyAutoencoder_Checkpoint_FLUX_Config, 16, "a", "1")
+ space = _space(BaseModelType.Flux, 16)
+
+ assert select_tiny_autoencoder([b, a2, a1], space) is a1
+ assert select_tiny_autoencoder([a1, b, a2], space) is a1
+
+
+ ("base", "channels", "supported"),
+ [
+ (BaseModelType.StableDiffusion2, 4, True),
+ (BaseModelType.ZImage, 16, True),
+ (BaseModelType.Ideogram4, 32, True),
+ (BaseModelType.QwenImage21, 64, True),
+ (BaseModelType.CogView4, 16, False),
+ (BaseModelType.QwenImage, 16, False),
+ (BaseModelType.LTX2, 128, False),
+ ],
+)
+def test_whether_any_tae_decodes_a_space(base: BaseModelType, channels: int, supported: bool) -> None:
+ assert is_tiny_autoencoder_supported(_space(base, channels)) is supported
diff --git a/tests/backend/tiny_autoencoder/test_taesd.py b/tests/backend/tiny_autoencoder/test_taesd.py
new file mode 100644
index 0000000000..6b11c935b9
--- /dev/null
+++ b/tests/backend/tiny_autoencoder/test_taesd.py
@@ -0,0 +1,115 @@
+"""The vendored TAESD decoders: key layout against the released checkpoints, and the IO contract."""
+
+import pytest
+import torch
+
+from invokeai.backend.tiny_autoencoder.taesd import Decoder, F16Decoder, TaesdDecoder
+
+
+def _conv(index: int, n_out: int, n_in: int, bias: bool = True) -> dict[str, tuple[int, ...]]:
+ shapes = {f"{index}.weight": (n_out, n_in, 3, 3)}
+ if bias:
+ shapes[f"{index}.bias"] = (n_out,)
+ return shapes
+
+
+def _block(index: int, n: int) -> dict[str, tuple[int, ...]]:
+ shapes: dict[str, tuple[int, ...]] = {}
+ for conv in (0, 2, 4):
+ shapes |= {f"{index}.conv.{conv}.weight": (n, n, 3, 3), f"{index}.conv.{conv}.bias": (n,)}
+ return shapes
+
+
+def _pool(index: int) -> dict[str, tuple[int, ...]]:
+ return {
+ f"{index}.pool.0.weight": (256, 64, 1, 1),
+ f"{index}.pool.1.weight": (256,),
+ f"{index}.pool.1.bias": (256,),
+ f"{index}.pool.3.weight": (64, 256, 1, 1),
+ }
+
+
+def _stages(widths: tuple[int, int, int], last: int, latent: int) -> dict[str, tuple[int, ...]]:
+ """Transcribed from the published headers (native indices; diffusers files are one lower)."""
+ w0, w1, w2 = widths
+ shapes = _conv(1, w0, latent)
+ for i in (3, 4, 5):
+ shapes |= _block(i, w0)
+ shapes |= _conv(7, w1, w0, bias=False)
+ for i in (8, 9, 10):
+ shapes |= _block(i, w1)
+ shapes |= _conv(12, w2, w1, bias=False)
+ for i in (13, 14, 15):
+ shapes |= _block(i, w2)
+ shapes |= _conv(17, 64, w2, bias=False)
+ shapes |= _block(18, 64)
+ shapes |= _conv(19, last, 64)
+ return shapes
+
+
+# One representative released file per architecture, at its pinned revision.
+RELEASED_LAYOUTS = {
+ # madebyollin/taesd@614f768 taesd_decoder.safetensors: 67 tensors, native layout.
+ "taesd": (Decoder(4), _stages((64, 64, 64), last=3, latent=4)),
+ # madebyollin/taef2@bd244eb taef2.safetensors: pooling on decoder.layers.2-4, i.e. native 3-5.
+ "taef2": (
+ Decoder(32, use_midblock_gn=True),
+ _stages((64, 64, 64), last=3, latent=32) | _pool(3) | _pool(4) | _pool(5),
+ ),
+ # madebyollin/taeqi2_1@5d62f11 taeqi2_1.safetensors: 256/128/64 stages, 16 = 4 RGBA x 2x2 pixel shuffle.
+ "taeqi2_1": (F16Decoder(64, image_channels=4), _stages((256, 128, 64), last=16, latent=64)),
+}
+
+
[email protected]("name", RELEASED_LAYOUTS)
+def test_decoder_keys_and_shapes_match_the_released_checkpoint(name: str) -> None:
+ decoder, expected = RELEASED_LAYOUTS[name]
+
+ actual = {key: tuple(value.shape) for key, value in decoder.state_dict().items()}
+
+ assert actual == expected
+
+
+ ("decoder", "latent_channels", "image_channels", "compression"),
+ [
+ (Decoder(4), 4, 3, 8),
+ (Decoder(32, use_midblock_gn=True), 32, 3, 8),
+ (F16Decoder(64, image_channels=4), 64, 4, 16),
+ ],
+)
+def test_decoder_upscales_by_its_declared_compression(
+ decoder: TaesdDecoder, latent_channels: int, image_channels: int, compression: int
+) -> None:
+ latents = torch.randn(1, latent_channels, 3, 5, generator=torch.Generator().manual_seed(0))
+
+ with torch.inference_mode():
+ image = decoder(latents)
+
+ assert decoder.latent_channels == latent_channels
+ assert decoder.spatial_compression == compression
+ assert image.shape == (1, image_channels, 3 * compression, 5 * compression)
+
+
+def test_latents_are_clamped_before_the_first_convolution() -> None:
+ """Upstream soft-clamps latents to (-3, 3); far beyond that, scaling them changes nothing."""
+ torch.manual_seed(0)
+ decoder = Decoder(4).eval()
+ latents = torch.randn(1, 4, 2, 2, generator=torch.Generator().manual_seed(1)).sign()
+
+ with torch.inference_mode():
+ torch.testing.assert_close(decoder(latents * 1e3), decoder(latents * 1e4))
+
+
+def test_midblock_pooling_takes_part_in_the_flux_2_decode() -> None:
+ torch.manual_seed(0)
+ decoder = Decoder(32, use_midblock_gn=True).eval()
+ latents = torch.randn(1, 32, 4, 4, generator=torch.Generator().manual_seed(1))
+
+ with torch.inference_mode():
+ pooled = decoder(latents)
+ for index in (3, 4, 5):
+ decoder[index].pool[3].weight.zero_()
+ unpooled = decoder(latents)
+
+ assert not torch.allclose(pooled, unpooled)
diff --git a/tests/fixtures/tiny_autoencoders.py b/tests/fixtures/tiny_autoencoders.py
new file mode 100644
index 0000000000..27734940cf
--- /dev/null
+++ b/tests/fixtures/tiny_autoencoders.py
@@ -0,0 +1,49 @@
+"""TAESD decoder weights at the published shapes, in both published key layouts.
+
+The shapes come from the decoder module, which `tests/backend/tiny_autoencoder/test_taesd.py` pins
+against the real checkpoints' headers; that test is what makes these fixtures faithful.
+"""
+
+import torch
+
+from invokeai.backend.tiny_autoencoder.checkpoint import TaesdLayout, build_taesd_decoder
+
+TAESD = TaesdLayout(latent_channels=4, arch="default", image_channels=3)
+"""taesd / taesdxl."""
+TAESD3 = TaesdLayout(latent_channels=16, arch="default", image_channels=3)
+"""taesd3 / taef1."""
+TAEF2 = TaesdLayout(latent_channels=32, arch="flux_2", image_channels=3)
+TAEQI2_1 = TaesdLayout(latent_channels=64, arch="f16", image_channels=4)
+
+
+def native_weights(layout: TaesdLayout, seed: int = 0, dtype: torch.dtype = torch.float32) -> dict[str, torch.Tensor]:
+ """A decoder-only checkpoint (layout A) with seeded random weights."""
+ torch.manual_seed(seed)
+ decoder = build_taesd_decoder(layout)
+ return {key: value.to(dtype).contiguous() for key, value in decoder.state_dict().items()}
+
+
+def diffusers_weights(native: dict[str, torch.Tensor]) -> dict[str, torch.Tensor]:
+ """The same decoder in the combined layout B: `decoder.layers.{N-1}.*`, next to an encoder."""
+ combined = {}
+ for key, value in native.items():
+ index, rest = key.split(".", 1)
+ combined[f"decoder.layers.{int(index) - 1}.{rest}"] = value
+ # A token encoder: identification and loading must drop it whatever it holds.
+ combined["encoder.layers.0.weight"] = torch.zeros(64, 3, 3, 3)
+ combined["encoder.layers.0.bias"] = torch.zeros(64)
+ return combined
+
+
+def tinier_weights() -> dict[str, torch.Tensor]:
+ """TAEQI2.1 "tinier" in layout B: its low-res Blocks are SuperBlocks (7x7 depthwise, 1x1, 1x1)."""
+ combined = diffusers_weights(native_weights(TAEQI2_1, dtype=torch.float16))
+ for index, channels in ((2, 256), (3, 256), (4, 256), (7, 128), (8, 128), (9, 128)):
+ prefix = f"decoder.layers.{index}.conv."
+ for key in [k for k in combined if k.startswith(prefix)]:
+ del combined[key]
+ combined[f"{prefix}0.weight"] = torch.zeros(channels, 1, 7, 7, dtype=torch.float16)
+ combined[f"{prefix}1.weight"] = torch.zeros(channels * 2, channels, 1, 1, dtype=torch.float16)
+ combined[f"{prefix}1.bias"] = torch.zeros(channels * 2, dtype=torch.float16)
+ combined[f"{prefix}3.weight"] = torch.zeros(channels, channels * 2, 1, 1, dtype=torch.float16)
+ return combined
diff --git a/tests/test_config.py b/tests/test_config.py
index 3a1057ac6d..041bd7835b 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -170,6 +170,15 @@ def test_pid_memory_optimization_defaults_to_false_and_loads_from_yaml(tmp_path:
assert load_and_migrate_config(temp_config_file).pid_memory_optimization is True
+def test_tiny_autoencoder_previews_defaults_to_false_and_loads_from_yaml(tmp_path: Path, patch_rootdir: None) -> None:
+ assert InvokeAIAppConfig().tiny_autoencoder_previews is False
+
+ temp_config_file = tmp_path / "temp_invokeai.yaml"
+ temp_config_file.write_text('schema_version: "4.0.3"\ntiny_autoencoder_previews: true\n')
+
+ assert load_and_migrate_config(temp_config_file).tiny_autoencoder_previews is True
+
+
def test_migrate_v3_config_from_file(tmp_path: Path, patch_rootdir: None):
"""Test reading configuration from a file."""
temp_config_file = tmp_path / "temp_invokeai.yaml"