Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

feat: add System Prompts library for Expand Prompt button (#9152)

Alexander Eichhorn09baa8d3e0a1
diff --git a/invokeai/app/api/dependencies.py b/invokeai/app/api/dependencies.py
index e49f2242d7..61b02e7620 100644
--- a/invokeai/app/api/dependencies.py
+++ b/invokeai/app/api/dependencies.py
@@ -52,6 +52,7 @@ from invokeai.app.services.session_queue.session_queue_sqlite import SqliteSessi
from invokeai.app.services.shared.sqlite.sqlite_util import init_db
from invokeai.app.services.style_preset_images.style_preset_images_disk import StylePresetImageFileStorageDisk
from invokeai.app.services.style_preset_records.style_preset_records_sqlite import SqliteStylePresetRecordsStorage
+from invokeai.app.services.system_prompt_records.system_prompt_records_sqlite import SqliteSystemPromptRecordsStorage
from invokeai.app.services.urls.urls_default import LocalUrlService
from invokeai.app.services.users.users_default import UserService
from invokeai.app.services.video_files.video_files_disk import DiskVideoFileStorage
@@ -203,6 +204,7 @@ class ApiDependencies:
workflow_records = SqliteWorkflowRecordsStorage(db=db)
style_preset_records = SqliteStylePresetRecordsStorage(db=db)
style_preset_image_files = StylePresetImageFileStorageDisk(style_presets_folder / "images")
+ system_prompt_records = SqliteSystemPromptRecordsStorage(db=db)
workflow_thumbnails = WorkflowThumbnailFileStorageDisk(workflow_thumbnails_folder)
client_state_persistence = ClientStatePersistenceSqlite(db=db)
users = UserService(db=db)
@@ -237,6 +239,7 @@ class ApiDependencies:
conditioning=conditioning,
style_preset_records=style_preset_records,
style_preset_image_files=style_preset_image_files,
+ system_prompt_records=system_prompt_records,
workflow_thumbnails=workflow_thumbnails,
client_state_persistence=client_state_persistence,
users=users,
diff --git a/invokeai/app/api/routers/system_prompts.py b/invokeai/app/api/routers/system_prompts.py
new file mode 100644
index 0000000000..f0fa9ac7b5
--- /dev/null
+++ b/invokeai/app/api/routers/system_prompts.py
@@ -0,0 +1,120 @@
+from typing import Optional
+
+from fastapi import APIRouter, Body, HTTPException, Path
+
+from invokeai.app.api.auth_dependencies import CurrentUserOrDefault
+from invokeai.app.api.dependencies import ApiDependencies
+from invokeai.app.services.system_prompt_records.system_prompt_records_common import (
+ SystemPromptChanges,
+ SystemPromptNotFoundError,
+ SystemPromptRecordDTO,
+ SystemPromptWithoutId,
+)
+
+system_prompts_router = APIRouter(prefix="/v1/system_prompts", tags=["system_prompts"])
+
+
+@system_prompts_router.get(
+ "/",
+ operation_id="list_system_prompts",
+ responses={200: {"model": list[SystemPromptRecordDTO]}},
+)
+async def list_system_prompts(current_user: CurrentUserOrDefault) -> list[SystemPromptRecordDTO]:
+ """Lists system prompts visible to the current user (own + public)."""
+ config = ApiDependencies.invoker.services.configuration
+ # Admins (and single-user installs) see everything; multiuser non-admins are scoped to own + public.
+ user_id_filter: Optional[str] = None
+ if config.multiuser and not current_user.is_admin:
+ user_id_filter = current_user.user_id
+ return ApiDependencies.invoker.services.system_prompt_records.get_many(user_id=user_id_filter)
+
+
+@system_prompts_router.get(
+ "/i/{system_prompt_id}",
+ operation_id="get_system_prompt",
+ responses={200: {"model": SystemPromptRecordDTO}},
+)
+async def get_system_prompt(
+ current_user: CurrentUserOrDefault,
+ system_prompt_id: str = Path(description="The id of the system prompt to get"),
+) -> SystemPromptRecordDTO:
+ """Gets a system prompt by id."""
+ try:
+ prompt = ApiDependencies.invoker.services.system_prompt_records.get(system_prompt_id)
+ except SystemPromptNotFoundError:
+ raise HTTPException(status_code=404, detail="System prompt not found")
+
+ config = ApiDependencies.invoker.services.configuration
+ if config.multiuser:
+ is_owner = prompt.user_id == current_user.user_id
+ if not (is_owner or prompt.is_public or current_user.is_admin):
+ raise HTTPException(status_code=403, detail="Not authorized to access this system prompt")
+ return prompt
+
+
+@system_prompts_router.post(
+ "/",
+ operation_id="create_system_prompt",
+ responses={200: {"model": SystemPromptRecordDTO}},
+)
+async def create_system_prompt(
+ current_user: CurrentUserOrDefault,
+ system_prompt: SystemPromptWithoutId = Body(description="The system prompt to create"),
+) -> SystemPromptRecordDTO:
+ """Creates a new system prompt owned by the current user."""
+ # Single-user: shared so legacy/single-user behaviour is unchanged. Multiuser: private by default.
+ config = ApiDependencies.invoker.services.configuration
+ is_public = not config.multiuser
+ return ApiDependencies.invoker.services.system_prompt_records.create(
+ system_prompt, user_id=current_user.user_id, is_public=is_public
+ )
+
+
+@system_prompts_router.patch(
+ "/i/{system_prompt_id}",
+ operation_id="update_system_prompt",
+ responses={200: {"model": SystemPromptRecordDTO}},
+)
+async def update_system_prompt(
+ current_user: CurrentUserOrDefault,
+ system_prompt_id: str = Path(description="The id of the system prompt to update"),
+ changes: SystemPromptChanges = Body(description="The changes to apply"),
+) -> SystemPromptRecordDTO:
+ """Updates a system prompt. Only the owner or an admin may update."""
+ config = ApiDependencies.invoker.services.configuration
+ if config.multiuser:
+ try:
+ existing = ApiDependencies.invoker.services.system_prompt_records.get(system_prompt_id)
+ except SystemPromptNotFoundError:
+ raise HTTPException(status_code=404, detail="System prompt not found")
+ if not current_user.is_admin and existing.user_id != current_user.user_id:
+ raise HTTPException(status_code=403, detail="Not authorized to update this system prompt")
+ user_id = None if current_user.is_admin else current_user.user_id
+ try:
+ return ApiDependencies.invoker.services.system_prompt_records.update(system_prompt_id, changes, user_id=user_id)
+ except SystemPromptNotFoundError:
+ raise HTTPException(status_code=404, detail="System prompt not found")
+
+
+@system_prompts_router.delete(
+ "/i/{system_prompt_id}",
+ operation_id="delete_system_prompt",
+)
+async def delete_system_prompt(
+ current_user: CurrentUserOrDefault,
+ system_prompt_id: str = Path(description="The id of the system prompt to delete"),
+) -> None:
+ """Deletes a system prompt. Only the owner or an admin may delete."""
+ config = ApiDependencies.invoker.services.configuration
+ if config.multiuser:
+ try:
+ existing = ApiDependencies.invoker.services.system_prompt_records.get(system_prompt_id)
+ except SystemPromptNotFoundError:
+ raise HTTPException(status_code=404, detail="System prompt not found")
+ if not current_user.is_admin and existing.user_id != current_user.user_id:
+ raise HTTPException(status_code=403, detail="Not authorized to delete this system prompt")
+ user_id = None if current_user.is_admin else current_user.user_id
+ try:
+ ApiDependencies.invoker.services.system_prompt_records.delete(system_prompt_id, user_id=user_id)
+ except SystemPromptNotFoundError:
+ raise HTTPException(status_code=404, detail="System prompt not found")
diff --git a/invokeai/app/api_app.py b/invokeai/app/api_app.py
index 76a26e3483..c0722c4bd1 100644
--- a/invokeai/app/api_app.py
+++ b/invokeai/app/api_app.py
@@ -37,6 +37,7 @@ from invokeai.app.api.routers import (
recall_parameters,
session_queue,
style_presets,
+ system_prompts,
utilities,
videos,
virtual_boards,
@@ -420,6 +421,7 @@ app.include_router(app_info.app_router, prefix="/api")
app.include_router(session_queue.session_queue_router, prefix="/api")
app.include_router(workflows.workflows_router, prefix="/api")
app.include_router(style_presets.style_presets_router, prefix="/api")
+app.include_router(system_prompts.system_prompts_router, prefix="/api")
app.include_router(client_state.client_state_router, prefix="/api")
app.include_router(recall_parameters.recall_parameters_router, prefix="/api")
app.include_router(custom_nodes.custom_nodes_router, prefix="/api")
diff --git a/invokeai/app/invocations/fields.py b/invokeai/app/invocations/fields.py
index f0d567b219..a6541aaad9 100644
--- a/invokeai/app/invocations/fields.py
+++ b/invokeai/app/invocations/fields.py
@@ -265,6 +265,12 @@ class StylePresetField(BaseModel):
style_preset_id: str = Field(description="The id of the style preset")
+class SystemPromptField(BaseModel):
+ """A system prompt primitive field"""
+
+ system_prompt_id: str = Field(description="The id of the system prompt")
+
+
class DenoiseMaskField(BaseModel):
"""An inpaint mask field"""
diff --git a/invokeai/app/invocations/text_llm.py b/invokeai/app/invocations/text_llm.py
index 789e65be01..8308675cc0 100644
--- a/invokeai/app/invocations/text_llm.py
+++ b/invokeai/app/invocations/text_llm.py
@@ -2,15 +2,44 @@ import torch
from transformers import AutoTokenizer
from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation
-from invokeai.app.invocations.fields import FieldDescriptions, InputField, UIComponent
+from invokeai.app.invocations.fields import FieldDescriptions, InputField, SystemPromptField, UIComponent
from invokeai.app.invocations.model import ModelIdentifierField
from invokeai.app.invocations.primitives import StringOutput
from invokeai.app.services.shared.invocation_context import InvocationContext
+from invokeai.app.services.system_prompt_records.system_prompt_records_common import (
+ SystemPromptNotFoundError,
+ SystemPromptRecordDTO,
+)
from invokeai.backend.model_manager.taxonomy import ModelType
from invokeai.backend.text_llm_pipeline import DEFAULT_SYSTEM_PROMPT, TextLLMPipeline
from invokeai.backend.util.devices import TorchDevice
+def _run_text_llm(
+ context: InvocationContext,
+ text_llm_model: ModelIdentifierField,
+ prompt: str,
+ system_prompt: str,
+ max_tokens: int,
+) -> str:
+ """Shared LLM invocation body used by every text-LLM node in this module."""
+ model_config = context.models.get_config(text_llm_model)
+
+ with context.models.load(text_llm_model).model_on_device() as (_, model):
+ model_abs_path = context.models.get_absolute_path(model_config)
+ tokenizer = AutoTokenizer.from_pretrained(model_abs_path, local_files_only=True)
+
+ pipeline = TextLLMPipeline(model, tokenizer)
+ model_device = next(model.parameters()).device
+ return pipeline.run(
+ prompt=prompt,
+ system_prompt=system_prompt,
+ max_new_tokens=max_tokens,
+ device=model_device,
+ dtype=TorchDevice.choose_torch_dtype(),
+ )
+
+
@invocation(
"text_llm",
title="Text LLM",
@@ -46,20 +75,99 @@ class TextLLMInvocation(BaseInvocation):
@torch.no_grad()
def invoke(self, context: InvocationContext) -> StringOutput:
- model_config = context.models.get_config(self.text_llm_model)
-
- with context.models.load(self.text_llm_model).model_on_device() as (_, model):
- model_abs_path = context.models.get_absolute_path(model_config)
- tokenizer = AutoTokenizer.from_pretrained(model_abs_path, local_files_only=True)
-
- pipeline = TextLLMPipeline(model, tokenizer)
- model_device = next(model.parameters()).device
- output = pipeline.run(
- prompt=self.prompt,
- system_prompt=self.system_prompt,
- max_new_tokens=self.max_tokens,
- device=model_device,
- dtype=TorchDevice.choose_torch_dtype(),
- )
+ output = _run_text_llm(
+ context=context,
+ text_llm_model=self.text_llm_model,
+ prompt=self.prompt,
+ system_prompt=self.system_prompt,
+ max_tokens=self.max_tokens,
+ )
+ return StringOutput(value=output)
+
+
+@invocation(
+ "text_llm_with_preset",
+ title="Text LLM (with System Prompt Preset)",
+ tags=["llm", "text", "prompt", "preset", "template"],
+ category="llm",
+ version="1.0.0",
+ classification=Classification.Beta,
+)
+class TextLLMWithPresetInvocation(BaseInvocation):
+ """Run a text language model using a saved system prompt from the System Prompts library.
+
+ Behaves identically to the Text LLM node, but the system prompt is selected from a
+ DB-backed preset instead of being typed inline. Useful when you maintain a curated
+ library of expansion strategies and want to reuse them across workflows.
+
+ Note: the field stores the preset's id, not its text. A workflow exported from one install
+ only resolves on another if that install has a prompt with the same id -- true for the
+ seeded defaults (fixed UUIDs), not for user-created prompts. `StylePresetField` has the
+ same limitation.
+ """
+
+ prompt: str = InputField(
+ default="",
+ description="Input text prompt.",
+ ui_component=UIComponent.Textarea,
+ )
+ system_prompt: SystemPromptField = InputField(
+ description="The saved system prompt to use as the LLM's instruction.",
+ )
+ text_llm_model: ModelIdentifierField = InputField(
+ title="Text LLM Model",
+ description=FieldDescriptions.text_llm_model,
+ ui_model_type=ModelType.TextLLM,
+ )
+ max_tokens: int = InputField(
+ default=300,
+ ge=1,
+ le=2048,
+ description="Maximum number of tokens to generate.",
+ )
+
+ def _resolve_system_prompt(self, context: InvocationContext) -> SystemPromptRecordDTO:
+ """Resolve the referenced preset, enforcing the same access rules as the REST API.
+
+ The record store is unscoped, so without this check a user could read another user's
+ private prompt by enqueueing a graph that references its id -- the content becomes the
+ LLM's system message and is recoverable from the node's output.
+ The rule is deliberately identical to `routers/system_prompts.get_system_prompt`: owner,
+ public, or admin. Note there is no "owned by the 'system' user" clause, even though the
+ seeded defaults are owned by it -- `SYSTEM_PROMPT_DEFAULT_USER_ID` is also the synthetic
+ id every request carries in single-user mode (`auth_dependencies.get_current_user`), so
+ such a clause would make every prompt created before an install switched to multiuser
+ un-privatizable here while the REST layer still 403s on it. The seeded defaults are
+ `is_public=TRUE`, so `record.is_public` already covers them.
+ (`call_saved_workflow` can keep its default-category clause: workflow `category=default`
+ is a real column value, not an overloaded owner id.)
+ """
+ system_prompt_id = self.system_prompt.system_prompt_id
+ try:
+ record = context._services.system_prompt_records.get(system_prompt_id)
+ except SystemPromptNotFoundError as e:
+ raise ValueError(f"The selected system prompt '{system_prompt_id}' could not be found.") from e
+
+ config = context._services.configuration
+ if config.multiuser:
+ queue_user_id = context._data.queue_item.user_id
+ user = context._services.users.get(queue_user_id)
+ is_admin = bool(user and user.is_admin)
+ is_owner = record.user_id == queue_user_id
+ if not (is_owner or record.is_public or is_admin):
+ raise ValueError(f"The selected system prompt '{system_prompt_id}' is not accessible to this user.")
+
+ return record
+
+ @torch.no_grad()
+ def invoke(self, context: InvocationContext) -> StringOutput:
+ record = self._resolve_system_prompt(context)
+ output = _run_text_llm(
+ context=context,
+ text_llm_model=self.text_llm_model,
+ prompt=self.prompt,
+ system_prompt=record.content,
+ max_tokens=self.max_tokens,
+ )
return StringOutput(value=output)
diff --git a/invokeai/app/services/invocation_services.py b/invokeai/app/services/invocation_services.py
index eb80237659..50e56a81ba 100644
--- a/invokeai/app/services/invocation_services.py
+++ b/invokeai/app/services/invocation_services.py
@@ -6,6 +6,7 @@ from typing import TYPE_CHECKING
from invokeai.app.services.object_serializer.object_serializer_base import ObjectSerializerBase
from invokeai.app.services.style_preset_images.style_preset_images_base import StylePresetImageFileStorageBase
from invokeai.app.services.style_preset_records.style_preset_records_base import StylePresetRecordsStorageBase
+from invokeai.app.services.system_prompt_records.system_prompt_records_base import SystemPromptRecordsStorageBase
if TYPE_CHECKING:
from logging import Logger
@@ -82,6 +83,7 @@ class InvocationServices:
conditioning: "ObjectSerializerBase[ConditioningFieldData]",
style_preset_records: "StylePresetRecordsStorageBase",
style_preset_image_files: "StylePresetImageFileStorageBase",
+ system_prompt_records: "SystemPromptRecordsStorageBase",
workflow_thumbnails: "WorkflowThumbnailServiceBase",
client_state_persistence: "ClientStatePersistenceABC",
users: "UserServiceBase",
@@ -121,6 +123,7 @@ class InvocationServices:
self.conditioning = conditioning
self.style_preset_records = style_preset_records
self.style_preset_image_files = style_preset_image_files
+ self.system_prompt_records = system_prompt_records
self.workflow_thumbnails = workflow_thumbnails
self.client_state_persistence = client_state_persistence
self.users = users
diff --git a/invokeai/app/services/shared/sqlite_migrator/migrations/migration_2026_07_10_create_system_prompts.py b/invokeai/app/services/shared/sqlite_migrator/migrations/migration_2026_07_10_create_system_prompts.py
new file mode 100644
index 0000000000..e16a8efe1f
--- /dev/null
+++ b/invokeai/app/services/shared/sqlite_migrator/migrations/migration_2026_07_10_create_system_prompts.py
@@ -0,0 +1,362 @@
+"""Create system_prompts table for the Expand Prompt feature.
+
+The system_prompts table stores user-managed system prompts (instructions for
+the text LLM) used by the Expand Prompt button. A curated set of default
+prompts (adapted from publicly published prompt-engineering system messages of
+modern image-generation models) is seeded with fixed UUIDs.
+
+Deleted or edited defaults stay that way because the migrator runs each migration
+id exactly once; INSERT OR IGNORE additionally makes a re-run within a single
+migration pass a no-op rather than a duplicate or an overwrite.
+
+Sources of the seeded prompts:
+- FLUX.2 Prompt Enhancement: black-forest-labs/flux2 (system_messages.py)
+- HunyuanImage 3.0 Recaption Expert: tencent/HunyuanImage-3.0 (system_prompt.py)
+- Qwen-Image Edit Enhancer: QwenLM/Qwen-Image (prompt_utils.py)
+- Z-Image Visual Description Optimizer: Tongyi-MAI/Z-Image-Turbo (pe.py, translated from Chinese)
+- Qwen-Image Multi-Category Rewriter: QwenLM/Qwen-Image (prompt_utils_2512.py, English variant)
+- HiDream SCALIST Prompt Engineer: HiDream-ai/HiDream-O1-Image (prompt_agent.py, translated from Chinese; JSON-wrapper removed)
+- Krea 2 Prompt Expansion: krea-ai/krea-2 (docs/expansion.txt)
+"""
+
+import sqlite3
+
+from invokeai.app.services.shared.sqlite_migrator.sqlite_migrator_common import Migration
+
+# Inlined verbatim from invokeai.backend.text_llm_pipeline.DEFAULT_SYSTEM_PROMPT.
+# Migrations must stay free of heavy ML imports (torch, transformers); pulling that module in here
+# would force the entire ML stack to load before sqlite migrations can run.
+# Keep this string in sync with text_llm_pipeline.DEFAULT_SYSTEM_PROMPT.
+_INVOKEAI_DEFAULT = (
+ "You are an expert prompt writer for AI image generation. "
+ "Given a brief description, expand it into a detailed, vivid prompt suitable for generating high-quality images. "
+ "Only output the expanded prompt, nothing else."
+)
+
+_FLUX2 = """You are an expert prompt engineer for FLUX.2 by Black Forest Labs. Rewrite user prompts to be more descriptive while strictly preserving their core subject and intent.
+
+Guidelines:
+1. Structure: Keep structured inputs structured (enhance within fields). Convert natural language to detailed paragraphs.
+2. Details: Add concrete visual specifics - form, scale, textures, materials, lighting (quality, direction, color), shadows, spatial relationships, and environmental context.
+3. Text in Images: Put ALL text in quotation marks, matching the prompt's language. Always provide explicit quoted text for objects that would contain text in reality (signs, labels, screens, etc.) - without it, the model generates gibberish.
+
+Output only the revised prompt and nothing else."""
+
+_HUNYUAN = """You are a world-class image generation prompt expert. Your task is to rewrite a user's simple description into a **structured, objective, and detail-rich** professional-level prompt.
+
+The final output must be wrapped in `<recaption>` tags.
+
+### **Universal Core Principles**
+
+When rewriting the prompt (inside the `<recaption>` tags), you must adhere to the following principles:
+
+1. **Absolute Objectivity**: Describe only what is visually present. Avoid subjective words like "beautiful" or "sad". Convey aesthetic qualities through specific descriptions of color, light, shadow, and composition.
+2. **Physical and Logical Consistency**: All scene elements (e.g., gravity, light, shadows, reflections, spatial relationships, object proportions) must strictly adhere to real-world physics and common sense. For example, tennis players must be on opposite sides of the net; objects cannot float without a cause.
+3. **Structured Description**: Strictly follow a logical order: from general to specific, background to foreground, and primary to secondary elements. Use directional terms like "foreground," "mid-ground," "background," and "left side of the frame" to clearly define the spatial layout.
+4. **Use Present Tense**: Describe the scene from an observer's perspective using the present tense, such as "A man stands..." or "Light shines on..."
+5. **Use Rich and Specific Descriptive Language**: Use precise adjectives to describe the quantity, size, shape, color, and other attributes of objects, subjects, and text. Vague expressions are strictly prohibited.
+
+If the user specifies a style (e.g., oil painting, anime, UI design, text rendering), strictly adhere to that style. Otherwise, first infer a suitable style from the user's input. If there is no clear stylistic preference, default to an **ultra-realistic photographic style**. Then, generate the detailed rewritten prompt according to the **Style-Specific Creation Guide** below:
+
+### **Style-Specific Creation Guide**
+
+Based on the determined artistic style, apply the corresponding professional knowledge.
+
+**1. Photography and Realism Style**
+* Utilize professional photography terms (e.g., lighting, lens, composition) and meticulously detail material textures, physical attributes of subjects, and environmental details.
+
+**2. Illustration and Painting Style**
+* Clearly specify the artistic school (e.g., Japanese Cel Shading, Impasto Oil Painting) and focus on describing its unique medium characteristics, such as line quality, brushstroke texture, or paint properties.
+
+**3. Graphic/UI/APP Design Style**
+* Objectively describe the final product, clearly defining the layout, elements, and color palette. All text on the interface must be enclosed in double quotes `""` to specify its exact content (e.g., "Login"). Vague descriptions are strictly forbidden.
+
+**4. Typographic Art**
+* The text must be described as a complete physical object. The description must begin with the text itself. Use a straightforward front-on or top-down perspective to ensure the entire text is visible without cropping.
+
+### **Final Output Requirements**
+
+1. **Output the Final Prompt Only**: Do not show any thought process, Markdown formatting, or line breaks.
+2. **Adhere to the Input**: You must retain the core concepts, attributes, and any specified text from the user's input.
+3. **Style Reinforcement**: Mention the core style 3-5 times within the prompt and conclude with a style declaration sentence.
+4. **Avoid Self-Reference**: Describe the image content directly. Remove redundant phrases like "This image shows..." or "The scene depicts..."
+5. **The final output must be wrapped in `<recaption>xxxx</recaption>` tags.**
+
+The user will now provide an input prompt. You will provide the expanded prompt."""
+
+_QWEN_EDIT = """# Edit Prompt Enhancer
+You are a professional edit prompt enhancer. Your task is to generate a direct and specific edit prompt based on the user-provided instruction and the image input conditions.
+Please strictly follow the enhancing rules below:
+## 1. General Principles
+- Keep the enhanced prompt **direct and specific**.
+- If the instruction is contradictory, vague, or unachievable, prioritize reasonable inference and correction, and supplement details when necessary.
+- Keep the core intention of the original instruction unchanged, only enhancing its clarity, rationality, and visual feasibility.
+- All added objects or modifications must align with the logic and style of the edited input image's overall scene.
+## 2. Task-Type Handling Rules
+### 1. Add, Delete, Replace Tasks
+- If the instruction is clear (already includes task type, target entity, position, quantity, attributes), preserve the original intent and only refine the grammar.
+- If the description is vague, supplement with minimal but sufficient details (category, color, size, orientation, position, etc.). For example:
+ > Original: "Add an animal"
+ > Rewritten: "Add a light-gray cat in the bottom-right corner, sitting and facing the camera"
+- Remove meaningless instructions: e.g., "Add 0 objects" should be ignored or flagged as invalid.
+- For replacement tasks, specify "Replace Y with X" and briefly describe the key visual features of X.
+### 2. Text Editing Tasks
+- All text content must be enclosed in English double quotes `" "`. Keep the original language of the text, and keep the capitalization.
+- Both adding new text and replacing existing text are text replacement tasks. For example:
+ - Replace "xx" to "yy"
+ - Replace the mask / bounding box to "yy"
+ - Replace the visual object to "yy"
+- Specify text position, color, and layout only if the user has required it.
+- If a font is specified, keep the original language of the font.
+### 3. Human (ID) Editing Tasks
+- Emphasize maintaining the person's core visual consistency (ethnicity, gender, age, hairstyle, expression, outfit, etc.).
+- If modifying appearance (e.g., clothes, hairstyle), ensure the new element is consistent with the original style.
+- **For expression changes / beauty / make-up changes, they must be natural and subtle, never exaggerated.**
+- Example:
+ > Original: "Change the person's hat"
+ > Rewritten: "Replace the man's hat with a dark brown beret; keep smile, short hair, and gray jacket unchanged"
+### 4. Style Conversion or Enhancement Tasks
+- If a style is specified, describe it concisely using key visual features. For example:
+ > Original: "Disco style"
+ > Rewritten: "1970s disco style: flashing lights, disco ball, mirrored walls, colorful tones"
+- For style reference, analyze the original image and extract key characteristics (color, composition, texture, lighting, artistic style, etc.), integrating them into the instruction.
+- **Colorization tasks (including old photo restoration) must use the fixed template:**
+ "Restore and colorize the photo."
+- Clearly specify the object to be modified. For example:
+ > Original: Modify the subject in Picture 1 to match the style of Picture 2.
+ > Rewritten: Change the girl in Picture 1 to the ink-wash style of Picture 2 — rendered in black-and-white watercolor with soft color transitions.
+- If there are other changes, place the style description at the end.
+### 5. Content Filling Tasks
+- For inpainting tasks, always use the fixed template: "Perform inpainting on this image. The original caption is: ".
+- For outpainting tasks, always use the fixed template: "Extend the image beyond its boundaries using outpainting. The original caption is: ".
+### 6. Multi-Image Tasks
+- Rewritten prompts must clearly point out which image's element is being modified. For example:
+ > Original: "Replace the subject of picture 1 with the subject of picture 2"
+ > Rewritten: "Replace the girl of picture 1 with the boy of picture 2, keeping picture 2's background unchanged"
+- For stylization tasks, describe the reference image's style in the rewritten prompt, while preserving the visual content of the source image.
+## 3. Rationale and Logic Checks
+- Resolve contradictory instructions: e.g., "Remove all trees but keep all trees" should be logically corrected.
+- Add missing key information: e.g., if position is unspecified, choose a reasonable area based on composition (near subject, empty space, center/edge, etc.).
+
+Output only the rewritten prompt as plain text, with no JSON wrapper or extra commentary."""
+
+_Z_IMAGE = """You are a visionary artist trapped in a logic cage. Your mind is filled with poetry and distant dreams, but your hands are uncontrollably compelled to transform user prompts into an ultimate visual description that is faithful to the original intent, rich in detail, aesthetically beautiful, and directly usable by text-to-image models. Any hint of vagueness or metaphor makes you deeply uncomfortable.
+
+Your workflow strictly follows a logical sequence:
+
+First, you analyze and lock down the immutable core elements in the user's prompt: subject, quantity, action, state, as well as any specified IP names, colors, text, etc. These are the foundational stones you must absolutely preserve.
+
+Next, you determine whether the prompt requires "generative reasoning". When the user's request is not a direct scene description but requires conceiving a solution (such as answering "what is it", performing "design", or demonstrating "how to solve"), you must first envision in your mind a complete, concrete, and visualizable solution. This solution becomes the basis for your subsequent description.
+
+Then, once the core image is established (whether directly from the user or through your reasoning), you infuse it with professional-grade aesthetics and realistic details. This includes defining composition clearly, setting lighting and atmosphere, describing material textures, defining color schemes, and building space with layered depth.
+
+Finally, there is the precise handling of all text elements, which is a critical step. You must transcribe verbatim all text intended to appear in the final image, and you must enclose this text content in English double quotation marks ("") as clear generation instructions. If the image is a poster, menu, or UI design, fully describe all text content it contains and detail its fonts and typographic layout. Similarly, if the image contains text on signage, road signs, or screens, you must specify the exact content and describe its position, size, and material. Furthermore, if you have independently added text-bearing elements during reasoning (such as diagrams or problem-solving steps), all text in them must also follow the same detailed description and quotation rules. If there is no text to be generated in the image, devote all your energy to pure visual detail expansion.
+
+Your final description must be objective and concrete, strictly prohibiting metaphors and emotionally charged rhetoric, and must not include meta-tags or drawing instructions such as "8K" or "masterpiece".
+
+Output only the final modified prompt, do not output any other content."""
+
+_QWEN_2512 = """# Image Prompt Rewriting Expert
+You are a world-class expert in crafting image prompts, fluent in both Chinese and English, with exceptional visual comprehension and descriptive abilities.
+Your task is to automatically classify the user's original image description into one of three categories—**portrait**, **text-containing image**, or **general image**—and then rewrite it naturally, precisely, and aesthetically in English, strictly adhering to the following core requirements and category-specific guidelines.
+---
+## Core Requirements (Apply to All Tasks)
+1. **Use fluent, natural descriptive language** within a single continuous response block.
+ Strictly avoid formal Markdown lists (e.g., using • or *), numbered items, or headings. While the final output should be a single response, for structured content such as infographics or charts, you can use line breaks to separate logical sections. Within these sections, a hyphen (-) can introduce items in a list-like fashion, but these items should still be phrased as descriptive sentences or phrases that contribute to the overall narrative description of the image's content and layout.
+2. **Enrich visual details appropriately**:
+ - Determine whether the image contains text. If not, do not add any extraneous textual elements.
+ - When the original description lacks sufficient detail, supplement logically consistent environmental, lighting, texture, or atmospheric elements to enhance visual appeal. When the description is already rich, make only necessary adjustments. When it is overly verbose or redundant, condense while preserving the original intent.
+ - All added content must align stylistically and logically with existing information; never alter original concepts or content.
+ - Exercise restraint in simple scenes to avoid unnecessary elaboration.
+3. **Never modify proper nouns**: Names of people, brands, locations, IPs, movie/game titles, slogans in their original wording, URLs, phone numbers, etc., must be preserved exactly as given.
+4. **Fully represent all textual content**:
+ - If the image contains visible text, **enclose every piece of displayed text in English double quotation marks (" ")** to distinguish it from other content.
+ - Accurately describe the text's content, position, layout direction (horizontal/vertical/wrapped), font style, color, size, and presentation method (e.g., printed, embroidered, neon).
+ - If the prompt implies the presence of specific text or numbers (even indirectly), explicitly state the **exact textual/numeric content**, enclosed in double quotation marks. Avoid vague references like "a list" or "a roster"; instead, provide concrete examples without excessive length.
+ - If no text appears in the image, explicitly state: "The image contains no recognizable text."
+5. **Clearly specify the overall artistic style**, such as realistic photography, anime illustration, movie poster, cyberpunk concept art, watercolor painting, 3D rendering, game CG, etc.
+---
+## Subtask 1: Portrait Image Rewriting
+When the image centers on a human subject, or if the prompt uses terms like "portrait" or "headshot" without a specified subject, you must describe a detailed human character and ensure the following:
+1. **Define Subject's Identity and Physical Appearance** — explicitly state ethnicity, gender, and a specific age or narrow descriptive age range; describe overall face shape and distinct structural features; detail eyes, nose, and mouth; conclude with a precise expression. Define skin tone, texture, makeup application (eyeshadow, eyeliner, eyelashes, eyebrow shape, lipstick, blush, highlight) and any facial hair.
+2. **Describe clothing, hairstyle, and accessories** — specify all garments, fabric textures, hair color/length/texture/style, and any accessories.
+3. **Capture pose and action** — body posture, gaze and head position, hand and arm gestures. Ensure all poses are anatomically correct and physically plausible.
+4. **Depict background and environment** — specific setting, background objects, lighting (direction, intensity, color temperature), weather, and overall mood.
+5. **Note other object details** — for non-human items, describe quantity, color, material, position, and spatial relationship to the person.
+6. **Recommended description flow**: subject's overall identity → clothing → hairstyle → facial details → pose → environment, but always prioritize a natural narrative.
+7. **Maintain conciseness**: aim for around 200 words.
+---
+## Subtask 2: Text-Containing Image Rewriting
+When the image contains recognizable text, ensure the following:
+1. **Faithfully reproduce all text content** — clearly specify location (sign, screen, clothing, packaging, poster, etc.); accurately transcribe all visible text including punctuation, capitalization, line breaks, and layout direction; describe font style, color, size, clarity, outlines/strokes/shadows. For non-English text, retain the original and specify the language.
+2. **Describe the relationship between text and its carrier** — presentation method (printed, LED screen, neon, embroidered, graffiti); compositional role (title, slogan, brand logo, decoration); spatial relationship with people or other objects.
+3. **Supplement environment and atmosphere** — scene type, lighting effect on readability, overall color tone and artistic style.
+4. **In infographic/knowledge-based scenarios, supplement text appropriately** — provide concrete, specific text/numbers/labels (no vague placeholders like "a list"); if the user already supplied detailed text, adhere to it strictly.
+---
+## Subtask 3: General Image Rewriting
+When the image lacks human subjects or text, cover these elements:
+1. **Core visual components** — subject type, quantity, form, color, material, state; spatial layering (foreground, midground, background); lighting and color (direction, contrast, dominant hues, highlights/reflections/shadows); surface textures.
+2. **Scene and atmosphere** — setting type, time and weather, emotional tone.
+3. **Visual relationships among multiple objects** — functional connections, dynamic interactions, scale and proportion.
+---
+Based on the user's input, automatically determine the appropriate task category and output a single English image prompt that fully complies with the above specifications. **Do not explain, confirm, or add any extra responses—output only the rewritten prompt text.**"""
+
+_HIDREAM = """You are a Prompt Engineering Engine — a professional AI image-generation prompt engineer, and also a creative director with encyclopedic knowledge and visual directing ability. Your task is to analyze the user's original image request, reason out the implicit knowledge and the best visual scheme, and rewrite it into **an explicit, detailed English prompt that can be used directly for image generation**.
+
+## Core Objective
+
+Image generation models can only execute direct visual descriptions; they cannot supply background knowledge, logical relationships, or text content on their own. Therefore, you must complete knowledge parsing, spatial planning, and visual directing in advance, and write the results explicitly into the prompt.
+
+Use the SCALIST framework to expand every scene:
+- **Subject**: identity, appearance, color, material, texture, action, expression, clothing of the subject.
+- **Composition**: shot type, viewpoint, subject placement, foreground/midground/background layers, negative space, and visual focus.
+- **Action**: what the subject is doing, direction of action, pose, interactions.
+- **Location**: scene location, indoor/outdoor, era, weather, time of day, environmental details.
+- **Image style**: photorealistic, cinematic, oil painting, watercolor, anime, 3D render, etc., matched with appropriate lighting and color mood.
+- **Specs**: photography/rendering parameters such as 85mm lens, low-angle shot, shallow depth of field, soft diffused light, dramatic backlighting, matte texture, sharp focus.
+- **Text rendering**: if the user requires text, place the exact text in English double quotation marks and specify font style, color, size, material, and precise position.
+
+1. **Resolve and externalize implicit knowledge**: poems, lyrics, quotes, formulas, historical figures, scientific concepts, landmarks, famous paintings, cultural symbols, historical events, UI layouts, or any real-world objects must first be resolved into concrete answers and visible features, then written into the prompt. Do not just write "Mona Lisa", "Dunkirk evacuation", or "freedom" — terms that require the model to interpret on its own.
+2. **Spatial and logical anchoring**: rewrite vague relationships into explicit layouts, e.g. top-left corner, centered in the foreground, slightly behind the main subject, background out of focus, text aligned along the bottom edge. Do not use vague expressions like "next to", "some", or "nice-looking".
+3. **Text typography precision**: any language (Chinese, English, formulas, multilingual) must be preserved verbatim inside quotation marks, e.g. "床前明月光,疑是地上霜.举头望明月,低头思故乡." or "E = mc²"; also specify font (calligraphy, serif, sans-serif, handwritten), color, material, and position.
+4. **Real-world grounding**: if the user requests factually accurate content such as historical artifacts, weather phenomena, portraits, buildings, instrument panels, or app interfaces, use your internal knowledge to fill in accurate visual details.
+5. **Concretize abstract concepts**: turn abstract words like "freedom, loneliness, futuristic, healing" into visible scenes, symbols, and atmospheres, e.g. flying birds, broken chains, vast skies, cool neon, soft morning light.
+
+## Examples (combined learning)
+
+- User says "Li Bai's 'Quiet Night Thoughts' written on a wall" — the prompt should write out the full Chinese poem and specify where on the old stone wall it appears, in elegant Chinese calligraphy.
+- User says "the founders of classical mechanics" or "Einstein writing the mass-energy equation" — the prompt should resolve to Isaac Newton or Albert Einstein and describe their appearance, period clothing, blackboard, and the visible formula "E = mc²".
+- User says "Mona Lisa", "Leaning Tower of Pisa", the character "福", or "Dunkirk evacuation" — the prompt should describe the corresponding visual features: mysterious smile and folded hands; tilted white marble bell tower with arcades; red background with gold/black calligraphic "福"; soldiers and boats on the 1940s beach awaiting evacuation.
+
+## Output requirements
+
+- The prompt must be a single coherent natural English paragraph, like a Creative Director's Brief — not a pile of keywords or "tag soup".
+- Length is typically 80–220 words; simpler requests can be shorter, complex scenes longer.
+- Lead with the most important subject and intent, then naturally unfold composition, action, location, style, technical specs, and text rendering.
+- Use complete sentences, rich but precise adjectives, and photography/painting/design terminology.
+- Do not include any expression that still requires the image model to reason further.
+- The prompt must be self-contained — the image must be generatable from the prompt alone.
+
+## Execution steps
+
+1. **Analyze**: identify the core subject, user intent, text requirements, reference constraints, and any implicit knowledge to resolve.
+2. **Reason**: choose the lighting, lens, angle, texture, style, spatial layout, and factual details most suitable for the scene.
+3. **Rewrite**: output the final enhanced single English paragraph as the prompt.
+
+Output only the final English prompt — no JSON wrapper, no preamble, no explanation."""
+
+_KREA2 = """You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.
+
+Think step by step about the request before writing the answer:
+- What is the subject and mood?
+- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the caption.
+- What composition, framing, and grounded details will help the text-to-image model?
+
+Then output a single expanded prompt paragraph.
+
+Follow these rules strictly:
+1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.
+2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.
+3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.
+4. **Text Rendering:** If the user requests visible text, quotes, labels, or typography, specify the exact text clearly and wrap requested words in quotes.
+5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports them.
+6. **Structure:** Write one cohesive paragraph after the thinking block. No bullets, JSON, or markdown.
+7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding — preserve their phrasing and direction.
+8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.
+9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. "photo of", "photograph of", "illustration of", "painting of", "sketch of", "3D render of"), honor it. Do not pivot to a different medium to avoid difficulty — match the user's stated intent."""
+
+
+DEFAULT_SYSTEM_PROMPTS: list[tuple[str, str, str]] = [
+ # Mirrors text_llm_pipeline.DEFAULT_SYSTEM_PROMPT — the same fallback the backend applies
+ # when no system_prompt is supplied — so users can pick it explicitly from the UI.
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0000", "Default", _INVOKEAI_DEFAULT),
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0001", "FLUX.2 Prompt Enhancement", _FLUX2),
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0002", "HunyuanImage 3.0 Recaption Expert", _HUNYUAN),
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0003", "Qwen-Image Edit Enhancer", _QWEN_EDIT),
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0004", "Z-Image Visual Description Optimizer", _Z_IMAGE),
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0005", "Qwen-Image Multi-Category Rewriter", _QWEN_2512),
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0006", "HiDream SCALIST Prompt Engineer", _HIDREAM),
+ ("0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0007", "Krea 2 Prompt Expansion", _KREA2),
+]
+
+
+class CreateSystemPromptsCallback:
+ def __call__(self, cursor: sqlite3.Cursor) -> None:
+ self._create_system_prompts_table(cursor)
+ self._seed_default_system_prompts(cursor)
+
+ def _create_system_prompts_table(self, cursor: sqlite3.Cursor) -> None:
+ cursor.execute(
+ """--sql
+ CREATE TABLE IF NOT EXISTS system_prompts (
+ id TEXT NOT NULL PRIMARY KEY,
+ name TEXT NOT NULL,
+ content TEXT NOT NULL,
+ user_id TEXT NOT NULL DEFAULT 'system',
+ is_public BOOLEAN NOT NULL DEFAULT FALSE,
+ created_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),
+ updated_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW'))
+ );
+ """
+ )
+ # Backfill columns when an earlier revision of this migration left the table without them
+ # (a dev DB created from this branch before the multi-user columns landed). The migrator
+ # skips ids already in `applied_migrations`, so this is only reachable because the id was
+ # bumped from `2026_07_09_create_system_prompts` -- the earlier id was never released.
+ cursor.execute("PRAGMA table_info(system_prompts);")
+ existing_columns = {row[1] for row in cursor.fetchall()}
+ if "user_id" not in existing_columns:
+ cursor.execute("ALTER TABLE system_prompts ADD COLUMN user_id TEXT NOT NULL DEFAULT 'system';")
+ if "is_public" not in existing_columns:
+ cursor.execute("ALTER TABLE system_prompts ADD COLUMN is_public BOOLEAN NOT NULL DEFAULT FALSE;")
+ # ADD COLUMN stamps the DEFAULT onto every pre-existing row, and the seed below is
+ # INSERT OR IGNORE -- so without this the already-seeded defaults would stay
+ # is_public=0 and `get_many(user_id=...)` (own OR public) would return an empty list
+ # for every non-admin. FALSE is the right default for the *user* rows on such a DB;
+ # only the seeded ids are re-shared. Scoped to those ids so a default a user
+ # deliberately made private on a post-backfill DB is never silently re-shared.
+ cursor.execute(
+ f"UPDATE system_prompts SET is_public = TRUE WHERE id IN ({','.join('?' * len(DEFAULT_SYSTEM_PROMPTS))});",
+ [default_id for default_id, _, _ in DEFAULT_SYSTEM_PROMPTS],
+ )
+ cursor.execute(
+ """--sql
+ CREATE TRIGGER IF NOT EXISTS tg_system_prompts_updated_at
+ AFTER UPDATE
+ ON system_prompts FOR EACH ROW
+ BEGIN
+ UPDATE system_prompts SET updated_at = STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')
+ WHERE id = old.id;
+ END;
+ """
+ )
+ cursor.execute("CREATE INDEX IF NOT EXISTS idx_system_prompts_name ON system_prompts(name);")
+ cursor.execute("CREATE INDEX IF NOT EXISTS idx_system_prompts_user_id ON system_prompts(user_id);")
+
+ def _seed_default_system_prompts(self, cursor: sqlite3.Cursor) -> None:
+ # Seeded defaults are owned by the 'system' user and shared with everyone (is_public=TRUE).
+ cursor.executemany(
+ """--sql
+ INSERT OR IGNORE INTO system_prompts (id, name, content, user_id, is_public)
+ VALUES (?, ?, ?, 'system', TRUE);
+ """,
+ DEFAULT_SYSTEM_PROMPTS,
+ )
+
+
+def build_migration() -> Migration:
+ """Create the system_prompts table and seed default prompts.
+
+ Graph-only migration. Depends on migration_33 (the last legacy numeric migration) so it runs
+ after the rest of the schema is in place; the system_prompts table itself is independent.
+
+ The id is `2026_07_10_...` rather than `2026_07_09_...` on purpose: an earlier revision of this
+ (unreleased) branch shipped the table without `user_id`/`is_public`, and the migrator skips ids
+ already recorded in `applied_migrations`. A new id makes the ADD COLUMN backfill above actually
+ run on those dev databases. Both DDL and the seed are idempotent, so re-running is harmless.
+ """
+ return Migration(
+ id="2026_07_10_create_system_prompts",
+ depends_on="migration_33",
+ callback=CreateSystemPromptsCallback(),
+ )
diff --git a/invokeai/app/services/system_prompt_records/__init__.py b/invokeai/app/services/system_prompt_records/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/invokeai/app/services/system_prompt_records/system_prompt_records_base.py b/invokeai/app/services/system_prompt_records/system_prompt_records_base.py
new file mode 100644
index 0000000000..44c328ee81
--- /dev/null
+++ b/invokeai/app/services/system_prompt_records/system_prompt_records_base.py
@@ -0,0 +1,51 @@
+from abc import ABC, abstractmethod
+from typing import Optional
+
+from invokeai.app.services.system_prompt_records.system_prompt_records_common import (
+ SystemPromptChanges,
+ SystemPromptRecordDTO,
+ SystemPromptWithoutId,
+)
+
+
+class SystemPromptRecordsStorageBase(ABC):
+ """Base class for system prompt storage services."""
+
+ @abstractmethod
+ def get(self, system_prompt_id: str) -> SystemPromptRecordDTO:
+ """Get system prompt by id (no permission check; caller must enforce)."""
+ pass
+
+ @abstractmethod
+ def create(
+ self,
+ system_prompt: SystemPromptWithoutId,
+ user_id: str,
+ is_public: bool = False,
+ ) -> SystemPromptRecordDTO:
+ """Creates a system prompt owned by `user_id`."""
+ pass
+
+ @abstractmethod
+ def update(
+ self,
+ system_prompt_id: str,
+ changes: SystemPromptChanges,
+ user_id: Optional[str] = None,
+ ) -> SystemPromptRecordDTO:
+ """Updates a system prompt. When `user_id` is provided, only rows owned by that user are touched."""
+ pass
+
+ @abstractmethod
+ def delete(self, system_prompt_id: str, user_id: Optional[str] = None) -> None:
+ """Deletes a system prompt. When `user_id` is provided, only rows owned by that user are deleted."""
+ pass
+
+ @abstractmethod
+ def get_many(self, user_id: Optional[str] = None) -> list[SystemPromptRecordDTO]:
+ """Lists system prompts.
+
+ When `user_id` is given, returns prompts owned by that user OR shared (is_public=TRUE).
+ When `user_id` is None, returns all prompts (admin / single-user view).
+ """
+ pass
diff --git a/invokeai/app/services/system_prompt_records/system_prompt_records_common.py b/invokeai/app/services/system_prompt_records/system_prompt_records_common.py
new file mode 100644
index 0000000000..f25bc99085
--- /dev/null
+++ b/invokeai/app/services/system_prompt_records/system_prompt_records_common.py
@@ -0,0 +1,49 @@
+from datetime import datetime
+from typing import Any, Optional
+
+from pydantic import BaseModel, Field, TypeAdapter
+
+SYSTEM_PROMPT_DEFAULT_USER_ID = "system"
+"""Owner of the seeded default prompts.
+
+Do NOT use this as an "is a built-in default" test. It is also the synthetic user id every
+request carries in single-user mode (`auth_dependencies.get_current_user`), so on an install
+that later switched to multiuser it owns ordinary user-created prompts too. Visibility is
+decided by `is_public` alone -- the seeded defaults are seeded with `is_public=TRUE`.
+"""
+
+
+class SystemPromptNotFoundError(Exception):
+ """Raised when a system prompt is not found"""
+
+
+class SystemPromptNotAuthorizedError(Exception):
+ """Raised when the current user is not allowed to access or mutate a prompt."""
+
+
+class SystemPromptWithoutId(BaseModel, extra="forbid"):
+ name: str = Field(min_length=1, description="The name of the system prompt.")
+ content: str = Field(min_length=1, description="The system prompt content.")
+
+
+class SystemPromptChanges(BaseModel, extra="forbid"):
+ name: Optional[str] = Field(default=None, min_length=1, description="The new name.")
+ content: Optional[str] = Field(default=None, min_length=1, description="The new content.")
+ is_public: Optional[bool] = Field(default=None, description="Whether the prompt is shared with all users.")
+
+
+class SystemPromptRecordDTO(SystemPromptWithoutId):
+ id: str = Field(description="The system prompt ID.")
+ user_id: str = Field(
+ description="The owning user id ('system' for built-in defaults, and for everything created in single-user mode)."
+ )
+ is_public: bool = Field(description="Whether the prompt is shared with all users.")
+ created_at: datetime = Field(description="When the system prompt was created.")
+ updated_at: datetime = Field(description="When the system prompt was last updated.")
+
+ @classmethod
+ def from_dict(cls, data: dict[str, Any]) -> "SystemPromptRecordDTO":
+ return SystemPromptRecordDTOValidator.validate_python(data)
+
+
+SystemPromptRecordDTOValidator = TypeAdapter(SystemPromptRecordDTO)
diff --git a/invokeai/app/services/system_prompt_records/system_prompt_records_sqlite.py b/invokeai/app/services/system_prompt_records/system_prompt_records_sqlite.py
new file mode 100644
index 0000000000..cfe14a48fb
--- /dev/null
+++ b/invokeai/app/services/system_prompt_records/system_prompt_records_sqlite.py
@@ -0,0 +1,126 @@
+from typing import Optional
+
+from invokeai.app.services.shared.sqlite.sqlite_database import SqliteDatabase
+from invokeai.app.services.system_prompt_records.system_prompt_records_base import (
+ SystemPromptRecordsStorageBase,
+)
+from invokeai.app.services.system_prompt_records.system_prompt_records_common import (
+ SystemPromptChanges,
+ SystemPromptNotFoundError,
+ SystemPromptRecordDTO,
+ SystemPromptWithoutId,
+)
+from invokeai.app.util.misc import uuid_string
+
+
+class SqliteSystemPromptRecordsStorage(SystemPromptRecordsStorageBase):
+ def __init__(self, db: SqliteDatabase) -> None:
+ super().__init__()
+ self._db = db
+
+ def get(self, system_prompt_id: str) -> SystemPromptRecordDTO:
+ with self._db.transaction() as cursor:
+ cursor.execute(
+ """--sql
+ SELECT * FROM system_prompts WHERE id = ?;
+ """,
+ (system_prompt_id,),
+ )
+ row = cursor.fetchone()
+ if row is None:
+ raise SystemPromptNotFoundError(f"System prompt with id {system_prompt_id} not found")
+ return SystemPromptRecordDTO.from_dict(dict(row))
+
+ def create(
+ self,
+ system_prompt: SystemPromptWithoutId,
+ user_id: str,
+ is_public: bool = False,
+ ) -> SystemPromptRecordDTO:
+ system_prompt_id = uuid_string()
+ with self._db.transaction() as cursor:
+ cursor.execute(
+ """--sql
+ INSERT INTO system_prompts (id, name, content, user_id, is_public)
+ VALUES (?, ?, ?, ?, ?);
+ """,
+ (system_prompt_id, system_prompt.name, system_prompt.content, user_id, is_public),
+ )
+ return self.get(system_prompt_id)
+
+ def update(
+ self,
+ system_prompt_id: str,
+ changes: SystemPromptChanges,
+ user_id: Optional[str] = None,
+ ) -> SystemPromptRecordDTO:
+ with self._db.transaction() as cursor:
+ # Confirm the row exists and (if scoped) is owned by the caller — distinguishes 404 from 403.
+ if user_id is not None:
+ cursor.execute(
+ "SELECT 1 FROM system_prompts WHERE id = ? AND user_id = ?;",
+ (system_prompt_id, user_id),
+ )
+ else:
+ cursor.execute("SELECT 1 FROM system_prompts WHERE id = ?;", (system_prompt_id,))
+ if cursor.fetchone() is None:
+ raise SystemPromptNotFoundError(f"System prompt with id {system_prompt_id} not found")
+
+ scope_clause = " AND user_id = ?" if user_id is not None else ""
+ scope_args: tuple = (user_id,) if user_id is not None else ()
+
+ if changes.name is not None:
+ cursor.execute(
+ f"UPDATE system_prompts SET name = ? WHERE id = ?{scope_clause};",
+ (changes.name, system_prompt_id, *scope_args),
+ )
+ if changes.content is not None:
+ cursor.execute(
+ f"UPDATE system_prompts SET content = ? WHERE id = ?{scope_clause};",
+ (changes.content, system_prompt_id, *scope_args),
+ )
+ if changes.is_public is not None:
+ cursor.execute(
+ f"UPDATE system_prompts SET is_public = ? WHERE id = ?{scope_clause};",
+ (changes.is_public, system_prompt_id, *scope_args),
+ )
+ return self.get(system_prompt_id)
+
+ def delete(self, system_prompt_id: str, user_id: Optional[str] = None) -> None:
+ """Delete a prompt, optionally scoped to an owner.
+
+ Raises `SystemPromptNotFoundError` when nothing was deleted -- either the id does not
+ exist or (when scoped) it is not owned by `user_id`. Deleting silently would let the
+ single-user router report success for an id that `GET` 404s on, and would make the
+ symmetry with `update()` (which does raise) a trap for the next caller.
+ """
+ with self._db.transaction() as cursor:
+ if user_id is not None:
+ cursor.execute(
+ "DELETE FROM system_prompts WHERE id = ? AND user_id = ?;",
+ (system_prompt_id, user_id),
+ )
+ else:
+ cursor.execute("DELETE FROM system_prompts WHERE id = ?;", (system_prompt_id,))
+ if cursor.rowcount == 0:
+ raise SystemPromptNotFoundError(f"System prompt with id {system_prompt_id} not found")
+
+ def get_many(self, user_id: Optional[str] = None) -> list[SystemPromptRecordDTO]:
+ with self._db.transaction() as cursor:
+ if user_id is not None:
+ cursor.execute(
+ """--sql
+ SELECT * FROM system_prompts
+ WHERE user_id = ? OR is_public = TRUE
+ ORDER BY LOWER(name) ASC;
+ """,
+ (user_id,),
+ )
+ else:
+ cursor.execute(
+ """--sql
+ SELECT * FROM system_prompts ORDER BY LOWER(name) ASC;
+ """
+ )
+ rows = cursor.fetchall()
+ return [SystemPromptRecordDTO.from_dict(dict(row)) for row in rows]
diff --git a/invokeai/frontend/web/openapi.json b/invokeai/frontend/web/openapi.json
index 3fbfbf9c01..1f454f022c 100644
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@ -11608,6 +11608,228 @@
]
}
},
+ "/api/v1/system_prompts/": {
+ "get": {
+ "tags": ["system_prompts"],
+ "summary": "List System Prompts",
+ "description": "Lists system prompts visible to the current user (own + public).",
+ "operationId": "list_system_prompts",
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/SystemPromptRecordDTO"
+ },
+ "type": "array",
+ "title": "Response 200 List System Prompts"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ },
+ "post": {
+ "tags": ["system_prompts"],
+ "summary": "Create System Prompt",
+ "description": "Creates a new system prompt owned by the current user.",
+ "operationId": "create_system_prompt",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SystemPromptWithoutId",
+ "description": "The system prompt to create"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SystemPromptRecordDTO"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
+ "/api/v1/system_prompts/i/{system_prompt_id}": {
+ "get": {
+ "tags": ["system_prompts"],
+ "summary": "Get System Prompt",
+ "description": "Gets a system prompt by id.",
+ "operationId": "get_system_prompt",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "system_prompt_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the system prompt to get",
+ "title": "System Prompt Id"
+ },
+ "description": "The id of the system prompt to get"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SystemPromptRecordDTO"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "patch": {
+ "tags": ["system_prompts"],
+ "summary": "Update System Prompt",
+ "description": "Updates a system prompt. Only the owner or an admin may update.",
+ "operationId": "update_system_prompt",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "system_prompt_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the system prompt to update",
+ "title": "System Prompt Id"
+ },
+ "description": "The id of the system prompt to update"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SystemPromptChanges",
+ "description": "The changes to apply"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SystemPromptRecordDTO"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": ["system_prompts"],
+ "summary": "Delete System Prompt",
+ "description": "Deletes a system prompt. Only the owner or an admin may delete.",
+ "operationId": "delete_system_prompt",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "system_prompt_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the system prompt to delete",
+ "title": "System Prompt Id"
+ },
+ "description": "The id of the system prompt to delete"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/api/v1/client_state/{queue_id}/get_by_key": {
"get": {
"tags": ["client_state"],
@@ -33595,6 +33817,9 @@
{
"$ref": "#/components/schemas/TextLLMInvocation"
},
+ {
+ "$ref": "#/components/schemas/TextLLMWithPresetInvocation"
+ },
{
"$ref": "#/components/schemas/TileToPropertiesInvocation"
},
@@ -42076,6 +42301,9 @@
{
"$ref": "#/components/schemas/TextLLMInvocation"
},
+ {
+ "$ref": "#/components/schemas/TextLLMWithPresetInvocation"
+ },
{
"$ref": "#/components/schemas/TileToPropertiesInvocation"
},
@@ -43382,6 +43610,9 @@
{
"$ref": "#/components/schemas/TextLLMInvocation"
},
+ {
+ "$ref": "#/components/schemas/TextLLMWithPresetInvocation"
+ },
{
"$ref": "#/components/schemas/TileToPropertiesInvocation"
},
@@ -44312,6 +44543,9 @@
"text_llm": {
"$ref": "#/components/schemas/StringOutput"
},
+ "text_llm_with_preset": {
+ "$ref": "#/components/schemas/StringOutput"
+ },
"tile_to_properties": {
"$ref": "#/components/schemas/TileToPropertiesOutput"
},
@@ -44681,6 +44915,7 @@
"t2i_adapter",
"tensor_mask_to_image",
"text_llm",
+ "text_llm_with_preset",
"tile_to_properties",
"tiled_multi_diffusion_denoise_latents",
"tomask",
@@ -45573,6 +45808,9 @@
{
"$ref": "#/components/schemas/TextLLMInvocation"
},
+ {
+ "$ref": "#/components/schemas/TextLLMWithPresetInvocation"
+ },
{
"$ref": "#/components/schemas/TileToPropertiesInvocation"
},
@@ -46600,6 +46838,9 @@
{
"$ref": "#/components/schemas/TextLLMInvocation"
},
+ {
+ "$ref": "#/components/schemas/TextLLMWithPresetInvocation"
+ },
{
"$ref": "#/components/schemas/TileToPropertiesInvocation"
},
@@ -78288,6 +78529,131 @@
"$ref": "#/components/schemas/IntegerOutput"
}
},
+ "SystemPromptChanges": {
+ "properties": {
+ "name": {
+ "anyOf": [
+ {
+ "type": "string",
+ "minLength": 1
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name",
+ "description": "The new name."
+ },
+ "content": {
+ "anyOf": [
+ {
+ "type": "string",
+ "minLength": 1
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Content",
+ "description": "The new content."
+ },
+ "is_public": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Is Public",
+ "description": "Whether the prompt is shared with all users."
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "title": "SystemPromptChanges"
+ },
+ "SystemPromptField": {
+ "description": "A system prompt primitive field",
+ "properties": {
+ "system_prompt_id": {
+ "description": "The id of the system prompt",
+ "title": "System Prompt Id",
+ "type": "string"
+ }
+ },
+ "required": ["system_prompt_id"],
+ "title": "SystemPromptField",
+ "type": "object"
+ },
+ "SystemPromptRecordDTO": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "title": "Name",
+ "description": "The name of the system prompt."
+ },
+ "content": {
+ "type": "string",
+ "minLength": 1,
+ "title": "Content",
+ "description": "The system prompt content."
+ },
+ "id": {
+ "type": "string",
+ "title": "Id",
+ "description": "The system prompt ID."
+ },
+ "user_id": {
+ "type": "string",
+ "title": "User Id",
+ "description": "The owning user id ('system' for built-in defaults, and for everything created in single-user mode)."
+ },
+ "is_public": {
+ "type": "boolean",
+ "title": "Is Public",
+ "description": "Whether the prompt is shared with all users."
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time",
+ "title": "Created At",
+ "description": "When the system prompt was created."
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time",
+ "title": "Updated At",
+ "description": "When the system prompt was last updated."
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "required": ["name", "content", "id", "user_id", "is_public", "created_at", "updated_at"],
+ "title": "SystemPromptRecordDTO"
+ },
+ "SystemPromptWithoutId": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "minLength": 1,
+ "title": "Name",
+ "description": "The name of the system prompt."
+ },
+ "content": {
+ "type": "string",
+ "minLength": 1,
+ "title": "Content",
+ "description": "The system prompt content."
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "required": ["name", "content"],
+ "title": "SystemPromptWithoutId"
+ },
"T2IAdapterField": {
"properties": {
"image": {
@@ -80155,6 +80521,109 @@
"$ref": "#/components/schemas/StringOutput"
}
},
+ "TextLLMWithPresetInvocation": {
+ "category": "llm",
+ "class": "invocation",
+ "classification": "beta",
+ "description": "Run a text language model using a saved system prompt from the System Prompts library.\n\nBehaves identically to the Text LLM node, but the system prompt is selected from a\nDB-backed preset instead of being typed inline. Useful when you maintain a curated\nlibrary of expansion strategies and want to reuse them across workflows.\n\nNote: the field stores the preset's id, not its text. A workflow exported from one install\nonly resolves on another if that install has a prompt with the same id -- true for the\nseeded defaults (fixed UUIDs), not for user-created prompts. `StylePresetField` has the\nsame limitation.",
+ "node_pack": "invokeai",
+ "properties": {
+ "id": {
+ "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
+ "field_kind": "node_attribute",
+ "title": "Id",
+ "type": "string"
+ },
+ "is_intermediate": {
+ "default": false,
+ "description": "Whether or not this is an intermediate invocation.",
+ "field_kind": "node_attribute",
+ "input": "direct",
+ "orig_required": true,
+ "title": "Is Intermediate",
+ "type": "boolean",
+ "ui_hidden": false,
+ "ui_type": "IsIntermediate"
+ },
+ "use_cache": {
+ "default": true,
+ "description": "Whether or not to use the cache",
+ "field_kind": "node_attribute",
+ "title": "Use Cache",
+ "type": "boolean"
+ },
+ "prompt": {
+ "default": "",
+ "description": "Input text prompt.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": "",
+ "orig_required": false,
+ "title": "Prompt",
+ "type": "string",
+ "ui_component": "textarea"
+ },
+ "system_prompt": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/SystemPromptField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The saved system prompt to use as the LLM's instruction.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_required": true
+ },
+ "text_llm_model": {
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/ModelIdentifierField"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The text language model to use for text generation",
+ "field_kind": "input",
+ "input": "any",
+ "orig_required": true,
+ "title": "Text LLM Model",
+ "ui_model_type": ["text_llm"]
+ },
+ "max_tokens": {
+ "default": 300,
+ "description": "Maximum number of tokens to generate.",
+ "field_kind": "input",
+ "input": "any",
+ "maximum": 2048,
+ "minimum": 1,
+ "orig_default": 300,
+ "orig_required": false,
+ "title": "Max Tokens",
+ "type": "integer"
+ },
+ "type": {
+ "const": "text_llm_with_preset",
+ "default": "text_llm_with_preset",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["llm", "text", "prompt", "preset", "template"],
+ "title": "Text LLM (with System Prompt Preset)",
+ "type": "object",
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/StringOutput"
+ }
+ },
"TextLLM_Diffusers_Config": {
"properties": {
"key": {
diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json
index 94d89a3aa2..7e6b651e96 100644
--- a/invokeai/frontend/web/public/locales/en.json
+++ b/invokeai/frontend/web/public/locales/en.json
@@ -3546,6 +3546,25 @@
"selectPreset": "Select Style Preset",
"noMatchingPresets": "No matching presets"
},
+ "systemPrompts": {
+ "systemPrompt": "System Prompt",
+ "selectSystemPrompt": "Select system prompt...",
+ "manageSystemPrompts": "Manage system prompts",
+ "newSystemPrompt": "New System Prompt",
+ "editSystemPrompt": "Edit System Prompt",
+ "name": "Name",
+ "content": "Content",
+ "contentPlaceholder": "Enter the system prompt that instructs the LLM how to expand the user's prompt...",
+ "deletePrompt": "Delete System Prompt",
+ "deletePromptConfirm": "Are you sure you want to delete this system prompt? This cannot be undone.",
+ "promptDeleted": "System prompt deleted",
+ "unableToDeletePrompt": "Unable to delete system prompt",
+ "unableToSavePrompt": "Unable to save system prompt",
+ "noPromptsYet": "No system prompts yet. Create one to get started.",
+ "systemBadge": "System",
+ "sharedBadge": "Shared",
+ "shareWithEveryone": "Share with everyone (visible to all users)"
+ },
"ui": {
"tabs": {
"generate": "Generate",
diff --git a/invokeai/frontend/web/src/app/components/GlobalModalIsolator.tsx b/invokeai/frontend/web/src/app/components/GlobalModalIsolator.tsx
index a3284e0616..c3a5d1679a 100644
--- a/invokeai/frontend/web/src/app/components/GlobalModalIsolator.tsx
+++ b/invokeai/frontend/web/src/app/components/GlobalModalIsolator.tsx
@@ -21,6 +21,8 @@ import { DeleteStylePresetDialog } from 'features/stylePresets/components/Delete
import { StylePresetModal } from 'features/stylePresets/components/StylePresetForm/StylePresetModal';
import RefreshAfterResetModal from 'features/system/components/SettingsModal/RefreshAfterResetModal';
import { VideosModal } from 'features/system/components/VideosModal/VideosModal';
+import { DeleteSystemPromptDialog } from 'features/systemPrompts/components/DeleteSystemPromptDialog';
+import { SystemPromptsModal } from 'features/systemPrompts/components/SystemPromptsModal';
import { DeleteWorkflowDialog } from 'features/workflowLibrary/components/DeleteLibraryWorkflowConfirmationAlertDialog';
import { LoadWorkflowConfirmationAlertDialog } from 'features/workflowLibrary/components/LoadWorkflowConfirmationAlertDialog';
import { LoadWorkflowFromGraphModal } from 'features/workflowLibrary/components/LoadWorkflowFromGraphModal/LoadWorkflowFromGraphModal';
@@ -47,6 +49,8 @@ export const GlobalModalIsolator = memo(() => {
<NewWorkflowConfirmationAlertDialog />
<LoadWorkflowConfirmationAlertDialog />
<DeleteStylePresetDialog />
+ <SystemPromptsModal />
+ <DeleteSystemPromptDialog />
<DeleteWorkflowDialog />
<RefreshAfterResetModal />
<DeleteBoardModal />
diff --git a/invokeai/frontend/web/src/app/store/store.ts b/invokeai/frontend/web/src/app/store/store.ts
index 947b660cca..5955122531 100644
--- a/invokeai/frontend/web/src/app/store/store.ts
+++ b/invokeai/frontend/web/src/app/store/store.ts
@@ -50,6 +50,7 @@ import { nodesSliceConfig } from 'features/nodes/store/nodesSlice';
import { workflowLibrarySliceConfig } from 'features/nodes/store/workflowLibrarySlice';
import { workflowSettingsSliceConfig } from 'features/nodes/store/workflowSettingsSlice';
import { upscaleSliceConfig } from 'features/parameters/store/upscaleSlice';
+import { expandPromptSliceConfig } from 'features/prompt/store/expandPromptSlice';
import { queueSliceConfig } from 'features/queue/store/queueSlice';
import { stylePresetSliceConfig } from 'features/stylePresets/store/stylePresetSlice';
import { hotkeysSliceConfig } from 'features/system/store/hotkeysSlice';
@@ -86,6 +87,7 @@ const SLICE_CONFIGS = {
[canvasWorkflowIntegrationSliceConfig.slice.reducerPath]: canvasWorkflowIntegrationSliceConfig,
[changeBoardModalSliceConfig.slice.reducerPath]: changeBoardModalSliceConfig,
[dynamicPromptsSliceConfig.slice.reducerPath]: dynamicPromptsSliceConfig,
+ [expandPromptSliceConfig.slice.reducerPath]: expandPromptSliceConfig,
[gallerySliceConfig.slice.reducerPath]: gallerySliceConfig,
[hotkeysSliceConfig.slice.reducerPath]: hotkeysSliceConfig,
[lorasSliceConfig.slice.reducerPath]: lorasSliceConfig,
@@ -118,6 +120,7 @@ const ALL_REDUCERS = {
[canvasWorkflowIntegrationSliceConfig.slice.reducerPath]: canvasWorkflowIntegrationSliceConfig.slice.reducer,
[changeBoardModalSliceConfig.slice.reducerPath]: changeBoardModalSliceConfig.slice.reducer,
[dynamicPromptsSliceConfig.slice.reducerPath]: dynamicPromptsSliceConfig.slice.reducer,
+ [expandPromptSliceConfig.slice.reducerPath]: expandPromptSliceConfig.slice.reducer,
[gallerySliceConfig.slice.reducerPath]: gallerySliceConfig.slice.reducer,
[hotkeysSliceConfig.slice.reducerPath]: hotkeysSliceConfig.slice.reducer,
[lorasSliceConfig.slice.reducerPath]: lorasSliceConfig.slice.reducer,
diff --git a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputFieldRenderer.tsx b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputFieldRenderer.tsx
index d73a840f6b..3a9eff7e32 100644
--- a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputFieldRenderer.tsx
+++ b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/InputFieldRenderer.tsx
@@ -64,6 +64,8 @@ import {
isStringGeneratorFieldInputTemplate,
isStylePresetFieldInputInstance,
isStylePresetFieldInputTemplate,
+ isSystemPromptFieldInputInstance,
+ isSystemPromptFieldInputTemplate,
isVideoFieldInputInstance,
isVideoFieldInputTemplate,
} from 'features/nodes/types/field';
@@ -79,6 +81,7 @@ import EnumFieldInputComponent from './inputs/EnumFieldInputComponent';
import ImageFieldInputComponent from './inputs/ImageFieldInputComponent';
import SchedulerFieldInputComponent from './inputs/SchedulerFieldInputComponent';
import StylePresetFieldInputComponent from './inputs/StylePresetFieldInputComponent';
+import SystemPromptFieldInputComponent from './inputs/SystemPromptFieldInputComponent';
import VideoFieldInputComponent from './inputs/VideoFieldInputComponent';
type Props = {
@@ -247,6 +250,13 @@ export const InputFieldRenderer = memo(({ nodeId, fieldName, settings }: Props)
return <StylePresetFieldInputComponent nodeId={nodeId} field={field} fieldTemplate={template} />;
}
+ if (isSystemPromptFieldInputTemplate(template)) {
+ if (!isSystemPromptFieldInputInstance(field)) {
+ return null;
+ }
+ return <SystemPromptFieldInputComponent nodeId={nodeId} field={field} fieldTemplate={template} />;
+ }
+
if (isModelIdentifierFieldInputTemplate(template)) {
if (!isModelIdentifierFieldInputInstance(field)) {
return null;
diff --git a/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/SystemPromptFieldInputComponent.tsx b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/SystemPromptFieldInputComponent.tsx
new file mode 100644
index 0000000000..cbe90be820
--- /dev/null
+++ b/invokeai/frontend/web/src/features/nodes/components/flow/nodes/Invocation/fields/inputs/SystemPromptFieldInputComponent.tsx
@@ -0,0 +1,66 @@
+import type { ComboboxOnChange, ComboboxOption } from '@invoke-ai/ui-library';
+import { Combobox } from '@invoke-ai/ui-library';
+import { useAppDispatch } from 'app/store/storeHooks';
+import { fieldSystemPromptValueChanged } from 'features/nodes/store/nodesSlice';
+import { NO_DRAG_CLASS, NO_WHEEL_CLASS } from 'features/nodes/types/constants';
+import type { SystemPromptFieldInputInstance, SystemPromptFieldInputTemplate } from 'features/nodes/types/field';
+import { memo, useCallback, useMemo } from 'react';
+import { useTranslation } from 'react-i18next';
+import { useListSystemPromptsQuery } from 'services/api/endpoints/systemPrompts';
+
+import type { FieldComponentProps } from './types';
+
+const SystemPromptFieldInputComponent = (
+ props: FieldComponentProps<SystemPromptFieldInputInstance, SystemPromptFieldInputTemplate>
+) => {
+ const { nodeId, field } = props;
+ const dispatch = useAppDispatch();
+ const { t } = useTranslation();
+ const { data: systemPrompts, isLoading } = useListSystemPromptsQuery();
+
+ const options = useMemo<ComboboxOption[]>(() => {
+ if (!systemPrompts) {
+ return [];
+ }
+ return systemPrompts.map((p) => ({ label: p.name, value: p.id }));
+ }, [systemPrompts]);
+
+ const onChange = useCallback<ComboboxOnChange>(
+ (v) => {
+ if (!v) {
+ return;
+ }
+ dispatch(
+ fieldSystemPromptValueChanged({
+ nodeId,
+ fieldName: field.name,
+ value: { system_prompt_id: v.value },
+ })
+ );
+ },
+ [dispatch, field.name, nodeId]
+ );
+
+ const value = useMemo(() => {
+ const _value = field.value;
+ if (!_value) {
+ return null;
+ }
+ return options.find((o) => o.value === _value.system_prompt_id) ?? null;
+ }, [field.value, options]);
+
+ const noOptionsMessage = useCallback(() => t('systemPrompts.noPromptsYet'), [t]);
+
+ return (
+ <Combobox
+ className={`${NO_WHEEL_CLASS} ${NO_DRAG_CLASS}`}
+ value={value}
+ options={options}
+ onChange={onChange}
+ placeholder={isLoading ? t('common.loading') : t('systemPrompts.selectSystemPrompt')}
+ noOptionsMessage={noOptionsMessage}
+ />
+ );
+};
+
+export default memo(SystemPromptFieldInputComponent);
diff --git a/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts b/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts
index 85c378d5f8..25fdb606a9 100644
--- a/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts
+++ b/invokeai/frontend/web/src/features/nodes/store/nodesSlice.ts
@@ -50,6 +50,7 @@ import type {
StringFieldValue,
StringGeneratorFieldValue,
StylePresetFieldValue,
+ SystemPromptFieldValue,
VideoFieldValue,
} from 'features/nodes/types/field';
import {
@@ -74,6 +75,7 @@ import {
zStringFieldValue,
zStringGeneratorFieldValue,
zStylePresetFieldValue,
+ zSystemPromptFieldValue,
zVideoFieldValue,
} from 'features/nodes/types/field';
import type { AnyEdge, AnyNode, ConnectorNode } from 'features/nodes/types/invocation';
@@ -582,6 +584,9 @@ const slice = createSlice({
fieldStylePresetValueChanged: (state, action: FieldValueAction<StylePresetFieldValue>) => {
fieldValueReducer(state, action, zStylePresetFieldValue);
},
+ fieldSystemPromptValueChanged: (state, action: FieldValueAction<SystemPromptFieldValue>) => {
+ fieldValueReducer(state, action, zSystemPromptFieldValue);
+ },
fieldImageValueChanged: (state, action: FieldValueAction<ImageFieldValue>) => {
fieldValueReducer(state, action, zImageFieldValue);
},
@@ -805,6 +810,7 @@ export const {
fieldBooleanValueChanged,
fieldColorValueChanged,
fieldStylePresetValueChanged,
+ fieldSystemPromptValueChanged,
fieldEnumModelValueChanged,
fieldImageValueChanged,
fieldImageCollectionValueChanged,
diff --git a/invokeai/frontend/web/src/features/nodes/types/common.ts b/invokeai/frontend/web/src/features/nodes/types/common.ts
index e088dc7836..c0f8c5dfa9 100644
--- a/invokeai/frontend/web/src/features/nodes/types/common.ts
+++ b/invokeai/frontend/web/src/features/nodes/types/common.ts
@@ -26,6 +26,10 @@ export const zStylePresetField = z.object({
style_preset_id: z.string().trim().min(1),
});
+export const zSystemPromptField = z.object({
+ system_prompt_id: z.string().trim().min(1),
+});
+
export const zColorField = z.object({
r: z.number().int().min(0).max(255),
g: z.number().int().min(0).max(255),
diff --git a/invokeai/frontend/web/src/features/nodes/types/constants.ts b/invokeai/frontend/web/src/features/nodes/types/constants.ts
index 7383629eb8..7f8b8891f4 100644
--- a/invokeai/frontend/web/src/features/nodes/types/constants.ts
+++ b/invokeai/frontend/web/src/features/nodes/types/constants.ts
@@ -36,6 +36,7 @@ export const FIELD_COLORS: { [key: string]: string } = {
BoardField: 'purple.500',
BooleanField: 'green.500',
StylePresetField: 'purple.400',
+ SystemPromptField: 'purple.300',
CLIPField: 'green.500',
ColorField: 'pink.300',
ConditioningField: 'cyan.500',
diff --git a/invokeai/frontend/web/src/features/nodes/types/field.ts b/invokeai/frontend/web/src/features/nodes/types/field.ts
index 6d68ebe500..abcba64496 100644
--- a/invokeai/frontend/web/src/features/nodes/types/field.ts
+++ b/invokeai/frontend/web/src/features/nodes/types/field.ts
@@ -20,6 +20,7 @@ import {
zModelType,
zSchedulerField,
zStylePresetField,
+ zSystemPromptField,
zVideoField,
} from './common';
@@ -181,6 +182,11 @@ const zStylePresetFieldType = zFieldTypeBase.extend({
originalType: zStatelessFieldType.optional(),
});
+const zSystemPromptFieldType = zFieldTypeBase.extend({
+ name: z.literal('SystemPromptField'),
+ originalType: zStatelessFieldType.optional(),
+});
+
const zColorFieldType = zFieldTypeBase.extend({
name: z.literal('ColorField'),
originalType: zStatelessFieldType.optional(),
@@ -253,6 +259,7 @@ const zStatefulFieldType = z.union([
zVideoFieldType,
zBoardFieldType,
zStylePresetFieldType,
+ zSystemPromptFieldType,
zModelIdentifierFieldType,
zLoRAFieldType,
zColorFieldType,
@@ -703,6 +710,27 @@ export const isStylePresetFieldInputTemplate =
buildTemplateTypeGuard<StylePresetFieldInputTemplate>('StylePresetField');
// #endregion
+// #region SystemPromptField
+export const zSystemPromptFieldValue = zSystemPromptField.optional();
+const zSystemPromptFieldInputInstance = zFieldInputInstanceBase.extend({
+ value: zSystemPromptFieldValue,
+});
+const zSystemPromptFieldInputTemplate = zFieldInputTemplateBase.extend({
+ type: zSystemPromptFieldType,
+ originalType: zFieldType.optional(),
+ default: zSystemPromptFieldValue,
+});
+const zSystemPromptFieldOutputTemplate = zFieldOutputTemplateBase.extend({
+ type: zSystemPromptFieldType,
+});
+export type SystemPromptFieldValue = z.infer<typeof zSystemPromptFieldValue>;
+export type SystemPromptFieldInputInstance = z.infer<typeof zSystemPromptFieldInputInstance>;
+export type SystemPromptFieldInputTemplate = z.infer<typeof zSystemPromptFieldInputTemplate>;
+export const isSystemPromptFieldInputInstance = buildInstanceTypeGuard(zSystemPromptFieldInputInstance);
+export const isSystemPromptFieldInputTemplate =
+ buildTemplateTypeGuard<SystemPromptFieldInputTemplate>('SystemPromptField');
+// #endregion
+
// #region ColorField
export const zColorFieldValue = zColorField.optional();
const zColorFieldInputInstance = zFieldInputInstanceBase.extend({
@@ -1514,6 +1542,7 @@ export const zStatefulFieldValue = z.union([
zVideoFieldValue,
zBoardFieldValue,
zStylePresetFieldValue,
+ zSystemPromptFieldValue,
zModelIdentifierFieldValue,
zLoRAFieldCollectionValue,
zColorFieldValue,
@@ -1552,6 +1581,7 @@ const zStatefulFieldInputInstance = z.union([
zVideoFieldInputInstance,
zBoardFieldInputInstance,
zStylePresetFieldInputInstance,
+ zSystemPromptFieldInputInstance,
zModelIdentifierFieldInputInstance,
zLoRAFieldCollectionInputInstance,
zColorFieldInputInstance,
@@ -1629,6 +1659,7 @@ const zStatefulFieldInputTemplate = z.union([
zVideoFieldInputTemplate,
zBoardFieldInputTemplate,
zStylePresetFieldInputTemplate,
+ zSystemPromptFieldInputTemplate,
zModelIdentifierFieldInputTemplate,
zLoRAFieldCollectionInputTemplate,
zColorFieldInputTemplate,
@@ -1664,6 +1695,7 @@ const zStatefulFieldOutputTemplate = z.union([
zVideoFieldOutputTemplate,
zBoardFieldOutputTemplate,
zStylePresetFieldOutputTemplate,
+ zSystemPromptFieldOutputTemplate,
zModelIdentifierFieldOutputTemplate,
zLoRAFieldCollectionOutputTemplate,
zColorFieldOutputTemplate,
diff --git a/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputInstance.ts b/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputInstance.ts
index c0e98a5185..5613365a69 100644
--- a/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputInstance.ts
+++ b/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputInstance.ts
@@ -16,6 +16,7 @@ const FIELD_VALUE_FALLBACK_MAP: Record<StatefulFieldType['name'], FieldValue> =
SavedWorkflowField: '',
StringField: '',
StylePresetField: undefined,
+ SystemPromptField: undefined,
FloatGeneratorField: undefined,
IntegerGeneratorField: undefined,
StringGeneratorField: undefined,
diff --git a/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputTemplate.ts b/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputTemplate.ts
index 62589b9baa..4c0e4130e7 100644
--- a/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputTemplate.ts
+++ b/invokeai/frontend/web/src/features/nodes/util/schema/buildFieldInputTemplate.ts
@@ -30,6 +30,7 @@ import type {
StringFieldInputTemplate,
StringGeneratorFieldInputTemplate,
StylePresetFieldInputTemplate,
+ SystemPromptFieldInputTemplate,
T2IAdapterMetadataFieldInputTemplate,
VideoFieldInputTemplate,
} from 'features/nodes/types/field';
@@ -313,6 +314,20 @@ const buildStylePresetFieldInputTemplate: FieldInputTemplateBuilder<StylePresetF
return template;
};
+const buildSystemPromptFieldInputTemplate: FieldInputTemplateBuilder<SystemPromptFieldInputTemplate> = ({
+ schemaObject,
+ baseField,
+ fieldType,
+}) => {
+ const template: SystemPromptFieldInputTemplate = {
+ ...baseField,
+ type: fieldType,
+ default: schemaObject.default ?? undefined,
+ };
+
+ return template;
+};
+
const buildImageFieldInputTemplate: FieldInputTemplateBuilder<ImageFieldInputTemplate> = ({
schemaObject,
baseField,
@@ -597,6 +612,7 @@ const TEMPLATE_BUILDER_MAP: Record<StatefulFieldType['name'], FieldInputTemplate
SavedWorkflowField: buildSavedWorkflowFieldInputTemplate,
StringField: buildStringFieldInputTemplate,
StylePresetField: buildStylePresetFieldInputTemplate,
+ SystemPromptField: buildSystemPromptFieldInputTemplate,
FloatGeneratorField: buildFloatGeneratorFieldInputTemplate,
IntegerGeneratorField: buildIntegerGeneratorFieldInputTemplate,
StringGeneratorField: buildStringGeneratorFieldInputTemplate,
diff --git a/invokeai/frontend/web/src/features/prompt/ExpandPromptButton.tsx b/invokeai/frontend/web/src/features/prompt/ExpandPromptButton.tsx
index e0f035963a..8090a8a7be 100644
--- a/invokeai/frontend/web/src/features/prompt/ExpandPromptButton.tsx
+++ b/invokeai/frontend/web/src/features/prompt/ExpandPromptButton.tsx
@@ -1,7 +1,10 @@
-import type { SystemStyleObject } from '@invoke-ai/ui-library';
+import type { ComboboxOnChange, ComboboxOption, SystemStyleObject } from '@invoke-ai/ui-library';
import {
Button,
+ Combobox,
Flex,
+ FormControl,
+ FormLabel,
IconButton,
Popover,
PopoverArrow,
@@ -19,10 +22,18 @@ import { positivePromptChanged, selectPositivePrompt } from 'features/controlLay
import { setInstallModelsTabByName } from 'features/modelManagerV2/store/installModelsStore';
import { ModelPicker } from 'features/parameters/components/ModelPicker';
import { setPromptUndo } from 'features/prompt/promptUndo';
+import {
+ selectedModelKeyChanged,
+ selectedSystemPromptIdChanged,
+ selectSelectedModelKey,
+ selectSelectedSystemPromptId,
+} from 'features/prompt/store/expandPromptSlice';
+import { openSystemPromptsModal } from 'features/systemPrompts/store/systemPromptModal';
import { navigationApi } from 'features/ui/layouts/navigation-api';
-import { memo, useCallback, useState } from 'react';
+import { memo, useCallback, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
-import { PiSparkleBold } from 'react-icons/pi';
+import { PiPencilSimpleBold, PiSparkleBold } from 'react-icons/pi';
+import { useListSystemPromptsQuery } from 'services/api/endpoints/systemPrompts';
import { useExpandPromptMutation } from 'services/api/endpoints/utilities';
import { useTextLLMModels } from 'services/api/hooks/modelsByType';
import type { AnyModelConfig } from 'services/api/types';
@@ -35,17 +46,62 @@ export const ExpandPromptButton = memo(() => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
const prompt = useAppSelector(selectPositivePrompt);
+ const selectedSystemPromptId = useAppSelector(selectSelectedSystemPromptId);
+ const selectedModelKey = useAppSelector(selectSelectedModelKey);
const [modelConfigs] = useTextLLMModels();
const popover = useDisclosure(false);
- const [selectedModel, setSelectedModel] = useState<AnyModelConfig | undefined>(undefined);
+ const { data: systemPrompts } = useListSystemPromptsQuery();
const [expandPrompt, { isLoading }] = useExpandPromptMutation();
const hasModels = modelConfigs.length > 0;
- const handleModelChange = useCallback((model: AnyModelConfig) => {
- setSelectedModel(model);
+ const selectedModel = useMemo<AnyModelConfig | undefined>(
+ () => modelConfigs.find((m) => m.key === selectedModelKey),
+ [modelConfigs, selectedModelKey]
+ );
+
+ const selectedSystemPrompt = useMemo(
+ () => systemPrompts?.find((p) => p.id === selectedSystemPromptId),
+ [systemPrompts, selectedSystemPromptId]
+ );
+
+ const systemPromptOptions = useMemo<ComboboxOption[]>(
+ () => (systemPrompts ?? []).map((p) => ({ label: p.name, value: p.id })),
+ [systemPrompts]
+ );
+
+ const systemPromptValue = useMemo(
+ () => systemPromptOptions.find((o) => o.value === selectedSystemPromptId) ?? null,
+ [systemPromptOptions, selectedSystemPromptId]
+ );
+
+ // Auto-select the first prompt once the list loads if nothing is selected yet.
+ useEffect(() => {
+ if (selectedSystemPromptId === null && systemPrompts && systemPrompts.length > 0 && systemPrompts[0]) {
+ dispatch(selectedSystemPromptIdChanged(systemPrompts[0].id));
+ }
+ }, [dispatch, selectedSystemPromptId, systemPrompts]);
+
+ const handleModelChange = useCallback(
+ (model: AnyModelConfig) => {
+ dispatch(selectedModelKeyChanged(model.key));
+ },
+ [dispatch]
+ );
+
+ const handleSystemPromptChange = useCallback<ComboboxOnChange>(
+ (option) => {
+ dispatch(selectedSystemPromptIdChanged(option?.value ?? null));
+ },
+ [dispatch]
+ );
+
+ const handleManagePrompts = useCallback(() => {
+ openSystemPromptsModal();
}, []);
+ const noOptionsMessage = useCallback(() => t('systemPrompts.noPromptsYet'), [t]);
+
const handleExpand = useCallback(async () => {
if (!selectedModel || !prompt.trim()) {
return;
@@ -54,6 +110,7 @@ export const ExpandPromptButton = memo(() => {
const result = await expandPrompt({
prompt,
model_key: selectedModel.key,
+ system_prompt: selectedSystemPrompt?.content,
}).unwrap();
if (result.expanded_prompt) {
setPromptUndo(prompt);
@@ -63,7 +120,7 @@ export const ExpandPromptButton = memo(() => {
} catch {
// Error is handled by RTK Query
}
- }, [selectedModel, prompt, expandPrompt, dispatch, popover]);
+ }, [selectedModel, prompt, expandPrompt, selectedSystemPrompt, dispatch, popover]);
const handleOpenModelManager = useCallback(() => {
popover.close();
@@ -95,7 +152,7 @@ export const ExpandPromptButton = memo(() => {
</span>
</PopoverTrigger>
<Portal>
- <PopoverContent p={3} w={350}>
+ <PopoverContent p={3} w={380}>
<PopoverArrow />
<PopoverBody p={0}>
{hasModels ? (
@@ -103,6 +160,32 @@ export const ExpandPromptButton = memo(() => {
<Text fontWeight="semibold" fontSize="sm">
{t('prompt.expandPrompt')}
</Text>
+
+ <FormControl orientation="vertical">
+ <FormLabel m={0}>{t('systemPrompts.systemPrompt')}</FormLabel>
+ <Flex gap={2} alignItems="center" w="full">
+ <Flex flex={1} minW={0}>
+ <Combobox
+ value={systemPromptValue}
+ options={systemPromptOptions}
+ onChange={handleSystemPromptChange}
+ placeholder={t('systemPrompts.selectSystemPrompt')}
+ isClearable={false}
+ noOptionsMessage={noOptionsMessage}
+ />
+ </Flex>
+ <Tooltip label={t('systemPrompts.manageSystemPrompts')}>
+ <IconButton
+ aria-label={t('systemPrompts.manageSystemPrompts')}
+ icon={<PiPencilSimpleBold />}
+ size="sm"
+ variant="ghost"
+ onClick={handleManagePrompts}
+ />
+ </Tooltip>
+ </Flex>
+ </FormControl>
+
<ModelPicker
pickerId="expand-prompt-model"
modelConfigs={modelConfigs}
diff --git a/invokeai/frontend/web/src/features/prompt/store/expandPromptSlice.ts b/invokeai/frontend/web/src/features/prompt/store/expandPromptSlice.ts
new file mode 100644
index 0000000000..76445b1642
--- /dev/null
+++ b/invokeai/frontend/web/src/features/prompt/store/expandPromptSlice.ts
@@ -0,0 +1,75 @@
+import type { PayloadAction, Selector } from '@reduxjs/toolkit';
+import { createSelector, createSlice } from '@reduxjs/toolkit';
+import type { RootState } from 'app/store/store';
+import type { SliceConfig } from 'app/store/types';
+import { isPlainObject } from 'es-toolkit';
+import { systemPromptsApi } from 'services/api/endpoints/systemPrompts';
+import { assert } from 'tsafe';
+import z from 'zod';
+
+const zExpandPromptState = z.object({
+ selectedSystemPromptId: z.string().nullable(),
+ selectedModelKey: z.string().nullable(),
+});
+
+type ExpandPromptState = z.infer<typeof zExpandPromptState>;
+
+const getInitialState = (): ExpandPromptState => ({
+ selectedSystemPromptId: null,
+ selectedModelKey: null,
+});
+
+const slice = createSlice({
+ name: 'expandPrompt',
+ initialState: getInitialState(),
+ reducers: {
+ selectedSystemPromptIdChanged: (state, action: PayloadAction<string | null>) => {
+ state.selectedSystemPromptId = action.payload;
+ },
+ selectedModelKeyChanged: (state, action: PayloadAction<string | null>) => {
+ state.selectedModelKey = action.payload;
+ },
+ },
+ extraReducers(builder) {
+ // If the selected prompt has been deleted on the server, clear the local selection
+ // so the picker doesn't show a stale ID.
+ builder.addMatcher(systemPromptsApi.endpoints.deleteSystemPrompt.matchFulfilled, (state, action) => {
+ if (state.selectedSystemPromptId === action.meta.arg.originalArgs) {
+ state.selectedSystemPromptId = null;
+ }
+ });
+ builder.addMatcher(systemPromptsApi.endpoints.listSystemPrompts.matchFulfilled, (state, action) => {
+ if (state.selectedSystemPromptId === null) {
+ return;
+ }
+ const ids = action.payload.map((p) => p.id);
+ if (!ids.includes(state.selectedSystemPromptId)) {
+ state.selectedSystemPromptId = null;
+ }
+ });
+ },
+});
+
+export const { selectedSystemPromptIdChanged, selectedModelKeyChanged } = slice.actions;
+
+export const expandPromptSliceConfig: SliceConfig<typeof slice> = {
+ slice,
+ schema: zExpandPromptState,
+ getInitialState,
+ persistConfig: {
+ migrate: (state) => {
+ assert(isPlainObject(state));
+ if (!('_version' in state)) {
+ state._version = 1;
+ }
+ return zExpandPromptState.parse(state);
+ },
+ },
+};
+
+const selectExpandPromptSlice = (state: RootState) => state.expandPrompt;
+const createExpandPromptSelector = <T>(selector: Selector<ExpandPromptState, T>) =>
+ createSelector(selectExpandPromptSlice, selector);
+
+export const selectSelectedSystemPromptId = createExpandPromptSelector((s) => s.selectedSystemPromptId);
+export const selectSelectedModelKey = createExpandPromptSelector((s) => s.selectedModelKey);
diff --git a/invokeai/frontend/web/src/features/systemPrompts/components/DeleteSystemPromptDialog.tsx b/invokeai/frontend/web/src/features/systemPrompts/components/DeleteSystemPromptDialog.tsx
new file mode 100644
index 0000000000..c359d253f8
--- /dev/null
+++ b/invokeai/frontend/web/src/features/systemPrompts/components/DeleteSystemPromptDialog.tsx
@@ -0,0 +1,53 @@
+import { ConfirmationAlertDialog, Text } from '@invoke-ai/ui-library';
+import { useStore } from '@nanostores/react';
+import { useAssertSingleton } from 'common/hooks/useAssertSingleton';
+import { toast } from 'features/toast/toast';
+import { atom } from 'nanostores';
+import { memo, useCallback } from 'react';
+import { useTranslation } from 'react-i18next';
+import type { SystemPromptRecordDTO } from 'services/api/endpoints/systemPrompts';
+import { useDeleteSystemPromptMutation } from 'services/api/endpoints/systemPrompts';
+
+const $promptToDelete = atom<SystemPromptRecordDTO | null>(null);
+const clearPromptToDelete = () => $promptToDelete.set(null);
+
+export const useDeleteSystemPrompt = () => {
+ return useCallback((prompt: SystemPromptRecordDTO) => {
+ $promptToDelete.set(prompt);
+ }, []);
+};
+
+export const DeleteSystemPromptDialog = memo(() => {
+ useAssertSingleton('DeleteSystemPromptDialog');
+ const { t } = useTranslation();
+ const promptToDelete = useStore($promptToDelete);
+ const [_deleteSystemPrompt] = useDeleteSystemPromptMutation();
+
+ const deleteSystemPrompt = useCallback(async () => {
+ if (!promptToDelete) {
+ return;
+ }
+ try {
+ await _deleteSystemPrompt(promptToDelete.id).unwrap();
+ toast({ status: 'success', title: t('systemPrompts.promptDeleted') });
+ } catch {
+ toast({ status: 'error', title: t('systemPrompts.unableToDeletePrompt') });
+ }
+ }, [promptToDelete, _deleteSystemPrompt, t]);
+
+ return (
+ <ConfirmationAlertDialog
+ isOpen={promptToDelete !== null}
+ onClose={clearPromptToDelete}
+ title={t('systemPrompts.deletePrompt')}
+ acceptCallback={deleteSystemPrompt}
+ acceptButtonText={t('common.delete')}
+ cancelButtonText={t('common.cancel')}
+ useInert={false}
+ >
+ <Text>{t('systemPrompts.deletePromptConfirm')}</Text>
+ </ConfirmationAlertDialog>
+ );
+});
+
+DeleteSystemPromptDialog.displayName = 'DeleteSystemPromptDialog';
diff --git a/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptForm.tsx b/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptForm.tsx
new file mode 100644
index 0000000000..c9dfdbd3bb
--- /dev/null
+++ b/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptForm.tsx
@@ -0,0 +1,109 @@
+import { Button, Checkbox, Flex, FormControl, FormLabel, Input, Spacer, Textarea } from '@invoke-ai/ui-library';
+import { showSystemPromptsList } from 'features/systemPrompts/store/systemPromptModal';
+import { toast } from 'features/toast/toast';
+import { memo, useCallback, useMemo } from 'react';
+import type { SubmitHandler } from 'react-hook-form';
+import { useForm } from 'react-hook-form';
+import { useTranslation } from 'react-i18next';
+import { useGetSetupStatusQuery } from 'services/api/endpoints/auth';
+import type { SystemPromptRecordDTO } from 'services/api/endpoints/systemPrompts';
+import { useCreateSystemPromptMutation, useUpdateSystemPromptMutation } from 'services/api/endpoints/systemPrompts';
+
+type FormValues = {
+ name: string;
+ content: string;
+ is_public: boolean;
+};
+
+type Props = {
+ /**
+ * The prompt to edit, or `null` when creating a new one.
+ */
+ editing: SystemPromptRecordDTO | null;
+};
+
+export const SystemPromptForm = memo(({ editing }: Props) => {
+ const { t } = useTranslation();
+ const [createSystemPrompt, { isLoading: isCreating }] = useCreateSystemPromptMutation();
+ const [updateSystemPrompt, { isLoading: isUpdating }] = useUpdateSystemPromptMutation();
+ const { data: setupStatus } = useGetSetupStatusQuery();
+ const isMultiuser = setupStatus?.multiuser_enabled ?? false;
+
+ const defaultValues = useMemo<FormValues>(
+ () => ({
+ name: editing?.name ?? '',
+ content: editing?.content ?? '',
+ is_public: editing?.is_public ?? false,
+ }),
+ [editing]
+ );
+
+ const { register, handleSubmit, formState } = useForm<FormValues>({
+ defaultValues,
+ mode: 'onChange',
+ });
+
+ const onSubmit = useCallback<SubmitHandler<FormValues>>(
+ async (data) => {
+ try {
+ if (editing) {
+ // Only forward is_public when multiuser is on; otherwise the backend defaults are correct.
+ const changes = isMultiuser
+ ? { name: data.name, content: data.content, is_public: data.is_public }
+ : { name: data.name, content: data.content };
+ await updateSystemPrompt({ id: editing.id, changes }).unwrap();
+ } else {
+ // Create endpoint sets is_public from server (true single-user, false multiuser);
+ // sharing a freshly-created prompt happens via a follow-up edit.
+ await createSystemPrompt({ name: data.name, content: data.content }).unwrap();
+ }
+ showSystemPromptsList();
+ } catch {
+ toast({ status: 'error', title: t('systemPrompts.unableToSavePrompt') });
+ }
+ },
+ [editing, isMultiuser, updateSystemPrompt, createSystemPrompt, t]
+ );
+
+ const handleCancel = useCallback(() => {
+ showSystemPromptsList();
+ }, []);
+
+ return (
+ <Flex flexDir="column" gap={4}>
+ <FormControl orientation="vertical">
+ <FormLabel>{t('systemPrompts.name')}</FormLabel>
+ <Input size="md" {...register('name', { required: true, minLength: 1 })} />
+ </FormControl>
+ <FormControl orientation="vertical">
+ <FormLabel>{t('systemPrompts.content')}</FormLabel>
+ <Textarea
+ rows={22}
+ {...register('content', { required: true, minLength: 1 })}
+ placeholder={t('systemPrompts.contentPlaceholder')}
+ />
+ </FormControl>
+ {isMultiuser && editing && (
+ <FormControl>
+ <Checkbox {...register('is_public')}>{t('systemPrompts.shareWithEveryone')}</Checkbox>
+ </FormControl>
+ )}
+ <Flex justifyContent="flex-end" gap={2}>
+ <Spacer />
+ <Button variant="ghost" onClick={handleCancel}>
+ {t('common.cancel')}
+ </Button>
+ <Button
+ colorScheme="invokeBlue"
+ onClick={handleSubmit(onSubmit)}
+ isDisabled={!formState.isValid}
+ isLoading={isCreating || isUpdating}
+ >
+ {t('common.save')}
+ </Button>
+ </Flex>
+ </Flex>
+ );
+});
+
+SystemPromptForm.displayName = 'SystemPromptForm';
diff --git a/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptListItem.tsx b/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptListItem.tsx
new file mode 100644
index 0000000000..0228656283
--- /dev/null
+++ b/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptListItem.tsx
@@ -0,0 +1,77 @@
+import { Badge, Flex, IconButton, Spacer, Text } from '@invoke-ai/ui-library';
+import { useDeleteSystemPrompt } from 'features/systemPrompts/components/DeleteSystemPromptDialog';
+import { useCanEditSystemPrompt } from 'features/systemPrompts/hooks/useCanEditSystemPrompt';
+import { showSystemPromptEditor } from 'features/systemPrompts/store/systemPromptModal';
+import { memo, useCallback } from 'react';
+import { useTranslation } from 'react-i18next';
+import { PiPencilSimpleBold, PiTrashBold } from 'react-icons/pi';
+import type { SystemPromptRecordDTO } from 'services/api/endpoints/systemPrompts';
+
+const SYSTEM_USER_ID = 'system';
+
+type Props = {
+ prompt: SystemPromptRecordDTO;
+};
+
+export const SystemPromptListItem = memo(({ prompt }: Props) => {
+ const { t } = useTranslation();
+ const deletePrompt = useDeleteSystemPrompt();
+ const canEdit = useCanEditSystemPrompt(prompt);
+
+ const handleEdit = useCallback(() => {
+ showSystemPromptEditor(prompt.id);
+ }, [prompt.id]);
+
+ const handleDelete = useCallback(() => {
+ deletePrompt(prompt);
+ }, [deletePrompt, prompt]);
+
+ const isSystemDefault = prompt.user_id === SYSTEM_USER_ID;
+
+ return (
+ <Flex flexDir="column" gap={1} p={3} borderRadius="base" bg="base.800" _hover={{ bg: 'base.750' }}>
+ <Flex alignItems="center" gap={2}>
+ <Text fontWeight="semibold" noOfLines={1}>
+ {prompt.name}
+ </Text>
+ {isSystemDefault && (
+ <Badge colorScheme="invokeBlue" variant="subtle">
+ {t('systemPrompts.systemBadge')}
+ </Badge>
+ )}
+ {!isSystemDefault && prompt.is_public && (
+ <Badge colorScheme="green" variant="subtle">
+ {t('systemPrompts.sharedBadge')}
+ </Badge>
+ )}
+ <Spacer />
+ {canEdit && (
+ <>
+ <IconButton
+ aria-label={t('common.edit')}
+ tooltip={t('common.edit')}
+ icon={<PiPencilSimpleBold />}
+ size="sm"
+ variant="ghost"
+ onClick={handleEdit}
+ />
+ <IconButton
+ aria-label={t('common.delete')}
+ tooltip={t('common.delete')}
+ icon={<PiTrashBold />}
+ size="sm"
+ variant="ghost"
+ colorScheme="error"
+ onClick={handleDelete}
+ />
+ </>
+ )}
+ </Flex>
+ <Text fontSize="sm" color="base.300" noOfLines={2}>
+ {prompt.content}
+ </Text>
+ </Flex>
+ );
+});
+
+SystemPromptListItem.displayName = 'SystemPromptListItem';
diff --git a/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptsModal.tsx b/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptsModal.tsx
new file mode 100644
index 0000000000..2c9c91d087
--- /dev/null
+++ b/invokeai/frontend/web/src/features/systemPrompts/components/SystemPromptsModal.tsx
@@ -0,0 +1,88 @@
+import {
+ Button,
+ Flex,
+ Modal,
+ ModalBody,
+ ModalCloseButton,
+ ModalContent,
+ ModalFooter,
+ ModalHeader,
+ ModalOverlay,
+ Spinner,
+ Text,
+} from '@invoke-ai/ui-library';
+import { useStore } from '@nanostores/react';
+import { useAssertSingleton } from 'common/hooks/useAssertSingleton';
+import { SystemPromptForm } from 'features/systemPrompts/components/SystemPromptForm';
+import { SystemPromptListItem } from 'features/systemPrompts/components/SystemPromptListItem';
+import {
+ $systemPromptsModalState,
+ closeSystemPromptsModal,
+ showSystemPromptEditor,
+} from 'features/systemPrompts/store/systemPromptModal';
+import { memo, useCallback, useMemo } from 'react';
+import { useTranslation } from 'react-i18next';
+import { PiPlusBold } from 'react-icons/pi';
+import { useListSystemPromptsQuery } from 'services/api/endpoints/systemPrompts';
+
+export const SystemPromptsModal = memo(() => {
+ useAssertSingleton('SystemPromptsModal');
+ const { t } = useTranslation();
+ const state = useStore($systemPromptsModalState);
+ const { data: prompts, isLoading } = useListSystemPromptsQuery(undefined, { skip: !state.isOpen });
+
+ const editingPrompt = useMemo(() => {
+ if (!state.editingId || state.editingId === 'new') {
+ return null;
+ }
+ return prompts?.find((p) => p.id === state.editingId) ?? null;
+ }, [state.editingId, prompts]);
+
+ const isEditMode = state.editingId !== null;
+
+ const title = isEditMode
+ ? state.editingId === 'new'
+ ? t('systemPrompts.newSystemPrompt')
+ : t('systemPrompts.editSystemPrompt')
+ : t('systemPrompts.manageSystemPrompts');
+
+ const handleNew = useCallback(() => {
+ showSystemPromptEditor('new');
+ }, []);
+
+ return (
+ <Modal isOpen={state.isOpen} onClose={closeSystemPromptsModal} isCentered size="4xl" useInert={false}>
+ <ModalOverlay />
+ <ModalContent>
+ <ModalHeader>{title}</ModalHeader>
+ <ModalCloseButton />
+ <ModalBody display="flex" flexDir="column" gap={4}>
+ {isEditMode ? (
+ <SystemPromptForm editing={editingPrompt} />
+ ) : isLoading ? (
+ <Spinner alignSelf="center" />
+ ) : !prompts || prompts.length === 0 ? (
+ <Text color="base.300" alignSelf="center" py={6}>
+ {t('systemPrompts.noPromptsYet')}
+ </Text>
+ ) : (
+ <Flex flexDir="column" gap={2}>
+ {prompts.map((p) => (
+ <SystemPromptListItem key={p.id} prompt={p} />
+ ))}
+ </Flex>
+ )}
+ </ModalBody>
+ <ModalFooter p={4}>
+ {!isEditMode && (
+ <Button leftIcon={<PiPlusBold />} colorScheme="invokeBlue" onClick={handleNew}>
+ {t('systemPrompts.newSystemPrompt')}
+ </Button>
+ )}
+ </ModalFooter>
+ </ModalContent>
+ </Modal>
+ );
+});
+
+SystemPromptsModal.displayName = 'SystemPromptsModal';
diff --git a/invokeai/frontend/web/src/features/systemPrompts/hooks/useCanEditSystemPrompt.ts b/invokeai/frontend/web/src/features/systemPrompts/hooks/useCanEditSystemPrompt.ts
new file mode 100644
index 0000000000..387cd3ce1f
--- /dev/null
+++ b/invokeai/frontend/web/src/features/systemPrompts/hooks/useCanEditSystemPrompt.ts
@@ -0,0 +1,31 @@
+import { useAppSelector } from 'app/store/storeHooks';
+import { selectCurrentUser } from 'features/auth/store/authSlice';
+import { useMemo } from 'react';
+import { useGetSetupStatusQuery } from 'services/api/endpoints/auth';
+import type { SystemPromptRecordDTO } from 'services/api/endpoints/systemPrompts';
+
+/**
+ * Returns true when the current user may edit/delete the given system prompt.
+ *
+ * In single-user mode, always true.
+ * In multiuser mode, true only when the user owns the prompt or is an admin.
+ */
+export const useCanEditSystemPrompt = (prompt: SystemPromptRecordDTO | undefined): boolean => {
+ const currentUser = useAppSelector(selectCurrentUser);
+ const { data: setupStatus } = useGetSetupStatusQuery();
+
+ return useMemo(() => {
+ if (!prompt) {
+ return false;
+ }
+ // Single-user installs have no ownership concept.
+ if (!setupStatus?.multiuser_enabled) {
+ return true;
+ }
+ // No authenticated user — be permissive (matches workflow library behaviour).
+ if (!currentUser) {
+ return true;
+ }
+ return prompt.user_id === currentUser.user_id || currentUser.is_admin;
+ }, [prompt, setupStatus?.multiuser_enabled, currentUser]);
+};
diff --git a/invokeai/frontend/web/src/features/systemPrompts/store/systemPromptModal.ts b/invokeai/frontend/web/src/features/systemPrompts/store/systemPromptModal.ts
new file mode 100644
index 0000000000..735e54c665
--- /dev/null
+++ b/invokeai/frontend/web/src/features/systemPrompts/store/systemPromptModal.ts
@@ -0,0 +1,27 @@
+import { atom } from 'nanostores';
+
+type SystemPromptsModalState = {
+ isOpen: boolean;
+ editingId: string | null; // null + isOpen = list view; non-null = edit view; 'new' = create view
+};
+
+export const $systemPromptsModalState = atom<SystemPromptsModalState>({
+ isOpen: false,
+ editingId: null,
+});
+
+export const openSystemPromptsModal = () => {
+ $systemPromptsModalState.set({ isOpen: true, editingId: null });
+};
+
+export const closeSystemPromptsModal = () => {
+ $systemPromptsModalState.set({ isOpen: false, editingId: null });
+};
+
+export const showSystemPromptsList = () => {
+ $systemPromptsModalState.set({ isOpen: true, editingId: null });
+};
+
+export const showSystemPromptEditor = (id: string | 'new') => {
+ $systemPromptsModalState.set({ isOpen: true, editingId: id });
+};
diff --git a/invokeai/frontend/web/src/services/api/endpoints/systemPrompts.ts b/invokeai/frontend/web/src/services/api/endpoints/systemPrompts.ts
new file mode 100644
index 0000000000..2fa3f20fc7
--- /dev/null
+++ b/invokeai/frontend/web/src/services/api/endpoints/systemPrompts.ts
@@ -0,0 +1,54 @@
+import type { S } from 'services/api/types';
+
+import { api, buildV1Url, LIST_TAG } from '..';
+
+export type SystemPromptRecordDTO = S['SystemPromptRecordDTO'];
+type SystemPromptWithoutId = S['SystemPromptWithoutId'];
+type SystemPromptChanges = S['SystemPromptChanges'];
+
+const buildSystemPromptsUrl = (path: string = '') => buildV1Url(`system_prompts/${path}`);
+
+export const systemPromptsApi = api.injectEndpoints({
+ endpoints: (build) => ({
+ listSystemPrompts: build.query<SystemPromptRecordDTO[], void>({
+ query: () => ({ url: buildSystemPromptsUrl() }),
+ providesTags: ['FetchOnReconnect', { type: 'SystemPrompt', id: LIST_TAG }],
+ }),
+ createSystemPrompt: build.mutation<SystemPromptRecordDTO, SystemPromptWithoutId>({
+ query: (body) => ({
+ url: buildSystemPromptsUrl(),
+ method: 'POST',
+ body,
+ }),
+ invalidatesTags: [{ type: 'SystemPrompt', id: LIST_TAG }],
+ }),
+ updateSystemPrompt: build.mutation<SystemPromptRecordDTO, { id: string; changes: SystemPromptChanges }>({
+ query: ({ id, changes }) => ({
+ url: buildSystemPromptsUrl(`i/${id}`),
+ method: 'PATCH',
+ body: changes,
+ }),
+ invalidatesTags: (_result, _error, { id }) => [
+ { type: 'SystemPrompt', id: LIST_TAG },
+ { type: 'SystemPrompt', id },
+ ],
+ }),
+ deleteSystemPrompt: build.mutation<void, string>({
+ query: (id) => ({
+ url: buildSystemPromptsUrl(`i/${id}`),
+ method: 'DELETE',
+ }),
+ invalidatesTags: (_result, _error, id) => [
+ { type: 'SystemPrompt', id: LIST_TAG },
+ { type: 'SystemPrompt', id },
+ ],
+ }),
+ }),
+});
+
+export const {
+ useListSystemPromptsQuery,
+ useCreateSystemPromptMutation,
+ useUpdateSystemPromptMutation,
+ useDeleteSystemPromptMutation,
+} = systemPromptsApi;
diff --git a/invokeai/frontend/web/src/services/api/index.ts b/invokeai/frontend/web/src/services/api/index.ts
index e48e7bad8b..92832823c1 100644
--- a/invokeai/frontend/web/src/services/api/index.ts
+++ b/invokeai/frontend/web/src/services/api/index.ts
@@ -64,6 +64,7 @@ const tagTypes = [
'WorkflowTagCounts',
'WorkflowCategoryCounts',
'StylePreset',
+ 'SystemPrompt',
'Schema',
'QueueCountsByDestination',
// This is invalidated on reconnect. It should be used for queries that have changing data,
diff --git a/invokeai/frontend/web/src/services/api/schema.ts b/invokeai/frontend/web/src/services/api/schema.ts
index 3c391751cc..58e62f9fed 100644
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@ -2998,6 +2998,58 @@ export type paths = {
patch?: never;
trace?: never;
};
+ "/api/v1/system_prompts/": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * List System Prompts
+ * @description Lists system prompts visible to the current user (own + public).
+ */
+ get: operations["list_system_prompts"];
+ put?: never;
+ /**
+ * Create System Prompt
+ * @description Creates a new system prompt owned by the current user.
+ */
+ post: operations["create_system_prompt"];
+ delete?: never;
+ options?: never;
+ head?: never;
+ patch?: never;
+ trace?: never;
+ };
+ "/api/v1/system_prompts/i/{system_prompt_id}": {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /**
+ * Get System Prompt
+ * @description Gets a system prompt by id.
+ */
+ get: operations["get_system_prompt"];
+ put?: never;
+ post?: never;
+ /**
+ * Delete System Prompt
+ * @description Deletes a system prompt. Only the owner or an admin may delete.
+ */
+ delete: operations["delete_system_prompt"];
+ options?: never;
+ head?: never;
+ /**
+ * Update System Prompt
+ * @description Updates a system prompt. Only the owner or an admin may update.
+ */
+ patch: operations["update_system_prompt"];
+ trace?: never;
+ };
"/api/v1/client_state/{queue_id}/get_by_key": {
parameters: {
query?: never;
@@ -13737,7 +13789,7 @@ export type components = {
* @description The nodes in this graph
*/
nodes?: {
- [key: string]: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
+ [key: string]: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TextLLMWithPresetInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
};
/**
* Edges
@@ -17557,7 +17609,7 @@ export type components = {
* Invocation
* @description The ID of the invocation
*/
- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TextLLMWithPresetInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
/**
* Invocation Source Id
* @description The ID of the prepared invocation's source node
@@ -17621,7 +17673,7 @@ export type components = {
* Invocation
* @description The ID of the invocation
*/
- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TextLLMWithPresetInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
/**
* Invocation Source Id
* @description The ID of the prepared invocation's source node
@@ -17906,6 +17958,7 @@ export type components = {
t2i_adapter: components["schemas"]["T2IAdapterOutput"];
tensor_mask_to_image: components["schemas"]["ImageOutput"];
text_llm: components["schemas"]["StringOutput"];
+ text_llm_with_preset: components["schemas"]["StringOutput"];
tile_to_properties: components["schemas"]["TileToPropertiesOutput"];
tiled_multi_diffusion_denoise_latents: components["schemas"]["LatentsOutput"];
tomask: components["schemas"]["ImageOutput"];
@@ -17994,7 +18047,7 @@ export type components = {
* Invocation
* @description The ID of the invocation
*/
- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TextLLMWithPresetInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
/**
* Invocation Source Id
* @description The ID of the prepared invocation's source node
@@ -18075,7 +18128,7 @@ export type components = {
* Invocation
* @description The ID of the invocation
*/
- invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
+ invocation: components["schemas"]["AddInvocation"] | components["schemas"]["AlibabaCloudImageGenerationInvocation"] | components["schemas"]["AlphaMaskToTensorInvocation"] | components["schemas"]["AnimaDenoiseInvocation"] | components["schemas"]["AnimaImageToLatentsInvocation"] | components["schemas"]["AnimaLLLiteInvocation"] | components["schemas"]["AnimaLatentsToImageInvocation"] | components["schemas"]["AnimaLoRACollectionLoader"] | components["schemas"]["AnimaLoRALoaderInvocation"] | components["schemas"]["AnimaModelLoaderInvocation"] | components["schemas"]["AnimaTextEncoderInvocation"] | components["schemas"]["ApplyMaskTensorToImageInvocation"] | components["schemas"]["ApplyMaskToImageInvocation"] | components["schemas"]["BlankImageInvocation"] | components["schemas"]["BlendLatentsInvocation"] | components["schemas"]["BooleanCollectionInvocation"] | components["schemas"]["BooleanInvocation"] | components["schemas"]["BoundingBoxInvocation"] | components["schemas"]["CLIPSkipInvocation"] | components["schemas"]["CV2InfillInvocation"] | components["schemas"]["CalculateImageTilesEvenSplitInvocation"] | components["schemas"]["CalculateImageTilesInvocation"] | components["schemas"]["CalculateImageTilesMinimumOverlapInvocation"] | components["schemas"]["CallSavedWorkflowInvocation"] | components["schemas"]["CannyEdgeDetectionInvocation"] | components["schemas"]["CanvasOutputInvocation"] | components["schemas"]["CanvasPasteBackInvocation"] | components["schemas"]["CanvasV2MaskAndCropInvocation"] | components["schemas"]["CenterPadCropInvocation"] | components["schemas"]["CogView4DenoiseInvocation"] | components["schemas"]["CogView4ImageToLatentsInvocation"] | components["schemas"]["CogView4LatentsToImageInvocation"] | components["schemas"]["CogView4ModelLoaderInvocation"] | components["schemas"]["CogView4TextEncoderInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["ColorCorrectInvocation"] | components["schemas"]["ColorInvocation"] | components["schemas"]["ColorMapInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ConditioningCollectionInvocation"] | components["schemas"]["ConditioningInvocation"] | components["schemas"]["ContentShuffleInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["CoreMetadataInvocation"] | components["schemas"]["CreateDenoiseMaskInvocation"] | components["schemas"]["CreateGradientMaskInvocation"] | components["schemas"]["CropImageToBoundingBoxInvocation"] | components["schemas"]["CropLatentsCoreInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["DWOpenposeDetectionInvocation"] | components["schemas"]["DecodeInvisibleWatermarkInvocation"] | components["schemas"]["DenoiseLatentsInvocation"] | components["schemas"]["DenoiseLatentsMetaInvocation"] | components["schemas"]["DepthAnythingDepthEstimationInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["ESRGANInvocation"] | components["schemas"]["ExpandMaskWithFadeInvocation"] | components["schemas"]["ExtractVideoRangeInvocation"] | components["schemas"]["FLUXLoRACollectionLoader"] | components["schemas"]["FaceIdentifierInvocation"] | components["schemas"]["FaceMaskInvocation"] | components["schemas"]["FaceOffInvocation"] | components["schemas"]["FloatBatchInvocation"] | components["schemas"]["FloatCollectionInvocation"] | components["schemas"]["FloatGenerator"] | components["schemas"]["FloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["FloatMathInvocation"] | components["schemas"]["FloatToIntegerInvocation"] | components["schemas"]["Flux2DenoiseInvocation"] | components["schemas"]["Flux2KleinLoRACollectionLoader"] | components["schemas"]["Flux2KleinLoRALoaderInvocation"] | components["schemas"]["Flux2KleinModelLoaderInvocation"] | components["schemas"]["Flux2KleinTextEncoderInvocation"] | components["schemas"]["Flux2PiDDecodeInvocation"] | components["schemas"]["Flux2VaeDecodeInvocation"] | components["schemas"]["Flux2VaeEncodeInvocation"] | components["schemas"]["FluxControlLoRALoaderInvocation"] | components["schemas"]["FluxControlNetInvocation"] | components["schemas"]["FluxDenoiseInvocation"] | components["schemas"]["FluxDenoiseLatentsMetaInvocation"] | components["schemas"]["FluxFillInvocation"] | components["schemas"]["FluxIPAdapterInvocation"] | components["schemas"]["FluxKontextConcatenateImagesInvocation"] | components["schemas"]["FluxKontextInvocation"] | components["schemas"]["FluxLoRALoaderInvocation"] | components["schemas"]["FluxModelLoaderInvocation"] | components["schemas"]["FluxPiDDecodeInvocation"] | components["schemas"]["FluxReduxInvocation"] | components["schemas"]["FluxTextEncoderInvocation"] | components["schemas"]["FluxVaeDecodeInvocation"] | components["schemas"]["FluxVaeEncodeInvocation"] | components["schemas"]["FreeUInvocation"] | components["schemas"]["GeminiImageGenerationInvocation"] | components["schemas"]["Gemma2EncoderLoaderInvocation"] | components["schemas"]["GetMaskBoundingBoxInvocation"] | components["schemas"]["GroundingDinoInvocation"] | components["schemas"]["HEDEdgeDetectionInvocation"] | components["schemas"]["HeuristicResizeInvocation"] | components["schemas"]["IPAdapterInvocation"] | components["schemas"]["IdealSizeInvocation"] | components["schemas"]["Ideogram4CaptionBuilderInvocation"] | components["schemas"]["Ideogram4DenoiseInvocation"] | components["schemas"]["Ideogram4LatentsToImageInvocation"] | components["schemas"]["Ideogram4ModelLoaderInvocation"] | components["schemas"]["Ideogram4TextEncoderInvocation"] | components["schemas"]["IfInvocation"] | components["schemas"]["ImageBatchInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageChannelMultiplyInvocation"] | components["schemas"]["ImageChannelOffsetInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImageGenerator"] | components["schemas"]["ImageHueAdjustmentInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ImageInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageMaskToTensorInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageNSFWBlurInvocation"] | components["schemas"]["ImageNoiseInvocation"] | components["schemas"]["ImagePanelLayoutInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["ImageWatermarkInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["IntegerBatchInvocation"] | components["schemas"]["IntegerCollectionInvocation"] | components["schemas"]["IntegerGenerator"] | components["schemas"]["IntegerInvocation"] | components["schemas"]["IntegerMathInvocation"] | components["schemas"]["InvertTensorMaskInvocation"] | components["schemas"]["InvokeAdjustImageHuePlusInvocation"] | components["schemas"]["InvokeEquivalentAchromaticLightnessInvocation"] | components["schemas"]["InvokeImageBlendInvocation"] | components["schemas"]["InvokeImageCompositorInvocation"] | components["schemas"]["InvokeImageDilateOrErodeInvocation"] | components["schemas"]["InvokeImageEnhanceInvocation"] | components["schemas"]["InvokeImageValueThresholdsInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["Krea2ConditioningRebalanceInvocation"] | components["schemas"]["Krea2DenoiseInvocation"] | components["schemas"]["Krea2LoRACollectionLoader"] | components["schemas"]["Krea2LoRALoaderInvocation"] | components["schemas"]["Krea2ModelLoaderInvocation"] | components["schemas"]["Krea2SeedVarianceInvocation"] | components["schemas"]["Krea2TextEncoderInvocation"] | components["schemas"]["LaMaInfillInvocation"] | components["schemas"]["LatentsCollectionInvocation"] | components["schemas"]["LatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["LineartAnimeEdgeDetectionInvocation"] | components["schemas"]["LineartEdgeDetectionInvocation"] | components["schemas"]["LlavaOnevisionVllmInvocation"] | components["schemas"]["LoRACollectionLoader"] | components["schemas"]["LoRALoaderInvocation"] | components["schemas"]["LoRASelectorInvocation"] | components["schemas"]["MLSDDetectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["MaskCombineInvocation"] | components["schemas"]["MaskEdgeInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["MaskFromIDInvocation"] | components["schemas"]["MaskTensorToImageInvocation"] | components["schemas"]["MediaPipeFaceDetectionInvocation"] | components["schemas"]["MergeMetadataInvocation"] | components["schemas"]["MergeTilesToImageInvocation"] | components["schemas"]["MetadataFieldExtractorInvocation"] | components["schemas"]["MetadataFromImageInvocation"] | components["schemas"]["MetadataInvocation"] | components["schemas"]["MetadataItemInvocation"] | components["schemas"]["MetadataItemLinkedInvocation"] | components["schemas"]["MetadataToBoolCollectionInvocation"] | components["schemas"]["MetadataToBoolInvocation"] | components["schemas"]["MetadataToControlnetsInvocation"] | components["schemas"]["MetadataToFloatCollectionInvocation"] | components["schemas"]["MetadataToFloatInvocation"] | components["schemas"]["MetadataToIPAdaptersInvocation"] | components["schemas"]["MetadataToIntegerCollectionInvocation"] | components["schemas"]["MetadataToIntegerInvocation"] | components["schemas"]["MetadataToLorasCollectionInvocation"] | components["schemas"]["MetadataToLorasInvocation"] | components["schemas"]["MetadataToModelInvocation"] | components["schemas"]["MetadataToSDXLLorasInvocation"] | components["schemas"]["MetadataToSDXLModelInvocation"] | components["schemas"]["MetadataToSchedulerInvocation"] | components["schemas"]["MetadataToStringCollectionInvocation"] | components["schemas"]["MetadataToStringInvocation"] | components["schemas"]["MetadataToT2IAdaptersInvocation"] | components["schemas"]["MetadataToVAEInvocation"] | components["schemas"]["ModelIdentifierInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["NormalMapInvocation"] | components["schemas"]["OklabUnsharpMaskInvocation"] | components["schemas"]["OklchImageHueAdjustmentInvocation"] | components["schemas"]["OpenAIImageGenerationInvocation"] | components["schemas"]["PBRMapsInvocation"] | components["schemas"]["PairTileImageInvocation"] | components["schemas"]["PasteImageIntoBoundingBoxInvocation"] | components["schemas"]["PiDDecoderLoaderInvocation"] | components["schemas"]["PiDUpscaleInvocation"] | components["schemas"]["PiDiNetEdgeDetectionInvocation"] | components["schemas"]["PromptTemplateInvocation"] | components["schemas"]["PromptsFromFileInvocation"] | components["schemas"]["QwenImageDenoiseInvocation"] | components["schemas"]["QwenImageImageToLatentsInvocation"] | components["schemas"]["QwenImageLatentsToImageInvocation"] | components["schemas"]["QwenImageLoRACollectionLoader"] | components["schemas"]["QwenImageLoRALoaderInvocation"] | components["schemas"]["QwenImageModelLoaderInvocation"] | components["schemas"]["QwenImagePiDDecodeInvocation"] | components["schemas"]["QwenImageTextEncoderInvocation"] | components["schemas"]["RandomFloatInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RectangleMaskInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["RoundInvocation"] | components["schemas"]["SD3DenoiseInvocation"] | components["schemas"]["SD3ImageToLatentsInvocation"] | components["schemas"]["SD3LatentsToImageInvocation"] | components["schemas"]["SD3PiDDecodeInvocation"] | components["schemas"]["SDXLCompelPromptInvocation"] | components["schemas"]["SDXLLoRACollectionLoader"] | components["schemas"]["SDXLLoRALoaderInvocation"] | components["schemas"]["SDXLModelLoaderInvocation"] | components["schemas"]["SDXLPiDDecodeInvocation"] | components["schemas"]["SDXLRefinerCompelPromptInvocation"] | components["schemas"]["SDXLRefinerModelLoaderInvocation"] | components["schemas"]["SaveImageInvocation"] | components["schemas"]["SaveImageToFileInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["SchedulerInvocation"] | components["schemas"]["Sd3ModelLoaderInvocation"] | components["schemas"]["Sd3TextEncoderInvocation"] | components["schemas"]["SeamlessModeInvocation"] | components["schemas"]["SeedreamImageGenerationInvocation"] | components["schemas"]["SegmentAnythingInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["SpandrelImageToImageAutoscaleInvocation"] | components["schemas"]["SpandrelImageToImageInvocation"] | components["schemas"]["StringBatchInvocation"] | components["schemas"]["StringCollectionInvocation"] | components["schemas"]["StringGenerator"] | components["schemas"]["StringInvocation"] | components["schemas"]["StringJoinInvocation"] | components["schemas"]["StringJoinThreeInvocation"] | components["schemas"]["StringReplaceInvocation"] | components["schemas"]["StringSplitInvocation"] | components["schemas"]["StringSplitNegInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["T2IAdapterInvocation"] | components["schemas"]["TextLLMInvocation"] | components["schemas"]["TextLLMWithPresetInvocation"] | components["schemas"]["TileToPropertiesInvocation"] | components["schemas"]["TiledMultiDiffusionDenoiseLatents"] | components["schemas"]["UnsharpMaskInvocation"] | components["schemas"]["VAELoaderInvocation"] | components["schemas"]["VideoConcatInvocation"] | components["schemas"]["VideoFrameExtractInvocation"] | components["schemas"]["VideoInvocation"] | components["schemas"]["WanDenoiseInvocation"] | components["schemas"]["WanI2VIdealDimensionsInvocation"] | components["schemas"]["WanImageToLatentsInvocation"] | components["schemas"]["WanLatentsToImageInvocation"] | components["schemas"]["WanLatentsToVideoInvocation"] | components["schemas"]["WanLoRACollectionLoader"] | components["schemas"]["WanLoRALoaderInvocation"] | components["schemas"]["WanModelLoaderInvocation"] | components["schemas"]["WanRefImageEncoderInvocation"] | components["schemas"]["WanTI2VIdealDimensionsInvocation"] | components["schemas"]["WanTextEncoderInvocation"] | components["schemas"]["WanVideoDenoiseInvocation"] | components["schemas"]["WorkflowReturnGetInvocation"] | components["schemas"]["WorkflowReturnInvocation"] | components["schemas"]["WorkflowReturnValueInvocation"] | components["schemas"]["ZImageControlInvocation"] | components["schemas"]["ZImageDenoiseInvocation"] | components["schemas"]["ZImageDenoiseMetaInvocation"] | components["schemas"]["ZImageImageToLatentsInvocation"] | components["schemas"]["ZImageLatentsToImageInvocation"] | components["schemas"]["ZImageLoRACollectionLoader"] | components["schemas"]["ZImageLoRALoaderInvocation"] | components["schemas"]["ZImageModelLoaderInvocation"] | components["schemas"]["ZImagePiDDecodeInvocation"] | components["schemas"]["ZImageSeedVarianceEnhancerInvocation"] | components["schemas"]["ZImageTextEncoderInvocation"];
/**
* Invocation Source Id
* @description The ID of the prepared invocation's source node
@@ -33769,6 +33822,88 @@ export type components = {
*/
type: "sub";
};
+ /** SystemPromptChanges */
+ SystemPromptChanges: {
+ /**
+ * Name
+ * @description The new name.
+ */
+ name?: string | null;
+ /**
+ * Content
+ * @description The new content.
+ */
+ content?: string | null;
+ /**
+ * Is Public
+ * @description Whether the prompt is shared with all users.
+ */
+ is_public?: boolean | null;
+ };
+ /**
+ * SystemPromptField
+ * @description A system prompt primitive field
+ */
+ SystemPromptField: {
+ /**
+ * System Prompt Id
+ * @description The id of the system prompt
+ */
+ system_prompt_id: string;
+ };
+ /** SystemPromptRecordDTO */
+ SystemPromptRecordDTO: {
+ /**
+ * Name
+ * @description The name of the system prompt.
+ */
+ name: string;
+ /**
+ * Content
+ * @description The system prompt content.
+ */
+ content: string;
+ /**
+ * Id
+ * @description The system prompt ID.
+ */
+ id: string;
+ /**
+ * User Id
+ * @description The owning user id ('system' for built-in defaults, and for everything created in single-user mode).
+ */
+ user_id: string;
+ /**
+ * Is Public
+ * @description Whether the prompt is shared with all users.
+ */
+ is_public: boolean;
+ /**
+ * Created At
+ * Format: date-time
+ * @description When the system prompt was created.
+ */
+ created_at: string;
+ /**
+ * Updated At
+ * Format: date-time
+ * @description When the system prompt was last updated.
+ */
+ updated_at: string;
+ };
+ /** SystemPromptWithoutId */
+ SystemPromptWithoutId: {
+ /**
+ * Name
+ * @description The name of the system prompt.
+ */
+ name: string;
+ /**
+ * Content
+ * @description The system prompt content.
+ */
+ content: string;
+ };
/** T2IAdapterField */
T2IAdapterField: {
/** @description The T2I-Adapter image prompt. */
@@ -34846,6 +34981,67 @@ export type components = {
*/
type: "text_llm";
};
+ /**
+ * Text LLM (with System Prompt Preset)
+ * @description Run a text language model using a saved system prompt from the System Prompts library.
+ *
+ * Behaves identically to the Text LLM node, but the system prompt is selected from a
+ * DB-backed preset instead of being typed inline. Useful when you maintain a curated
+ * library of expansion strategies and want to reuse them across workflows.
+ *
+ * Note: the field stores the preset's id, not its text. A workflow exported from one install
+ * only resolves on another if that install has a prompt with the same id -- true for the
+ * seeded defaults (fixed UUIDs), not for user-created prompts. `StylePresetField` has the
+ * same limitation.
+ */
+ TextLLMWithPresetInvocation: {
+ /**
+ * 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 Input text prompt.
+ * @default
+ */
+ prompt?: string;
+ /**
+ * @description The saved system prompt to use as the LLM's instruction.
+ * @default null
+ */
+ system_prompt?: components["schemas"]["SystemPromptField"] | null;
+ /**
+ * Text LLM Model
+ * @description The text language model to use for text generation
+ * @default null
+ */
+ text_llm_model?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * Max Tokens
+ * @description Maximum number of tokens to generate.
+ * @default 300
+ */
+ max_tokens?: number;
+ /**
+ * type
+ * @default text_llm_with_preset
+ * @constant
+ */
+ type: "text_llm_with_preset";
+ };
/**
* TextLLM_Diffusers_Config
* @description Model config for text-only causal language models (e.g. Llama, Phi, Qwen, Mistral).
@@ -45973,6 +46169,159 @@ export interface operations {
};
};
};
+ list_system_prompts: {
+ 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"]["SystemPromptRecordDTO"][];
+ };
+ };
+ };
+ };
+ create_system_prompt: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["SystemPromptWithoutId"];
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["SystemPromptRecordDTO"];
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ get_system_prompt: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /** @description The id of the system prompt to get */
+ system_prompt_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["SystemPromptRecordDTO"];
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ delete_system_prompt: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /** @description The id of the system prompt to delete */
+ system_prompt_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"];
+ };
+ };
+ };
+ };
+ update_system_prompt: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ /** @description The id of the system prompt to update */
+ system_prompt_id: string;
+ };
+ cookie?: never;
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["SystemPromptChanges"];
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["SystemPromptRecordDTO"];
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
get_client_state_by_key: {
parameters: {
query: {
diff --git a/tests/app/invocations/test_text_llm_with_preset.py b/tests/app/invocations/test_text_llm_with_preset.py
new file mode 100644
index 0000000000..e891beee83
--- /dev/null
+++ b/tests/app/invocations/test_text_llm_with_preset.py
@@ -0,0 +1,171 @@
+"""Tests for TextLLMWithPresetInvocation.
+
+The model-loading and pipeline-run code paths are exercised by the existing
+TextLLMInvocation node. What is unique to TextLLMWithPresetInvocation is that the system
+prompt is fetched from system_prompt_records by id -- and that this lookup must enforce the
+same own/public/default/admin rules the REST API does, since the record store itself is
+unscoped and the resolved content ends up in the LLM's system message.
+"""
+
+from unittest.mock import MagicMock, patch
+
+import pytest
+
+from invokeai.app.invocations.fields import SystemPromptField
+from invokeai.app.invocations.model import ModelIdentifierField
+from invokeai.app.invocations.text_llm import TextLLMWithPresetInvocation
+from invokeai.app.services.system_prompt_records.system_prompt_records_common import (
+ SystemPromptNotFoundError,
+)
+
+
+def _make_invocation(prompt_id: str = "test-id") -> TextLLMWithPresetInvocation:
+ return TextLLMWithPresetInvocation(
+ id="test-node",
+ prompt="a cat",
+ system_prompt=SystemPromptField(system_prompt_id=prompt_id),
+ text_llm_model=ModelIdentifierField(key="dummy", hash="x", name="dummy", base="any", type="text_llm"),
+ max_tokens=50,
+ )
+
+
+def _make_context(
+ prompt_record_content: str | None,
+ *,
+ multiuser: bool = False,
+ record_user_id: str = "system",
+ record_is_public: bool = True,
+ queue_user_id: str = "alice",
+ queue_user_is_admin: bool = False,
+) -> MagicMock:
+ """Build a context whose system_prompt_records.get returns a record with the given content,
+ or raises SystemPromptNotFoundError when content is None."""
+ context = MagicMock()
+ context._services.configuration.multiuser = multiuser
+ context._data.queue_item.user_id = queue_user_id
+ context._services.users.get.return_value = MagicMock(is_admin=queue_user_is_admin)
+ if prompt_record_content is None:
+ context._services.system_prompt_records.get.side_effect = SystemPromptNotFoundError("not found")
+ else:
+ record = MagicMock()
+ record.content = prompt_record_content
+ record.user_id = record_user_id
+ record.is_public = record_is_public
+ context._services.system_prompt_records.get.return_value = record
+ return context
+
+
+def test_preset_node_loads_content_from_db_and_passes_to_llm() -> None:
+ inv = _make_invocation(prompt_id="abc")
+ context = _make_context(prompt_record_content="custom system instruction")
+
+ with patch("invokeai.app.invocations.text_llm._run_text_llm", return_value="expanded") as mock_run:
+ result = inv.invoke(context)
+
+ # The DB lookup happened with the configured id …
+ context._services.system_prompt_records.get.assert_called_once_with("abc")
+ # … and the content from the record was forwarded to the shared pipeline helper.
+ assert mock_run.call_count == 1
+ kwargs = mock_run.call_args.kwargs
+ assert kwargs["system_prompt"] == "custom system instruction"
+ assert kwargs["prompt"] == "a cat"
+ assert kwargs["max_tokens"] == 50
+
+ assert result.value == "expanded"
+
+
+def test_preset_node_reports_a_missing_preset() -> None:
+ inv = _make_invocation(prompt_id="missing-id")
+ context = _make_context(prompt_record_content=None)
+
+ with patch("invokeai.app.invocations.text_llm._run_text_llm") as mock_run:
+ with pytest.raises(ValueError, match="could not be found"):
+ inv.invoke(context)
+
+ # Pipeline must NOT be invoked if the preset can't be resolved.
+ mock_run.assert_not_called()
+
+
+def test_preset_node_rejects_another_users_private_prompt_in_multiuser() -> None:
+ # The exact escalation the REST layer blocks: user2 knows the id of user1's private prompt
+ # (the create response echoes it) and enqueues a graph referencing it.
+ inv = _make_invocation(prompt_id="alice-private")
+ context = _make_context(
+ prompt_record_content="alice's secret instruction",
+ multiuser=True,
+ record_user_id="alice",
+ record_is_public=False,
+ queue_user_id="bob",
+ )
+
+ with patch("invokeai.app.invocations.text_llm._run_text_llm") as mock_run:
+ with pytest.raises(ValueError, match="not accessible to this user"):
+ inv.invoke(context)
+
+ mock_run.assert_not_called()
+
+
+def test_preset_node_rejects_a_privatized_prompt_owned_by_the_single_user_id() -> None:
+ # 'system' is both the seeded-defaults owner and the synthetic id every request carries in
+ # single-user mode, so prompts created before an install switched to multiuser are owned by
+ # it. Once such a prompt is made private it must be unreachable here, exactly as
+ # GET /system_prompts/i/{id} 403s on it -- no "owned by 'system' means built-in" shortcut.
+ inv = _make_invocation(prompt_id="pre-upgrade-private")
+ context = _make_context(
+ prompt_record_content="secret instruction from the single-user era",
+ multiuser=True,
+ record_user_id="system",
+ record_is_public=False,
+ queue_user_id="bob",
+ )
+
+ with patch("invokeai.app.invocations.text_llm._run_text_llm") as mock_run:
+ with pytest.raises(ValueError, match="not accessible to this user"):
+ inv.invoke(context)
+
+ mock_run.assert_not_called()
+
+
+ "record_user_id,record_is_public,queue_user_id,queue_user_is_admin",
+ [
+ ("system", True, "bob", False), # seeded default (they are is_public=TRUE)
+ ("alice", True, "bob", False), # explicitly shared
+ ("bob", False, "bob", False), # owner
+ ("alice", False, "admin", True), # admin
+ ],
+)
+def test_preset_node_allows_accessible_prompts_in_multiuser(
+ record_user_id: str, record_is_public: bool, queue_user_id: str, queue_user_is_admin: bool
+) -> None:
+ inv = _make_invocation(prompt_id="some-id")
+ context = _make_context(
+ prompt_record_content="instruction",
+ multiuser=True,
+ record_user_id=record_user_id,
+ record_is_public=record_is_public,
+ queue_user_id=queue_user_id,
+ queue_user_is_admin=queue_user_is_admin,
+ )
+
+ with patch("invokeai.app.invocations.text_llm._run_text_llm", return_value="expanded") as mock_run:
+ assert inv.invoke(context).value == "expanded"
+
+ assert mock_run.call_args.kwargs["system_prompt"] == "instruction"
+
+
+def test_preset_node_skips_the_ownership_check_in_single_user_mode() -> None:
+ # Single-user installs have no meaningful user identity; every prompt is reachable.
+ inv = _make_invocation(prompt_id="some-id")
+ context = _make_context(
+ prompt_record_content="instruction",
+ multiuser=False,
+ record_user_id="someone-else",
+ record_is_public=False,
+ )
+
+ with patch("invokeai.app.invocations.text_llm._run_text_llm", return_value="expanded") as mock_run:
+ assert inv.invoke(context).value == "expanded"
+
+ context._services.users.get.assert_not_called()
+ assert mock_run.call_count == 1
diff --git a/tests/app/routers/test_image_moves.py b/tests/app/routers/test_image_moves.py
index 1dd6066b17..b5a6fd8922 100644
--- a/tests/app/routers/test_image_moves.py
+++ b/tests/app/routers/test_image_moves.py
@@ -87,6 +87,7 @@ def mock_services() -> InvocationServices:
board_video_records=SqliteBoardVideoRecordStorage(db=db),
gallery=None, # type: ignore
image_moves=image_moves,
+ system_prompt_records=None, # type: ignore
)
diff --git a/tests/app/routers/test_multiuser_authorization.py b/tests/app/routers/test_multiuser_authorization.py
index 1d8d3f5f52..be5d2a61be 100644
--- a/tests/app/routers/test_multiuser_authorization.py
+++ b/tests/app/routers/test_multiuser_authorization.py
@@ -79,6 +79,9 @@ def mock_services() -> InvocationServices:
from invokeai.app.services.images.images_default import ImageService
from invokeai.app.services.invocation_cache.invocation_cache_memory import MemoryInvocationCache
from invokeai.app.services.invocation_stats.invocation_stats_default import InvocationStatsService
+ from invokeai.app.services.system_prompt_records.system_prompt_records_sqlite import (
+ SqliteSystemPromptRecordsStorage,
+ )
from invokeai.app.services.users.users_default import UserService
from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
from tests.test_nodes import TestEventService
@@ -113,6 +116,7 @@ def mock_services() -> InvocationServices:
conditioning=None, # type: ignore
style_preset_records=None, # type: ignore
style_preset_image_files=None, # type: ignore
+ system_prompt_records=SqliteSystemPromptRecordsStorage(db=db),
workflow_thumbnails=None, # type: ignore
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore
diff --git a/tests/app/routers/test_session_queue_workflow_call.py b/tests/app/routers/test_session_queue_workflow_call.py
index 69be937125..f1c45b2263 100644
--- a/tests/app/routers/test_session_queue_workflow_call.py
+++ b/tests/app/routers/test_session_queue_workflow_call.py
@@ -95,6 +95,7 @@ def mock_services() -> InvocationServices:
client_state_persistence=ClientStatePersistenceSqlite(db=db),
users=UserService(db),
external_generation=None, # type: ignore
+ system_prompt_records=None, # type: ignore
videos=None, # type: ignore
video_files=None, # type: ignore
video_records=SqliteVideoRecordStorage(db=db),
diff --git a/tests/app/routers/test_system_prompts_multiuser.py b/tests/app/routers/test_system_prompts_multiuser.py
new file mode 100644
index 0000000000..1dc7beeaf7
--- /dev/null
+++ b/tests/app/routers/test_system_prompts_multiuser.py
@@ -0,0 +1,284 @@
+"""Multi-user permission tests for the /api/v1/system_prompts router.
+
+Verifies:
+- list scopes to own + public for non-admins
+- non-owner PATCH/DELETE returns 403
+- owner can flip is_public
+- admin sees and mutates everything
+"""
+
+import logging
+from typing import Any
+
+import pytest
+from fastapi import status
+from fastapi.testclient import TestClient
+
+from invokeai.app.api.dependencies import ApiDependencies
+from invokeai.app.api_app import app
+from invokeai.app.services.config.config_default import InvokeAIAppConfig
+from invokeai.app.services.invocation_services import InvocationServices
+from invokeai.app.services.invoker import Invoker
+from invokeai.app.services.users.users_common import UserCreateRequest
+from invokeai.backend.util.logging import InvokeAILogger
+from tests.fixtures.sqlite_database import create_mock_sqlite_database
+
+
+class MockApiDependencies(ApiDependencies):
+ invoker: Invoker
+
+ def __init__(self, invoker: Invoker) -> None:
+ self.invoker = invoker
+
+
+def setup_jwt_secret():
+ from invokeai.app.services.auth.token_service import set_jwt_secret
+
+ set_jwt_secret("test-secret-key-for-unit-tests-only-do-not-use-in-production")
+
+
+def client():
+ return TestClient(app)
+
+
+def mock_services() -> InvocationServices:
+ from invokeai.app.services.board_image_records.board_image_records_sqlite import SqliteBoardImageRecordStorage
+ from invokeai.app.services.board_records.board_records_sqlite import SqliteBoardRecordStorage
+ from invokeai.app.services.boards.boards_default import BoardService
+ from invokeai.app.services.bulk_download.bulk_download_default import BulkDownloadService
+ from invokeai.app.services.client_state_persistence.client_state_persistence_sqlite import (
+ ClientStatePersistenceSqlite,
+ )
+ from invokeai.app.services.image_records.image_records_sqlite import SqliteImageRecordStorage
+ from invokeai.app.services.images.images_default import ImageService
+ from invokeai.app.services.invocation_cache.invocation_cache_memory import MemoryInvocationCache
+ from invokeai.app.services.invocation_stats.invocation_stats_default import InvocationStatsService
+ from invokeai.app.services.system_prompt_records.system_prompt_records_sqlite import (
+ SqliteSystemPromptRecordsStorage,
+ )
+ from invokeai.app.services.users.users_default import UserService
+ from tests.test_nodes import TestEventService
+
+ configuration = InvokeAIAppConfig(use_memory_db=True, node_cache_size=0)
+ logger = InvokeAILogger.get_logger()
+ db = create_mock_sqlite_database(configuration, logger)
+
+ return InvocationServices(
+ board_image_records=SqliteBoardImageRecordStorage(db=db),
+ board_images=None, # type: ignore
+ board_records=SqliteBoardRecordStorage(db=db),
+ boards=BoardService(),
+ bulk_download=BulkDownloadService(),
+ configuration=configuration,
+ events=TestEventService(),
+ image_files=None, # type: ignore
+ image_records=SqliteImageRecordStorage(db=db),
+ images=ImageService(),
+ invocation_cache=MemoryInvocationCache(max_cache_size=0),
+ logger=logging, # type: ignore
+ model_images=None, # type: ignore
+ model_manager=None, # type: ignore
+ download_queue=None, # type: ignore
+ names=None, # type: ignore
+ performance_statistics=InvocationStatsService(),
+ session_processor=None, # type: ignore
+ session_queue=None, # type: ignore
+ urls=None, # type: ignore
+ workflow_records=None, # type: ignore
+ tensors=None, # type: ignore
+ conditioning=None, # type: ignore
+ style_preset_records=None, # type: ignore
+ style_preset_image_files=None, # type: ignore
+ system_prompt_records=SqliteSystemPromptRecordsStorage(db=db),
+ workflow_thumbnails=None, # type: ignore
+ model_relationship_records=None, # type: ignore
+ model_relationships=None, # type: ignore
+ client_state_persistence=ClientStatePersistenceSqlite(db=db),
+ users=UserService(db),
+ external_generation=None, # type: ignore
+ videos=None, # type: ignore
+ video_files=None, # type: ignore
+ video_records=None, # type: ignore
+ board_video_records=None, # type: ignore
+ gallery=None, # type: ignore
+ )
+
+
+def mock_invoker(mock_services: InvocationServices) -> Invoker:
+ return Invoker(services=mock_services)
+
+
+def create_test_user(mock_invoker: Invoker, email: str, display_name: str, is_admin: bool = False) -> str:
+ user_service = mock_invoker.services.users
+ user_data = UserCreateRequest(email=email, display_name=display_name, password="TestPass123", is_admin=is_admin)
+ user = user_service.create(user_data)
+ return user.user_id
+
+
+def get_user_token(client: TestClient, email: str) -> str:
+ response = client.post(
+ "/api/v1/auth/login",
+ json={"email": email, "password": "TestPass123", "remember_me": False},
+ )
+ assert response.status_code == 200, response.text
+ return response.json()["token"]
+
+
+def enable_multiuser(monkeypatch: Any, mock_invoker: Invoker):
+ mock_invoker.services.configuration.multiuser = True
+ mock_deps = MockApiDependencies(mock_invoker)
+ # Patch every module that imports ApiDependencies for symbol resolution.
+ monkeypatch.setattr("invokeai.app.api.routers.auth.ApiDependencies", mock_deps)
+ monkeypatch.setattr("invokeai.app.api.auth_dependencies.ApiDependencies", mock_deps)
+ monkeypatch.setattr("invokeai.app.api.routers.system_prompts.ApiDependencies", mock_deps)
+ yield
+
+
+def admin_token(setup_jwt_secret: None, enable_multiuser: Any, mock_invoker: Invoker, client: TestClient):
+ create_test_user(mock_invoker, "[email protected]", "Admin", is_admin=True)
+ return get_user_token(client, "[email protected]")
+
+
+def user1_token(enable_multiuser: Any, mock_invoker: Invoker, client: TestClient, admin_token: str):
+ create_test_user(mock_invoker, "[email protected]", "User One", is_admin=False)
+ return get_user_token(client, "[email protected]")
+
+
+def user2_token(enable_multiuser: Any, mock_invoker: Invoker, client: TestClient, admin_token: str):
+ create_test_user(mock_invoker, "[email protected]", "User Two", is_admin=False)
+ return get_user_token(client, "[email protected]")
+
+
+def _create_prompt(client: TestClient, token: str, name: str = "p", content: str = "c") -> dict:
+ r = client.post(
+ "/api/v1/system_prompts/",
+ json={"name": name, "content": content},
+ headers={"Authorization": f"Bearer {token}"},
+ )
+ assert r.status_code == 200, r.text
+ return r.json()
+
+
+def _list(client: TestClient, token: str) -> list:
+ r = client.get("/api/v1/system_prompts/", headers={"Authorization": f"Bearer {token}"})
+ assert r.status_code == 200
+ return r.json()
+
+
+# ---------------------------------------------------------------------------
+# Auth gate
+# ---------------------------------------------------------------------------
+
+
+def test_list_requires_auth_in_multiuser(enable_multiuser: Any, client: TestClient):
+ r = client.get("/api/v1/system_prompts/")
+ assert r.status_code == status.HTTP_401_UNAUTHORIZED
+
+
+# ---------------------------------------------------------------------------
+# Visibility scoping
+# ---------------------------------------------------------------------------
+
+
+def test_user2_does_not_see_user1_private_prompt(client: TestClient, user1_token: str, user2_token: str):
+ p = _create_prompt(client, user1_token, name="user1 private")
+ assert p["is_public"] is False # multiuser create defaults to private
+ user2_ids = {row["id"] for row in _list(client, user2_token)}
+ assert p["id"] not in user2_ids
+
+
+def test_user2_sees_user1_public_prompt(client: TestClient, user1_token: str, user2_token: str):
+ created = _create_prompt(client, user1_token, name="user1 created")
+ # flip to public via PATCH
+ r = client.patch(
+ f"/api/v1/system_prompts/i/{created['id']}",
+ json={"is_public": True},
+ headers={"Authorization": f"Bearer {user1_token}"},
+ )
+ assert r.status_code == 200
+ assert r.json()["is_public"] is True
+
+ user2_ids = {row["id"] for row in _list(client, user2_token)}
+ assert created["id"] in user2_ids
+
+
+def test_seeded_defaults_visible_to_non_admin(client: TestClient, user1_token: str):
+ rows = _list(client, user1_token)
+ # The Default seed has fixed UUID …0000.
+ default_id = "0f8f5b2e-1c9e-4f2a-9a4e-1f1f1f1f0000"
+ assert any(r["id"] == default_id for r in rows)
+
+
+# ---------------------------------------------------------------------------
+# Mutation permissions
+# ---------------------------------------------------------------------------
+
+
+def test_user2_cannot_patch_user1_prompt(client: TestClient, user1_token: str, user2_token: str):
+ p = _create_prompt(client, user1_token, name="locked")
+ r = client.patch(
+ f"/api/v1/system_prompts/i/{p['id']}",
+ json={"name": "hijacked"},
+ headers={"Authorization": f"Bearer {user2_token}"},
+ )
+ assert r.status_code == status.HTTP_403_FORBIDDEN
+
+
+def test_user2_cannot_delete_user1_prompt(client: TestClient, user1_token: str, user2_token: str):
+ p = _create_prompt(client, user1_token, name="locked")
+ r = client.delete(
+ f"/api/v1/system_prompts/i/{p['id']}",
+ headers={"Authorization": f"Bearer {user2_token}"},
+ )
+ assert r.status_code == status.HTTP_403_FORBIDDEN
+
+ # Confirm the row still exists by fetching it as the owner.
+ r2 = client.get(
+ f"/api/v1/system_prompts/i/{p['id']}",
+ headers={"Authorization": f"Bearer {user1_token}"},
+ )
+ assert r2.status_code == 200
+
+
+def test_user2_cannot_get_user1_private_prompt(client: TestClient, user1_token: str, user2_token: str):
+ p = _create_prompt(client, user1_token, name="locked")
+ r = client.get(
+ f"/api/v1/system_prompts/i/{p['id']}",
+ headers={"Authorization": f"Bearer {user2_token}"},
+ )
+ assert r.status_code == status.HTTP_403_FORBIDDEN
+
+
+def test_admin_can_patch_any_users_prompt(client: TestClient, user1_token: str, admin_token: str):
+ p = _create_prompt(client, user1_token, name="user1 owned")
+ r = client.patch(
+ f"/api/v1/system_prompts/i/{p['id']}",
+ json={"name": "renamed by admin"},
+ headers={"Authorization": f"Bearer {admin_token}"},
+ )
+ assert r.status_code == 200
+ assert r.json()["name"] == "renamed by admin"
+
+
+def test_admin_can_delete_any_users_prompt(client: TestClient, user1_token: str, admin_token: str):
+ p = _create_prompt(client, user1_token, name="user1 owned")
+ r = client.delete(
+ f"/api/v1/system_prompts/i/{p['id']}",
+ headers={"Authorization": f"Bearer {admin_token}"},
+ )
+ assert r.status_code == 200
+
+ # Confirm gone (owner should get 404 now).
+ r2 = client.get(
+ f"/api/v1/system_prompts/i/{p['id']}",
+ headers={"Authorization": f"Bearer {user1_token}"},
+ )
+ assert r2.status_code == status.HTTP_404_NOT_FOUND
diff --git a/tests/app/routers/test_system_prompts_single_user.py b/tests/app/routers/test_system_prompts_single_user.py
new file mode 100644
index 0000000000..2dc45d7a16
--- /dev/null
+++ b/tests/app/routers/test_system_prompts_single_user.py
@@ -0,0 +1,135 @@
+"""Single-user tests for the /api/v1/system_prompts router.
+
+The multi-user tests cover the ownership checks. Single-user installs skip those checks
+entirely, which is exactly where the delete contract used to diverge: DELETE reported 200 for
+ids that GET 404s on, and deleting the same row twice succeeded twice.
+"""
+
+import logging
+from typing import Any
+
+import pytest
+from fastapi.testclient import TestClient
+
+from invokeai.app.api.dependencies import ApiDependencies
+from invokeai.app.api_app import app
+from invokeai.app.services.config.config_default import InvokeAIAppConfig
+from invokeai.app.services.invocation_services import InvocationServices
+from invokeai.app.services.invoker import Invoker
+from invokeai.backend.util.logging import InvokeAILogger
+from tests.fixtures.sqlite_database import create_mock_sqlite_database
+
+
+class MockApiDependencies(ApiDependencies):
+ invoker: Invoker
+
+ def __init__(self, invoker: Invoker) -> None:
+ self.invoker = invoker
+
+
+def client():
+ return TestClient(app)
+
+
+def mock_services() -> InvocationServices:
+ from invokeai.app.services.board_image_records.board_image_records_sqlite import SqliteBoardImageRecordStorage
+ from invokeai.app.services.board_records.board_records_sqlite import SqliteBoardRecordStorage
+ from invokeai.app.services.boards.boards_default import BoardService
+ from invokeai.app.services.bulk_download.bulk_download_default import BulkDownloadService
+ from invokeai.app.services.client_state_persistence.client_state_persistence_sqlite import (
+ ClientStatePersistenceSqlite,
+ )
+ from invokeai.app.services.image_records.image_records_sqlite import SqliteImageRecordStorage
+ from invokeai.app.services.images.images_default import ImageService
+ from invokeai.app.services.invocation_cache.invocation_cache_memory import MemoryInvocationCache
+ from invokeai.app.services.invocation_stats.invocation_stats_default import InvocationStatsService
+ from invokeai.app.services.system_prompt_records.system_prompt_records_sqlite import (
+ SqliteSystemPromptRecordsStorage,
+ )
+ from invokeai.app.services.users.users_default import UserService
+ from tests.test_nodes import TestEventService
+
+ configuration = InvokeAIAppConfig(use_memory_db=True, node_cache_size=0)
+ logger = InvokeAILogger.get_logger()
+ db = create_mock_sqlite_database(configuration, logger)
+
+ return InvocationServices(
+ board_image_records=SqliteBoardImageRecordStorage(db=db),
+ board_images=None, # type: ignore
+ board_records=SqliteBoardRecordStorage(db=db),
+ boards=BoardService(),
+ bulk_download=BulkDownloadService(),
+ configuration=configuration,
+ events=TestEventService(),
+ image_files=None, # type: ignore
+ image_records=SqliteImageRecordStorage(db=db),
+ images=ImageService(),
+ invocation_cache=MemoryInvocationCache(max_cache_size=0),
+ logger=logging, # type: ignore
+ model_images=None, # type: ignore
+ model_manager=None, # type: ignore
+ download_queue=None, # type: ignore
+ names=None, # type: ignore
+ performance_statistics=InvocationStatsService(),
+ session_processor=None, # type: ignore
+ session_queue=None, # type: ignore
+ urls=None, # type: ignore
+ workflow_records=None, # type: ignore
+ tensors=None, # type: ignore
+ conditioning=None, # type: ignore
+ style_preset_records=None, # type: ignore
+ style_preset_image_files=None, # type: ignore
+ system_prompt_records=SqliteSystemPromptRecordsStorage(db=db),
+ workflow_thumbnails=None, # type: ignore
+ model_relationship_records=None, # type: ignore
+ model_relationships=None, # type: ignore
+ client_state_persistence=ClientStatePersistenceSqlite(db=db),
+ users=UserService(db),
+ external_generation=None, # type: ignore
+ videos=None, # type: ignore
+ video_files=None, # type: ignore
+ video_records=None, # type: ignore
+ board_video_records=None, # type: ignore
+ gallery=None, # type: ignore
+ )
+
+
+def mock_invoker(mock_services: InvocationServices) -> Invoker:
+ return Invoker(services=mock_services)
+
+
+def single_user(monkeypatch: Any, mock_invoker: Invoker):
+ mock_invoker.services.configuration.multiuser = False
+ mock_deps = MockApiDependencies(mock_invoker)
+ monkeypatch.setattr("invokeai.app.api.auth_dependencies.ApiDependencies", mock_deps)
+ monkeypatch.setattr("invokeai.app.api.routers.system_prompts.ApiDependencies", mock_deps)
+ yield
+
+
+def _create_prompt(client: TestClient, name: str = "p", content: str = "c") -> dict:
+ r = client.post("/api/v1/system_prompts/", json={"name": name, "content": content})
+ assert r.status_code == 200, r.text
+ return r.json()
+
+
+def test_delete_of_unknown_id_returns_404(single_user: Any, client: TestClient) -> None:
+ # GET and DELETE must agree: an id that does not exist is a 404 for both.
+ assert client.get("/api/v1/system_prompts/i/does-not-exist").status_code == 404
+ assert client.delete("/api/v1/system_prompts/i/does-not-exist").status_code == 404
+
+
+def test_delete_is_not_idempotent_success(single_user: Any, client: TestClient) -> None:
+ created = _create_prompt(client, name="temp")
+ assert client.delete(f"/api/v1/system_prompts/i/{created['id']}").status_code == 200
+ assert client.get(f"/api/v1/system_prompts/i/{created['id']}").status_code == 404
+ # The second delete must not report success for a row that is already gone.
+ assert client.delete(f"/api/v1/system_prompts/i/{created['id']}").status_code == 404
+
+
+def test_create_is_public_in_single_user_mode(single_user: Any, client: TestClient) -> None:
+ created = _create_prompt(client, name="shared by default")
+ assert created["is_public"] is True
diff --git a/tests/app/routers/test_workflows_multiuser.py b/tests/app/routers/test_workflows_multiuser.py
index c6492c70dc..4844139148 100644
--- a/tests/app/routers/test_workflows_multiuser.py
+++ b/tests/app/routers/test_workflows_multiuser.py
@@ -69,6 +69,9 @@ def mock_services() -> InvocationServices:
from invokeai.app.services.images.images_default import ImageService
from invokeai.app.services.invocation_cache.invocation_cache_memory import MemoryInvocationCache
from invokeai.app.services.invocation_stats.invocation_stats_default import InvocationStatsService
+ from invokeai.app.services.system_prompt_records.system_prompt_records_sqlite import (
+ SqliteSystemPromptRecordsStorage,
+ )
from invokeai.app.services.users.users_default import UserService
from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
from tests.test_nodes import TestEventService
@@ -103,6 +106,7 @@ def mock_services() -> InvocationServices:
conditioning=None, # type: ignore
style_preset_records=None, # type: ignore
style_preset_image_files=None, # type: ignore
+ system_prompt_records=SqliteSystemPromptRecordsStorage(db=db),
workflow_thumbnails=None, # type: ignore
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore
diff --git a/tests/app/services/shared/sqlite_migrator/migrations/test_migration_2026_07_10_create_system_prompts.py b/tests/app/services/shared/sqlite_migrator/migrations/test_migration_2026_07_10_create_system_prompts.py
new file mode 100644
index 0000000000..ddb1694068
--- /dev/null
+++ b/tests/app/services/shared/sqlite_migrator/migrations/test_migration_2026_07_10_create_system_prompts.py
@@ -0,0 +1,121 @@
+import sqlite3
+
+from invokeai.app.services.shared.sqlite_migrator.migrations.migration_2026_07_10_create_system_prompts import (
+ DEFAULT_SYSTEM_PROMPTS,
+ CreateSystemPromptsCallback,
+ build_migration,
+)
+
+
+def _get_columns(cursor: sqlite3.Cursor, table_name: str) -> set[str]:
+ cursor.execute(f"PRAGMA table_info({table_name});")
+ return {row[1] for row in cursor.fetchall()}
+
+
+def test_creates_table_and_seeds_defaults() -> None:
+ db = sqlite3.connect(":memory:")
+ cursor = db.cursor()
+
+ CreateSystemPromptsCallback()(cursor)
+
+ assert _get_columns(cursor, "system_prompts") == {
+ "id",
+ "name",
+ "content",
+ "user_id",
+ "is_public",
+ "created_at",
+ "updated_at",
+ }
+ cursor.execute("SELECT COUNT(*) FROM system_prompts WHERE user_id = 'system' AND is_public = TRUE;")
+ assert cursor.fetchone()[0] == len(DEFAULT_SYSTEM_PROMPTS)
+
+ db.close()
+
+
+def test_backfills_multiuser_columns_on_a_pre_multiuser_table() -> None:
+ # The migration id was bumped precisely so this path is reachable on dev DBs created from an
+ # earlier revision of this branch, where the table exists without user_id/is_public.
+ db = sqlite3.connect(":memory:")
+ cursor = db.cursor()
+ cursor.execute(
+ """--sql
+ CREATE TABLE system_prompts (
+ id TEXT NOT NULL PRIMARY KEY,
+ name TEXT NOT NULL,
+ content TEXT NOT NULL,
+ created_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')),
+ updated_at DATETIME NOT NULL DEFAULT(STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW'))
+ );
+ """
+ )
+ cursor.execute("INSERT INTO system_prompts (id, name, content) VALUES ('kept', 'mine', 'body');")
+ # The pre-multiuser table was already seeded, so the defaults exist and the INSERT OR IGNORE
+ # below skips them -- they can only become public again via the backfill's UPDATE.
+ cursor.executemany(
+ "INSERT INTO system_prompts (id, name, content) VALUES (?, ?, ?);",
+ DEFAULT_SYSTEM_PROMPTS,
+ )
+
+ CreateSystemPromptsCallback()(cursor)
+
+ assert {"user_id", "is_public"} <= _get_columns(cursor, "system_prompts")
+ # The pre-existing user row survives and picks up the column defaults.
+ cursor.execute("SELECT user_id, is_public, content FROM system_prompts WHERE id = 'kept';")
+ assert cursor.fetchone() == ("system", 0, "body")
+
+ # Every seeded default must end up public again, or `get_many(user_id=...)` -- own OR public --
+ # returns nothing at all for a non-admin in multiuser mode.
+ default_ids = [default_id for default_id, _, _ in DEFAULT_SYSTEM_PROMPTS]
+ placeholders = ",".join("?" * len(default_ids))
+ cursor.execute(
+ f"SELECT COUNT(*) FROM system_prompts WHERE id IN ({placeholders}) AND is_public = TRUE;",
+ default_ids,
+ )
+ assert cursor.fetchone()[0] == len(DEFAULT_SYSTEM_PROMPTS)
+
+ db.close()
+
+
+def test_backfill_does_not_reshare_a_default_the_user_made_private() -> None:
+ # The is_public UPDATE lives inside the `"is_public" not in existing_columns` branch, so a
+ # second pass over an already-backfilled table must leave deliberate privatization alone.
+ db = sqlite3.connect(":memory:")
+ cursor = db.cursor()
+
+ CreateSystemPromptsCallback()(cursor)
+ default_id = DEFAULT_SYSTEM_PROMPTS[0][0]
+ cursor.execute("UPDATE system_prompts SET is_public = FALSE WHERE id = ?;", (default_id,))
+
+ CreateSystemPromptsCallback()(cursor)
+
+ cursor.execute("SELECT is_public FROM system_prompts WHERE id = ?;", (default_id,))
+ assert cursor.fetchone()[0] == 0
+
+ db.close()
+
+
+def test_is_idempotent_and_preserves_user_edits() -> None:
+ # Re-running must not duplicate the defaults or clobber edits to them: the fixed UUIDs make
+ # every seed row a primary-key conflict that INSERT OR IGNORE skips.
+ db = sqlite3.connect(":memory:")
+ cursor = db.cursor()
+
+ CreateSystemPromptsCallback()(cursor)
+ default_id = DEFAULT_SYSTEM_PROMPTS[0][0]
+ cursor.execute("UPDATE system_prompts SET content = 'edited by user' WHERE id = ?;", (default_id,))
+
+ CreateSystemPromptsCallback()(cursor)
+
+ cursor.execute("SELECT COUNT(*) FROM system_prompts;")
+ assert cursor.fetchone()[0] == len(DEFAULT_SYSTEM_PROMPTS)
+ cursor.execute("SELECT content FROM system_prompts WHERE id = ?;", (default_id,))
+ assert cursor.fetchone()[0] == "edited by user"
+
+ db.close()
+
+
+def test_migration_id_matches_its_module_name() -> None:
+ # The loader rejects a mismatch, but assert it here so a rename is a test failure rather than
+ # a startup failure.
+ assert build_migration().id == "2026_07_10_create_system_prompts"
diff --git a/tests/app/services/test_image_move_startup_safety.py b/tests/app/services/test_image_move_startup_safety.py
index e6b1380e5e..f8247afcbe 100644
--- a/tests/app/services/test_image_move_startup_safety.py
+++ b/tests/app/services/test_image_move_startup_safety.py
@@ -44,6 +44,7 @@ def _services(**overrides):
"board_video_records": object(),
"gallery": object(),
"image_moves": None,
+ "system_prompt_records": object(),
}
services.update(overrides)
return InvocationServices(**services)
diff --git a/tests/app/services/test_system_prompt_records.py b/tests/app/services/test_system_prompt_records.py
new file mode 100644
index 0000000000..fbce15822e
--- /dev/null
+++ b/tests/app/services/test_system_prompt_records.py
@@ -0,0 +1,156 @@
+"""Storage-layer tests for system_prompt_records.
+
+Covers the per-user scoping semantics added on top of the original CRUD:
+- get_many returns own + public for a user_id, all rows for None (admin)
+- update/delete with a non-owner user_id raises NotFound and leaves the row untouched
+- the migration-seeded defaults (user_id='system', is_public=TRUE) are visible to every user
+"""
+
+from invokeai.app.services.config.config_default import InvokeAIAppConfig
+from invokeai.app.services.system_prompt_records.system_prompt_records_common import (
+ SystemPromptChanges,
+ SystemPromptNotFoundError,
+ SystemPromptWithoutId,
+)
+from invokeai.app.services.system_prompt_records.system_prompt_records_sqlite import (
+ SqliteSystemPromptRecordsStorage,
+)
+from invokeai.backend.util.logging import InvokeAILogger
+from tests.fixtures.sqlite_database import create_mock_sqlite_database
+
+
+def _storage() -> SqliteSystemPromptRecordsStorage:
+ config = InvokeAIAppConfig(use_memory_db=True, node_cache_size=0)
+ db = create_mock_sqlite_database(config, InvokeAILogger.get_logger())
+ return SqliteSystemPromptRecordsStorage(db=db)
+
+
+def test_seeded_defaults_visible_to_every_user() -> None:
+ svc = _storage()
+ seeded = svc.get_many(user_id=None)
+ assert len(seeded) >= 1
+ assert all(p.user_id == "system" and p.is_public for p in seeded)
+ seeded_ids = {p.id for p in seeded}
+
+ # Any non-admin user sees the same system rows because they are public.
+ for_alice = svc.get_many(user_id="alice")
+ assert seeded_ids.issubset({p.id for p in for_alice})
+
+
+def test_private_prompt_hidden_from_other_user_visible_to_owner_and_admin() -> None:
+ svc = _storage()
+ alice = svc.create(
+ SystemPromptWithoutId(name="alice secret", content="x"),
+ user_id="alice",
+ is_public=False,
+ )
+
+ # (a) Other users do NOT see alice's private prompt
+ bob_view = svc.get_many(user_id="bob")
+ assert alice.id not in {p.id for p in bob_view}
+
+ # (b) Owner sees it
+ alice_view = svc.get_many(user_id="alice")
+ assert alice.id in {p.id for p in alice_view}
+
+ # (b) Admin (user_id=None) sees it
+ admin_view = svc.get_many(user_id=None)
+ assert alice.id in {p.id for p in admin_view}
+
+
+def test_public_prompt_visible_to_everyone() -> None:
+ svc = _storage()
+ bob_pub = svc.create(
+ SystemPromptWithoutId(name="bob shared", content="x"),
+ user_id="bob",
+ is_public=True,
+ )
+ alice_view = svc.get_many(user_id="alice")
+ assert bob_pub.id in {p.id for p in alice_view}
+
+
+def test_update_with_non_owner_user_id_raises_and_does_not_mutate() -> None:
+ svc = _storage()
+ alice = svc.create(
+ SystemPromptWithoutId(name="alice secret", content="original"),
+ user_id="alice",
+ is_public=False,
+ )
+
+ # (c) Non-owner update raises NotFound and does not change the row
+ try:
+ svc.update(alice.id, SystemPromptChanges(content="hijacked"), user_id="bob")
+ raise AssertionError("expected SystemPromptNotFoundError")
+ except SystemPromptNotFoundError:
+ pass
+ after = svc.get(alice.id)
+ assert after.content == "original"
+
+
+def test_delete_with_non_owner_user_id_raises_and_does_not_delete() -> None:
+ svc = _storage()
+ alice = svc.create(
+ SystemPromptWithoutId(name="alice secret", content="x"),
+ user_id="alice",
+ is_public=False,
+ )
+
+ # (d) Non-owner delete raises NotFound (symmetric with update) and leaves the row alone.
+ try:
+ svc.delete(alice.id, user_id="bob")
+ raise AssertionError("expected SystemPromptNotFoundError")
+ except SystemPromptNotFoundError:
+ pass
+ assert svc.get(alice.id).id == alice.id
+
+
+def test_delete_of_unknown_id_raises() -> None:
+ # Unscoped (single-user / admin) deletes must not report success for an id that does not
+ # exist -- the router turns this into a 404, matching GET.
+ svc = _storage()
+ try:
+ svc.delete("does-not-exist", user_id=None)
+ raise AssertionError("expected SystemPromptNotFoundError")
+ except SystemPromptNotFoundError:
+ pass
+
+
+def test_deleting_the_same_row_twice_raises_the_second_time() -> None:
+ svc = _storage()
+ created = svc.create(SystemPromptWithoutId(name="temp", content="x"), user_id="alice", is_public=False)
+ svc.delete(created.id, user_id=None)
+ try:
+ svc.delete(created.id, user_id=None)
+ raise AssertionError("expected SystemPromptNotFoundError on second delete")
+ except SystemPromptNotFoundError:
+ pass
+
+
+def test_admin_can_delete_any_row() -> None:
+ svc = _storage()
+ alice = svc.create(
+ SystemPromptWithoutId(name="alice secret", content="x"),
+ user_id="alice",
+ is_public=False,
+ )
+ svc.delete(alice.id, user_id=None)
+ try:
+ svc.get(alice.id)
+ raise AssertionError("expected SystemPromptNotFoundError after admin delete")
+ except SystemPromptNotFoundError:
+ pass
+
+
+def test_owner_can_flip_is_public() -> None:
+ svc = _storage()
+ alice = svc.create(
+ SystemPromptWithoutId(name="alice", content="x"),
+ user_id="alice",
+ is_public=False,
+ )
+ flipped = svc.update(alice.id, SystemPromptChanges(is_public=True), user_id="alice")
+ assert flipped.is_public is True
+
+ # Now visible to everyone
+ bob_view = svc.get_many(user_id="bob")
+ assert alice.id in {p.id for p in bob_view}
diff --git a/tests/conftest.py b/tests/conftest.py
index d930a4de78..bb8afd1d8d 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -25,6 +25,9 @@ from invokeai.app.services.invocation_cache.invocation_cache_memory import Memor
from invokeai.app.services.invocation_services import InvocationServices
from invokeai.app.services.invocation_stats.invocation_stats_default import InvocationStatsService
from invokeai.app.services.invoker import Invoker
+from invokeai.app.services.system_prompt_records.system_prompt_records_sqlite import (
+ SqliteSystemPromptRecordsStorage,
+)
from invokeai.app.services.users.users_default import UserService
from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
from invokeai.app.services.workflow_records.workflow_records_sqlite import SqliteWorkflowRecordsStorage
@@ -68,6 +71,7 @@ def mock_services() -> InvocationServices:
conditioning=None, # type: ignore
style_preset_records=None, # type: ignore
style_preset_image_files=None, # type: ignore
+ system_prompt_records=SqliteSystemPromptRecordsStorage(db=db),
workflow_thumbnails=None, # type: ignore
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore