Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
chore: merge upstream/main
Josh Corbettd7903e7ca682
diff --cc invokeai/app/api/routers/model_manager.pyindex b193cc8d4b,01b2e6f219..00e16ef57f--- a/invokeai/app/api/routers/model_manager.py+++ b/invokeai/app/api/routers/model_manager.py@@@ -34,8 -38,8 +38,9 @@@ from invokeai.app.services.model_record)from invokeai.app.services.orphaned_models import CONVERSION_SCRATCH_DIRNAME, OrphanedModelInfofrom invokeai.app.services.shared.sqlite.sqlite_common import SQLiteDirection+ from invokeai.app.util.path_safety import is_plain_filenamefrom invokeai.app.util.suppress_output import SuppressOutput+from invokeai.backend.architectures import ArchitectureCapabilities, architecture_capabilitiesfrom invokeai.backend.model_manager.configs.external_api import ExternalApiModelConfigfrom invokeai.backend.model_manager.configs.factory import AnyModelConfig, ModelConfigFactoryfrom invokeai.backend.model_manager.configs.main import (diff --cc invokeai/frontend/web/src/services/api/schema.tsindex 1d9a997f40,4dcd2e2af6..508a31ce75--- a/invokeai/frontend/web/src/services/api/schema.ts+++ b/invokeai/frontend/web/src/services/api/schema.ts@@@ -45983,6515 -42224,771 +45983,6522 @@@ export type components =*/use_cache?: boolean;/**- * @description Latents tensor+ * VAE+ * @description VAE model to load* @default null*/- latents?: components["schemas"]["LatentsField"] | null;+ vae_model?: components["schemas"]["ModelIdentifierField"] | null;/**- * @description Noise tensor- * @default null+ * type+ * @default vae_loader+ * @constant*/- noise?: components["schemas"]["LatentsField"] | null;+ type: "vae_loader";+ };+ /**+ * VAEOutput+ * @description Base class for invocations that output a VAE field+ */+ VAEOutput: {/**- * @description A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.- * @default null+ * VAE+ * @description VAE*/- denoise_mask?: components["schemas"]["DenoiseMaskField"] | null;+ vae: components["schemas"]["VAEField"];/**- * Denoising Start- * @description When to start denoising, expressed a percentage of total steps- * @default 0+ * type+ * @default vae_output+ * @constant*/- denoising_start?: number;+ type: "vae_output";+ };+ /**+ * VAE_Checkpoint_Anima_Config+ * @description Model config for Anima QwenImage VAE checkpoint models (AutoencoderKLQwenImage).+ */+ VAE_Checkpoint_Anima_Config: {/**- * Denoising End- * @description When to stop denoising, expressed a percentage of total steps- * @default 1+ * Key+ * @description A unique key for this model.*/- denoising_end?: number;+ key: string;/**- * Add Noise- * @description Add noise based on denoising start.- * @default true+ * Hash+ * @description The hash of the model file(s).*/- add_noise?: boolean;- /**- * Transformer- * @description Z-Image model (Transformer) to load- * @default null- */- transformer?: components["schemas"]["TransformerField"] | null;+ hash: string;/**- * Positive Conditioning- * @description Positive conditioning tensor- * @default null+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- positive_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ path: string;/**- * Negative Conditioning- * @description Negative conditioning tensor- * @default null+ * File Size+ * @description The size of the model in bytes.*/- negative_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ file_size: number;/**- * Guidance Scale- * @description Guidance scale for classifier-free guidance. 1.0 = no CFG (recommended for Z-Image-Turbo). Values > 1.0 amplify guidance.- * @default 1+ * Name+ * @description Name of the model.*/- guidance_scale?: number;+ name: string;/**- * Width- * @description Width of the generated image.- * @default 1024+ * Description+ * @description Model description*/- width?: number;+ description: string | null;/**- * Height- * @description Height of the generated image.- * @default 1024+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- height?: number;+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * Steps- * @description Number of denoising steps. 8 recommended for Z-Image-Turbo.- * @default 8+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.*/- steps?: number;+ source_api_response: string | null;/**- * Seed- * @description Randomness seed for reproducibility.- * @default 0+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).*/- seed?: number;+ source_url: string | null;/**- * @description Z-Image control conditioning for spatial control (Canny, HED, Depth, Pose, MLSD).- * @default null+ * Cover Image+ * @description Url for image to preview model*/- control?: components["schemas"]["ZImageControlField"] | null;+ cover_image: string | null;/**- * @description VAE Required for control conditioning.- * @default null+ * Config Path+ * @description Path to the config for this model, if any.*/- vae?: components["schemas"]["VAEField"] | null;+ config_path: string | null;/**- * Shift- * @description Override the timestep shift (mu) for the sigma schedule. Leave blank to auto-calculate based on image dimensions (recommended). Lower values (~0.5) produce less noise shifting, higher values (~1.15) produce more.- * @default null+ * Type+ * @default vae+ * @constant*/- shift?: number | null;+ type: "vae";/**- * Scheduler- * @description Scheduler (sampler) for the denoising process. Euler is the default and recommended. Heun is 2nd-order (better quality, 2x slower). LCM works with Turbo only (not Base).- * @default euler- * @enum {string}+ * Format+ * @default checkpoint+ * @constant*/- scheduler?: "euler" | "heun" | "lcm";+ format: "checkpoint";/**- * type- * @default z_image_denoise+ * Base+ * @default anima* @constant*/- type: "z_image_denoise";- };- /**- * Denoise - Z-Image + Metadata- * @description Run denoising process with a Z-Image transformer model + metadata.- */- ZImageDenoiseMetaInvocation: {+ base: "anima";/**- * @description Optional metadata to be saved with the image- * @default null+ * Cpu Only+ * @description Whether this model should run on CPU only*/- metadata?: components["schemas"]["MetadataField"] | null;+ cpu_only: boolean | null;+ };+ /** VAE_Checkpoint_FLUX_Config */+ VAE_Checkpoint_FLUX_Config: {/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Key+ * @description A unique key for this model.*/- id: string;+ key: string;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * Hash+ * @description The hash of the model file(s).*/- is_intermediate?: boolean;+ hash: string;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- use_cache?: boolean;+ path: string;/**- * @description Latents tensor- * @default null+ * File Size+ * @description The size of the model in bytes.*/- latents?: components["schemas"]["LatentsField"] | null;+ file_size: number;/**- * @description Noise tensor- * @default null+ * Name+ * @description Name of the model.*/- noise?: components["schemas"]["LatentsField"] | null;+ name: string;/**- * @description A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.- * @default null+ * Description+ * @description Model description*/- denoise_mask?: components["schemas"]["DenoiseMaskField"] | null;+ description: string | null;/**- * Denoising Start- * @description When to start denoising, expressed a percentage of total steps- * @default 0+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- denoising_start?: number;+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * Denoising End- * @description When to stop denoising, expressed a percentage of total steps- * @default 1+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.*/- denoising_end?: number;+ source_api_response: string | null;/**- * Add Noise- * @description Add noise based on denoising start.- * @default true+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).*/- add_noise?: boolean;+ source_url: string | null;/**- * Transformer- * @description Z-Image model (Transformer) to load- * @default null+ * Cover Image+ * @description Url for image to preview model*/- transformer?: components["schemas"]["TransformerField"] | null;+ cover_image: string | null;/**- * Positive Conditioning- * @description Positive conditioning tensor- * @default null+ * Config Path+ * @description Path to the config for this model, if any.*/- positive_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ config_path: string | null;/**- * Negative Conditioning- * @description Negative conditioning tensor- * @default null+ * Type+ * @default vae+ * @constant*/- negative_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ type: "vae";/**- * Guidance Scale- * @description Guidance scale for classifier-free guidance. 1.0 = no CFG (recommended for Z-Image-Turbo). Values > 1.0 amplify guidance.- * @default 1+ * Format+ * @default checkpoint+ * @constant*/- guidance_scale?: number;+ format: "checkpoint";/**- * Width- * @description Width of the generated image.- * @default 1024+ * Cpu Only+ * @description Whether this model should run on CPU only*/- width?: number;+ cpu_only: boolean | null;/**- * Height- * @description Height of the generated image.- * @default 1024+ * Base+ * @default flux+ * @constant*/- height?: number;+ base: "flux";+ };+ /**+ * VAE_Checkpoint_Flux2_Config+ * @description Model config for FLUX.2 VAE checkpoint models (AutoencoderKLFlux2).+ */+ VAE_Checkpoint_Flux2_Config: {/**- * Steps- * @description Number of denoising steps. 8 recommended for Z-Image-Turbo.- * @default 8+ * Key+ * @description A unique key for this model.*/- steps?: number;+ key: string;/**- * Seed- * @description Randomness seed for reproducibility.- * @default 0+ * Hash+ * @description The hash of the model file(s).*/- seed?: number;+ hash: string;/**- * @description Z-Image control conditioning for spatial control (Canny, HED, Depth, Pose, MLSD).- * @default null+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- control?: components["schemas"]["ZImageControlField"] | null;+ path: string;/**- * @description VAE Required for control conditioning.- * @default null+ * File Size+ * @description The size of the model in bytes.*/- vae?: components["schemas"]["VAEField"] | null;+ file_size: number;/**- * Shift- * @description Override the timestep shift (mu) for the sigma schedule. Leave blank to auto-calculate based on image dimensions (recommended). Lower values (~0.5) produce less noise shifting, higher values (~1.15) produce more.- * @default null+ * Name+ * @description Name of the model.*/- shift?: number | null;+ name: string;/**- * Scheduler- * @description Scheduler (sampler) for the denoising process. Euler is the default and recommended. Heun is 2nd-order (better quality, 2x slower). LCM works with Turbo only (not Base).- * @default euler- * @enum {string}+ * Description+ * @description Model description*/- scheduler?: "euler" | "heun" | "lcm";+ description: string | null;/**- * type- * @default z_image_denoise_meta- * @constant+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- type: "z_image_denoise_meta";- };- /**- * Image to Latents - Z-Image- * @description Generates latents from an image using Z-Image VAE (supports both Diffusers and FLUX VAE).- */- ZImageImageToLatentsInvocation: {+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * @description The board to save the image to- * @default null+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.*/- board?: components["schemas"]["BoardField"] | null;+ source_api_response: string | null;/**- * @description Optional metadata to be saved with the image- * @default null+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).*/- metadata?: components["schemas"]["MetadataField"] | null;+ source_url: string | null;/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Cover Image+ * @description Url for image to preview model*/- id: string;+ cover_image: string | null;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * Config Path+ * @description Path to the config for this model, if any.*/- is_intermediate?: boolean;+ config_path: string | null;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Type+ * @default vae+ * @constant*/- use_cache?: boolean;+ type: "vae";/**- * @description The image to encode.- * @default null+ * Format+ * @default checkpoint+ * @constant*/- image?: components["schemas"]["ImageField"] | null;+ format: "checkpoint";/**- * @description VAE- * @default null+ * Base+ * @default flux2+ * @constant*/- vae?: components["schemas"]["VAEField"] | null;+ base: "flux2";/**- * type- * @default z_image_i2l- * @constant+ * Cpu Only+ * @description Whether this model should run on CPU only*/- type: "z_image_i2l";+ cpu_only: boolean | null;};/**- * Latents to Image - Z-Image- * @description Generates an image from latents using Z-Image VAE (supports both Diffusers and FLUX VAE).+ * VAE_Checkpoint_QwenImage_Config+ * @description Model config for Qwen Image VAE checkpoint models (AutoencoderKLQwenImage).*/- ZImageLatentsToImageInvocation: {+ VAE_Checkpoint_QwenImage_Config: {/**- * @description The board to save the image to- * @default null+ * Key+ * @description A unique key for this model.*/- board?: components["schemas"]["BoardField"] | null;+ key: string;/**- * @description Optional metadata to be saved with the image- * @default null+ * Hash+ * @description The hash of the model file(s).*/- metadata?: components["schemas"]["MetadataField"] | null;+ hash: string;/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- id: string;+ path: string;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * File Size+ * @description The size of the model in bytes.*/- is_intermediate?: boolean;+ file_size: number;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Name+ * @description Name of the model.*/- use_cache?: boolean;+ name: string;/**- * @description Latents tensor- * @default null+ * Description+ * @description Model description*/- latents?: components["schemas"]["LatentsField"] | null;+ description: string | null;/**- * @description VAE- * @default null+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- vae?: components["schemas"]["VAEField"] | null;+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * type- * @default z_image_l2i- * @constant+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.*/- type: "z_image_l2i";- };- /**- * Apply LoRA Collection - Z-Image- * @description Applies a collection of LoRAs to a Z-Image transformer.- */- ZImageLoRACollectionLoader: {+ source_api_response: string | null;/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).*/- id: string;+ source_url: string | null;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * Cover Image+ * @description Url for image to preview model*/- is_intermediate?: boolean;+ cover_image: string | null;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Config Path+ * @description Path to the config for this model, if any.*/- use_cache?: boolean;+ config_path: string | null;/**- * LoRAs- * @description LoRA models and weights. May be a single LoRA or collection.- * @default null+ * Type+ * @default vae+ * @constant*/- loras?: components["schemas"]["LoRAField"] | components["schemas"]["LoRAField"][] | null;+ type: "vae";/**- * Transformer- * @description Transformer- * @default null+ * Format+ * @default checkpoint+ * @constant*/- transformer?: components["schemas"]["TransformerField"] | null;+ format: "checkpoint";/**- * Qwen3 Encoder- * @description Qwen3 tokenizer and text encoder- * @default null+ * Base+ * @default qwen-image+ * @constant*/- qwen3_encoder?: components["schemas"]["Qwen3EncoderField"] | null;+ base: "qwen-image";/**- * type- * @default z_image_lora_collection_loader- * @constant+ * Cpu Only+ * @description Whether this model should run on CPU only*/- type: "z_image_lora_collection_loader";+ cpu_only: boolean | null;};- /**- * Apply LoRA - Z-Image- * @description Apply a LoRA model to a Z-Image transformer and/or Qwen3 text encoder.- */- ZImageLoRALoaderInvocation: {+ /** VAE_Checkpoint_SD1_Config */+ VAE_Checkpoint_SD1_Config: {/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Key+ * @description A unique key for this model.*/- id: string;+ key: string;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * Hash+ * @description The hash of the model file(s).*/- is_intermediate?: boolean;+ hash: string;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- use_cache?: boolean;+ path: string;/**- * LoRA- * @description LoRA model to load- * @default null+ * File Size+ * @description The size of the model in bytes.*/- lora?: components["schemas"]["ModelIdentifierField"] | null;+ file_size: number;/**- * Weight- * @description The weight at which the LoRA is applied to each model- * @default 0.75+ * Name+ * @description Name of the model.*/- weight?: number;+ name: string;/**- * Z-Image Transformer- * @description Transformer- * @default null+ * Description+ * @description Model description*/- transformer?: components["schemas"]["TransformerField"] | null;+ description: string | null;/**- * Qwen3 Encoder- * @description Qwen3 tokenizer and text encoder- * @default null+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- qwen3_encoder?: components["schemas"]["Qwen3EncoderField"] | null;+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * type- * @default z_image_lora_loader- * @constant+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.*/- type: "z_image_lora_loader";- };- /**- * ZImageLoRALoaderOutput- * @description Z-Image LoRA Loader Output- */- ZImageLoRALoaderOutput: {+ source_api_response: string | null;/**- * Z-Image Transformer- * @description Transformer- * @default null+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).*/- transformer: components["schemas"]["TransformerField"] | null;+ source_url: string | null;/**- * Qwen3 Encoder- * @description Qwen3 tokenizer and text encoder- * @default null+ * Cover Image+ * @description Url for image to preview model*/- qwen3_encoder: components["schemas"]["Qwen3EncoderField"] | null;+ cover_image: string | null;/**- * type- * @default z_image_lora_loader_output+ * Config Path+ * @description Path to the config for this model, if any.+ */+ config_path: string | null;+ /**+ * Type+ * @default vae* @constant*/- type: "z_image_lora_loader_output";+ type: "vae";+ /**+ * Format+ * @default checkpoint+ * @constant+ */+ format: "checkpoint";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ /**+ * Base+ * @default sd-1+ * @constant+ */+ base: "sd-1";};- /**- * Main Model - Z-Image- * @description Loads a Z-Image model, outputting its submodels.- *- * Similar to FLUX, you can mix and match components:- * - Transformer: From Z-Image main model (GGUF quantized or Diffusers format)- * - VAE: Separate FLUX VAE (shared with FLUX models) or from a Diffusers Z-Image model- * - Qwen3 Encoder: Separate Qwen3Encoder model or from a Diffusers Z-Image model- */- ZImageModelLoaderInvocation: {+ /** VAE_Checkpoint_SD2_Config */+ VAE_Checkpoint_SD2_Config: {/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Key+ * @description A unique key for this model.*/- id: string;+ key: string;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * Hash+ * @description The hash of the model file(s).*/- is_intermediate?: boolean;+ hash: string;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- use_cache?: boolean;+ path: string;/**- * Transformer- * @description Z-Image model (Transformer) to load+ * File Size+ * @description The size of the model in bytes.*/- model: components["schemas"]["ModelIdentifierField"];+ file_size: number;/**- * VAE- * @description Standalone VAE model. Z-Image uses the same VAE as FLUX (16-channel). If not provided, VAE will be loaded from the Qwen3 Source model.- * @default null+ * Name+ * @description Name of the model.*/- vae_model?: components["schemas"]["ModelIdentifierField"] | null;+ name: string;/**- * Qwen3 Encoder- * @description Standalone Qwen3 Encoder model. If not provided, encoder will be loaded from the Qwen3 Source model.- * @default null+ * Description+ * @description Model description*/- qwen3_encoder_model?: components["schemas"]["ModelIdentifierField"] | null;+ description: string | null;/**- * Qwen3 Source- * @description Z-Image pipeline model to extract VAE and/or Qwen3 encoder from. Use this if you don't have separate VAE/Qwen3 models. Ignored if both VAE and Qwen3 Encoder are provided separately.- * @default null+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- qwen3_source_model?: components["schemas"]["ModelIdentifierField"] | null;+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * type- * @default z_image_model_loader- * @constant+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.*/- type: "z_image_model_loader";- };- /**- * ZImageModelLoaderOutput- * @description Z-Image base model loader output.- */- ZImageModelLoaderOutput: {+ source_api_response: string | null;/**- * Transformer- * @description Transformer+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).*/- transformer: components["schemas"]["TransformerField"];+ source_url: string | null;/**- * Qwen3 Encoder- * @description Qwen3 tokenizer and text encoder+ * Cover Image+ * @description Url for image to preview model*/- qwen3_encoder: components["schemas"]["Qwen3EncoderField"];+ cover_image: string | null;/**- * VAE- * @description VAE+ * Config Path+ * @description Path to the config for this model, if any.*/- vae: components["schemas"]["VAEField"];+ config_path: string | null;/**- * type- * @default z_image_model_loader_output+ * Type+ * @default vae* @constant*/- type: "z_image_model_loader_output";+ type: "vae";+ /**+ * Format+ * @default checkpoint+ * @constant+ */+ format: "checkpoint";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ /**+ * Base+ * @default sd-2+ * @constant+ */+ base: "sd-2";};- /**- * Latents to Image - Z-Image + PiD (4x SR)- * @description Decode a Z-Image latent with the PiD pixel-diffusion decoder.- *- * Produces a 4x super-resolved image in a single pass (Z-Image decoder is- * trained on FLUX.1 latents; ``sr_scale=4`` with the FLUX VAE's 8x spatial- * down-factor gives a 32x linear scale from latent to pixel).- */- ZImagePiDDecodeInvocation: {+ /** VAE_Checkpoint_SDXL_Config */+ VAE_Checkpoint_SDXL_Config: {/**- * @description The board to save the image to- * @default null+ * Key+ * @description A unique key for this model.*/- board?: components["schemas"]["BoardField"] | null;+ key: string;/**- * @description Optional metadata to be saved with the image- * @default null+ * Hash+ * @description The hash of the model file(s).*/- metadata?: components["schemas"]["MetadataField"] | null;+ hash: string;/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- id: string;+ path: string;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * File Size+ * @description The size of the model in bytes.*/- is_intermediate?: boolean;+ file_size: number;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Name+ * @description Name of the model.*/- use_cache?: boolean;+ name: string;/**- * @description Latents tensor- * @default null+ * Description+ * @description Model description*/- latents?: components["schemas"]["LatentsField"] | null;+ description: string | null;/**- * Prompt- * @description Text prompt the latent was generated from. PiD conditions on it.- * @default null+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- prompt?: string | null;+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * Gemma-2 Encoder- * @description Gemma-2 caption encoder. Required by PiD.- * @default null+ * Source Api Response+ * @description The original API response from the source, as stringified JSON.*/- gemma2_encoder?: components["schemas"]["Gemma2EncoderField"] | null;+ source_api_response: string | null;/**- * PiD Decoder- * @description PiD FLUX decoder checkpoint.- * @default null+ * Source Url+ * @description Optional URL for the model (e.g. download page or model page).*/- pid_decoder?: components["schemas"]["PiDDecoderField"] | null;+ source_url: string | null;/**- * VAE- * @description Z-Image VAE used to read scaling_factor / shift_factor. If omitted, the FLUX.1 fallback constants (0.3611 / 0.1159) are used.- * @default null+ * Cover Image+ * @description Url for image to preview model*/- vae?: components["schemas"]["VAEField"] | null;+ cover_image: string | null;/**- * Num Inference Steps- * @description Number of PiD distill steps. The released checkpoints are distilled for 4; the student schedule has only 4 transitions, so higher counts cannot add sampling steps.- * @default 4+ * Config Path+ * @description Path to the config for this model, if any.*/- num_inference_steps?: number;+ config_path: string | null;/**- * Seed- * @description Seed for the PiD decoder's noise.- * @default 0+ * Type+ * @default vae+ * @constant*/- seed?: number;+ type: "vae";/**- * type- * @default z_image_pid_decode+ * Format+ * @default checkpoint* @constant*/- type: "z_image_pid_decode";+ format: "checkpoint";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ /**+ * Base+ * @default sdxl+ * @constant+ */+ base: "sdxl";};/**- * Seed Variance Enhancer - Z-Image- * @description Adds seed-based noise to Z-Image conditioning to increase variance between seeds.- *- * Z-Image-Turbo can produce relatively similar images with different seeds,- * making it harder to explore variations of a prompt. This node implements- * reproducible, seed-based noise injection into text embeddings to increase- * visual variation while maintaining reproducibility.+ * VAE_Checkpoint_Wan_Config+ * @description Model config for Wan 2.2 VAE checkpoint models (AutoencoderKLWan).*- * The noise strength is auto-calibrated relative to the embedding's standard- * deviation, ensuring consistent results across different prompts.+ * Distinguishes A14B (z_dim=16, standard Wan VAE) from TI2V-5B (z_dim=48,+ * Wan2.2-VAE) via the input channel count of ``decoder.conv_in.weight``.*/- ZImageSeedVarianceEnhancerInvocation: {+ VAE_Checkpoint_Wan_Config: {/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Key+ * @description A unique key for this model.*/- id: string;+ key: string;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * Hash+ * @description The hash of the model file(s).*/- is_intermediate?: boolean;+ hash: string;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- use_cache?: boolean;+ path: string;/**- * Conditioning- * @description Conditioning tensor- * @default null+ * File Size+ * @description The size of the model in bytes.*/- conditioning?: components["schemas"]["ZImageConditioningField"] | null;+ file_size: number;/**- * Seed- * @description Seed for reproducible noise generation. Different seeds produce different noise patterns.- * @default 0+ * Name+ * @description Name of the model.*/- seed?: number;+ name: string;/**- * Strength- * @description Noise strength as multiplier of embedding std. 0=off, 0.1=subtle, 0.5=strong.- * @default 0.1+ * Description+ * @description Model description*/- strength?: number;+ description: string | null;/**- * Randomize Percent- * @description Percentage of embedding values to add noise to (1-100). Lower values create more selective noise patterns.- * @default 50+ * Source+ * @description The original source of the model (path, URL or repo_id).*/- randomize_percent?: number;+ source: string;+ /** @description The type of source */+ source_type: components["schemas"]["ModelSourceType"];/**- * type- * @default z_image_seed_variance_enhancer+ * 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 vae* @constant*/- type: "z_image_seed_variance_enhancer";+ type: "vae";+ /**+ * Format+ * @default checkpoint+ * @constant+ */+ format: "checkpoint";+ /**+ * Base+ * @default wan+ * @constant+ */+ base: "wan";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ /**+ * Latent Channels+ * @description VAE latent channel count: 16 for A14B (standard Wan VAE) or 48 for TI2V-5B (Wan2.2-VAE).+ * @enum {integer}+ */+ latent_channels: 16 | 48;};/**- * Prompt - Z-Image- * @description Encodes and preps a prompt for a Z-Image image.- *- * Supports regional prompting by connecting a mask input.+ * VAE_Diffusers_Flux2_Config+ * @description Model config for FLUX.2 VAE models in diffusers format (AutoencoderKLFlux2).*/- ZImageTextEncoderInvocation: {+ VAE_Diffusers_Flux2_Config: {/**- * Id- * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ * Key+ * @description A unique key for this model.*/- id: string;+ key: string;/**- * Is Intermediate- * @description Whether or not this is an intermediate invocation.- * @default false+ * Hash+ * @description The hash of the model file(s).*/- is_intermediate?: boolean;+ hash: string;/**- * Use Cache- * @description Whether or not to use the cache- * @default true+ * Path+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.*/- use_cache?: boolean;+ path: string;/**- * Prompt- * @description Text prompt to encode.- * @default null+ * File Size+ * @description The size of the model in bytes.*/- prompt?: string | null;+ file_size: number;/**- * Qwen3 Encoder- * @description Qwen3 tokenizer and text encoder- * @default null+ * Name+ * @description Name of the model.*/- qwen3_encoder?: components["schemas"]["Qwen3EncoderField"] | null;+ name: string;/**- * @description A mask defining the region that this conditioning prompt applies to.- * @default null+ * Description+ * @description Model description*/- mask?: components["schemas"]["TensorField"] | null;+ description: string | null;/**- * type- * @default z_image_text_encoder+ * 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;+ /**+ * Format+ * @default diffusers* @constant*/- type: "z_image_text_encoder";+ format: "diffusers";+ /** @default */+ repo_variant: components["schemas"]["ModelRepoVariant"];+ /**+ * Type+ * @default vae+ * @constant+ */+ type: "vae";+ /**+ * Base+ * @default flux2+ * @constant+ */+ base: "flux2";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;};- /**- * ZImageVariantType- * @description Z-Image model variants.- * @enum {string}- */- ZImageVariantType: "turbo" | "zbase";- };- responses: never;- parameters: never;- requestBodies: never;- headers: never;- pathItems: never;-};-export type $defs = Record<string, never>;-export interface operations {- get_setup_status_api_v1_auth_status_get: {- parameters: {- query?: never;+ /** VAE_Diffusers_SD1_Config */+ VAE_Diffusers_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;+ /**+ * Format+ * @default diffusers+ * @constant+ */+ format: "diffusers";+ /** @default */+ repo_variant: components["schemas"]["ModelRepoVariant"];+ /**+ * Type+ * @default vae+ * @constant+ */+ type: "vae";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ /**+ * Base+ * @default sd-1+ * @constant+ */+ base: "sd-1";+ };+ /** VAE_Diffusers_SDXL_Config */+ VAE_Diffusers_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;+ /**+ * Format+ * @default diffusers+ * @constant+ */+ format: "diffusers";+ /** @default */+ repo_variant: components["schemas"]["ModelRepoVariant"];+ /**+ * Type+ * @default vae+ * @constant+ */+ type: "vae";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ /**+ * Base+ * @default sdxl+ * @constant+ */+ base: "sdxl";+ };+ /**+ * VAE_Diffusers_Wan_Config+ * @description Model config for Wan 2.2 VAE in diffusers folder layout (AutoencoderKLWan).+ */+ VAE_Diffusers_Wan_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;+ /**+ * Format+ * @default diffusers+ * @constant+ */+ format: "diffusers";+ /** @default */+ repo_variant: components["schemas"]["ModelRepoVariant"];+ /**+ * Type+ * @default vae+ * @constant+ */+ type: "vae";+ /**+ * Base+ * @default wan+ * @constant+ */+ base: "wan";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ /**+ * Latent Channels+ * @description VAE latent channel count: 16 for A14B or 48 for TI2V-5B's Wan2.2-VAE.+ * @default 16+ * @enum {integer}+ */+ latent_channels: 16 | 48;+ };+ /**+ * VaeAcceptance+ * @description One VAE this architecture's decode accepts.+ */+ VaeAcceptance: {+ base: components["schemas"]["BaseModelType"];+ /**+ * Latent Channels+ * @description Null unless the base ships VAEs of more than one latent width; only wan does.+ */+ latent_channels?: number | null;+ };+ /** ValidationError */+ ValidationError: {+ /** Location */+ loc: (string | number)[];+ /** Message */+ msg: string;+ /** Error Type */+ type: string;+ /** Input */+ input?: unknown;+ /** Context */+ ctx?: Record<string, never>;+ };+ /** VideoBoardArg */+ VideoBoardArg: {+ /**+ * Board Id+ * @description The id of the board to add or remove the video from+ */+ board_id: string;+ /**+ * Video Name+ * @description The name of the video to add to / remove from the board+ */+ video_name: string;+ };+ /**+ * Concatenate Videos+ * @description Join two or more videos into a single MP4.+ *+ * Audio: if any input carries an audio track, the output gets an AAC track assembled on+ * the emitted timeline — silent inputs contribute silence, `cut` splices the tracks,+ * `crossfade` blends them equal-power over the transition window, and+ * `fade_through_black` fades the outgoing track to silence and the incoming one up from+ * it, mirroring the video. An fps override retimes audio with the video (a deliberate+ * speed/pitch change). If no input has audio, the output has no audio stream.+ *+ * Transitions:+ *+ * * ``cut`` — hard splice, no blending. Fastest; total length is the sum of inputs.+ * * ``crossfade`` — linear A→B cross-dissolve over ``transition_frames``. Each boundary+ * consumes ``transition_frames`` from both adjacent clips, so total length is+ * ``sum(inputs) - transition_frames * (n - 1)``.+ * * ``fade_through_black`` — A fades to black, then B fades in from black. Each boundary+ * consumes ``transition_frames // 2`` frames from the preceding clip's tail and the+ * remainder (``transition_frames - transition_frames // 2``) from the next clip's head,+ * so the total emitted is exactly ``transition_frames`` per boundary — even for odd+ * ``transition_frames`` — and the overall length equals the sum of inputs.+ *+ * Inputs must share the same pixel dimensions. ``size_mismatch`` decides what happens+ * when they do not: ``error`` (the default) refuses the join, and ``match_first``+ * resamples every later clip onto the first clip's canvas. ``match_first`` is what lets a+ * generated clip be appended to source footage — video models render onto their own fixed+ * canvas family, so a generated continuation rarely matches the clip it extends.+ *+ * Output frame rate defaults to the first input's fps; override with ``fps`` to force a+ * specific rate (the frames are not resampled in time, only the container is encoded at+ * the new rate).+ */+ VideoConcatInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Videos+ * @description Videos to concatenate, in order. At least two are required.+ * @default null+ */+ videos?: components["schemas"]["VideoField"][] | null;+ /**+ * Transition+ * @description Transition between consecutive clips.+ * @default cut+ * @enum {string}+ */+ transition?: "cut" | "crossfade" | "fade_through_black";+ /**+ * Transition Frames+ * @description Length of each transition in frames. Ignored when transition is 'cut'.+ * @default 8+ */+ transition_frames?: number;+ /**+ * Fps+ * @description Output frame rate. Defaults to the first input's fps.+ * @default null+ */+ fps?: number | null;+ /**+ * Size Mismatch+ * @description What to do when the inputs do not all share the same pixel dimensions. 'error' refuses the join; 'match_first' resamples every later clip onto the first clip's canvas, so a generated clip can be appended to source footage it does not match.+ * @default error+ * @enum {string}+ */+ size_mismatch?: "error" | "match_first";+ /**+ * type+ * @default video_concat+ * @constant+ */+ type: "video_concat";+ };+ /**+ * VideoDTO+ * @description Deserialized video record, enriched for the frontend.+ */+ VideoDTO: {+ /**+ * Video Name+ * @description The unique name of the video.+ */+ video_name: string;+ /**+ * Video Url+ * @description The URL of the video file (MP4).+ */+ video_url: string;+ /**+ * Thumbnail Url+ * @description The URL of the video's thumbnail (WebP).+ */+ thumbnail_url: string;+ /** @description The origin of the video. */+ video_origin: components["schemas"]["ResourceOrigin"];+ /** @description The category of the video (reuses ImageCategory). */+ video_category: components["schemas"]["ImageCategory"];+ /**+ * Width+ * @description The pixel width of the video.+ */+ width: number;+ /**+ * Height+ * @description The pixel height of the video.+ */+ height: number;+ /**+ * Duration+ * @description The duration of the video in seconds.+ */+ duration: number;+ /**+ * Fps+ * @description The frames-per-second of the video, if known.+ */+ fps?: number | null;+ /**+ * Created At+ * @description The created timestamp of the video.+ */+ created_at: string;+ /**+ * Updated At+ * @description The updated timestamp of the video.+ */+ updated_at: string;+ /**+ * Deleted At+ * @description The deleted timestamp of the video.+ */+ deleted_at?: string | null;+ /**+ * Is Intermediate+ * @description Whether this is an intermediate video.+ */+ is_intermediate: boolean;+ /**+ * Session Id+ * @description The session ID that produced this video, if any.+ */+ session_id?: string | null;+ /**+ * Node Id+ * @description The node ID that produced this video, if any.+ */+ node_id?: string | null;+ /**+ * Starred+ * @description Whether this video is starred.+ */+ starred: boolean;+ /**+ * Has Workflow+ * @description Whether this video has a workflow associated.+ */+ has_workflow: boolean;+ /**+ * Video Subfolder+ * @description The subfolder where the video is stored on disk.+ * @default+ */+ video_subfolder?: string;+ /**+ * Project Id+ * @description The project this video originated in, if it was made for one.+ */+ project_id?: string | null;+ /**+ * File Size Bytes+ * @description Bytes the video, its thumbnail and sidecar occupy on disk; null until measured.+ */+ file_size_bytes?: number | null;+ /**+ * Media Origin+ * @description How this video entered the gallery, if it was marked: 'audio_upload' for an uploaded audio file the server wrapped into a waveform video.+ */+ media_origin?: string | null;+ /**+ * Board Id+ * @description The id of the board the video belongs to, if one exists.+ */+ board_id?: string | null;+ };+ /**+ * VideoField+ * @description A video primitive field+ */+ VideoField: {+ /**+ * Video Name+ * @description The name of the video+ */+ video_name: string;+ };+ /**+ * Frame from Video+ * @description Extract a single frame from a video and save it as an image.+ *+ * ``frame_index`` is 0-based. Negative indices count from the end, so the+ * default of -1 returns the final frame — the typical setup for chaining+ * I2V clips into a longer sequence.+ */+ VideoFrameExtractInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description The video to extract a frame from.+ * @default null+ */+ video?: components["schemas"]["VideoField"] | null;+ /**+ * Frame Index+ * @description Index of the frame to extract. 0 = first frame, -1 = last frame, -2 = second-to-last, etc.+ * @default -1+ */+ frame_index?: number;+ /**+ * type+ * @default video_frame_extract+ * @constant+ */+ type: "video_frame_extract";+ };+ /**+ * Video Primitive+ * @description A video primitive value. Drop a video onto the field to make it available as an input+ * to downstream nodes (e.g. Frame from Video, Concatenate Videos).+ */+ VideoInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description The video to load+ * @default null+ */+ video?: components["schemas"]["VideoField"] | null;+ /**+ * type+ * @default video+ * @constant+ */+ type: "video";+ };+ /** VideoLoRARecallParameter */+ VideoLoRARecallParameter: {+ /**+ * Model Name+ * @description The name (or key) of the LoRA model+ */+ model_name: string;+ /**+ * Weight+ * @description The weight for the LoRA+ * @default 1+ */+ weight?: number;+ };+ /** VideoNamesBatch */+ VideoNamesBatch: {+ /**+ * Video Names+ * @description The list of video names to process+ */+ video_names: string[];+ };+ /**+ * VideoNamesResult+ * @description Response containing ordered video names with metadata for optimistic updates.+ */+ VideoNamesResult: {+ /**+ * Video Names+ * @description Ordered list of video names+ */+ video_names: string[];+ /**+ * Starred Count+ * @description Number of starred videos (when starred_first=True)+ */+ starred_count: number;+ /**+ * Total Count+ * @description Total number of videos matching the query+ */+ total_count: number;+ };+ /**+ * VideoOutput+ * @description Output of a node that produces a video file (e.g. Wan 2.2 latents-to-video).+ */+ VideoOutput: {+ /** @description The output video */+ video: components["schemas"]["VideoField"];+ /**+ * Width+ * @description The width of the video in pixels+ */+ width: number;+ /**+ * Height+ * @description The height of the video in pixels+ */+ height: number;+ /**+ * Num Frames+ * @description The number of frames in the video+ */+ num_frames: number;+ /**+ * Fps+ * @description The frames-per-second of the video+ */+ fps: number;+ /**+ * Duration+ * @description The duration of the video in seconds+ */+ duration: number;+ /**+ * type+ * @default video_output+ * @constant+ */+ type: "video_output";+ };+ /** VideoRecallMediaResponse */+ VideoRecallMediaResponse: {+ /**+ * Status+ * @constant+ */+ status: "success";+ /** Queue Id */+ queue_id: string;+ /**+ * Action+ * @enum {string}+ */+ action: "parameters" | "initial_video" | "reference_video";+ video: components["schemas"]["VideoDTO"];+ /**+ * Uploaded+ * @description Whether the video was uploaded into the gallery by this request+ */+ uploaded: boolean;+ };+ /**+ * VideoRecallParameter+ * @description Video generation parameters to apply to the Video panel.+ *+ * Field names follow the video metadata record (see the Media Metadata architecture doc). Models+ * are given by name (or key) and resolved to installed models; media by gallery name. Bounds are+ * the ones the Video panel accepts, so a value it would ignore is refused here instead.+ */+ VideoRecallParameter: {+ /**+ * Positive Prompt+ * @description Positive prompt text+ */+ positive_prompt?: string | null;+ /**+ * Negative Prompt+ * @description Negative prompt text; an explicit null turns the negative prompt off+ */+ negative_prompt?: string | null;+ /**+ * Seed+ * @description Random seed; ignored when remixing+ */+ seed?: number | null;+ /**+ * Num Frames+ * @description Number of frames to generate+ */+ num_frames?: number | null;+ /**+ * Fps+ * @description Output frame rate+ */+ fps?: number | null;+ /**+ * Width+ * @description Output width in pixels+ */+ width?: number | null;+ /**+ * Height+ * @description Output height in pixels+ */+ height?: number | null;+ /**+ * Steps+ * @description Number of denoising steps+ */+ steps?: number | null;+ /**+ * Cfg Scale+ * @description CFG scale+ */+ cfg_scale?: number | null;+ /**+ * Wan Guidance Scale Low Noise+ * @description Wan A14B: the low-noise expert's CFG scale+ */+ wan_guidance_scale_low_noise?: number | null;+ /**+ * Ltx2 Audio Cfg Scale+ * @description LTX-2: audio CFG scale+ */+ ltx2_audio_cfg_scale?: number | null;+ /**+ * Ltx2 Stg Scale+ * @description LTX-2: spatiotemporal guidance scale+ */+ ltx2_stg_scale?: number | null;+ /**+ * Ltx2 Modality Scale+ * @description LTX-2: modality guidance scale+ */+ ltx2_modality_scale?: number | null;+ /**+ * Ltx2 Context Frames+ * @description LTX-2: frames of the initial video an extension continues from+ */+ ltx2_context_frames?: number | null;+ /**+ * Minimax H3 Hybrid Start Block+ * @description MiniMax H3 Ref2VA: first block taken from the hybrid FL2VA base+ */+ minimax_h3_hybrid_start_block?: number | null;+ /**+ * Model+ * @description The main video model's name (or key)+ */+ model?: string | null;+ /**+ * Vae+ * @description Wan: a standalone VAE's name (or key)+ */+ vae?: string | null;+ /**+ * Wan T5 Encoder Model+ * @description Wan: standalone UMT5 encoder+ */+ wan_t5_encoder_model?: string | null;+ /**+ * Wan Transformer Low Noise+ * @description Wan A14B: low-noise expert+ */+ wan_transformer_low_noise?: string | null;+ /**+ * Wan Component Source+ * @description Wan: Diffusers component source+ */+ wan_component_source?: string | null;+ /**+ * Minimax H3 Transformer Model+ * @description MiniMax H3: transformer override+ */+ minimax_h3_transformer_model?: string | null;+ /**+ * Minimax H3 Component Source+ * @description MiniMax H3: Diffusers component source+ */+ minimax_h3_component_source?: string | null;+ /**+ * Minimax H3 Text Encoder Model+ * @description MiniMax H3: Qwen3-VL encoder+ */+ minimax_h3_text_encoder_model?: string | null;+ /**+ * Minimax H3 Hybrid Base Model+ * @description MiniMax H3 Ref2VA: FL2VA base+ */+ minimax_h3_hybrid_base_model?: string | null;+ /**+ * Ltx2 Component Source+ * @description LTX-2: component source+ */+ ltx2_component_source?: string | null;+ /**+ * Ltx2 Text Encoder Model+ * @description LTX-2: Gemma-4 encoder+ */+ ltx2_text_encoder_model?: string | null;+ /**+ * Loras+ * @description LoRAs with their weights; an empty list asks for none+ */+ loras?: components["schemas"]["VideoLoRARecallParameter"][] | null;+ /** @description First-frame image */+ first_frame_image?: components["schemas"]["ImageRefParameter"] | null;+ /** @description Last-frame image */+ last_frame_image?: components["schemas"]["ImageRefParameter"] | null;+ /** @description Initial video to extend */+ source_video?: components["schemas"]["VideoRefParameter"] | null;+ /**+ * Source Video Start Frame+ * @description First frame of the initial video to use (inclusive)+ */+ source_video_start_frame?: number | null;+ /**+ * Source Video End Frame+ * @description Last frame of the initial video to use (inclusive)+ */+ source_video_end_frame?: number | null;+ /** @description LTX-2: a clip whose audio (or picture) conditions the whole generation */+ ltx2_conditioning_video?: components["schemas"]["VideoRefParameter"] | null;+ /**+ * Ltx2 Conditioning Role+ * @description LTX-2: which stream of `ltx2_conditioning_video` is the condition; required with it+ */+ ltx2_conditioning_role?: ("audio" | "video") | null;+ /**+ * Minimax H3 References+ * @description MiniMax H3 Ref2VA references in conditioning order: at most 3 videos and 9 images; an empty list asks for none+ */+ minimax_h3_references?: (components["schemas"]["ImageReferenceParameter"] | components["schemas"]["VideoReferenceParameter"])[] | null;+ };+ /** VideoRecallParametersResponse */+ VideoRecallParametersResponse: {+ /**+ * Status+ * @enum {string}+ */+ status: "success" | "no_parameters_provided" | "nothing_resolved";+ /** Queue Id */+ queue_id: string;+ /**+ * Parameters+ * @description The resolved parameters sent to the frontend+ */+ parameters: {+ [key: string]: unknown;+ };+ /**+ * Skipped+ * @description Requested fields dropped because their model or media could not be used+ */+ skipped: string[];+ /**+ * Overridden+ * @description Requested media fields dropped because another medium in the same request takes precedence over them, mapped to that field (e.g. first_frame_image -> source_video)+ */+ overridden?: {+ [key: string]: string;+ };+ };+ /**+ * VideoRecallRequestedEvent+ * @description Event model for video_recall_requested+ */+ VideoRecallRequestedEvent: {+ /**+ * Timestamp+ * @description The timestamp of the event+ */+ timestamp: number;+ /**+ * Queue Id+ * @description The ID of the queue+ */+ queue_id: string;+ /**+ * User Id+ * @description The ID of the user whose Video panel the recall targets+ */+ user_id: string;+ /**+ * Action+ * @description What the frontend should do with the payload+ * @enum {string}+ */+ action: "parameters" | "initial_video" | "reference_video";+ /**+ * Mode+ * @description For `parameters`: `remix` applies everything except the seed+ * @default null+ */+ mode: ("recall" | "remix") | null;+ /**+ * Strict+ * @description For `parameters`: treat the payload as a whole generation record, clearing omitted LoRAs and media+ * @default false+ */+ strict: boolean;+ /**+ * Parameters+ * @description For `parameters`: recall fields, keyed like the video metadata record+ * @default null+ */+ parameters: {+ [key: string]: unknown;+ } | null;+ /**+ * @description For `initial_video` and `reference_video`: the video to place+ * @default null+ */+ video: components["schemas"]["VideoRecallVideo"] | null;+ };+ /**+ * VideoRecallVideo+ * @description The gallery video a video recall places into the Video panel.+ */+ VideoRecallVideo: {+ /**+ * Video Name+ * @description The name of the gallery video+ */+ video_name: string;+ /**+ * Width+ * @description The video's width in pixels+ */+ width: number;+ /**+ * Height+ * @description The video's height in pixels+ */+ height: number;+ /**+ * Duration+ * @description The video's duration in seconds+ */+ duration: number;+ /**+ * Fps+ * @description The video's frame rate, when known+ * @default null+ */+ fps?: number | null;+ /**+ * Media Origin+ * @description How the video entered the gallery, e.g. `audio_upload` for wrapped audio+ * @default null+ */+ media_origin?: string | null;+ };+ /**+ * VideoRecordChanges+ * @description Allowed mutations on a video record.+ */+ VideoRecordChanges: {+ /** @description The video's new category. */+ video_category?: components["schemas"]["ImageCategory"] | null;+ /**+ * Session Id+ * @description The video's new session ID.+ */+ session_id?: string | null;+ /**+ * Is Intermediate+ * @description The video's new `is_intermediate` flag.+ */+ is_intermediate?: boolean | null;+ /**+ * Starred+ * @description The video's new `starred` state.+ */+ starred?: boolean | null;+ } & {+ [key: string]: unknown;+ };+ /** VideoRefParameter */+ VideoRefParameter: {+ /**+ * Video Name+ * @description The name of a gallery video+ */+ video_name: string;+ };+ /** VideoReferenceParameter */+ VideoReferenceParameter: {+ /**+ * @description discriminator enum property added by openapi-typescript+ * @enum {string}+ */+ kind: "video";+ /**+ * Video Name+ * @description The name of a gallery video+ */+ video_name: string;+ /**+ * Conditioning+ * @description Which of the clip's streams condition the generation+ */+ conditioning?: ("video_audio" | "video" | "audio") | null;+ /**+ * Start Frame+ * @description First frame of the clip to use (inclusive)+ */+ start_frame?: number | null;+ /**+ * End Frame+ * @description Last frame of the clip to use (inclusive)+ */+ end_frame?: number | null;+ };+ /**+ * VideoUploadedEvent+ * @description Event model for video_uploaded+ */+ VideoUploadedEvent: {+ /**+ * Timestamp+ * @description The timestamp of the event+ */+ timestamp: number;+ /**+ * User Id+ * @description The user who uploaded the media+ */+ user_id: string;+ /**+ * Board Id+ * @description The board the media was added to, if any+ * @default null+ */+ board_id: string | null;+ /**+ * Board Owner Id+ * @description The owner of that board, who may differ from the uploader; None for no board+ * @default null+ */+ board_owner_id: string | null;+ /**+ * @description The visibility of that board; None when the media landed on no board+ * @default null+ */+ board_visibility: components["schemas"]["BoardVisibility"] | null;+ /**+ * Shared User Ids+ * @description Users a private board is explicitly shared with, who can see this media too+ */+ shared_user_ids: string[];+ /**+ * Video Name+ * @description The name of the uploaded video+ */+ video_name: string;+ /** @description The category of the uploaded video */+ video_category: components["schemas"]["ImageCategory"];+ };+ /**+ * VideoUrlsDTO+ * @description The URLs for a video and its thumbnail.+ */+ VideoUrlsDTO: {+ /**+ * Video Name+ * @description The unique name of the video.+ */+ video_name: string;+ /**+ * Video Url+ * @description The URL of the video file (MP4).+ */+ video_url: string;+ /**+ * Thumbnail Url+ * @description The URL of the video's thumbnail (WebP).+ */+ thumbnail_url: string;+ };+ /**+ * VirtualSubBoardDTO+ * @description A virtual sub-board computed from image/video metadata, not stored in the database.+ */+ VirtualSubBoardDTO: {+ /**+ * Virtual Board Id+ * @description The virtual board ID, e.g. 'by_date:2026-03-18'.+ */+ virtual_board_id: string;+ /**+ * Board Name+ * @description The display name of the virtual sub-board, e.g. '2026-03-18'.+ */+ board_name: string;+ /**+ * Date+ * @description The ISO date string, e.g. '2026-03-18'.+ */+ date: string;+ /**+ * Image Count+ * @description The number of general images for this date.+ */+ image_count: number;+ /**+ * Asset Count+ * @description The number of asset images for this date.+ */+ asset_count: number;+ /**+ * Video Count+ * @description The number of videos for this date.+ * @default 0+ */+ video_count?: number;+ /**+ * Asset Video Count+ * @description The number of asset-category (non-'general') videos for this date.+ * @default 0+ */+ asset_video_count?: number;+ /**+ * Cover Image Name+ * @description The most recent image name for this date.+ */+ cover_image_name?: string | null;+ /**+ * Cover Video Name+ * @description The most recent video name for this date. Set instead of cover_image_name when the newest item for the date is a video.+ */+ cover_video_name?: string | null;+ };+ /**+ * WanConditioningField+ * @description A Wan 2.2 conditioning tensor primitive value.+ *+ * Wan conditioning is the UMT5-XXL hidden state for the prompt plus an attention+ * mask marking valid (non-padding) tokens.+ */+ WanConditioningField: {+ /**+ * Conditioning Name+ * @description The name of conditioning tensor+ */+ conditioning_name: string;+ };+ /**+ * WanConditioningOutput+ * @description Base class for nodes that output a Wan 2.2 text conditioning tensor.+ */+ WanConditioningOutput: {+ /** @description Conditioning tensor */+ conditioning: components["schemas"]["WanConditioningField"];+ /**+ * type+ * @default wan_conditioning_output+ * @constant+ */+ type: "wan_conditioning_output";+ };+ /**+ * Denoise - Wan 2.2+ * @description Run the denoising process with a Wan 2.2 model.+ *+ * Drives the flow-matching schedule the model ships with (UniPC with flow+ * sigmas for the Wan 2.2 reference repos; see ``_build_scheduler``). CFG is+ * supported when negative conditioning is provided and ``guidance_scale != 1.0``.+ *+ * For Wan 2.2 A14B the high-noise expert handles timesteps at and above+ * ``boundary_ratio * num_train_timesteps``; the low-noise expert handles+ * timesteps below. Both experts share the model cache; only the active one is+ * GPU-resident at any time.+ */+ WanDenoiseInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Transformer+ * @description Wan transformer field (transformer + optional dual-expert metadata).+ * @default null+ */+ transformer?: components["schemas"]["WanTransformerField"] | null;+ /**+ * @description Positive conditioning tensor+ * @default null+ */+ positive_conditioning?: components["schemas"]["WanConditioningField"] | null;+ /**+ * @description Negative conditioning tensor+ * @default null+ */+ negative_conditioning?: components["schemas"]["WanConditioningField"] | null;+ /**+ * Reference Image+ * @description Reference-image (VAE-latent) conditioning for Wan 2.2 I2V.+ * @default null+ */+ ref_image?: components["schemas"]["WanRefImageConditioningField"] | null;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * @description A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.+ * @default null+ */+ denoise_mask?: components["schemas"]["DenoiseMaskField"] | null;+ /**+ * Denoising Start+ * @description When to start denoising, expressed a percentage of total steps+ * @default 0+ */+ denoising_start?: number;+ /**+ * Denoising End+ * @description When to stop denoising, expressed a percentage of total steps+ * @default 1+ */+ denoising_end?: number;+ /**+ * Add Noise+ * @description Add noise based on denoising start.+ * @default true+ */+ add_noise?: boolean;+ /**+ * Guidance Scale+ * @description Classifier-free guidance scale. 4.0 is the Wan 2.2 default for A14B; TI2V-5B can tolerate higher values up to ~5.5.+ * @default 4+ */+ guidance_scale?: number;+ /**+ * Guidance Scale (Low Noise)+ * @description Optional separate CFG scale for the low-noise expert (Wan 2.2 A14B only). Values below 1.0 (including 0) fall back to the primary 'Guidance Scale'. Ignored for TI2V-5B.+ * @default null+ */+ guidance_scale_low_noise?: number | null;+ /**+ * Width+ * @description Width of the generated image.+ * @default 1024+ */+ width?: number;+ /**+ * Height+ * @description Height of the generated image.+ * @default 1024+ */+ height?: number;+ /**+ * Steps+ * @description Number of denoising steps.+ * @default 40+ */+ steps?: number;+ /**+ * Seed+ * @description Randomness seed for reproducibility.+ * @default 0+ */+ seed?: number;+ /**+ * type+ * @default wan_denoise+ * @constant+ */+ type: "wan_denoise";+ };+ /**+ * Wan 2.2 I2V Ideal Dimensions (A14B)+ * @description Ideal dimensions for the Wan 2.2 A14B models (I2V-A14B and T2V-A14B).+ *+ * Use this node for the A14B family. For the TI2V-5B model use "Wan 2.2 TI2V+ * Ideal Dimensions" instead — TI2V-5B requires multiples of 32, and feeding it+ * these multiples-of-16 dims fails the patchify step.+ *+ * Scales the input W×H so the shorter side equals the chosen preset (480 / 720 /+ * 1080 px), then snaps each dimension to a multiple of 16 (the A14B pixel-grid+ * constraint). Wire from ``Image Primitive``'s width/height outputs and into+ * ``wan_ref_image_encoder`` / ``wan_denoise``.+ */+ WanI2VIdealDimensionsInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Width+ * @description Source image width in pixels.+ * @default 1024+ */+ width?: number;+ /**+ * Height+ * @description Source image height in pixels.+ * @default 1024+ */+ height?: number;+ /**+ * Target Resolution+ * @description Short-side resolution preset. 480p and 720p are Wan 2.2's native training resolutions; 1080p works but is extrapolation and costs ~2.25x the memory of 720p.+ * @default 720p+ * @enum {string}+ */+ target_resolution?: "480p" | "720p" | "1080p";+ /**+ * Rounding+ * @description How to snap each dimension to a multiple of 16. 'floor' rounds down — safest for VRAM, guaranteed not to exceed the unsnapped target. 'ceiling' rounds up. 'nearest' minimizes aspect-ratio drift (default).+ * @default nearest+ * @enum {string}+ */+ rounding?: "nearest" | "floor" | "ceiling";+ /**+ * type+ * @default wan_i2v_ideal_dimensions+ * @constant+ */+ type: "wan_i2v_ideal_dimensions";+ };+ /**+ * Image to Latents - Wan 2.2+ * @description Encodes an image with the Wan VAE (AutoencoderKLWan).+ *+ * The output latents have the temporal dimension squeezed out, so downstream+ * nodes see 4D ``[B, C, H, W]``. The denoise loop re-adds ``T=1`` before+ * feeding the transformer.+ */+ WanImageToLatentsInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description The image to encode.+ * @default null+ */+ image?: components["schemas"]["ImageField"] | null;+ /**+ * @description VAE+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * type+ * @default wan_i2l+ * @constant+ */+ type: "wan_i2l";+ };+ /**+ * Latents to Image - Wan 2.2+ * @description Decodes Wan latents back to RGB.+ */+ WanLatentsToImageInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * @description VAE+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * type+ * @default wan_l2i+ * @constant+ */+ type: "wan_l2i";+ };+ /**+ * Latents to Video - Wan 2.2+ * @description Decode 5D Wan latents to RGB frames and encode an MP4.+ */+ WanLatentsToVideoInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * @description VAE+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * Fps+ * @description Frames-per-second for the encoded MP4. Wan 2.2 was trained at 16 FPS.+ * @default 16+ */+ fps?: number;+ /**+ * type+ * @default wan_l2v+ * @constant+ */+ type: "wan_l2v";+ };+ /**+ * Apply LoRA Collection - Wan 2.2+ * @description Apply a collection of LoRAs to the Wan 2.2 transformer(s).+ *+ * Each LoRA is routed to the primary and/or low-noise list based on its+ * recorded ``expert`` tag (set by the probe from the filename). Untagged+ * LoRAs go to both lists.+ *+ * Against a TI2V-5B main, which is a single transformer with no low-noise+ * expert, a LoRA that would land only in the low-noise list is applied to+ * the transformer instead, with a warning.+ */+ WanLoRACollectionLoader: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * LoRAs+ * @description LoRAs to apply. May be a single LoRA or a collection.+ * @default null+ */+ loras?: components["schemas"]["LoRAField"] | components["schemas"]["LoRAField"][] | null;+ /**+ * Wan Transformer+ * @description Transformer+ * @default null+ */+ transformer?: components["schemas"]["WanTransformerField"] | null;+ /**+ * type+ * @default wan_lora_collection_loader+ * @constant+ */+ type: "wan_lora_collection_loader";+ };+ /**+ * Apply LoRA - Wan 2.2+ * @description Apply a LoRA to the Wan 2.2 transformer(s).+ *+ * For A14B (dual expert) the LoRA's recorded ``expert`` field determines+ * which expert list it lands in: ``"high"`` -> primary list, ``"low"`` ->+ * low-noise list, ``None`` (untagged) -> both lists. Use the ``target``+ * field to override.+ *+ * For TI2V-5B (single transformer) only the primary list is used at denoise+ * time, so a LoRA that would land only in the low-noise list is applied to+ * the transformer instead, with a warning. The alternative is to accept the+ * LoRA and silently have no effect.+ */+ WanLoRALoaderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * LoRA+ * @description LoRA model to load+ * @default null+ */+ lora?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Weight+ * @description The weight at which the LoRA is applied to each model+ * @default 0.75+ */+ weight?: number;+ /**+ * Target+ * @description Which expert(s) to apply this LoRA to. 'auto' uses the LoRA's recorded expert tag (or both if untagged); 'both'/'high'/'low' override it. On the single-transformer TI2V-5B, which has no low-noise expert, 'low' is applied to the transformer instead of being discarded.+ * @default auto+ * @enum {string}+ */+ target?: "auto" | "both" | "high" | "low";+ /**+ * Wan Transformer+ * @description Transformer+ * @default null+ */+ transformer?: components["schemas"]["WanTransformerField"] | null;+ /**+ * type+ * @default wan_lora_loader+ * @constant+ */+ type: "wan_lora_loader";+ };+ /**+ * WanLoRALoaderOutput+ * @description Wan 2.2 LoRA loader output.+ */+ WanLoRALoaderOutput: {+ /**+ * Wan Transformer+ * @description Transformer+ * @default null+ */+ transformer: components["schemas"]["WanTransformerField"] | null;+ /**+ * type+ * @default wan_lora_loader_output+ * @constant+ */+ type: "wan_lora_loader_output";+ };+ /**+ * WanLoRAVariantType+ * @description Wan 2.2 LoRA variants, identifying which model family a LoRA targets.+ *+ * Detected from the LoRA's inner attention dim: A14B has ``inner_dim=5120``,+ * TI2V-5B has ``inner_dim=3072``. A14B and 5B LoRAs are NOT interchangeable —+ * applying one against the wrong main model crashes in the layer patcher+ * with a tensor-shape error.+ * @enum {string}+ */+ WanLoRAVariantType: "a14b" | "5b";+ /**+ * Main Model - Wan 2.2+ * @description Loads a Wan 2.2 model, outputting its submodels.+ *+ * Components can be mixed and matched, mirroring the Qwen Image loader pattern:+ *+ * - Transformer(s):+ * * Diffusers main: emits ``transformer/`` and (for A14B) ``transformer_2/``+ * from the same model record.+ * * Single-file main (GGUF or safetensors checkpoint): emits the file as the+ * primary transformer; for A14B the second-expert file must be wired to+ * ``Transformer (Low Noise)``.+ * - VAE: standalone Wan VAE > main (if Diffusers) > Component Source (Diffusers).+ * - UMT5-XXL encoder: standalone Wan T5 encoder > main (if Diffusers) >+ * Component Source (Diffusers).+ *+ * The Component Source slot lets users supply a Diffusers Wan main model purely+ * for VAE / encoder extraction when the actual transformer is in a single-file+ * format. Together, the standalone VAE + standalone encoder let a single-file+ * transformer run without a full ~30 GB Diffusers install.+ */+ WanModelLoaderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Transformer+ * @description Wan 2.2 model (Transformer) to load+ */+ model: components["schemas"]["ModelIdentifierField"];+ /**+ * Transformer (Low Noise)+ * @description Optional second single-file transformer for the A14B low-noise expert. Only relevant when the main model is a single-file GGUF or safetensors checkpoint and the variant is A14B; ignored when the main is a Diffusers A14B (both experts are pulled from transformer/ and transformer_2/ already) or when the variant is TI2V-5B.+ * @default null+ */+ transformer_low_noise_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * VAE+ * @description Standalone Wan VAE model. If not set, the VAE is loaded from the main model (when in Diffusers format) or from the Component Source.+ * @default null+ */+ vae_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Wan T5 Encoder+ * @description Standalone Wan UMT5-XXL encoder. If not set, the encoder is loaded from the main model (when in Diffusers format) or from the Component Source.+ * @default null+ */+ wan_t5_encoder_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Component Source (Diffusers)+ * @description Diffusers Wan main model to extract VAE and/or encoder from. Use this if you don't have separate VAE/encoder models. Ignored for any submodel that is provided separately.+ * @default null+ */+ component_source?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * type+ * @default wan_model_loader+ * @constant+ */+ type: "wan_model_loader";+ };+ /**+ * WanModelLoaderOutput+ * @description Wan 2.2 model loader output.+ */+ WanModelLoaderOutput: {+ /**+ * Transformer+ * @description Wan transformer (one or two experts depending on the variant)+ */+ transformer: components["schemas"]["WanTransformerField"];+ /**+ * UMT5-XXL Encoder+ * @description UMT5-XXL tokenizer and text encoder for Wan 2.2+ */+ wan_t5_encoder: components["schemas"]["WanT5EncoderField"];+ /**+ * VAE+ * @description VAE+ */+ vae: components["schemas"]["VAEField"];+ /**+ * type+ * @default wan_model_loader_output+ * @constant+ */+ type: "wan_model_loader_output";+ };+ /**+ * WanRefImageConditioningField+ * @description Reference-image conditioning for Wan 2.2 I2V.+ *+ * Carries the 20-channel VAE-latent condition tensor (4-channel first-frame+ * mask + 16-channel ref-image latents). The denoise loop concatenates this+ * to the 16-channel noise latents along the channel dim each step, producing+ * the 36-channel input the I2V-A14B transformer expects.+ *+ * Also carries the spatial dims and frame count used to encode the image so+ * the denoise node can sanity-check the user's width/height/num_frames — a+ * latent temporal-dim mismatch is hard to debug from the downstream error.+ */+ WanRefImageConditioningField: {+ /**+ * Condition Tensor Name+ * @description Name of the saved [1, 20, T_lat, H/8, W/8] condition tensor.+ */+ condition_tensor_name: string;+ /**+ * Width+ * @description Image width used during VAE encoding (matches denoise width).+ */+ width: number;+ /**+ * Height+ * @description Image height used during VAE encoding (matches denoise height).+ */+ height: number;+ /**+ * Num Frames+ * @description Pixel-frame count the condition was built for. 1 for single-frame I2V (image output), 81+ for video.+ * @default 1+ */+ num_frames?: number;+ };+ /**+ * Reference Image - Wan 2.2+ * @description VAE-encode a reference image into Wan 2.2 I2V conditioning.+ *+ * The wired VAE selects the output shape. With the 16-channel A14B VAE the+ * output is a ``[1, 20, T_lat, height // 8, width // 8]`` condition (4-ch+ * first-frame mask + 16-ch image latents) that the denoise loop concatenates+ * to the noise latents each step, producing the 36-channel input the+ * I2V-A14B transformer expects. With the 48-channel TI2V-5B VAE the output+ * is a ``[1, 48, 1, height // 16, width // 16]`` condition that the denoise+ * loop blends into the noisy latents at every step.+ *+ * For image (single-frame) I2V leave ``num_frames=1`` (T_lat=1). For A14B+ * video I2V set ``num_frames`` to match the value on the video-denoise node+ * (e.g. 81 for the Wan 2.2 reference defaults); TI2V-5B always uses the+ * single-frame condition.+ *+ * Supply an optional ``end_image`` for **first-last-frame interpolation+ * (FLF2V)** — the model then interpolates the motion from ``image`` (first+ * frame) to ``end_image`` (final frame). FLF2V is I2V-A14B video only+ * (``num_frames > 1``); it is not supported for TI2V-5B or single-frame I2V.+ *+ * For T2V (no reference image), omit this node entirely.+ */+ WanRefImageEncoderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Reference image to condition on (the first frame).+ * @default null+ */+ image?: components["schemas"]["ImageField"] | null;+ /**+ * VAE+ * @description VAE+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * Width+ * @description Width to resize the reference image to (must match denoise width).+ * @default 1024+ */+ width?: number;+ /**+ * Height+ * @description Height to resize the reference image to (must match denoise height).+ * @default 1024+ */+ height?: number;+ /**+ * Number of Frames+ * @description Pixel-frame count to build the condition for. Use 1 for single-frame image I2V. For video I2V, set this to match the video-denoise node's num_frames (and ensure (num_frames - 1) %% 4 == 0, e.g. 81).+ * @default 1+ */+ num_frames?: number;+ /**+ * End Image (FLF2V)+ * @description Optional end frame for first-last-frame interpolation (FLF2V). When set, the video interpolates from the reference image (first frame) to this image (final frame). I2V-A14B video only (num_frames > 1); not supported for TI2V-5B or single-frame I2V.+ * @default null+ */+ end_image?: components["schemas"]["ImageField"] | null;+ /**+ * type+ * @default wan_ref_image_encoder+ * @constant+ */+ type: "wan_ref_image_encoder";+ };+ /**+ * WanRefImageOutput+ * @description Output of a Wan 2.2 reference-image VAE-encoder.+ */+ WanRefImageOutput: {+ /**+ * Reference Image+ * @description VAE-latent reference-image conditioning for Wan 2.2 I2V.+ */+ ref_image: components["schemas"]["WanRefImageConditioningField"];+ /**+ * type+ * @default wan_ref_image_output+ * @constant+ */+ type: "wan_ref_image_output";+ };+ /**+ * WanT5EncoderField+ * @description Field for the UMT5-XXL text encoder used by Wan 2.2 models.+ */+ WanT5EncoderField: {+ /** @description Info to load tokenizer submodel */+ tokenizer: components["schemas"]["ModelIdentifierField"];+ /** @description Info to load text_encoder submodel */+ text_encoder: components["schemas"]["ModelIdentifierField"];+ /**+ * Loras+ * @description LoRAs to apply on model loading+ */+ loras?: components["schemas"]["LoRAField"][];+ };+ /**+ * WanT5Encoder_WanT5Encoder_Config+ * @description UMT5-XXL encoder in diffusers folder layout.+ *+ * Accepts either:+ * - A directory containing ``text_encoder/`` (and typically ``tokenizer/``) ─ the+ * shape produced by ``Wan-AI/Wan2.2-T2V-A14B::text_encoder+tokenizer``.+ * - A bare ``text_encoder/`` directory whose own ``config.json`` declares+ * ``model_type: umt5``.+ */+ WanT5Encoder_WanT5Encoder_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;+ /**+ * Base+ * @default any+ * @constant+ */+ base: "any";+ /**+ * Type+ * @default wan_t5_encoder+ * @constant+ */+ type: "wan_t5_encoder";+ /**+ * Format+ * @default wan_t5_encoder+ * @constant+ */+ format: "wan_t5_encoder";+ /**+ * Cpu Only+ * @description Whether this model should run on CPU only+ */+ cpu_only: boolean | null;+ };+ /**+ * Wan 2.2 TI2V Ideal Dimensions (5B)+ * @description Ideal dimensions for the Wan 2.2 TI2V-5B model.+ *+ * Use this node for TI2V-5B only. For the A14B models (I2V-A14B / T2V-A14B) use+ * "Wan 2.2 I2V Ideal Dimensions" instead — those need multiples of 16, and this+ * node's multiples-of-32 dims would overshoot their pixel grid.+ *+ * Identical to the A14B node but snaps each dimension to a multiple of 32 instead+ * of 16: the Wan 2.2-VAE used by TI2V-5B applies 16x spatial compression and the+ * transformer adds a 2x patch on top, so pixel dims must divide by 32 for the+ * patchify step. Wire from ``Image Primitive``'s width/height outputs and into+ * the matching ``wan_denoise`` inputs.+ */+ WanTI2VIdealDimensionsInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Width+ * @description Source image width in pixels.+ * @default 1024+ */+ width?: number;+ /**+ * Height+ * @description Source image height in pixels.+ * @default 1024+ */+ height?: number;+ /**+ * Target Resolution+ * @description Short-side resolution preset. 480p and 720p are Wan 2.2's native training resolutions; 1080p works but is extrapolation and costs ~2.25x the memory of 720p.+ * @default 720p+ * @enum {string}+ */+ target_resolution?: "480p" | "720p" | "1080p";+ /**+ * Rounding+ * @description How to snap each dimension to a multiple of 32. 'floor' rounds down — safest for VRAM, guaranteed not to exceed the unsnapped target. 'ceiling' rounds up. 'nearest' minimizes aspect-ratio drift (default).+ * @default nearest+ * @enum {string}+ */+ rounding?: "nearest" | "floor" | "ceiling";+ /**+ * type+ * @default wan_ti2v_ideal_dimensions+ * @constant+ */+ type: "wan_ti2v_ideal_dimensions";+ };+ /**+ * Prompt - Wan 2.2+ * @description Encodes a text prompt for Wan 2.2 using the UMT5-XXL encoder.+ *+ * Output is the encoder's last hidden state (shape: [seq_len=512, 4096]) plus+ * an attention mask marking valid (non-padding) tokens. The Wan transformer+ * consumes these directly as ``encoder_hidden_states``.+ */+ WanTextEncoderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Prompt+ * @description Text prompt for Wan 2.2.+ * @default null+ */+ prompt?: string | null;+ /**+ * UMT5-XXL Encoder+ * @description UMT5-XXL tokenizer and text encoder for Wan 2.2+ * @default null+ */+ wan_t5_encoder?: components["schemas"]["WanT5EncoderField"] | null;+ /**+ * type+ * @default wan_text_encoder+ * @constant+ */+ type: "wan_text_encoder";+ };+ /**+ * WanTransformerField+ * @description Transformer field for Wan 2.2 models.+ *+ * Wan 2.2 A14B is a Mixture-of-Experts model with two transformer experts:+ * a high-noise expert (active at large timesteps) and a low-noise expert+ * (active at small timesteps). TI2V-5B is a single-transformer model and only+ * populates ``transformer``.+ *+ * ``boundary_ratio`` matches Diffusers' ``WanPipeline`` semantics: it's the+ * boundary timestep as a fraction of ``num_train_timesteps`` (typically 1000),+ * so ``boundary_ratio=0.875`` means the high-noise expert handles t >= 875 and+ * the low-noise expert handles t < 875.+ */+ WanTransformerField: {+ /** @description Primary transformer submodel. For A14B this is the high-noise expert. */+ transformer: components["schemas"]["ModelIdentifierField"];+ /**+ * @description Low-noise transformer expert (Wan 2.2 A14B only). None for TI2V-5B.+ * @default null+ */+ transformer_low_noise?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Loras+ * @description LoRAs to apply to the primary transformer. For A14B applied to the high-noise expert.+ */+ loras?: components["schemas"]["LoRAField"][];+ /**+ * Loras Low Noise+ * @description LoRAs to apply to the low-noise expert (Wan 2.2 A14B). The Wan LoRA loader routes 'both'- and 'low'-targeted LoRAs here; if empty, no LoRAs are applied to the low-noise expert (a 'high'-targeted LoRA must not leak onto it).+ */+ loras_low_noise?: components["schemas"]["LoRAField"][];+ /**+ * Boundary Ratio+ * @description Boundary timestep as a fraction of num_train_timesteps (Wan 2.2 A14B only). High-noise expert: t >= boundary_ratio * num_train_timesteps. Low-noise expert: t below. Ignored for TI2V-5B.+ * @default 0.875+ */+ boundary_ratio?: number;+ };+ /**+ * WanVariantType+ * @description Wan 2.2 model variants.+ *+ * All variants are used for image generation at num_frames=1. The A14B family+ * is a Mixture-of-Experts (high-noise + low-noise) totalling ~28B params; the+ * T2V sub-variant takes text only, while the I2V sub-variant additionally+ * conditions on a reference image (encoded by the VAE and concatenated to the+ * noise latents along the channel dim — its transformer has ``in_channels=36``+ * instead of ``16``). TI2V-5B is a single ~5B transformer with a+ * higher-compression VAE (z_dim=48).+ * @enum {string}+ */+ WanVariantType: "t2v_a14b" | "i2v_a14b" | "ti2v_5b";+ /**+ * Denoise Video - Wan 2.2+ * @description Run the Wan 2.2 denoising loop on a multi-frame latent tensor.+ *+ * The output is a 5D ``[1, C, T_lat, H/8, W/8]`` latent tensor ready for+ * :class:`WanLatentsToVideoInvocation` to VAE-decode and encode as MP4.+ *+ * Mirrors :class:`WanDenoiseInvocation` for the per-step logic (CFG, MoE+ * expert swap at the boundary timestep, LoRA patching, scheduler selection).+ * Differences from the image denoise:+ *+ * * The noise tensor has a real temporal dim built from ``num_frames``.+ * * The I2V condition is built across all latent frames (frame 0+ * conditioned, rest zero) via+ * :func:`encode_reference_image_to_video_condition` upstream — the+ * ``ref_image`` field on this node carries a tensor of shape+ * ``[1, 20, T_lat, H_lat, W_lat]`` instead of ``[1, 20, 1, ...]``.+ * * No ``denoising_start`` / ``denoising_end`` / initial-latents inputs.+ * The image denoise node uses those for img2img (noise injection on an+ * existing latent), but image-conditioned video generation flows through+ * the reference-frame conditioning mechanism instead — the first frame+ * drives subsequent frames at every step, so a partial-schedule run from+ * an initial latent has no analogue here. Run the schedule from t=1+ * to t=0 every time. The base ``WanDenoiseInvocation`` still handles+ * the img2img case for stills.+ */+ WanVideoDenoiseInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Transformer+ * @description Wan transformer field. Supported: T2V-A14B / I2V-A14B (dual-expert) and TI2V-5B (single-expert, handles both T2V and I2V). All three accept a Reference Image input for image-to-video; A14B uses the 36-channel concat scheme while TI2V-5B uses the expand_timesteps first-frame-mask blend.+ * @default null+ */+ transformer?: components["schemas"]["WanTransformerField"] | null;+ /**+ * @description Positive conditioning tensor+ * @default null+ */+ positive_conditioning?: components["schemas"]["WanConditioningField"] | null;+ /**+ * @description Negative conditioning tensor+ * @default null+ */+ negative_conditioning?: components["schemas"]["WanConditioningField"] | null;+ /**+ * Reference Image+ * @description Reference-image (VAE-latent) conditioning for Wan 2.2 I2V.+ * @default null+ */+ ref_image?: components["schemas"]["WanRefImageConditioningField"] | null;+ /**+ * Guidance Scale+ * @description Classifier-free guidance scale. Wan 2.2 video reference uses 5.0 for the high-noise expert and 4.0 for the low-noise expert.+ * @default 5+ */+ guidance_scale?: number;+ /**+ * Guidance Scale (Low Noise)+ * @description Optional separate CFG scale for the low-noise expert (Wan 2.2 A14B only). Values below 1.0 fall back to the primary 'Guidance Scale'.+ * @default 4+ */+ guidance_scale_low_noise?: number | null;+ /**+ * Width+ * @description Width of the generated video.+ * @default 832+ */+ width?: number;+ /**+ * Height+ * @description Height of the generated video.+ * @default 480+ */+ height?: number;+ /**+ * Number of Frames+ * @description Number of output frames. Must satisfy (num_frames - 1) %% 4 == 0 so the latent temporal dim divides cleanly. Wan 2.2 was trained at 81 frames @ 16 FPS (~5 s).+ * @default 81+ */+ num_frames?: number;+ /**+ * Steps+ * @description Number of denoising steps.+ * @default 40+ */+ steps?: number;+ /**+ * Seed+ * @description Randomness seed for reproducibility.+ * @default 0+ */+ seed?: number;+ /**+ * type+ * @default wan_video_denoise+ * @constant+ */+ type: "wan_video_denoise";+ };+ /** WildcardChanges */+ WildcardChanges: {+ /**+ * Name+ * @description The wildcard's new name.+ */+ name?: string | null;+ /**+ * Values+ * @description The wildcard's new values.+ */+ values?: string[] | null;+ };+ /** WildcardRecordDTO */+ WildcardRecordDTO: {+ /**+ * Name+ * @description The wildcard's name, referenced in a prompt as `__name__`.+ */+ name: string;+ /**+ * Values+ * @description The values this wildcard expands to.+ */+ values: string[];+ /**+ * Id+ * @description The wildcard ID.+ */+ id: string;+ /**+ * User Id+ * @description The user who owns this wildcard.+ */+ user_id: string;+ };+ /** WildcardWithoutId */+ WildcardWithoutId: {+ /**+ * Name+ * @description The wildcard's name, referenced in a prompt as `__name__`.+ */+ name: string;+ /**+ * Values+ * @description The values this wildcard expands to.+ */+ values: string[];+ };+ /** Workflow */+ Workflow: {+ /**+ * Name+ * @description The name of the workflow.+ */+ name: string;+ /**+ * Author+ * @description The author of the workflow.+ */+ author: string;+ /**+ * Description+ * @description The description of the workflow.+ */+ description: string;+ /**+ * Version+ * @description The version of the workflow.+ */+ version: string;+ /**+ * Contact+ * @description The contact of the workflow.+ */+ contact: string;+ /**+ * Tags+ * @description The tags of the workflow.+ */+ tags: string;+ /**+ * Notes+ * @description The notes of the workflow.+ */+ notes: string;+ /**+ * Exposedfields+ * @description The exposed fields of the workflow.+ */+ exposedFields: components["schemas"]["ExposedField"][];+ /** @description The meta of the workflow. */+ meta: components["schemas"]["WorkflowMeta"];+ /**+ * Nodes+ * @description The nodes of the workflow.+ */+ nodes: {+ [key: string]: components["schemas"]["JsonValue"];+ }[];+ /**+ * Edges+ * @description The edges of the workflow.+ */+ edges: {+ [key: string]: components["schemas"]["JsonValue"];+ }[];+ /**+ * Form+ * @description The form of the workflow.+ */+ form?: {+ [key: string]: components["schemas"]["JsonValue"];+ } | null;+ /**+ * Id+ * @description The id of the workflow.+ */+ id: string;+ };+ /**+ * WorkflowAccessRevokedEvent+ * @description Event model for workflow_access_revoked.+ */+ WorkflowAccessRevokedEvent: {+ /**+ * Timestamp+ * @description The timestamp of the event+ */+ timestamp: number;+ /**+ * Workflow Id+ * @description The ID of the workflow+ */+ workflow_id: string;+ /**+ * User Id+ * @description The owner of the workflow+ */+ user_id: string;+ };+ /** WorkflowAndGraphResponse */+ WorkflowAndGraphResponse: {+ /**+ * Workflow+ * @description The workflow used to generate the image, as stringified JSON+ */+ workflow: string | null;+ /**+ * Graph+ * @description The graph used to generate the image, as stringified JSON+ */+ graph: string | null;+ };+ /** WorkflowCallCompatibility */+ WorkflowCallCompatibility: {+ /**+ * Is Callable+ * @description Whether the workflow can currently be executed by call_saved_workflow.+ */+ is_callable: boolean;+ /** @description Structured compatibility result. */+ reason: components["schemas"]["WorkflowCallCompatibilityReason"];+ /**+ * Message+ * @description Human-readable compatibility detail when unavailable.+ */+ message?: string | null;+ };+ /**+ * WorkflowCallCompatibilityReason+ * @enum {string}+ */+ WorkflowCallCompatibilityReason: "ok" | "missing_workflow_return" | "multiple_workflow_return" | "unsupported_node" | "unsupported_batch_input" | "invalid_graph" | "invalid_inputs" | "exceeds_capacity" | "unknown";+ /**+ * WorkflowCallExecution+ * @description Tracks one parent/child workflow-call relationship and its lifecycle.+ */+ WorkflowCallExecution: {+ /**+ * Id+ * @description The workflow-call execution id.+ */+ id?: string;+ /**+ * Parent Session Id+ * @description The parent graph execution state id.+ */+ parent_session_id: string;+ /**+ * Child Session Id+ * @description The child graph execution state id, if any.+ */+ child_session_id?: string | null;+ /**+ * Prepared Call Node Id+ * @description The prepared exec node id for the parent call site.+ */+ prepared_call_node_id: string;+ /**+ * Source Call Node Id+ * @description The source graph node id for the parent call site.+ */+ source_call_node_id: string;+ /**+ * Workflow Id+ * @description The saved workflow being called.+ */+ workflow_id: string;+ /**+ * Depth+ * @description The 1-based depth of this call frame.+ */+ depth: number;+ /**+ * Status+ * @description The current workflow-call lifecycle state.+ * @enum {string}+ */+ status: "waiting_for_child" | "running_child" | "completed" | "failed";+ /**+ * Error Message+ * @description Failure reason, if the call failed.+ */+ error_message?: string | null;+ /**+ * Child Session Ids+ * @description All child graph execution state ids.+ */+ child_session_ids?: string[];+ /**+ * Child Item Ids+ * @description Child queue item ids in enqueue order.+ */+ child_item_ids?: number[];+ /**+ * Expected Child Count+ * @description The number of child executions for this call.+ * @default 1+ */+ expected_child_count?: number;+ /**+ * Completed Child Item Ids+ * @description The child queue item ids whose workflow_return outputs have been aggregated.+ */+ completed_child_item_ids?: number[];+ /**+ * Aggregated Values+ * @description The aggregated workflow_return values accumulated from child executions.+ */+ aggregated_values?: {+ [key: string]: unknown[];+ };+ /**+ * Child Outputs+ * @description Workflow return values keyed by child queue item id.+ */+ child_outputs?: {+ [key: string]: {+ [key: string]: unknown;+ };+ };+ };+ /**+ * WorkflowCallFrame+ * @description Represents one workflow-call frame in a nested call chain.+ */+ WorkflowCallFrame: {+ /**+ * Prepared Call Node Id+ * @description The prepared exec node id for the call site.+ */+ prepared_call_node_id: string;+ /**+ * Source Call Node Id+ * @description The source graph node id for the call site.+ */+ source_call_node_id: string;+ /**+ * Workflow Id+ * @description The saved workflow being called.+ */+ workflow_id: string;+ /**+ * Depth+ * @description The 1-based depth of this call frame.+ */+ depth: number;+ };+ /**+ * WorkflowCallParentRef+ * @description Reference from a child execution state back to its parent workflow-call relationship.+ */+ WorkflowCallParentRef: {+ /**+ * Workflow Call Id+ * @description The workflow-call execution id.+ */+ workflow_call_id: string;+ /**+ * Parent Session Id+ * @description The parent graph execution state id.+ */+ parent_session_id: string;+ /**+ * Prepared Call Node Id+ * @description The prepared exec node id for the parent call site.+ */+ prepared_call_node_id: string;+ /**+ * Source Call Node Id+ * @description The source graph node id for the parent call site.+ */+ source_call_node_id: string;+ /**+ * Workflow Id+ * @description The saved workflow being called.+ */+ workflow_id: string;+ /**+ * Depth+ * @description The 1-based depth of this call frame.+ */+ depth: number;+ };+ /**+ * WorkflowCategory+ * @enum {string}+ */+ WorkflowCategory: "user" | "default";+ /**+ * WorkflowCreatedEvent+ * @description Event model for workflow_created+ */+ WorkflowCreatedEvent: {+ /**+ * Timestamp+ * @description The timestamp of the event+ */+ timestamp: number;+ /**+ * Workflow Id+ * @description The ID of the workflow+ */+ workflow_id: string;+ /**+ * User Id+ * @description The owner of the workflow+ */+ user_id: string;+ /**+ * Is Public+ * @description Whether the workflow is shared with all users+ */+ is_public: boolean;+ };+ /**+ * WorkflowDeletedEvent+ * @description Event model for workflow_deleted+ */+ WorkflowDeletedEvent: {+ /**+ * Timestamp+ * @description The timestamp of the event+ */+ timestamp: number;+ /**+ * Workflow Id+ * @description The ID of the workflow+ */+ workflow_id: string;+ /**+ * User Id+ * @description The owner of the workflow+ */+ user_id: string;+ /**+ * Is Public+ * @description Whether the workflow was shared when it was deleted+ */+ is_public: boolean;+ };+ /** WorkflowMeta */+ WorkflowMeta: {+ /**+ * Version+ * @description The version of the workflow schema.+ */+ version: string;+ /** @description The category of the workflow (user or default). */+ category: components["schemas"]["WorkflowCategory"];+ };+ /** WorkflowRecordDTO */+ WorkflowRecordDTO: {+ /**+ * Workflow Id+ * @description The id of the workflow.+ */+ workflow_id: string;+ /**+ * Name+ * @description The name of the workflow.+ */+ name: string;+ /**+ * Created At+ * @description The created timestamp of the workflow.+ */+ created_at: string;+ /**+ * Updated At+ * @description The updated timestamp of the workflow.+ */+ updated_at: string;+ /**+ * Opened At+ * @description The opened timestamp of the workflow.+ */+ opened_at?: string | null;+ /**+ * Last Run At+ * @description The timestamp of the last completed run of this workflow.+ */+ last_run_at?: string | null;+ /**+ * User Id+ * @description The id of the user who owns this workflow.+ */+ user_id: string;+ /**+ * Is Public+ * @description Whether this workflow is shared with all users.+ */+ is_public: boolean;+ /**+ * Revision+ * @description Monotonic content revision; every write of the workflow document increments it.+ */+ revision: number;+ /** @description The workflow. */+ workflow: components["schemas"]["Workflow"];+ };+ /** WorkflowRecordListItemWithThumbnailDTO */+ WorkflowRecordListItemWithThumbnailDTO: {+ /**+ * Workflow Id+ * @description The id of the workflow.+ */+ workflow_id: string;+ /**+ * Name+ * @description The name of the workflow.+ */+ name: string;+ /**+ * Created At+ * @description The created timestamp of the workflow.+ */+ created_at: string;+ /**+ * Updated At+ * @description The updated timestamp of the workflow.+ */+ updated_at: string;+ /**+ * Opened At+ * @description The opened timestamp of the workflow.+ */+ opened_at?: string | null;+ /**+ * Last Run At+ * @description The timestamp of the last completed run of this workflow.+ */+ last_run_at?: string | null;+ /**+ * User Id+ * @description The id of the user who owns this workflow.+ */+ user_id: string;+ /**+ * Is Public+ * @description Whether this workflow is shared with all users.+ */+ is_public: boolean;+ /**+ * Revision+ * @description Monotonic content revision; every write of the workflow document increments it.+ */+ revision: number;+ /**+ * Description+ * @description The description of the workflow.+ */+ description: string;+ /** @description The description of the workflow. */+ category: components["schemas"]["WorkflowCategory"];+ /**+ * Tags+ * @description The tags of the workflow.+ */+ tags: string;+ /**+ * Thumbnail Url+ * @description The URL of the workflow thumbnail.+ */+ thumbnail_url?: string | null;+ /** @description Whether this workflow is currently callable by call_saved_workflow. */+ call_saved_workflow_compatibility?: components["schemas"]["WorkflowCallCompatibility"] | null;+ };+ /**+ * WorkflowRecordOrderBy+ * @description The order by options for workflow records+ * @enum {string}+ */+ WorkflowRecordOrderBy: "created_at" | "updated_at" | "opened_at" | "name" | "is_public";+ /** WorkflowRecordWithThumbnailDTO */+ WorkflowRecordWithThumbnailDTO: {+ /**+ * Workflow Id+ * @description The id of the workflow.+ */+ workflow_id: string;+ /**+ * Name+ * @description The name of the workflow.+ */+ name: string;+ /**+ * Created At+ * @description The created timestamp of the workflow.+ */+ created_at: string;+ /**+ * Updated At+ * @description The updated timestamp of the workflow.+ */+ updated_at: string;+ /**+ * Opened At+ * @description The opened timestamp of the workflow.+ */+ opened_at?: string | null;+ /**+ * Last Run At+ * @description The timestamp of the last completed run of this workflow.+ */+ last_run_at?: string | null;+ /**+ * User Id+ * @description The id of the user who owns this workflow.+ */+ user_id: string;+ /**+ * Is Public+ * @description Whether this workflow is shared with all users.+ */+ is_public: boolean;+ /**+ * Revision+ * @description Monotonic content revision; every write of the workflow document increments it.+ */+ revision: number;+ /** @description The workflow. */+ workflow: components["schemas"]["Workflow"];+ /**+ * Thumbnail Url+ * @description The URL of the workflow thumbnail.+ */+ thumbnail_url?: string | null;+ /** @description Whether this workflow is currently callable by call_saved_workflow. */+ call_saved_workflow_compatibility?: components["schemas"]["WorkflowCallCompatibility"] | null;+ };+ /**+ * Get Workflow Return Value+ * @description Extracts one named value from a callable workflow return.+ */+ WorkflowReturnGetInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default false+ */+ use_cache?: boolean;+ /**+ * Values+ * @description The named workflow return values.+ * @default {}+ */+ values?: {+ [key: string]: unknown;+ };+ /**+ * Key+ * @description The return key to extract.+ * @default+ */+ key?: string;+ /**+ * type+ * @default workflow_return_get+ * @constant+ */+ type: "workflow_return_get";+ };+ /**+ * WorkflowReturnGetOutput+ * @description A value extracted from named workflow return values.+ */+ WorkflowReturnGetOutput: {+ /**+ * Value+ * @description The extracted workflow return value.+ */+ value: unknown;+ /**+ * type+ * @default workflow_return_get_output+ * @constant+ */+ type: "workflow_return_get_output";+ };+ /**+ * Workflow Return+ * @description Defines the explicit named result returned by a callable workflow.+ */+ WorkflowReturnInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default false+ */+ use_cache?: boolean;+ /**+ * Values+ * @description The named values returned to a calling workflow.+ * @default []+ */+ values?: components["schemas"]["WorkflowReturnValueField"] | components["schemas"]["WorkflowReturnValueField"][];+ /**+ * type+ * @default workflow_return+ * @constant+ */+ type: "workflow_return";+ };+ /**+ * WorkflowReturnOutput+ * @description The explicit named values returned from a callable workflow.+ */+ WorkflowReturnOutput: {+ /**+ * Values+ * @description The workflow return values, keyed by return name.+ * @default {}+ */+ values: {+ [key: string]: unknown;+ };+ /**+ * type+ * @default workflow_return_output+ * @constant+ */+ type: "workflow_return_output";+ };+ /**+ * WorkflowReturnValueField+ * @description One named workflow return value.+ */+ WorkflowReturnValueField: {+ /**+ * Key+ * @description The workflow return key.+ */+ key: string;+ /**+ * Value+ * @description The workflow return value.+ * @default null+ */+ value?: unknown;+ };+ /**+ * Workflow Return Value+ * @description Creates one named value for a callable workflow return.+ */+ WorkflowReturnValueInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default false+ */+ use_cache?: boolean;+ /**+ * Key+ * @description The return key.+ * @default+ */+ key?: string;+ /**+ * Value+ * @description The value returned under this key.+ * @default null+ */+ value?: unknown | null;+ /**+ * type+ * @default workflow_return_value+ * @constant+ */+ type: "workflow_return_value";+ };+ /**+ * WorkflowReturnValueOutput+ * @description A named workflow return value.+ */+ WorkflowReturnValueOutput: {+ /**+ * Return Value+ * @description The named workflow return value.+ */+ value: components["schemas"]["WorkflowReturnValueField"];+ /**+ * type+ * @default workflow_return_value_output+ * @constant+ */+ type: "workflow_return_value_output";+ };+ /**+ * WorkflowUpdatedEvent+ * @description Event model for workflow_updated+ */+ WorkflowUpdatedEvent: {+ /**+ * Timestamp+ * @description The timestamp of the event+ */+ timestamp: number;+ /**+ * Workflow Id+ * @description The ID of the workflow+ */+ workflow_id: string;+ /**+ * User Id+ * @description The owner of the workflow+ */+ user_id: string;+ /**+ * Old Is Public+ * @description Whether the workflow was shared before the update+ */+ old_is_public: boolean;+ /**+ * New Is Public+ * @description Whether the workflow is shared after the update+ */+ new_is_public: boolean;+ };+ /** WorkflowWithoutID */+ WorkflowWithoutID: {+ /**+ * Name+ * @description The name of the workflow.+ */+ name: string;+ /**+ * Author+ * @description The author of the workflow.+ */+ author: string;+ /**+ * Description+ * @description The description of the workflow.+ */+ description: string;+ /**+ * Version+ * @description The version of the workflow.+ */+ version: string;+ /**+ * Contact+ * @description The contact of the workflow.+ */+ contact: string;+ /**+ * Tags+ * @description The tags of the workflow.+ */+ tags: string;+ /**+ * Notes+ * @description The notes of the workflow.+ */+ notes: string;+ /**+ * Exposedfields+ * @description The exposed fields of the workflow.+ */+ exposedFields: components["schemas"]["ExposedField"][];+ /** @description The meta of the workflow. */+ meta: components["schemas"]["WorkflowMeta"];+ /**+ * Nodes+ * @description The nodes of the workflow.+ */+ nodes: {+ [key: string]: components["schemas"]["JsonValue"];+ }[];+ /**+ * Edges+ * @description The edges of the workflow.+ */+ edges: {+ [key: string]: components["schemas"]["JsonValue"];+ }[];+ /**+ * Form+ * @description The form of the workflow.+ */+ form?: {+ [key: string]: components["schemas"]["JsonValue"];+ } | null;+ };+ /**+ * ZImageConditioningField+ * @description A Z-Image conditioning tensor primitive value+ */+ ZImageConditioningField: {+ /**+ * Conditioning Name+ * @description The name of conditioning tensor+ */+ conditioning_name: string;+ /**+ * @description The mask associated with this conditioning tensor for regional prompting. Excluded regions should be set to False, included regions should be set to True.+ * @default null+ */+ mask?: components["schemas"]["TensorField"] | null;+ };+ /**+ * ZImageConditioningOutput+ * @description Base class for nodes that output a Z-Image text conditioning tensor.+ */+ ZImageConditioningOutput: {+ /** @description Conditioning tensor */+ conditioning: components["schemas"]["ZImageConditioningField"];+ /**+ * type+ * @default z_image_conditioning_output+ * @constant+ */+ type: "z_image_conditioning_output";+ };+ /**+ * ZImageControlField+ * @description A Z-Image control conditioning field for spatial control (Canny, HED, Depth, Pose, MLSD).+ */+ ZImageControlField: {+ /**+ * Image Name+ * @description The name of the preprocessed control image+ */+ image_name: string;+ /** @description The Z-Image ControlNet adapter model */+ control_model: components["schemas"]["ModelIdentifierField"];+ /**+ * Control Context Scale+ * @description The strength of the control signal. Recommended range: 0.65-0.80.+ * @default 0.75+ */+ control_context_scale?: number;+ /**+ * Begin Step Percent+ * @description When the control is first applied (% of total steps)+ * @default 0+ */+ begin_step_percent?: number;+ /**+ * End Step Percent+ * @description When the control is last applied (% of total steps)+ * @default 1+ */+ end_step_percent?: number;+ };+ /**+ * Z-Image ControlNet+ * @description Configure Z-Image ControlNet for spatial conditioning.+ *+ * Takes a preprocessed control image (e.g., Canny edges, depth map, pose)+ * and a Z-Image ControlNet adapter model to enable spatial control.+ *+ * Supports 5 control modes: Canny, HED, Depth, Pose, MLSD.+ * Recommended control_context_scale: 0.65-0.80.+ */+ ZImageControlInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description The preprocessed control image (Canny, HED, Depth, Pose, or MLSD)+ * @default null+ */+ image?: components["schemas"]["ImageField"] | null;+ /**+ * Control Model+ * @description ControlNet model to load+ * @default null+ */+ control_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Control Scale+ * @description Strength of the control signal. Recommended range: 0.65-0.80.+ * @default 0.75+ */+ control_context_scale?: number;+ /**+ * Begin Step Percent+ * @description When the control is first applied (% of total steps)+ * @default 0+ */+ begin_step_percent?: number;+ /**+ * End Step Percent+ * @description When the control is last applied (% of total steps)+ * @default 1+ */+ end_step_percent?: number;+ /**+ * type+ * @default z_image_control+ * @constant+ */+ type: "z_image_control";+ };+ /**+ * ZImageControlOutput+ * @description Z-Image Control output containing control configuration.+ */+ ZImageControlOutput: {+ /** @description Z-Image control conditioning */+ control: components["schemas"]["ZImageControlField"];+ /**+ * type+ * @default z_image_control_output+ * @constant+ */+ type: "z_image_control_output";+ };+ /**+ * Denoise - Z-Image+ * @description Run the denoising process with a Z-Image model.+ *+ * Supports regional prompting by connecting multiple conditioning inputs with masks.+ */+ ZImageDenoiseInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * @description Noise tensor+ * @default null+ */+ noise?: components["schemas"]["LatentsField"] | null;+ /**+ * @description A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.+ * @default null+ */+ denoise_mask?: components["schemas"]["DenoiseMaskField"] | null;+ /**+ * Denoising Start+ * @description When to start denoising, expressed a percentage of total steps+ * @default 0+ */+ denoising_start?: number;+ /**+ * Denoising End+ * @description When to stop denoising, expressed a percentage of total steps+ * @default 1+ */+ denoising_end?: number;+ /**+ * Add Noise+ * @description Add noise based on denoising start.+ * @default true+ */+ add_noise?: boolean;+ /**+ * Transformer+ * @description Z-Image model (Transformer) to load+ * @default null+ */+ transformer?: components["schemas"]["TransformerField"] | null;+ /**+ * Positive Conditioning+ * @description Positive conditioning tensor+ * @default null+ */+ positive_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ /**+ * Negative Conditioning+ * @description Negative conditioning tensor+ * @default null+ */+ negative_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ /**+ * Guidance Scale+ * @description Guidance scale for classifier-free guidance. 1.0 = no CFG (recommended for Z-Image-Turbo). Values > 1.0 amplify guidance.+ * @default 1+ */+ guidance_scale?: number;+ /**+ * Width+ * @description Width of the generated image.+ * @default 1024+ */+ width?: number;+ /**+ * Height+ * @description Height of the generated image.+ * @default 1024+ */+ height?: number;+ /**+ * Steps+ * @description Number of denoising steps. 8 recommended for Z-Image-Turbo.+ * @default 8+ */+ steps?: number;+ /**+ * Seed+ * @description Randomness seed for reproducibility.+ * @default 0+ */+ seed?: number;+ /**+ * @description Z-Image control conditioning for spatial control (Canny, HED, Depth, Pose, MLSD).+ * @default null+ */+ control?: components["schemas"]["ZImageControlField"] | null;+ /**+ * @description VAE Required for control conditioning.+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * Shift+ * @description Override the timestep shift (mu) for the sigma schedule. Leave blank to auto-calculate based on image dimensions (recommended). Lower values (~0.5) produce less noise shifting, higher values (~1.15) produce more.+ * @default null+ */+ shift?: number | null;+ /**+ * Scheduler+ * @description Scheduler (sampler) for the denoising process. Euler is the default and recommended. Heun is 2nd-order (better quality, 2x slower). LCM works with Turbo only (not Base).+ * @default euler+ * @enum {string}+ */+ scheduler?: "euler" | "heun" | "lcm";+ /**+ * type+ * @default z_image_denoise+ * @constant+ */+ type: "z_image_denoise";+ };+ /**+ * Denoise - Z-Image + Metadata+ * @description Run denoising process with a Z-Image transformer model + metadata.+ */+ ZImageDenoiseMetaInvocation: {+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * @description Noise tensor+ * @default null+ */+ noise?: components["schemas"]["LatentsField"] | null;+ /**+ * @description A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.+ * @default null+ */+ denoise_mask?: components["schemas"]["DenoiseMaskField"] | null;+ /**+ * Denoising Start+ * @description When to start denoising, expressed a percentage of total steps+ * @default 0+ */+ denoising_start?: number;+ /**+ * Denoising End+ * @description When to stop denoising, expressed a percentage of total steps+ * @default 1+ */+ denoising_end?: number;+ /**+ * Add Noise+ * @description Add noise based on denoising start.+ * @default true+ */+ add_noise?: boolean;+ /**+ * Transformer+ * @description Z-Image model (Transformer) to load+ * @default null+ */+ transformer?: components["schemas"]["TransformerField"] | null;+ /**+ * Positive Conditioning+ * @description Positive conditioning tensor+ * @default null+ */+ positive_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ /**+ * Negative Conditioning+ * @description Negative conditioning tensor+ * @default null+ */+ negative_conditioning?: components["schemas"]["ZImageConditioningField"] | components["schemas"]["ZImageConditioningField"][] | null;+ /**+ * Guidance Scale+ * @description Guidance scale for classifier-free guidance. 1.0 = no CFG (recommended for Z-Image-Turbo). Values > 1.0 amplify guidance.+ * @default 1+ */+ guidance_scale?: number;+ /**+ * Width+ * @description Width of the generated image.+ * @default 1024+ */+ width?: number;+ /**+ * Height+ * @description Height of the generated image.+ * @default 1024+ */+ height?: number;+ /**+ * Steps+ * @description Number of denoising steps. 8 recommended for Z-Image-Turbo.+ * @default 8+ */+ steps?: number;+ /**+ * Seed+ * @description Randomness seed for reproducibility.+ * @default 0+ */+ seed?: number;+ /**+ * @description Z-Image control conditioning for spatial control (Canny, HED, Depth, Pose, MLSD).+ * @default null+ */+ control?: components["schemas"]["ZImageControlField"] | null;+ /**+ * @description VAE Required for control conditioning.+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * Shift+ * @description Override the timestep shift (mu) for the sigma schedule. Leave blank to auto-calculate based on image dimensions (recommended). Lower values (~0.5) produce less noise shifting, higher values (~1.15) produce more.+ * @default null+ */+ shift?: number | null;+ /**+ * Scheduler+ * @description Scheduler (sampler) for the denoising process. Euler is the default and recommended. Heun is 2nd-order (better quality, 2x slower). LCM works with Turbo only (not Base).+ * @default euler+ * @enum {string}+ */+ scheduler?: "euler" | "heun" | "lcm";+ /**+ * type+ * @default z_image_denoise_meta+ * @constant+ */+ type: "z_image_denoise_meta";+ };+ /**+ * Image to Latents - Z-Image+ * @description Generates latents from an image using Z-Image VAE (supports both Diffusers and FLUX VAE).+ */+ ZImageImageToLatentsInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description The image to encode.+ * @default null+ */+ image?: components["schemas"]["ImageField"] | null;+ /**+ * @description VAE+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * type+ * @default z_image_i2l+ * @constant+ */+ type: "z_image_i2l";+ };+ /**+ * Latents to Image - Z-Image+ * @description Generates an image from latents using Z-Image VAE (supports both Diffusers and FLUX VAE).+ */+ ZImageLatentsToImageInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * @description VAE+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * Tiled+ * @description Processing using overlapping tiles (reduce memory consumption)+ * @default false+ */+ tiled?: boolean;+ /**+ * Tile Size+ * @description The tile size for VAE tiling in pixels (image space). If set to 0, the default tile size for the model will be used. Larger tile sizes generally produce better results at the cost of higher memory usage.+ * @default 0+ */+ tile_size?: number;+ /**+ * type+ * @default z_image_l2i+ * @constant+ */+ type: "z_image_l2i";+ };+ /**+ * Apply LoRA Collection - Z-Image+ * @description Applies a collection of LoRAs to a Z-Image transformer.+ */+ ZImageLoRACollectionLoader: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * LoRAs+ * @description LoRA models and weights. May be a single LoRA or collection.+ * @default null+ */+ loras?: components["schemas"]["LoRAField"] | components["schemas"]["LoRAField"][] | null;+ /**+ * Transformer+ * @description Transformer+ * @default null+ */+ transformer?: components["schemas"]["TransformerField"] | null;+ /**+ * Qwen3 Encoder+ * @description Qwen3 tokenizer and text encoder+ * @default null+ */+ qwen3_encoder?: components["schemas"]["Qwen3EncoderField"] | null;+ /**+ * type+ * @default z_image_lora_collection_loader+ * @constant+ */+ type: "z_image_lora_collection_loader";+ };+ /**+ * Apply LoRA - Z-Image+ * @description Apply a LoRA model to a Z-Image transformer and/or Qwen3 text encoder.+ */+ ZImageLoRALoaderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * LoRA+ * @description LoRA model to load+ * @default null+ */+ lora?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Weight+ * @description The weight at which the LoRA is applied to each model+ * @default 0.75+ */+ weight?: number;+ /**+ * Z-Image Transformer+ * @description Transformer+ * @default null+ */+ transformer?: components["schemas"]["TransformerField"] | null;+ /**+ * Qwen3 Encoder+ * @description Qwen3 tokenizer and text encoder+ * @default null+ */+ qwen3_encoder?: components["schemas"]["Qwen3EncoderField"] | null;+ /**+ * type+ * @default z_image_lora_loader+ * @constant+ */+ type: "z_image_lora_loader";+ };+ /**+ * ZImageLoRALoaderOutput+ * @description Z-Image LoRA Loader Output+ */+ ZImageLoRALoaderOutput: {+ /**+ * Z-Image Transformer+ * @description Transformer+ * @default null+ */+ transformer: components["schemas"]["TransformerField"] | null;+ /**+ * Qwen3 Encoder+ * @description Qwen3 tokenizer and text encoder+ * @default null+ */+ qwen3_encoder: components["schemas"]["Qwen3EncoderField"] | null;+ /**+ * type+ * @default z_image_lora_loader_output+ * @constant+ */+ type: "z_image_lora_loader_output";+ };+ /**+ * Main Model - Z-Image+ * @description Loads a Z-Image model, outputting its submodels.+ *+ * Similar to FLUX, you can mix and match components:+ * - Transformer: From Z-Image main model (GGUF quantized or Diffusers format)+ * - VAE: Separate FLUX VAE (shared with FLUX models) or from a Diffusers Z-Image model+ * - Qwen3 Encoder: Separate Qwen3Encoder model or from a Diffusers Z-Image model+ */+ ZImageModelLoaderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Transformer+ * @description Z-Image model (Transformer) to load+ */+ model: components["schemas"]["ModelIdentifierField"];+ /**+ * VAE+ * @description Standalone VAE model. Z-Image uses the same VAE as FLUX (16-channel). If not provided, VAE will be loaded from the Qwen3 Source model.+ * @default null+ */+ vae_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Qwen3 Encoder+ * @description Standalone Qwen3 Encoder model. If not provided, encoder will be loaded from the Qwen3 Source model.+ * @default null+ */+ qwen3_encoder_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * Qwen3 Source+ * @description Z-Image pipeline model to extract VAE and/or Qwen3 encoder from. Use this if you don't have separate VAE/Qwen3 models. Ignored if both VAE and Qwen3 Encoder are provided separately.+ * @default null+ */+ qwen3_source_model?: components["schemas"]["ModelIdentifierField"] | null;+ /**+ * type+ * @default z_image_model_loader+ * @constant+ */+ type: "z_image_model_loader";+ };+ /**+ * ZImageModelLoaderOutput+ * @description Z-Image base model loader output.+ */+ ZImageModelLoaderOutput: {+ /**+ * Transformer+ * @description Transformer+ */+ transformer: components["schemas"]["TransformerField"];+ /**+ * Qwen3 Encoder+ * @description Qwen3 tokenizer and text encoder+ */+ qwen3_encoder: components["schemas"]["Qwen3EncoderField"];+ /**+ * VAE+ * @description VAE+ */+ vae: components["schemas"]["VAEField"];+ /**+ * type+ * @default z_image_model_loader_output+ * @constant+ */+ type: "z_image_model_loader_output";+ };+ /**+ * Latents to Image - Z-Image + PiD (4x SR)+ * @description Decode a Z-Image latent with the PiD pixel-diffusion decoder.+ *+ * Produces a 4x super-resolved image in a single pass (Z-Image decoder is+ * trained on FLUX.1 latents; ``sr_scale=4`` with the FLUX VAE's 8x spatial+ * down-factor gives a 32x linear scale from latent to pixel).+ */+ ZImagePiDDecodeInvocation: {+ /**+ * @description The board to save the image to+ * @default null+ */+ board?: components["schemas"]["BoardField"] | null;+ /**+ * @description Optional metadata to be saved with the image+ * @default null+ */+ metadata?: components["schemas"]["MetadataField"] | null;+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * @description Latents tensor+ * @default null+ */+ latents?: components["schemas"]["LatentsField"] | null;+ /**+ * Prompt+ * @description Text prompt the latent was generated from. PiD conditions on it.+ * @default null+ */+ prompt?: string | null;+ /**+ * Gemma-2 Encoder+ * @description Gemma-2 caption encoder. Required by PiD.+ * @default null+ */+ gemma2_encoder?: components["schemas"]["Gemma2EncoderField"] | null;+ /**+ * PiD Decoder+ * @description PiD FLUX decoder checkpoint.+ * @default null+ */+ pid_decoder?: components["schemas"]["PiDDecoderField"] | null;+ /**+ * VAE+ * @description Z-Image VAE used to read scaling_factor / shift_factor. If omitted, the FLUX.1 fallback constants (0.3611 / 0.1159) are used.+ * @default null+ */+ vae?: components["schemas"]["VAEField"] | null;+ /**+ * Num Inference Steps+ * @description Number of PiD distill steps. The released checkpoints are distilled for 4; the student schedule has only 4 transitions, so higher counts cannot add sampling steps.+ * @default 4+ */+ num_inference_steps?: number;+ /**+ * Seed+ * @description Seed for the PiD decoder's noise.+ * @default 0+ */+ seed?: number;+ /**+ * type+ * @default z_image_pid_decode+ * @constant+ */+ type: "z_image_pid_decode";+ };+ /**+ * Seed Variance Enhancer - Z-Image+ * @description Adds seed-based noise to Z-Image conditioning to increase variance between seeds.+ *+ * Z-Image-Turbo can produce relatively similar images with different seeds,+ * making it harder to explore variations of a prompt. This node implements+ * reproducible, seed-based noise injection into text embeddings to increase+ * visual variation while maintaining reproducibility.+ *+ * The noise strength is auto-calibrated relative to the embedding's standard+ * deviation, ensuring consistent results across different prompts.+ */+ ZImageSeedVarianceEnhancerInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Conditioning+ * @description Conditioning tensor+ * @default null+ */+ conditioning?: components["schemas"]["ZImageConditioningField"] | null;+ /**+ * Seed+ * @description Seed for reproducible noise generation. Different seeds produce different noise patterns.+ * @default 0+ */+ seed?: number;+ /**+ * Strength+ * @description Noise strength as multiplier of embedding std. 0=off, 0.1=subtle, 0.5=strong.+ * @default 0.1+ */+ strength?: number;+ /**+ * Randomize Percent+ * @description Percentage of embedding values to add noise to (1-100). Lower values create more selective noise patterns.+ * @default 50+ */+ randomize_percent?: number;+ /**+ * type+ * @default z_image_seed_variance_enhancer+ * @constant+ */+ type: "z_image_seed_variance_enhancer";+ };+ /**+ * Prompt - Z-Image+ * @description Encodes and preps a prompt for a Z-Image image.+ *+ * Supports regional prompting by connecting a mask input.+ */+ ZImageTextEncoderInvocation: {+ /**+ * Id+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.+ */+ id: string;+ /**+ * Is Intermediate+ * @description Whether or not this is an intermediate invocation.+ * @default false+ */+ is_intermediate?: boolean;+ /**+ * Use Cache+ * @description Whether or not to use the cache+ * @default true+ */+ use_cache?: boolean;+ /**+ * Prompt+ * @description Text prompt to encode.+ * @default null+ */+ prompt?: string | null;+ /**+ * Qwen3 Encoder+ * @description Qwen3 tokenizer and text encoder+ * @default null+ */+ qwen3_encoder?: components["schemas"]["Qwen3EncoderField"] | null;+ /**+ * @description A mask defining the region that this conditioning prompt applies to.+ * @default null+ */+ mask?: components["schemas"]["TensorField"] | null;+ /**+ * type+ * @default z_image_text_encoder+ * @constant+ */+ type: "z_image_text_encoder";+ };+ /**+ * ZImageVariantType+ * @description Z-Image model variants.+ * @enum {string}+ */+ ZImageVariantType: "turbo" | "zbase";+ };+ responses: never;+ parameters: never;+ requestBodies: never;+ headers: never;+ pathItems: never;+};+export type $defs = Record<string, never>;+export interface operations {+ get_setup_status_api_v1_auth_status_get: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["SetupStatusResponse"];+ };+ };+ };+ };+ login_api_v1_auth_login_post: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["LoginRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["LoginResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ logout_api_v1_auth_logout_post: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["LogoutResponse"];+ };+ };+ };+ };+ refresh_media_cookie_api_v1_auth_media_cookie_post: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["MediaCookieResponse"];+ };+ };+ };+ };+ get_current_user_info_api_v1_auth_me_get: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["UserDTO"];+ };+ };+ };+ };+ update_current_user_api_v1_auth_me_patch: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["UserProfileUpdateRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["UserDTO"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ setup_admin_api_v1_auth_setup_post: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["SetupRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["SetupResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ generate_password_api_v1_auth_generate_password_get: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["GeneratePasswordResponse"];+ };+ };+ };+ };+ list_users_api_v1_auth_users_get: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["UserDTO"][];+ };+ };+ };+ };+ create_user_api_v1_auth_users_post: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["AdminUserCreateRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 201: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["UserDTO"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ get_user_api_v1_auth_users__user_id__get: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description User ID */+ user_id: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["UserDTO"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ delete_user_api_v1_auth_users__user_id__delete: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description User ID */+ user_id: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 204: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ update_user_api_v1_auth_users__user_id__patch: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description User ID */+ user_id: string;+ };+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["AdminUserUpdateRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["UserDTO"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ parse_dynamicprompts: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["Body_parse_dynamicprompts"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["DynamicPromptsResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ list_user_fonts: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["UserFontsResponse"];+ };+ };+ };+ };+ get_user_font_file: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ font_path: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": unknown;+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ expand_prompt: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["ExpandPromptRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["ExpandPromptResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ image_to_prompt: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["ImageToPromptRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["ImageToPromptResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ list_fonts: {+ parameters: {+ query?: {+ offset?: number;+ limit?: number;+ search?: string | null;+ scope?: components["schemas"]["FontScope"];+ content_hash?: string | null;+ };+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["FontListResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ upload_font: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "multipart/form-data": components["schemas"]["Body_upload_font"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["FontUploadResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ validate_font: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "multipart/form-data": components["schemas"]["Body_validate_font"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["FontValidationResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ rescan_fonts: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["FontRescanResponse"];+ };+ };+ };+ };+ get_font_file: {+ parameters: {+ query?: {+ expected_hash?: string | null;+ };+ header?: never;+ path: {+ font_id: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": unknown;+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ get_font: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ font_id: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["FontDTO"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ delete_font: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ font_id: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 204: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ create_font_instance: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ font_id: string;+ };+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["FontInstanceRequest"];+ };+ };+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": unknown;+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ list_architecture_capabilities: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description What each model architecture supports */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["ArchitectureCapabilities"][];+ };+ };+ };+ };+ list_fp8_storage_support: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Whether FP8 Storage does anything, per loader key */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Fp8StorageSupport"][];+ };+ };+ };+ };+ list_model_records: {+ parameters: {+ query?: {+ /** @description Base models to include */+ base_models?: components["schemas"]["BaseModelType"][] | null;+ /** @description The type of model to get */+ model_type?: components["schemas"]["ModelType"] | null;+ /** @description Exact match on the name of the model */+ model_name?: string | null;+ /** @description Exact match on the format of the model (e.g. 'diffusers') */+ model_format?: components["schemas"]["ModelFormat"] | null;+ /** @description The field to order by */+ order_by?: components["schemas"]["ModelRecordOrderBy"];+ /** @description The direction to order by */+ direction?: components["schemas"]["SQLiteDirection"];+ };+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["ModelsList"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ list_missing_models: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description List of models with missing files */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["ModelsList"];+ };+ };+ };+ };+ get_models_dir: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description The absolute path of the models directory */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": string;+ };+ };+ };+ };+ get_model_records_by_attrs: {+ parameters: {+ query: {+ /** @description The name of the model */+ name: string;+ /** @description The type of the model */+ type: components["schemas"]["ModelType"];+ /** @description The base model of the model */+ base: components["schemas"]["BaseModelType"];+ };+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Diffusers_LTX2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_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_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_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"]["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"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ get_model_records_by_hash: {+ parameters: {+ query: {+ /** @description The hash of the model */+ hash: string;+ };+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Diffusers_LTX2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_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_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_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"]["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"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ get_model_record: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description Key of the model record to fetch. */+ key: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description The model configuration was retrieved successfully */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ /**+ * @example {+ * "path": "string",+ * "name": "string",+ * "base": "sd-1",+ * "type": "main",+ * "format": "checkpoint",+ * "config_path": "string",+ * "key": "string",+ * "hash": "string",+ * "file_size": 1,+ * "description": "string",+ * "source": "string",+ * "converted_at": 0,+ * "variant": "normal",+ * "prediction_type": "epsilon",+ * "repo_variant": "fp16",+ * "upcast_attention": false+ * }+ */+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Diffusers_LTX2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_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_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_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"]["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"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ };+ };+ /** @description Bad request */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description The model could not be found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ delete_model: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description Unique key of model to remove from model registry. */+ key: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Model deleted successfully */+ 204: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Model not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Another operation on this model is already in progress */+ 409: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ update_model_record: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description Unique key of model */+ key: string;+ };+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["ModelRecordChanges"];+ };+ };+ responses: {+ /** @description The model was updated successfully */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ /**+ * @example {+ * "path": "string",+ * "name": "string",+ * "base": "sd-1",+ * "type": "main",+ * "format": "checkpoint",+ * "config_path": "string",+ * "key": "string",+ * "hash": "string",+ * "file_size": 1,+ * "description": "string",+ * "source": "string",+ * "converted_at": 0,+ * "variant": "normal",+ * "prediction_type": "epsilon",+ * "repo_variant": "fp16",+ * "upcast_attention": false+ * }+ */+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Diffusers_LTX2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_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_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_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"]["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"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ };+ };+ /** @description Bad request */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description The model could not be found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description There is already a model corresponding to the new name */+ 409: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ reidentify_model: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description Key of the model to reidentify. */+ key: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description The model configuration was retrieved successfully */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ /**+ * @example {+ * "path": "string",+ * "name": "string",+ * "base": "sd-1",+ * "type": "main",+ * "format": "checkpoint",+ * "config_path": "string",+ * "key": "string",+ * "hash": "string",+ * "file_size": 1,+ * "description": "string",+ * "source": "string",+ * "converted_at": 0,+ * "variant": "normal",+ * "prediction_type": "epsilon",+ * "repo_variant": "fp16",+ * "upcast_attention": false+ * }+ */+ "application/json": components["schemas"]["Main_Diffusers_SD1_Config"] | components["schemas"]["Main_Diffusers_SD2_Config"] | components["schemas"]["Main_Diffusers_SDXL_Config"] | components["schemas"]["Main_Diffusers_SDXLRefiner_Config"] | components["schemas"]["Main_Diffusers_SD3_Config"] | components["schemas"]["Main_Diffusers_FLUX_Config"] | components["schemas"]["Main_Diffusers_Flux2_Config"] | components["schemas"]["Main_Diffusers_CogView4_Config"] | components["schemas"]["Main_Diffusers_QwenImage_Config"] | components["schemas"]["Main_Diffusers_Wan_Config"] | components["schemas"]["Main_Diffusers_ZImage_Config"] | components["schemas"]["Main_Diffusers_ErnieImage_Config"] | components["schemas"]["Main_Diffusers_Ideogram4_Config"] | components["schemas"]["Main_Diffusers_Krea2_Config"] | components["schemas"]["Main_Diffusers_MiniMaxH3_Config"] | components["schemas"]["Main_Diffusers_LTX2_Config"] | components["schemas"]["Main_Checkpoint_SD1_Config"] | components["schemas"]["Main_Checkpoint_SD2_Config"] | components["schemas"]["Main_Checkpoint_SDXL_Config"] | components["schemas"]["Main_Checkpoint_SDXLRefiner_Config"] | components["schemas"]["Main_Checkpoint_Flux2_Config"] | components["schemas"]["Main_Checkpoint_FLUX_Config"] | components["schemas"]["Main_Checkpoint_QwenImage_Config"] | components["schemas"]["Main_Checkpoint_Wan_Config"] | components["schemas"]["Main_Checkpoint_ZImage_Config"] | components["schemas"]["Main_Checkpoint_ErnieImage_Config"] | components["schemas"]["Main_Checkpoint_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_BnBNF4_FLUX_Config"] | components["schemas"]["Main_GGUF_Flux2_Config"] | components["schemas"]["Main_GGUF_FLUX_Config"] | components["schemas"]["Main_GGUF_QwenImage_Config"] | components["schemas"]["Main_GGUF_Wan_Config"] | components["schemas"]["Main_GGUF_ZImage_Config"] | components["schemas"]["Main_GGUF_Krea2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_Flux2_Config"] | components["schemas"]["Main_SDNQ_Diffusers_FLUX_Config"] | components["schemas"]["Main_SDNQ_Diffusers_ZImage_Config"] | components["schemas"]["VAE_Checkpoint_SD1_Config"] | components["schemas"]["VAE_Checkpoint_SD2_Config"] | components["schemas"]["VAE_Checkpoint_SDXL_Config"] | components["schemas"]["VAE_Checkpoint_FLUX_Config"] | components["schemas"]["VAE_Checkpoint_Flux2_Config"] | components["schemas"]["VAE_Checkpoint_Wan_Config"] | components["schemas"]["VAE_Checkpoint_QwenImage_Config"] | components["schemas"]["VAE_Checkpoint_Anima_Config"] | components["schemas"]["VAE_Diffusers_SD1_Config"] | components["schemas"]["VAE_Diffusers_SDXL_Config"] | components["schemas"]["VAE_Diffusers_Flux2_Config"] | components["schemas"]["VAE_Diffusers_Wan_Config"] | components["schemas"]["PiDDecoder_Checkpoint_FLUX_Config"] | components["schemas"]["PiDDecoder_Checkpoint_Flux2_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SD3_Config"] | components["schemas"]["PiDDecoder_Checkpoint_SDXL_Config"] | components["schemas"]["PiDDecoder_Checkpoint_QwenImage_Config"] | components["schemas"]["ControlNet_Checkpoint_SD1_Config"] | components["schemas"]["ControlNet_Checkpoint_SD2_Config"] | components["schemas"]["ControlNet_Checkpoint_SDXL_Config"] | components["schemas"]["ControlNet_Checkpoint_FLUX_Config"] | components["schemas"]["ControlNet_Checkpoint_ZImage_Config"] | components["schemas"]["ControlNet_Checkpoint_Anima_Config"] | components["schemas"]["ControlNet_Diffusers_SD1_Config"] | components["schemas"]["ControlNet_Diffusers_SD2_Config"] | components["schemas"]["ControlNet_Diffusers_SDXL_Config"] | components["schemas"]["ControlNet_Diffusers_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_SD1_Config"] | components["schemas"]["LoRA_LyCORIS_SD2_Config"] | components["schemas"]["LoRA_LyCORIS_SDXL_Config"] | components["schemas"]["LoRA_LyCORIS_Flux2_Config"] | components["schemas"]["LoRA_LyCORIS_FLUX_Config"] | components["schemas"]["LoRA_LyCORIS_ZImage_Config"] | components["schemas"]["LoRA_LyCORIS_Krea2_Config"] | components["schemas"]["LoRA_LyCORIS_QwenImage_Config"] | components["schemas"]["LoRA_LyCORIS_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"]["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"]["Gemma2Encoder_GGUF_Config"] | components["schemas"]["QwenVLEncoder_Diffusers_Config"] | components["schemas"]["QwenVLEncoder_Checkpoint_Config"] | components["schemas"]["WanT5Encoder_WanT5Encoder_Config"] | components["schemas"]["TI_File_SD1_Config"] | components["schemas"]["TI_File_SD2_Config"] | components["schemas"]["TI_File_SDXL_Config"] | components["schemas"]["TI_Folder_SD1_Config"] | components["schemas"]["TI_Folder_SD2_Config"] | components["schemas"]["TI_Folder_SDXL_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD1_Config"] | components["schemas"]["IPAdapter_InvokeAI_SD2_Config"] | components["schemas"]["IPAdapter_InvokeAI_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD1_Config"] | components["schemas"]["IPAdapter_Checkpoint_SD2_Config"] | components["schemas"]["IPAdapter_Checkpoint_SDXL_Config"] | components["schemas"]["IPAdapter_Checkpoint_FLUX_Config"] | components["schemas"]["T2IAdapter_Diffusers_SD1_Config"] | components["schemas"]["T2IAdapter_Diffusers_SDXL_Config"] | components["schemas"]["Spandrel_Checkpoint_Config"] | components["schemas"]["CLIPEmbed_Diffusers_G_Config"] | components["schemas"]["CLIPEmbed_Diffusers_L_Config"] | components["schemas"]["CLIPVision_Diffusers_Config"] | components["schemas"]["SigLIP_Diffusers_Config"] | components["schemas"]["FLUXRedux_Checkpoint_Config"] | components["schemas"]["LlavaOnevision_Diffusers_Config"] | components["schemas"]["TextLLM_Diffusers_Config"] | components["schemas"]["ExternalApiModelConfig"] | components["schemas"]["Unknown_Config"];+ };+ };+ /** @description Bad request */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description The model could not be found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Another operation on this model is already in progress */+ 409: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ scan_for_models: {+ parameters: {+ query?: {+ /** @description Directory path to search for models */+ scan_path?: string;+ };+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Directory scanned successfully */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["FoundModel"][];+ };+ };+ /** @description Invalid directory path */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ get_hugging_face_models: {+ parameters: {+ query?: {+ /** @description Hugging face repo to search for models */+ hugging_face_repo?: string;+ };+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Hugging Face repo scanned successfully */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HuggingFaceModels"];+ };+ };+ /** @description Invalid hugging face repo */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ get_model_image: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description The name of model image file to get */+ key: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description The model image was fetched successfully */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": unknown;+ };+ };+ /** @description Bad request */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description The model image could not be found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ delete_model_image: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description Unique key of model image to remove from model_images directory. */+ key: string;+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Model image deleted successfully */+ 204: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Model image not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Another operation on this model is already in progress */+ 409: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ update_model_image: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ /** @description Unique key of model */+ key: string;+ };+ cookie?: never;+ };+ requestBody: {+ content: {+ "multipart/form-data": components["schemas"]["Body_update_model_image"];+ };+ };+ responses: {+ /** @description The model image was updated successfully */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": unknown;+ };+ };+ /** @description Bad request */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };++ /** @description The model could not be found */++ 404: {++ headers: {++ [name: string]: unknown;++ };++ content?: never;++ };+ /** @description Another operation on this model is already in progress */+ 409: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ bulk_delete_models: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["BulkDeleteModelsRequest"];+ };+ };+ responses: {+ /** @description Models deleted (possibly with some failures) */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["BulkDeleteModelsResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ bulk_reidentify_models: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["BulkReidentifyModelsRequest"];+ };+ };+ responses: {+ /** @description Models reidentified (possibly with some failures) */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["BulkReidentifyModelsResponse"];+ };+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ };+ };+ list_model_installs: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["ModelInstallJob"][];+ };+ };+ };+ };+ install_model: {+ parameters: {+ query: {+ /** @description Model source to install, can be a local path, repo_id, or remote URL */+ source: string;+ /** @description Whether or not to install a local model in place */+ inplace?: boolean | null;+ /** @description access token for the remote resource */+ access_token?: string | null;+ };+ header?: {+ /** @description access token for the remote resource */+ "X-Model-Source-Access-Token"?: string | null;+ };+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["ModelRecordChanges"];+ };+ };+ responses: {+ /** @description The model imported successfully */+ 201: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["ModelInstallJob"];+ };+ };+ /** @description There is already a model corresponding to this path or repo_id */+ 409: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Unrecognized file/folder format */+ 415: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Validation Error */+ 422: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["HTTPValidationError"];+ };+ };+ /** @description The model appeared to import successfully, but could not be found in the model manager */+ 424: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ };+ };+ prune_model_install_jobs: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successful Response */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": unknown;+ };+ };+ /** @description All completed and errored jobs have been pruned */+ 204: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Bad request */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ };+ };+ install_hugging_face_model: {+ parameters: {+ query: {+ /** @description HuggingFace repo_id to install */+ source: string;+ };header?: never;path?: never;cookie?: never;diff --cc tests/app/services/model_install/test_model_install.pyindex 4c38c3da26,34417ff09b..b28ee5a41b--- a/tests/app/services/model_install/test_model_install.py+++ b/tests/app/services/model_install/test_model_install.py@@@ -1100,31 -1085,100 +1105,130 @@@ def test_heuristic_import_with_type(mm2assert install_job2.config_out if model_params["type"] == "embedding" else not install_job2.config_out+def test_multifile_download_layout_with_explicit_files(mm2_installer: ModelInstallServiceBase, tmp_path: Path) -> None:+ """Explicit file entries in a multi-subfolder source keep their repo-relative paths: the root+ pipeline index lands at the model root and transformer/config.json stays inside transformer/+ (naive relative_to() matching would flatten it to the root), while plain subfolder entries keep+ the pre-existing one-directory-per-subfolder layout."""+ from invokeai.backend.model_manager.metadata.metadata_base import RemoteModelFile++ remote_files = [+ RemoteModelFile(url="https://example.com/root_index", path=Path("MiniMax-H3/modular_model_index.json")),+ RemoteModelFile(url="https://example.com/transformer_config", path=Path("MiniMax-H3/transformer/config.json")),+ RemoteModelFile(url="https://example.com/vae_config", path=Path("MiniMax-H3/vae/config.json")),+ RemoteModelFile(+ url="https://example.com/vae_weights", path=Path("MiniMax-H3/vae/diffusion_pytorch_model.safetensors")+ ),+ ]+ job = mm2_installer._multifile_download( # pyright: ignore[reportAttributeAccessIssue]+ remote_files=remote_files,+ dest=tmp_path,+ subfolders=[Path("modular_model_index.json"), Path("transformer/config.json"), Path("vae")],+ submit_job=False,+ )+ top = Path("MiniMax-H3_modular_model_index_config_vae")+ assert {part.dest.relative_to(tmp_path.resolve()) for part in job.download_parts} == {+ top / "modular_model_index.json",+ top / "transformer" / "config.json",+ top / "vae" / "config.json",+ top / "vae" / "diffusion_pytorch_model.safetensors",+ }+++++ def test_restore_keeps_a_legacy_marker_whose_key_predates_key_validation(+ mm2_installer: ModelInstallServiceBase,+ mm2_app_config: InvokeAIAppConfig,+ mm2_download_queue,+ mm2_session,+ ) -> None:+ """A marker written before install keys were checked can carry a key that is not a plain filename. It must+ still be restored: dropping it strands the partial download forever, because no job is created to clean up+ the tmpdir and `_remove_dangling_install_dirs` keeps any tmpdir whose marker is readable and non-terminal.+ Containment does not depend on this - `install_path()` checks the key at the join and errors the job."""+ assert isinstance(mm2_installer, ModelInstallService)++ tmpdirs: list[Path] = []+ try:+ for repo_id, config_in in [+ ("stabilityai/legacy-key", ModelRecordChanges.model_construct(key="../escaped")),+ ("stabilityai/ordinary", ModelRecordChanges()),+ ]:+ tmpdir = mm2_app_config.models_path / f"tmpinstall_legacy_{uuid.uuid4().hex}"+ tmpdir.mkdir(parents=True, exist_ok=True)+ tmpdirs.append(tmpdir)+ job = ModelInstallJob(+ id=99999,+ source=HFModelSource(repo_id=repo_id, variant=ModelRepoVariant.Default),+ config_in=config_in,+ local_path=tmpdir,+ )+ job._install_tmpdir = tmpdir+ job.status = InstallStatus.PAUSED+ mm2_installer._write_install_marker(job, status=InstallStatus.PAUSED)++ restored_installer = ModelInstallService(+ app_config=mm2_app_config,+ record_store=mm2_installer.record_store,+ download_queue=mm2_download_queue,+ session=mm2_session,+ )+ restored_installer._restore_incomplete_installs()++ restored = {str(job.source) for job in restored_installer.list_jobs()}+ assert restored == {"stabilityai/legacy-key", "stabilityai/ordinary"}+ finally:+ for tmpdir in tmpdirs:+ shutil.rmtree(tmpdir, ignore_errors=True)+++ def test_restore_skips_an_unparseable_marker_without_abandoning_the_rest(+ mm2_installer: ModelInstallServiceBase,+ mm2_app_config: InvokeAIAppConfig,+ mm2_download_queue,+ mm2_session,+ ) -> None:+ """A marker whose stored config no longer validates must skip that one marker, not raise out of the loop and+ leave every interrupted install after it unrestored."""+ assert isinstance(mm2_installer, ModelInstallService)++ tmpdirs: list[Path] = []+ try:+ bad_tmpdir = mm2_app_config.models_path / f"tmpinstall_bad_{uuid.uuid4().hex}"+ bad_tmpdir.mkdir(parents=True, exist_ok=True)+ tmpdirs.append(bad_tmpdir)+ (bad_tmpdir / INSTALL_MARKER_FILENAME).write_text(+ json.dumps(+ {+ "version": INSTALL_MARKER_VERSION,+ "source": "stabilityai/unparseable",+ "config_in": {"base": "not-a-real-base"},+ "status": InstallStatus.PAUSED.value,+ }+ )+ )++ good_tmpdir = mm2_app_config.models_path / f"tmpinstall_good_{uuid.uuid4().hex}"+ good_tmpdir.mkdir(parents=True, exist_ok=True)+ tmpdirs.append(good_tmpdir)+ job = ModelInstallJob(+ id=99998,+ source=HFModelSource(repo_id="stabilityai/ordinary", variant=ModelRepoVariant.Default),+ config_in=ModelRecordChanges(),+ local_path=good_tmpdir,+ )+ job._install_tmpdir = good_tmpdir+ job.status = InstallStatus.PAUSED+ mm2_installer._write_install_marker(job, status=InstallStatus.PAUSED)++ restored_installer = ModelInstallService(+ app_config=mm2_app_config,+ record_store=mm2_installer.record_store,+ download_queue=mm2_download_queue,+ session=mm2_session,+ )+ restored_installer._restore_incomplete_installs()++ assert [str(job.source) for job in restored_installer.list_jobs()] == ["stabilityai/ordinary"]+ finally:+ for tmpdir in tmpdirs:+ shutil.rmtree(tmpdir, ignore_errors=True)