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.

chore: merge upstream/main into v7 integration

joshistoast0ab567244f61
diff --cc invokeai/app/api/dependencies.py
index ba129e63e4,e49f2242d7..d708ad0d77
--- a/invokeai/app/api/dependencies.py
+++ b/invokeai/app/api/dependencies.py
@@@ -53,7 -54,9 +55,10 @@@ from invokeai.app.services.style_preset
from invokeai.app.services.style_preset_records.style_preset_records_sqlite import SqliteStylePresetRecordsStorage
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
+ from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
+ from invokeai.app.services.videos.videos_default import VideoService
+from invokeai.app.services.wildcard_records.wildcard_records_sqlite import SqliteWildcardRecordsStorage
from invokeai.app.services.workflow_records.workflow_records_sqlite import SqliteWorkflowRecordsStorage
from invokeai.app.services.workflow_thumbnails.workflow_thumbnails_disk import WorkflowThumbnailFileStorageDisk
from invokeai.backend.stable_diffusion.diffusion.conditioning_data import (
@@@ -228,8 -239,12 +244,13 @@@ class ApiDependencies
style_preset_image_files=style_preset_image_files,
workflow_thumbnails=workflow_thumbnails,
client_state_persistence=client_state_persistence,
+ project_records=project_records,
users=users,
+ videos=videos,
+ video_files=video_files,
+ video_records=video_records,
+ board_video_records=board_video_records,
+ gallery=gallery,
)
ApiDependencies.invoker = Invoker(services)
diff --cc invokeai/app/api_app.py
index 6c26bfc405,76a26e3483..17cdcb45b7
--- a/invokeai/app/api_app.py
+++ b/invokeai/app/api_app.py
@@@ -33,8 -38,8 +39,9 @@@ from invokeai.app.api.routers import
session_queue,
style_presets,
utilities,
+ videos,
virtual_boards,
+ wildcards,
workflows,
)
from invokeai.app.api.sockets import SocketIO
diff --cc invokeai/app/services/invocation_services.py
index 25579fd80d,eb80237659..f1365c7e14
--- a/invokeai/app/services/invocation_services.py
+++ b/invokeai/app/services/invocation_services.py
@@@ -82,8 -84,12 +87,13 @@@ class InvocationServices
style_preset_image_files: "StylePresetImageFileStorageBase",
workflow_thumbnails: "WorkflowThumbnailServiceBase",
client_state_persistence: "ClientStatePersistenceABC",
+ project_records: "ProjectRecordsStorageBase",
users: "UserServiceBase",
+ videos: "VideoServiceABC",
+ video_files: "VideoFileStorageBase",
+ video_records: "VideoRecordStorageBase",
+ board_video_records: "BoardVideoRecordStorageBase",
+ gallery: "GalleryServiceABC",
image_moves: "ImageMoveService | None" = None,
):
self.board_images = board_images
@@@ -118,5 -123,9 +128,10 @@@
self.style_preset_image_files = style_preset_image_files
self.workflow_thumbnails = workflow_thumbnails
self.client_state_persistence = client_state_persistence
+ self.project_records = project_records
self.users = users
+ self.videos = videos
+ self.video_files = video_files
+ self.video_records = video_records
+ self.board_video_records = board_video_records
+ self.gallery = gallery
diff --cc invokeai/app/services/session_queue/session_queue_sqlite.py
index 0f3a2ecc73,68f4ee27f3..f21c2845af
--- a/invokeai/app/services/session_queue/session_queue_sqlite.py
+++ b/invokeai/app/services/session_queue/session_queue_sqlite.py
@@@ -308,12 -308,15 +308,14 @@@ class SqliteSessionQueue(SessionQueueBa
if result is None:
return None
queue_item = SessionQueueItem.queue_item_from_dict(dict(result))
- queue_item = self._set_queue_item_status(item_id=queue_item.item_id, status="in_progress")
+ queue_item = self._set_queue_item_status(
+ item_id=queue_item.item_id, status="in_progress", queue_item=queue_item
+ )
return queue_item
- def get_next(self, queue_id: str) -> Optional[SessionQueueItem]:
+ def get_next(self, queue_id: str, origin_prefix: Optional[str] = None) -> Optional[SessionQueueItem]:
with self._db.transaction() as cursor:
- cursor.execute(
- """--sql
+ query = """--sql
SELECT
sq.*,
u.display_name as user_display_name,
@@@ -1206,20 -1220,23 +1239,39 @@@
SELECT status, count(*)
FROM session_queue
WHERE queue_id = ? AND user_id = ?
+ """
+ user_params = [queue_id, user_id]
+
+ if origin_prefix is not None:
+ user_query += " AND origin LIKE ?"
+ user_params.append(f"{origin_prefix}%")
+
+ user_query += """--sql
GROUP BY status
- """,
- (queue_id, user_id),
- )
+ """
+ cursor.execute(user_query, user_params)
user_counts_result = cast(list[sqlite3.Row], cursor.fetchall())
- current_item = self.get_current(queue_id=queue_id, origin_prefix=origin_prefix)
- cursor.execute(
- """--sql
++ # Only the four identifier columns, not a full SessionQueueItem: this runs on
++ # every status poll, and hydrating the item would deserialize its whole session
++ # graph. The origin filter mirrors the aggregate-count queries above so a
++ # scoped caller never sees another scope's current item.
++ current_item_query = """--sql
+ SELECT item_id, session_id, batch_id, user_id
+ FROM session_queue
+ WHERE queue_id = ? AND status = 'in_progress'
- LIMIT 1
- """,
- (queue_id,),
- )
++ """
++ current_item_params: list[str] = [queue_id]
++
++ if origin_prefix is not None:
++ current_item_query += " AND origin LIKE ?"
++ current_item_params.append(f"{origin_prefix}%")
++
++ current_item_query += " LIMIT 1"
++ cursor.execute(current_item_query, current_item_params)
+ current_item = cast(Union[sqlite3.Row, None], cursor.fetchone())
+
++
total = sum(row[1] or 0 for row in counts_result)
counts: dict[str, int] = {row[0]: row[1] for row in counts_result}
diff --cc invokeai/app/services/shared/invocation_context.py
index 81a19b3960,5a9756619d..072172a8d9
--- a/invokeai/app/services/shared/invocation_context.py
+++ b/invokeai/app/services/shared/invocation_context.py
@@@ -19,7 -18,7 +19,8 @@@ from invokeai.app.services.invocation_s
from invokeai.app.services.model_records.model_records_base import UnknownModelException
from invokeai.app.services.session_processor.session_processor_common import ProgressImage
from invokeai.app.services.shared.sqlite.sqlite_common import SQLiteDirection
+ from invokeai.app.services.videos.videos_common import VideoDTO
+from invokeai.app.services.wildcard_records.wildcard_records_common import build_wildcard_manager
from invokeai.app.util.step_callback import diffusion_step_callback
from invokeai.backend.model_manager.configs.base import Config_Base
from invokeai.backend.model_manager.configs.factory import AnyModelConfig
@@@ -808,8 -937,8 +953,9 @@@ def build_invocation_context
conditioning = ConditioningInterface(services=services, data=data)
models = ModelsInterface(services=services, data=data, util=util)
images = ImagesInterface(services=services, data=data, util=util)
+ videos = VideosInterface(services=services, data=data, util=util)
boards = BoardsInterface(services=services, data=data)
+ wildcards = WildcardsInterface(services=services, data=data)
ctx = InvocationContext(
images=images,
diff --cc invokeai/frontend/web/openapi.json
index 663020400f,4207f81600..44d3aaf5ae
--- a/invokeai/frontend/web/openapi.json
+++ b/invokeai/frontend/web/openapi.json
@@@ -8761,36 -9116,11 +9238,29 @@@
"in": "query",
"required": false,
"schema": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ],
- "description": "Filter by public/shared status",
- "title": "Is Public"
+ "$ref": "#/components/schemas/SQLiteDirection",
+ "description": "The order of sort",
+ "default": "DESC"
},
- "description": "Filter by public/shared status"
+ "description": "The order of sort"
+ },
+ {
- "name": "callable",
++ "name": "origin_prefix",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
- "type": "boolean"
++ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
- "description": "Filter by whether workflows are callable by call_saved_workflow",
- "title": "Callable"
++ "description": "Only include queue items whose origin starts with this prefix",
++ "title": "Origin Prefix"
+ },
- "description": "Filter by whether workflows are callable by call_saved_workflow"
++ "description": "Only include queue items whose origin starts with this prefix"
}
],
"responses": {
@@@ -9473,10 -9695,10 +9835,28 @@@
"required": true,
"schema": {
"type": "string",
- "description": "The style preset to delete",
- "title": "Style Preset Id"
+ "description": "The queue id to perform this operation on",
+ "title": "Queue Id"
},
- "description": "The style preset to delete"
+ "description": "The queue id to perform this operation on"
++ },
++ {
++ "name": "origin_prefix",
++ "in": "query",
++ "required": false,
++ "schema": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "description": "Only include queue items whose origin starts with this prefix",
++ "title": "Origin Prefix"
++ },
++ "description": "Only include queue items whose origin starts with this prefix"
}
],
"responses": {
@@@ -9527,23 -9749,20 +9907,38 @@@
{
"HTTPBearer": []
}
- ]
- },
- "post": {
- "tags": ["style_presets"],
- "summary": "Create Style Preset",
- "description": "Creates a style preset",
- "operationId": "create_style_preset",
- "requestBody": {
- "content": {
- "multipart/form-data": {
- "schema": {
- "$ref": "#/components/schemas/Body_create_style_preset"
- }
- }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id to perform this operation on",
+ "title": "Queue Id"
+ },
+ "description": "The queue id to perform this operation on"
+ },
- "required": true
- },
++ {
++ "name": "origin_prefix",
++ "in": "query",
++ "required": false,
++ "schema": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "description": "Only include queue items whose origin starts with this prefix",
++ "title": "Origin Prefix"
++ },
++ "description": "Only include queue items whose origin starts with this prefix"
+ }
+ ],
"responses": {
"200": {
"description": "Successful Response",
@@@ -9591,10 -9819,10 +9995,28 @@@
"required": true,
"schema": {
"type": "string",
- "description": "The id of the style preset image to get",
- "title": "Style Preset Id"
+ "description": "The queue id to perform this operation on",
+ "title": "Queue Id"
},
- "description": "The id of the style preset image to get"
+ "description": "The queue id to perform this operation on"
++ },
++ {
++ "name": "origin_prefix",
++ "in": "query",
++ "required": false,
++ "schema": {
++ "anyOf": [
++ {
++ "type": "string"
++ },
++ {
++ "type": "null"
++ }
++ ],
++ "description": "Only include queue items whose origin starts with this prefix",
++ "title": "Origin Prefix"
++ },
++ "description": "Only include queue items whose origin starts with this prefix"
}
],
"responses": {
@@@ -10665,1273 -10989,1091 +11183,1479 @@@
{
"HTTPBearer": []
}
- ]
- }
- }
- },
- "components": {
- "schemas": {
- "AddImagesToBoardResult": {
- "properties": {
- "affected_boards": {
- "items": {
- "type": "string"
+ ],
+ "parameters": [
+ {
+ "name": "categories",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/WorkflowCategory"
+ },
+ "description": "The categories to include",
+ "title": "Categories"
},
- "type": "array",
- "title": "Affected Boards",
- "description": "The ids of boards affected by the delete operation"
+ "description": "The categories to include"
},
- "added_images": {
- "items": {
- "type": "string"
+ {
+ "name": "has_been_opened",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Whether to include/exclude recent workflows",
+ "title": "Has Been Opened"
},
- "type": "array",
- "title": "Added Images",
- "description": "The image names that were added to the board"
- }
- },
- "type": "object",
- "required": ["affected_boards", "added_images"],
- "title": "AddImagesToBoardResult"
- },
- "AddInvocation": {
- "category": "math",
- "class": "invocation",
- "classification": "stable",
- "description": "Adds two numbers",
- "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"
+ "description": "Whether to include/exclude recent workflows"
},
- "use_cache": {
- "default": true,
- "description": "Whether or not to use the cache",
- "field_kind": "node_attribute",
- "title": "Use Cache",
- "type": "boolean"
+ {
+ "name": "is_public",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter by public/shared status",
+ "title": "Is Public"
+ },
+ "description": "Filter by public/shared status"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "title": "Response Counts By Category"
+ }
+ }
+ }
},
- "a": {
- "default": 0,
- "description": "The first number",
- "field_kind": "input",
- "input": "any",
- "orig_default": 0,
- "orig_required": false,
- "title": "A",
- "type": "integer"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/v1/workflows/i/{workflow_id}/opened_at": {
+ "put": {
+ "tags": ["workflows"],
+ "summary": "Update Opened At",
+ "description": "Updates the opened_at field of a workflow",
+ "operationId": "update_opened_at",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "workflow_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The workflow to update",
+ "title": "Workflow Id"
+ },
+ "description": "The workflow to update"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ }
},
- "b": {
- "default": 0,
- "description": "The second number",
- "field_kind": "input",
- "input": "any",
- "orig_default": 0,
- "orig_required": false,
- "title": "B",
- "type": "integer"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/v1/style_presets/i/{style_preset_id}": {
+ "get": {
+ "tags": ["style_presets"],
+ "summary": "Get Style Preset",
+ "description": "Gets a style preset",
+ "operationId": "get_style_preset",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "style_preset_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The style preset to get",
+ "title": "Style Preset Id"
+ },
+ "description": "The style preset to get"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/StylePresetRecordWithImage"
+ }
+ }
+ }
},
- "type": {
- "const": "add",
- "default": "add",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
}
- },
- "required": ["type", "id"],
- "tags": ["math", "add"],
- "title": "Add Integers",
- "type": "object",
- "version": "1.0.1",
- "output": {
- "$ref": "#/components/schemas/IntegerOutput"
}
},
- "AdminUserCreateRequest": {
- "properties": {
- "email": {
- "type": "string",
- "title": "Email",
- "description": "User email address"
- },
- "display_name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
+ "patch": {
+ "tags": ["style_presets"],
+ "summary": "Update Style Preset",
+ "description": "Updates a style preset",
+ "operationId": "update_style_preset",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "style_preset_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the style preset to update",
+ "title": "Style Preset Id"
+ },
+ "description": "The id of the style preset to update"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_update_style_preset"
}
- ],
- "title": "Display Name",
- "description": "Display name"
- },
- "password": {
- "type": "string",
- "title": "Password",
- "description": "User password"
- },
- "is_admin": {
- "type": "boolean",
- "title": "Is Admin",
- "description": "Whether user should have admin privileges",
- "default": false
+ }
}
},
- "type": "object",
- "required": ["email", "password"],
- "title": "AdminUserCreateRequest",
- "description": "Request body for admin to create a new user."
- },
- "AdminUserUpdateRequest": {
- "properties": {
- "display_name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/StylePresetRecordWithImage"
+ }
}
- ],
- "title": "Display Name",
- "description": "Display name"
+ }
},
- "password": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "title": "Password",
- "description": "New password"
- },
- "is_admin": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
+ }
+ }
+ }
+ },
+ "delete": {
+ "tags": ["style_presets"],
+ "summary": "Delete Style Preset",
+ "description": "Deletes a style preset",
+ "operationId": "delete_style_preset",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "style_preset_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The style preset to delete",
+ "title": "Style Preset Id"
+ },
+ "description": "The style preset to delete"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {}
}
- ],
- "title": "Is Admin",
- "description": "Whether user should have admin privileges"
+ }
},
- "is_active": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "title": "Is Active",
- "description": "Whether user account should be active"
+ }
+ }
+ }
+ }
+ },
+ "/api/v1/style_presets/": {
+ "get": {
+ "tags": ["style_presets"],
+ "summary": "List Style Presets",
+ "description": "Gets the style presets visible to the current user.",
+ "operationId": "list_style_presets",
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "items": {
+ "$ref": "#/components/schemas/StylePresetRecordWithImage"
+ },
+ "type": "array",
+ "title": "Response 200 List Style Presets"
+ }
+ }
+ }
}
},
- "type": "object",
- "title": "AdminUserUpdateRequest",
- "description": "Request body for admin to update any user."
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
},
- "AlibabaCloudImageGenerationInvocation": {
- "category": "image",
- "class": "invocation",
- "classification": "stable",
- "description": "Generate images using an Alibaba Cloud DashScope external model.",
- "node_pack": "invokeai",
- "properties": {
- "board": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/BoardField"
- },
- {
- "type": "null"
+ "post": {
+ "tags": ["style_presets"],
+ "summary": "Create Style Preset",
+ "description": "Creates a style preset",
+ "operationId": "create_style_preset",
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_create_style_preset"
}
- ],
- "default": null,
- "description": "The board to save the image to",
- "field_kind": "internal",
- "input": "direct",
- "orig_required": false,
- "ui_hidden": false
+ }
},
- "metadata": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/MetadataField"
- },
- {
- "type": "null"
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/StylePresetRecordWithImage"
+ }
}
- ],
- "default": null,
- "description": "Optional metadata to be saved with the image",
- "field_kind": "internal",
- "input": "connection",
- "orig_required": false,
- "ui_hidden": false
- },
- "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"
- },
- "model": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ModelIdentifierField"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Main model (UNet, VAE, CLIP) to load",
- "field_kind": "input",
- "input": "any",
- "orig_required": true,
- "ui_model_base": ["external"],
- "ui_model_format": ["external_api"],
- "ui_model_provider_id": ["alibabacloud"],
- "ui_model_type": ["external_image_generator"]
- },
- "mode": {
- "default": "txt2img",
- "description": "Generation mode. Not all modes are supported by every model; unsupported modes raise at runtime.",
- "enum": ["txt2img", "img2img", "inpaint"],
- "field_kind": "input",
- "input": "any",
- "orig_default": "txt2img",
- "orig_required": false,
- "title": "Mode",
- "type": "string"
- },
- "prompt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "default": null,
- "description": "Prompt",
- "field_kind": "input",
- "input": "any",
- "orig_required": true,
- "title": "Prompt"
- },
- "seed": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
+ "/api/v1/style_presets/i/{style_preset_id}/image": {
+ "get": {
+ "tags": ["style_presets"],
+ "summary": "Get Style Preset Image",
+ "description": "Gets an image file that previews the model",
+ "operationId": "get_style_preset_image",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "style_preset_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The id of the style preset image to get",
+ "title": "Style Preset Id"
+ },
+ "description": "The id of the style preset image to get"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "The style preset image was fetched successfully",
+ "content": {
+ "application/json": {
+ "schema": {}
}
- ],
- "default": null,
- "description": "Seed for random number generation",
- "field_kind": "input",
- "input": "any",
- "orig_default": null,
- "orig_required": false,
- "title": "Seed"
- },
- "num_images": {
- "default": 1,
- "description": "Number of images to generate",
- "exclusiveMinimum": 0,
- "field_kind": "input",
- "input": "any",
- "orig_default": 1,
- "orig_required": false,
- "title": "Num Images",
- "type": "integer"
+ }
},
- "width": {
- "default": 1024,
- "description": "Width of output (px)",
- "exclusiveMinimum": 0,
- "field_kind": "input",
- "input": "any",
- "orig_default": 1024,
- "orig_required": false,
- "title": "Width",
- "type": "integer"
+ "400": {
+ "description": "Bad request"
},
- "height": {
- "default": 1024,
- "description": "Height of output (px)",
- "exclusiveMinimum": 0,
- "field_kind": "input",
- "input": "any",
- "orig_default": 1024,
- "orig_required": false,
- "title": "Height",
- "type": "integer"
+ "404": {
+ "description": "The style preset image could not be found"
},
- "image_size": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "default": null,
- "description": "Image size preset (e.g. 1K, 2K, 4K)",
- "field_kind": "input",
- "input": "any",
- "orig_default": null,
- "orig_required": false,
- "title": "Image Size"
- },
- "init_image": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
+ }
+ }
+ }
+ }
+ },
+ "/api/v1/style_presets/export": {
+ "get": {
+ "tags": ["style_presets"],
+ "summary": "Export Style Presets",
+ "operationId": "export_style_presets",
+ "responses": {
+ "200": {
+ "description": "A CSV file with the requested data.",
+ "content": {
+ "application/json": {
+ "schema": {}
},
- {
- "type": "null"
+ "text/csv": {}
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
+ "/api/v1/style_presets/import": {
+ "post": {
+ "tags": ["style_presets"],
+ "summary": "Import Style Presets",
+ "operationId": "import_style_presets",
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_import_style_presets"
}
- ],
- "default": null,
- "description": "Init image for img2img/inpaint",
- "field_kind": "input",
- "input": "any",
- "orig_default": null,
- "orig_required": false
+ }
},
- "mask_image": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
- },
- {
- "type": "null"
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {}
}
- ],
- "default": null,
- "description": "Mask image for inpaint",
- "field_kind": "input",
- "input": "any",
- "orig_default": null,
- "orig_required": false
- },
- "reference_images": {
- "default": [],
- "description": "Reference images",
- "field_kind": "input",
- "input": "any",
- "items": {
- "$ref": "#/components/schemas/ImageField"
- },
- "orig_default": [],
- "orig_required": false,
- "title": "Reference Images",
- "type": "array"
+ }
},
- "type": {
- "const": "alibabacloud_image_generation",
- "default": "alibabacloud_image_generation",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
}
},
- "required": ["type", "id"],
- "tags": ["external", "generation", "alibabacloud", "dashscope"],
- "title": "Alibaba Cloud DashScope Image Generation",
- "type": "object",
- "version": "1.0.0",
- "output": {
- "$ref": "#/components/schemas/ImageCollectionOutput"
- }
- },
- "AlphaMaskToTensorInvocation": {
- "category": "mask",
- "class": "invocation",
- "classification": "stable",
- "description": "Convert a mask image to a tensor. Opaque regions are 1 and transparent regions are 0.",
- "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"
- },
- "image": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
- },
- {
- "type": "null"
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
++ "/api/v1/wildcards/": {
++ "get": {
++ "tags": ["wildcards"],
++ "summary": "List Wildcards",
++ "description": "Lists the current user's wildcards.",
++ "operationId": "list_wildcards",
++ "responses": {
++ "200": {
++ "description": "Successful Response",
++ "content": {
++ "application/json": {
++ "schema": {
++ "items": {
++ "$ref": "#/components/schemas/WildcardRecordDTO"
++ },
++ "type": "array",
++ "title": "Response 200 List Wildcards"
++ }
+ }
- ],
- "default": null,
- "description": "The mask image to convert.",
- "field_kind": "input",
- "input": "any",
- "orig_required": true
- },
- "invert": {
- "default": false,
- "description": "Whether to invert the mask.",
- "field_kind": "input",
- "input": "any",
- "orig_default": false,
- "orig_required": false,
- "title": "Invert",
- "type": "boolean"
- },
- "type": {
- "const": "alpha_mask_to_tensor",
- "default": "alpha_mask_to_tensor",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
++ }
+ }
+ },
- "required": ["type", "id"],
- "tags": ["conditioning"],
- "title": "Alpha Mask to Tensor",
- "type": "object",
- "version": "1.0.0",
- "output": {
- "$ref": "#/components/schemas/MaskOutput"
- }
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ]
+ },
- "AnimaConditioningField": {
- "description": "An Anima conditioning tensor primitive value.\n\nAnima conditioning contains Qwen3 0.6B hidden states and T5-XXL token IDs,\nwhich are combined by the LLM Adapter inside the transformer.",
- "properties": {
- "conditioning_name": {
- "description": "The name of conditioning tensor",
- "title": "Conditioning Name",
- "type": "string"
++ "post": {
++ "tags": ["wildcards"],
++ "summary": "Create Wildcard",
++ "description": "Creates a wildcard owned by the current user.",
++ "operationId": "create_wildcard",
++ "requestBody": {
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/WildcardWithoutId",
++ "description": "The wildcard to create"
++ }
++ }
+ },
- "mask": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/TensorField"
- },
- {
- "type": "null"
++ "required": true
++ },
++ "responses": {
++ "201": {
++ "description": "Successful Response",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/WildcardRecordDTO"
++ }
+ }
- ],
- "default": null,
- "description": "The mask associated with this conditioning tensor for regional prompting. Excluded regions should be set to False, included regions should be set to True."
++ }
++ },
++ "422": {
++ "description": "Validation Error",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/HTTPValidationError"
++ }
++ }
++ }
+ }
+ },
- "required": ["conditioning_name"],
- "title": "AnimaConditioningField",
- "type": "object"
- },
- "AnimaConditioningOutput": {
- "class": "output",
- "description": "Base class for nodes that output an Anima text conditioning tensor.",
- "properties": {
- "conditioning": {
- "$ref": "#/components/schemas/AnimaConditioningField",
- "description": "Conditioning tensor",
- "field_kind": "output",
- "ui_hidden": false
- },
- "type": {
- "const": "anima_conditioning_output",
- "default": "anima_conditioning_output",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ]
++ }
++ },
++ "/api/v1/wildcards/{wildcard_id}": {
++ "patch": {
++ "tags": ["wildcards"],
++ "summary": "Update Wildcard",
++ "description": "Updates a wildcard owned by the current user.",
++ "operationId": "update_wildcard",
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ],
++ "parameters": [
++ {
++ "name": "wildcard_id",
++ "in": "path",
++ "required": true,
++ "schema": {
++ "type": "string",
++ "description": "The id of the wildcard to update",
++ "title": "Wildcard Id"
++ },
++ "description": "The id of the wildcard to update"
++ }
++ ],
++ "requestBody": {
++ "required": true,
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/WildcardChanges",
++ "description": "The changes to apply"
++ }
++ }
+ }
+ },
- "required": ["output_meta", "conditioning", "type", "type"],
- "title": "AnimaConditioningOutput",
- "type": "object"
- },
- "AnimaDenoiseInvocation": {
- "category": "image",
- "class": "invocation",
- "classification": "prototype",
- "description": "Run the denoising process with an Anima model.\n\nUses rectified flow sampling with shift=3.0 and the Cosmos Predict2 DiT\nbackbone with integrated LLM Adapter for text conditioning.\n\nSupports txt2img, img2img (via latents input), and inpainting (via denoise_mask).",
- "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"
- },
- "latents": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/LatentsField"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "Latents tensor",
- "field_kind": "input",
- "input": "connection",
- "orig_default": null,
- "orig_required": false
- },
- "noise": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/LatentsField"
- },
- {
- "type": "null"
++ "responses": {
++ "200": {
++ "description": "Successful Response",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/WildcardRecordDTO"
++ }
+ }
- ],
- "default": null,
- "description": "Noise tensor",
- "field_kind": "input",
- "input": "connection",
- "orig_default": null,
- "orig_required": false
++ }
+ },
- "denoise_mask": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/DenoiseMaskField"
- },
- {
- "type": "null"
++ "422": {
++ "description": "Validation Error",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/HTTPValidationError"
++ }
+ }
- ],
- "default": null,
- "description": "A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.",
- "field_kind": "input",
- "input": "connection",
- "orig_default": null,
- "orig_required": false
- },
- "denoising_start": {
- "default": 0.0,
- "description": "When to start denoising, expressed a percentage of total steps",
- "field_kind": "input",
- "input": "any",
- "maximum": 1,
- "minimum": 0,
- "orig_default": 0.0,
- "orig_required": false,
- "title": "Denoising Start",
- "type": "number"
- },
- "denoising_end": {
- "default": 1.0,
- "description": "When to stop denoising, expressed a percentage of total steps",
- "field_kind": "input",
- "input": "any",
- "maximum": 1,
- "minimum": 0,
- "orig_default": 1.0,
- "orig_required": false,
- "title": "Denoising End",
- "type": "number"
- },
- "add_noise": {
- "default": true,
- "description": "Add noise based on denoising start.",
- "field_kind": "input",
- "input": "any",
- "orig_default": true,
- "orig_required": false,
- "title": "Add Noise",
- "type": "boolean"
++ }
++ }
++ }
++ },
++ "delete": {
++ "tags": ["wildcards"],
++ "summary": "Delete Wildcard",
++ "description": "Deletes a wildcard owned by the current user.",
++ "operationId": "delete_wildcard",
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ],
++ "parameters": [
++ {
++ "name": "wildcard_id",
++ "in": "path",
++ "required": true,
++ "schema": {
++ "type": "string",
++ "description": "The id of the wildcard to delete",
++ "title": "Wildcard Id"
++ },
++ "description": "The id of the wildcard to delete"
++ }
++ ],
++ "responses": {
++ "204": {
++ "description": "Successful Response"
+ },
- "transformer": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/TransformerField"
- },
- {
- "type": "null"
++ "422": {
++ "description": "Validation Error",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/HTTPValidationError"
++ }
+ }
- ],
- "default": null,
- "description": "Anima transformer model.",
- "field_kind": "input",
- "input": "connection",
- "orig_required": true,
- "title": "Transformer"
++ }
++ }
++ }
++ }
++ },
+ "/api/v1/client_state/{queue_id}/get_by_key": {
+ "get": {
+ "tags": ["client_state"],
+ "summary": "Get Client State By Key",
+ "description": "Gets the client state for the current user (or system user if not authenticated)",
+ "operationId": "get_client_state_by_key",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id (ignored, kept for backwards compatibility)",
+ "title": "Queue Id"
+ },
+ "description": "The queue id (ignored, kept for backwards compatibility)"
},
- "positive_conditioning": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/AnimaConditioningField"
- },
- {
- "items": {
- "$ref": "#/components/schemas/AnimaConditioningField"
- },
- "type": "array"
- },
- {
- "type": "null"
+ {
+ "name": "key",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "Key to get",
+ "title": "Key"
+ },
+ "description": "Key to get"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Response Get Client State By Key"
+ }
}
- ],
- "default": null,
- "description": "Positive conditioning tensor",
- "field_kind": "input",
- "input": "connection",
- "orig_required": true,
- "title": "Positive Conditioning"
+ }
},
- "negative_conditioning": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/AnimaConditioningField"
- },
- {
- "items": {
- "$ref": "#/components/schemas/AnimaConditioningField"
- },
- "type": "array"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "default": null,
- "description": "Negative conditioning tensor",
- "field_kind": "input",
- "input": "connection",
- "orig_default": null,
- "orig_required": false,
- "title": "Negative Conditioning"
- },
- "guidance_scale": {
- "default": 4.5,
- "description": "Guidance scale for classifier-free guidance. Recommended: 4.0-5.0 for Anima.",
- "field_kind": "input",
- "input": "any",
- "minimum": 1.0,
- "orig_default": 4.5,
- "orig_required": false,
- "title": "Guidance Scale",
- "type": "number"
- },
- "width": {
- "default": 1024,
- "description": "Width of the generated image.",
- "field_kind": "input",
- "input": "any",
- "multipleOf": 8,
- "orig_default": 1024,
- "orig_required": false,
- "title": "Width",
- "type": "integer"
- },
- "height": {
- "default": 1024,
- "description": "Height of the generated image.",
- "field_kind": "input",
- "input": "any",
- "multipleOf": 8,
- "orig_default": 1024,
- "orig_required": false,
- "title": "Height",
- "type": "integer"
- },
- "steps": {
- "default": 30,
- "description": "Number of denoising steps. 30 recommended for Anima.",
- "exclusiveMinimum": 0,
- "field_kind": "input",
- "input": "any",
- "orig_default": 30,
- "orig_required": false,
- "title": "Steps",
- "type": "integer"
- },
- "seed": {
- "default": 0,
- "description": "Randomness seed for reproducibility.",
- "field_kind": "input",
- "input": "any",
- "orig_default": 0,
- "orig_required": false,
- "title": "Seed",
- "type": "integer"
+ }
+ }
+ }
+ }
+ },
+ "/api/v1/client_state/{queue_id}/set_by_key": {
+ "post": {
+ "tags": ["client_state"],
+ "summary": "Set Client State",
+ "description": "Sets the client state for the current user (or system user if not authenticated)",
+ "operationId": "set_client_state",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id (ignored, kept for backwards compatibility)",
+ "title": "Queue Id"
+ },
+ "description": "The queue id (ignored, kept for backwards compatibility)"
},
- "control_lllite": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/AnimaLLLiteField"
- },
- {
- "items": {
- "$ref": "#/components/schemas/AnimaLLLiteField"
- },
- "type": "array"
- },
- {
- "type": "null"
+ {
+ "name": "key",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "Key to set",
+ "title": "Key"
+ },
+ "description": "Key to set"
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string",
+ "description": "Stringified value to set",
+ "title": "Value"
}
- ],
- "default": null,
- "description": "Anima ControlNet-LLLite conditioning (e.g. inpaint adapter, control layers). Adapters are applied in a deterministic order (sorted by model key); each model may be used at most once.",
- "field_kind": "input",
- "input": "connection",
- "orig_default": null,
- "orig_required": false,
- "title": "Control Lllite"
- },
- "scheduler": {
- "default": "euler",
- "description": "Scheduler (sampler) for the denoising process.",
- "enum": ["euler", "heun", "dpmpp_2m", "dpmpp_2m_sde", "er_sde", "lcm"],
- "field_kind": "input",
- "input": "any",
- "orig_default": "euler",
- "orig_required": false,
- "title": "Scheduler",
- "type": "string",
- "ui_choice_labels": {
- "dpmpp_2m": "DPM++ 2M",
- "dpmpp_2m_sde": "DPM++ 2M SDE",
- "er_sde": "ER-SDE",
- "euler": "Euler",
- "heun": "Heun (2nd order)",
- "lcm": "LCM"
}
- },
- "type": {
- "const": "anima_denoise",
- "default": "anima_denoise",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
}
},
- "required": ["type", "id"],
- "tags": ["image", "anima"],
- "title": "Denoise - Anima",
- "type": "object",
- "version": "1.8.0",
- "output": {
- "$ref": "#/components/schemas/LatentsOutput"
- }
- },
- "AnimaImageToLatentsInvocation": {
- "category": "image",
- "class": "invocation",
- "classification": "prototype",
- "description": "Generates latents from an image using the Anima VAE (supports Wan 2.1 and FLUX VAE).",
- "node_pack": "invokeai",
- "properties": {
- "board": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/BoardField"
- },
- {
- "type": "null"
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string",
+ "title": "Response Set Client State"
+ }
}
- ],
- "default": null,
- "description": "The board to save the image to",
- "field_kind": "internal",
- "input": "direct",
- "orig_required": false,
- "ui_hidden": false
+ }
},
- "metadata": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/MetadataField"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "default": null,
- "description": "Optional metadata to be saved with the image",
- "field_kind": "internal",
- "input": "connection",
- "orig_required": false,
- "ui_hidden": false
+ }
+ }
+ }
+ }
+ },
+ "/api/v1/client_state/{queue_id}/get_keys_by_prefix": {
+ "get": {
+ "tags": ["client_state"],
+ "summary": "Get Client State Keys By Prefix",
+ "description": "Gets client state keys matching a prefix for the current user",
+ "operationId": "get_client_state_keys_by_prefix",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id (ignored, kept for backwards compatibility)",
+ "title": "Queue Id"
+ },
+ "description": "The queue id (ignored, kept for backwards compatibility)"
},
- "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"
- },
- "image": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
- },
- {
- "type": "null"
+ {
+ "name": "prefix",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "Prefix to filter keys by",
+ "title": "Prefix"
+ },
+ "description": "Prefix to filter keys by"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "title": "Response Get Client State Keys By Prefix"
+ }
}
- ],
- "default": null,
- "description": "The image to encode.",
- "field_kind": "input",
- "input": "any",
- "orig_required": true
+ }
},
- "vae": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/VAEField"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "default": null,
- "description": "VAE",
- "field_kind": "input",
- "input": "connection",
- "orig_required": true
- },
- "type": {
- "const": "anima_i2l",
- "default": "anima_i2l",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
+ }
}
- },
- "required": ["type", "id"],
- "tags": ["image", "latents", "vae", "i2l", "anima"],
- "title": "Image to Latents - Anima",
- "type": "object",
- "version": "1.0.1",
- "output": {
- "$ref": "#/components/schemas/LatentsOutput"
}
- },
- "AnimaLLLiteField": {
- "description": "An Anima ControlNet-LLLite conditioning field (e.g. inpaint adapter).",
- "properties": {
- "image_name": {
- "description": "The name of the conditioning image (the initial/raster image)",
- "title": "Image Name",
- "type": "string"
+ }
+ },
+ "/api/v1/client_state/{queue_id}/delete_by_key": {
+ "post": {
+ "tags": ["client_state"],
+ "summary": "Delete Client State By Key",
+ "description": "Deletes a specific client state key for the current user",
+ "operationId": "delete_client_state_by_key",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id (ignored, kept for backwards compatibility)",
+ "title": "Queue Id"
+ },
+ "description": "The queue id (ignored, kept for backwards compatibility)"
},
- "mask_name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
+ {
+ "name": "key",
+ "in": "query",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "Key to delete",
+ "title": "Key"
+ },
+ "description": "Key to delete"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {}
}
- ],
- "default": null,
- "description": "The name of the inpaint mask image (white = inpaint area)",
- "title": "Mask Name"
- },
- "control_model": {
- "$ref": "#/components/schemas/ModelIdentifierField",
- "description": "The Anima ControlNet-LLLite adapter model"
- },
- "weight": {
- "default": 1.0,
- "description": "The strength of the LLLite adapter",
- "maximum": 10.0,
- "minimum": -10.0,
- "title": "Weight",
- "type": "number"
+ }
},
- "begin_step_percent": {
- "default": 0.0,
- "description": "When the adapter is first applied (% of total steps)",
- "maximum": 1.0,
- "minimum": 0.0,
- "title": "Begin Step Percent",
- "type": "number"
+ "204": {
+ "description": "Client state key deleted"
},
- "end_step_percent": {
- "default": 1.0,
- "description": "When the adapter is last applied (% of total steps)",
- "maximum": 1.0,
- "minimum": 0.0,
- "title": "End Step Percent",
- "type": "number"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
}
- },
- "required": ["image_name", "control_model"],
- "title": "AnimaLLLiteField",
- "type": "object"
- },
- "AnimaLLLiteInvocation": {
- "category": "conditioning",
- "class": "invocation",
- "classification": "prototype",
- "description": "Configure an Anima ControlNet-LLLite adapter for model-level conditioning.\n\nTakes a conditioning image (the initial/raster image), an optional inpaint\nmask (white = area to inpaint), and a LLLite adapter model. Inpainting\nadapters (4-channel conditioning) require a mask; other adapters ignore it.",
- "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"
- },
- "image": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
- },
- {
- "type": "null"
+ }
+ }
+ },
+ "/api/v1/client_state/{queue_id}/delete": {
+ "post": {
+ "tags": ["client_state"],
+ "summary": "Delete Client State",
+ "description": "Deletes the client state for the current user (or system user if not authenticated)",
+ "operationId": "delete_client_state",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id (ignored, kept for backwards compatibility)",
+ "title": "Queue Id"
+ },
+ "description": "The queue id (ignored, kept for backwards compatibility)"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {}
}
- ],
- "default": null,
- "description": "The conditioning image (the initial/raster image for inpainting)",
- "field_kind": "input",
- "input": "any",
- "orig_required": true
+ }
},
- "mask": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The inpaint mask (white = area to inpaint). Required by inpainting adapters.",
- "field_kind": "input",
- "input": "any",
- "orig_default": null,
- "orig_required": false
+ "204": {
+ "description": "Client state deleted"
},
- "control_model": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ModelIdentifierField"
- },
- {
- "type": "null"
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
}
- ],
- "default": null,
- "description": "ControlNet model to load",
- "field_kind": "input",
- "input": "any",
- "orig_required": true,
- "title": "Control Model",
- "ui_model_base": ["anima"],
- "ui_model_type": ["controlnet"]
- },
- "weight": {
- "default": 1.0,
- "description": "Strength of the LLLite adapter.",
- "field_kind": "input",
- "input": "any",
- "maximum": 10.0,
- "minimum": -10.0,
- "orig_default": 1.0,
- "orig_required": false,
- "title": "Weight",
- "type": "number"
- },
- "begin_step_percent": {
- "default": 0.0,
- "description": "When the adapter is first applied (% of total steps)",
- "field_kind": "input",
- "input": "any",
- "maximum": 1.0,
- "minimum": 0.0,
- "orig_default": 0.0,
- "orig_required": false,
- "title": "Begin Step Percent",
- "type": "number"
- },
- "end_step_percent": {
- "default": 1.0,
- "description": "When the adapter is last applied (% of total steps)",
- "field_kind": "input",
- "input": "any",
- "maximum": 1.0,
- "minimum": 0.0,
- "orig_default": 1.0,
- "orig_required": false,
- "title": "End Step Percent",
- "type": "number"
- },
- "type": {
- "const": "anima_lllite",
- "default": "anima_lllite",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
+ }
}
- },
- "required": ["type", "id"],
- "tags": ["image", "anima", "control", "controlnet", "inpaint"],
- "title": "Anima ControlNet-LLLite",
- "type": "object",
- "version": "1.0.0",
- "output": {
- "$ref": "#/components/schemas/AnimaLLLiteOutput"
}
- },
- "AnimaLLLiteOutput": {
- "class": "output",
- "description": "Anima ControlNet-LLLite output containing adapter configuration.",
- "properties": {
- "control": {
- "$ref": "#/components/schemas/AnimaLLLiteField",
- "description": "Anima ControlNet-LLLite conditioning",
- "field_kind": "output",
- "ui_hidden": false
- },
- "type": {
- "const": "anima_lllite_output",
- "default": "anima_lllite_output",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
+ }
+ },
++ "/api/v1/projects/": {
++ "get": {
++ "tags": ["projects"],
++ "summary": "List Projects",
++ "description": "Lists the current user's projects as lightweight summaries (no documents).",
++ "operationId": "list_projects",
++ "responses": {
++ "200": {
++ "description": "Successful Response",
++ "content": {
++ "application/json": {
++ "schema": {
++ "items": {
++ "$ref": "#/components/schemas/ProjectSummaryDTO"
++ },
++ "type": "array",
++ "title": "Response List Projects"
++ }
++ }
++ }
+ }
+ },
- "required": ["output_meta", "control", "type", "type"],
- "title": "AnimaLLLiteOutput",
- "type": "object"
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ]
+ },
- "AnimaLatentsToImageInvocation": {
- "category": "latents",
- "class": "invocation",
- "classification": "prototype",
- "description": "Generates an image from latents using the Anima VAE.\n\nSupports the Wan 2.1 QwenImage VAE (AutoencoderKLWan) with explicit\nlatent denormalization, and FLUX VAE as fallback.",
- "node_pack": "invokeai",
- "properties": {
- "board": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/BoardField"
- },
- {
- "type": "null"
++ "post": {
++ "tags": ["projects"],
++ "summary": "Create Project",
++ "description": "Creates a project for the current user.",
++ "operationId": "create_project",
++ "requestBody": {
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/ProjectCreateRequest",
++ "description": "The project to create"
+ }
- ],
- "default": null,
- "description": "The board to save the image to",
- "field_kind": "internal",
- "input": "direct",
- "orig_required": false,
- "ui_hidden": false
++ }
+ },
- "metadata": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/MetadataField"
- },
- {
- "type": "null"
++ "required": true
++ },
++ "responses": {
++ "201": {
++ "description": "Successful Response",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/ProjectRecordDTO"
++ }
+ }
- ],
- "default": null,
- "description": "Optional metadata to be saved with the image",
- "field_kind": "internal",
- "input": "connection",
- "orig_required": false,
- "ui_hidden": false
- },
- "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"
++ }
+ },
- "latents": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/LatentsField"
- },
- {
- "type": "null"
++ "422": {
++ "description": "Validation Error",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/HTTPValidationError"
++ }
+ }
- ],
- "default": null,
- "description": "Latents tensor",
- "field_kind": "input",
- "input": "connection",
- "orig_required": true
++ }
++ }
++ },
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ]
++ }
++ },
++ "/api/v1/projects/{project_id}": {
++ "get": {
++ "tags": ["projects"],
++ "summary": "Get Project",
++ "description": "Gets one of the current user's projects, including its document.",
++ "operationId": "get_project",
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ],
++ "parameters": [
++ {
++ "name": "project_id",
++ "in": "path",
++ "required": true,
++ "schema": {
++ "type": "string",
++ "description": "The id of the project to get",
++ "title": "Project Id"
++ },
++ "description": "The id of the project to get"
++ }
++ ],
++ "responses": {
++ "200": {
++ "description": "Successful Response",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/ProjectRecordDTO"
++ }
++ }
++ }
+ },
- "vae": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/VAEField"
- },
- {
- "type": "null"
++ "422": {
++ "description": "Validation Error",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/HTTPValidationError"
++ }
+ }
- ],
- "default": null,
- "description": "VAE",
- "field_kind": "input",
- "input": "connection",
- "orig_required": true
++ }
++ }
++ }
++ },
++ "put": {
++ "tags": ["projects"],
++ "summary": "Update Project",
++ "description": "Saves a project. Returns 409 with the current revision when the save is based on a stale revision.",
++ "operationId": "update_project",
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ],
++ "parameters": [
++ {
++ "name": "project_id",
++ "in": "path",
++ "required": true,
++ "schema": {
++ "type": "string",
++ "description": "The id of the project to save",
++ "title": "Project Id"
++ },
++ "description": "The id of the project to save"
++ }
++ ],
++ "requestBody": {
++ "required": true,
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/ProjectUpdateRequest",
++ "description": "The project document and the revision it is based on"
++ }
++ }
++ }
++ },
++ "responses": {
++ "200": {
++ "description": "Successful Response",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/ProjectRecordDTO"
++ }
++ }
++ }
+ },
- "type": {
- "const": "anima_l2i",
- "default": "anima_l2i",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
++ "422": {
++ "description": "Validation Error",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/HTTPValidationError"
++ }
++ }
++ }
++ }
++ }
++ },
++ "delete": {
++ "tags": ["projects"],
++ "summary": "Delete Project",
++ "description": "Deletes one of the current user's projects. Idempotent.",
++ "operationId": "delete_project",
++ "security": [
++ {
++ "HTTPBearer": []
++ }
++ ],
++ "parameters": [
++ {
++ "name": "project_id",
++ "in": "path",
++ "required": true,
++ "schema": {
++ "type": "string",
++ "description": "The id of the project to delete",
++ "title": "Project Id"
++ },
++ "description": "The id of the project to delete"
++ }
++ ],
++ "responses": {
++ "204": {
++ "description": "Successful Response"
++ },
++ "422": {
++ "description": "Validation Error",
++ "content": {
++ "application/json": {
++ "schema": {
++ "$ref": "#/components/schemas/HTTPValidationError"
++ }
++ }
++ }
++ }
++ }
++ }
++ },
+ "/api/v1/recall/{queue_id}": {
+ "post": {
+ "tags": ["recall"],
+ "summary": "Update Recall Parameters",
+ "description": "Update recallable parameters that can be recalled on the frontend.\n\nThis endpoint allows updating parameters such as prompt, model, steps, and other\ngeneration settings. These parameters are stored in client state and can be\naccessed by the frontend to populate UI elements.\n\nArgs:\n queue_id: The queue ID to associate these parameters with\n parameters: The RecallParameter object containing the parameters to update\n strict: When true, parameters not included in the request body are reset\n to their defaults (cleared on the frontend). Defaults to false,\n which preserves the existing behaviour of only updating the\n parameters that are explicitly provided.\n append: When true, recalled reference images (``ip_adapters`` and\n ``reference_images``) are appended to whatever reference images the\n frontend already has, instead of replacing the whole list. Mutually\n exclusive with ``strict`` (which clears omitted parameters).\n\nReturns:\n A dictionary containing the updated parameters and status\n\nExample:\n POST /api/v1/recall/{queue_id}?strict=true\n {\n \"positive_prompt\": \"a beautiful landscape\",\n \"model\": \"sd-1.5\",\n \"steps\": 20\n }\n # In strict mode, all other parameters (reference_images, loras, etc.)\n # are cleared. In non-strict mode (default) they would be left as-is.",
+ "operationId": "update_recall_parameters",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id to perform this operation on",
+ "title": "Queue Id"
+ },
+ "description": "The queue id to perform this operation on"
+ },
+ {
+ "name": "strict",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "description": "When true, parameters not included in the request are reset to their defaults (cleared).",
+ "default": false,
+ "title": "Strict"
+ },
+ "description": "When true, parameters not included in the request are reset to their defaults (cleared)."
+ },
+ {
+ "name": "append",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "boolean",
+ "description": "When true, recalled reference images (ip_adapters and reference_images) are appended to the frontend's existing reference-image list instead of replacing it. Mutually exclusive with strict.",
+ "default": false,
+ "title": "Append"
+ },
+ "description": "When true, recalled reference images (ip_adapters and reference_images) are appended to the frontend's existing reference-image list instead of replacing it. Mutually exclusive with strict."
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RecallParameter",
+ "description": "Recall parameters to update"
+ }
+ }
}
},
- "required": ["type", "id"],
- "tags": ["latents", "image", "vae", "l2i", "anima"],
- "title": "Latents to Image - Anima",
- "type": "object",
- "version": "1.0.3",
- "output": {
- "$ref": "#/components/schemas/ImageOutput"
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": true,
+ "title": "Response Update Recall Parameters"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
}
},
- "AnimaLoRACollectionLoader": {
- "category": "model",
+ "get": {
+ "tags": ["recall"],
+ "summary": "Get Recall Parameters",
+ "description": "Retrieve all stored recall parameters for a given queue.\n\nReturns a dictionary of all recall parameters that have been set for the queue.\n\nArgs:\n queue_id: The queue ID to retrieve parameters for\n\nReturns:\n A dictionary containing all stored recall parameters",
+ "operationId": "get_recall_parameters",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "queue_id",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "description": "The queue id to retrieve parameters for",
+ "title": "Queue Id"
+ },
+ "description": "The queue id to retrieve parameters for"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": true,
+ "title": "Response Get Recall Parameters"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/v2/custom_nodes/": {
+ "get": {
+ "tags": ["custom_nodes"],
+ "summary": "List Custom Node Packs",
+ "description": "Lists all installed custom node packs.\n\nAdmin-only: the response includes absolute filesystem paths, and non-admins have no\nlegitimate use for pack management data (install/uninstall/reload are also admin-only).",
+ "operationId": "list_custom_node_packs",
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NodePackListResponse"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
+ "/api/v2/custom_nodes/install": {
+ "post": {
+ "tags": ["custom_nodes"],
+ "summary": "Install Custom Node Pack",
+ "description": "Installs a custom node pack from a git URL by cloning it into the nodes directory.",
+ "operationId": "install_custom_node_pack",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InstallNodePackRequest",
+ "description": "The source URL to install from."
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InstallNodePackResponse"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ },
+ "/api/v2/custom_nodes/{pack_name}": {
+ "delete": {
+ "tags": ["custom_nodes"],
+ "summary": "Uninstall Custom Node Pack",
+ "description": "Uninstalls a custom node pack by removing its directory.\n\nNote: A restart is required for the node removal to take full effect.\nInstalled nodes from the pack will remain registered until restart.",
+ "operationId": "uninstall_custom_node_pack",
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ],
+ "parameters": [
+ {
+ "name": "pack_name",
+ "in": "path",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "title": "Pack Name"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UninstallNodePackResponse"
+ }
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/api/v2/custom_nodes/reload": {
+ "post": {
+ "tags": ["custom_nodes"],
+ "summary": "Reload Custom Nodes",
+ "description": "Triggers a reload of all custom nodes.\n\nThis re-scans the nodes directory and loads any new node packs.\nAlready loaded packs are skipped.",
+ "operationId": "reload_custom_nodes",
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object",
+ "title": "Response Reload Custom Nodes"
+ }
+ }
+ }
+ }
+ },
+ "security": [
+ {
+ "HTTPBearer": []
+ }
+ ]
+ }
+ }
+ },
+ "components": {
+ "schemas": {
+ "AddImagesToBoardResult": {
+ "properties": {
+ "affected_boards": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "title": "Affected Boards",
+ "description": "The ids of boards affected by the delete operation"
+ },
+ "added_images": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "title": "Added Images",
+ "description": "The image names that were added to the board"
+ }
+ },
+ "type": "object",
+ "required": ["affected_boards", "added_images"],
+ "title": "AddImagesToBoardResult"
+ },
+ "AddInvocation": {
+ "category": "math",
"class": "invocation",
- "classification": "prototype",
- "description": "Applies a collection of LoRAs to an Anima transformer.",
+ "classification": "stable",
+ "description": "Adds two numbers",
"node_pack": "invokeai",
"properties": {
"id": {
@@@ -15340,13 -15573,110 +16155,116 @@@
"type": "null"
}
],
- "default": null,
- "description": "Optional metadata to be saved with the image",
- "field_kind": "internal",
- "input": "connection",
- "orig_required": false,
- "ui_hidden": false
+ "title": "Image",
+ "description": "The image file to upload"
+ },
++ "preserve_image": {
++ "type": "boolean",
++ "title": "Preserve Image",
++ "description": "Preserve the existing image when no replacement image is supplied",
++ "default": false
++ },
+ "data": {
+ "type": "string",
+ "title": "Data",
+ "description": "The data of the style preset to update"
+ }
+ },
+ "type": "object",
+ "required": ["data"],
+ "title": "Body_update_style_preset"
+ },
+ "Body_update_workflow": {
+ "properties": {
+ "workflow": {
+ "$ref": "#/components/schemas/Workflow",
+ "description": "The updated workflow"
+ }
+ },
+ "type": "object",
+ "required": ["workflow"],
+ "title": "Body_update_workflow"
+ },
+ "Body_update_workflow_is_public": {
+ "properties": {
+ "is_public": {
+ "type": "boolean",
+ "title": "Is Public",
+ "description": "Whether the workflow should be shared publicly"
+ }
+ },
+ "type": "object",
+ "required": ["is_public"],
+ "title": "Body_update_workflow_is_public"
+ },
+ "Body_upload_image": {
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary",
+ "title": "File"
+ },
+ "resize_to": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Resize To",
+ "description": "Dimensions to resize the image to, must be stringified tuple of 2 integers. Max total pixel count: 16777216",
+ "examples": ["\"[1024,1024]\""]
},
+ "metadata": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Metadata",
+ "description": "The metadata to associate with the image, must be a stringified JSON dict"
+ }
+ },
+ "type": "object",
+ "required": ["file"],
+ "title": "Body_upload_image"
+ },
+ "Body_upload_video": {
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary",
+ "title": "File"
+ },
+ "metadata": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Metadata",
+ "description": "The metadata to associate with the video, must be a stringified JSON dict"
+ }
+ },
+ "type": "object",
+ "required": ["file"],
+ "title": "Body_upload_video"
+ },
+ "BooleanCollectionInvocation": {
+ "category": "primitives",
+ "class": "invocation",
+ "classification": "stable",
+ "description": "A collection of boolean primitive values",
+ "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",
@@@ -16157,39 -16883,145 +17471,150 @@@
"input": "any",
"orig_required": true
},
- "target_image": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The target image",
+ "type": {
+ "const": "infill_cv2",
+ "default": "infill_cv2",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
+ }
+ },
+ "required": ["type", "id"],
+ "tags": ["image", "inpaint"],
+ "title": "CV2 Infill",
+ "type": "object",
+ "version": "1.2.2",
+ "output": {
+ "$ref": "#/components/schemas/ImageOutput"
+ }
+ },
+ "CacheStats": {
+ "properties": {
+ "hits": {
+ "type": "integer",
+ "title": "Hits",
+ "default": 0
+ },
+ "misses": {
+ "type": "integer",
+ "title": "Misses",
+ "default": 0
+ },
+ "high_watermark": {
+ "type": "integer",
+ "title": "High Watermark",
+ "default": 0
+ },
++ "cache_used": {
++ "type": "integer",
++ "title": "Cache Used",
++ "default": 0
++ },
+ "in_cache": {
+ "type": "integer",
+ "title": "In Cache",
+ "default": 0
+ },
+ "cleared": {
+ "type": "integer",
+ "title": "Cleared",
+ "default": 0
+ },
+ "cache_size": {
+ "type": "integer",
+ "title": "Cache Size",
+ "default": 0
+ },
+ "loaded_model_sizes": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object",
+ "title": "Loaded Model Sizes"
+ }
+ },
+ "type": "object",
+ "title": "CacheStats",
+ "description": "Collect statistics on cache performance."
+ },
+ "CalculateImageTilesEvenSplitInvocation": {
+ "category": "tiles",
+ "class": "invocation",
+ "classification": "stable",
+ "description": "Calculate the coordinates and overlaps of tiles that cover a target image shape.",
+ "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"
+ },
+ "image_width": {
+ "default": 1024,
+ "description": "The image width, in pixels, to calculate tiles for.",
"field_kind": "input",
"input": "any",
- "orig_required": true
+ "minimum": 1,
+ "orig_default": 1024,
+ "orig_required": false,
+ "title": "Image Width",
+ "type": "integer"
},
- "mask": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/ImageField"
- },
- {
- "type": "null"
- }
- ],
- "default": null,
- "description": "The mask to use when pasting",
+ "image_height": {
+ "default": 1024,
+ "description": "The image height, in pixels, to calculate tiles for.",
"field_kind": "input",
"input": "any",
- "orig_required": true
+ "minimum": 1,
+ "orig_default": 1024,
+ "orig_required": false,
+ "title": "Image Height",
+ "type": "integer"
},
- "mask_blur": {
- "default": 0,
- "description": "The amount to blur the mask by",
+ "num_tiles_x": {
+ "default": 2,
+ "description": "Number of tiles to divide image into on the x axis",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 1,
+ "orig_default": 2,
+ "orig_required": false,
+ "title": "Num Tiles X",
+ "type": "integer"
+ },
+ "num_tiles_y": {
+ "default": 2,
+ "description": "Number of tiles to divide image into on the y axis",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 1,
+ "orig_default": 2,
+ "orig_required": false,
+ "title": "Num Tiles Y",
+ "type": "integer"
+ },
+ "overlap": {
+ "default": 128,
+ "description": "The overlap, in pixels, between adjacent tiles.",
"field_kind": "input",
"input": "any",
"minimum": 0,
@@@ -57066,399 -66328,45 +66936,172 @@@
"type": "string"
}
},
- "required": ["timestamp", "id", "source", "error_type", "error"],
- "title": "ModelInstallErrorEvent",
+ "required": ["width", "height", "dataURL"],
+ "title": "ProgressImage",
"type": "object"
},
- "ModelInstallJob": {
++ "ProjectCreateRequest": {
+ "properties": {
- "id": {
- "type": "integer",
- "title": "Id",
- "description": "Unique ID for this job"
- },
- "status": {
- "$ref": "#/components/schemas/InstallStatus",
- "description": "Current status of install process",
- "default": "waiting"
- },
- "error_reason": {
++ "project_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
- "title": "Error Reason",
- "description": "Information about why the job failed"
++ "title": "Project Id",
++ "description": "Client-generated project id (e.g. for imports); generated when omitted"
+ },
- "config_in": {
- "$ref": "#/components/schemas/ModelRecordChanges",
- "description": "Configuration information (e.g. 'description') to apply to model."
++ "name": {
++ "type": "string",
++ "title": "Name",
++ "description": "The project's display name"
+ },
- "config_out": {
- "anyOf": [
- {
- "oneOf": [
- {
- "$ref": "#/components/schemas/Main_Diffusers_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_SDXLRefiner_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_SD3_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_Flux2_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_CogView4_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_QwenImage_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_SDXLRefiner_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_Flux2_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_QwenImage_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
- },
- {
- "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
- },
- {
- "$ref": "#/components/schemas/Main_BnBNF4_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/Main_GGUF_Flux2_Config"
- },
- {
- "$ref": "#/components/schemas/Main_GGUF_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/Main_GGUF_QwenImage_Config"
- },
- {
- "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Checkpoint_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Checkpoint_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Checkpoint_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Checkpoint_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Checkpoint_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Checkpoint_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Checkpoint_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Checkpoint_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Checkpoint_ZImage_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Checkpoint_Anima_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Diffusers_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Diffusers_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Diffusers_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/ControlNet_Diffusers_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_Flux2_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_ZImage_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_LyCORIS_Anima_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_OMI_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_OMI_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_Diffusers_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_Diffusers_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_Diffusers_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
- },
- {
- "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
- },
- {
- "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
- },
- {
- "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
- },
- {
- "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
- },
- {
- "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
- },
- {
- "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
- },
- {
- "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
- },
- {
- "$ref": "#/components/schemas/TI_File_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/TI_File_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/TI_File_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/TI_Folder_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/TI_Folder_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/TI_Folder_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/IPAdapter_InvokeAI_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/IPAdapter_InvokeAI_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/IPAdapter_InvokeAI_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/IPAdapter_Checkpoint_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/IPAdapter_Checkpoint_SD2_Config"
- },
- {
- "$ref": "#/components/schemas/IPAdapter_Checkpoint_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/IPAdapter_Checkpoint_FLUX_Config"
- },
- {
- "$ref": "#/components/schemas/T2IAdapter_Diffusers_SD1_Config"
- },
- {
- "$ref": "#/components/schemas/T2IAdapter_Diffusers_SDXL_Config"
- },
- {
- "$ref": "#/components/schemas/Spandrel_Checkpoint_Config"
- },
- {
- "$ref": "#/components/schemas/CLIPEmbed_Diffusers_G_Config"
- },
- {
- "$ref": "#/components/schemas/CLIPEmbed_Diffusers_L_Config"
- },
- {
- "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
- },
- {
- "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
- },
- {
- "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
- },
- {
- "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
- },
- {
- "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
- },
- {
- "$ref": "#/components/schemas/ExternalApiModelConfig"
- },
- {
- "$ref": "#/components/schemas/Unknown_Config"
- }
- ]
- },
- {
- "type": "null"
- }
- ],
- "title": "Config Out",
- "description": "After successful installation, this will hold the configuration object."
++ "data": {
++ "additionalProperties": true,
++ "type": "object",
++ "title": "Data",
++ "description": "The opaque client-owned project document"
++ }
++ },
++ "type": "object",
++ "required": ["name", "data"],
++ "title": "ProjectCreateRequest",
++ "description": "Request body for creating a project."
++ },
++ "ProjectRecordDTO": {
++ "properties": {
++ "project_id": {
++ "type": "string",
++ "title": "Project Id",
++ "description": "The project's client-generated identifier"
+ },
- "inplace": {
- "type": "boolean",
- "title": "Inplace",
- "description": "Leave model in its current location; otherwise install under models directory",
- "default": false
++ "name": {
++ "type": "string",
++ "title": "Name",
++ "description": "The project's display name"
+ },
- "source": {
- "oneOf": [
- {
- "$ref": "#/components/schemas/LocalModelSource"
- },
- {
- "$ref": "#/components/schemas/HFModelSource"
- },
- {
- "$ref": "#/components/schemas/URLModelSource"
- },
- {
- "$ref": "#/components/schemas/ExternalModelSource"
- }
- ],
- "title": "Source",
- "description": "Source (URL, repo_id, or local path) of model",
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "external": "#/components/schemas/ExternalModelSource",
- "hf": "#/components/schemas/HFModelSource",
- "local": "#/components/schemas/LocalModelSource",
- "url": "#/components/schemas/URLModelSource"
- }
- }
++ "revision": {
++ "type": "integer",
++ "title": "Revision",
++ "description": "Monotonic revision, incremented on every save"
+ },
- "local_path": {
++ "created_at": {
+ "type": "string",
- "format": "path",
- "title": "Local Path",
- "description": "Path to locally-downloaded model; may be the same as the source"
++ "title": "Created At",
++ "description": "When the project was created"
++ },
++ "updated_at": {
++ "type": "string",
++ "title": "Updated At",
++ "description": "When the project was last saved"
++ },
++ "data": {
++ "additionalProperties": true,
++ "type": "object",
++ "title": "Data",
++ "description": "The opaque client-owned project document"
++ }
++ },
++ "type": "object",
++ "required": ["project_id", "name", "revision", "created_at", "updated_at", "data"],
++ "title": "ProjectRecordDTO",
++ "description": "Full project record including the client-owned document."
++ },
++ "ProjectSummaryDTO": {
++ "properties": {
++ "project_id": {
++ "type": "string",
++ "title": "Project Id",
++ "description": "The project's client-generated identifier"
++ },
++ "name": {
++ "type": "string",
++ "title": "Name",
++ "description": "The project's display name"
++ },
++ "revision": {
++ "type": "integer",
++ "title": "Revision",
++ "description": "Monotonic revision, incremented on every save"
++ },
++ "created_at": {
++ "type": "string",
++ "title": "Created At",
++ "description": "When the project was created"
++ },
++ "updated_at": {
++ "type": "string",
++ "title": "Updated At",
++ "description": "When the project was last saved"
++ }
++ },
++ "type": "object",
++ "required": ["project_id", "name", "revision", "created_at", "updated_at"],
++ "title": "ProjectSummaryDTO",
++ "description": "Lightweight project listing entry; the document payload is omitted."
++ },
++ "ProjectUpdateRequest": {
++ "properties": {
++ "name": {
++ "type": "string",
++ "title": "Name",
++ "description": "The project's display name"
++ },
++ "data": {
++ "additionalProperties": true,
++ "type": "object",
++ "title": "Data",
++ "description": "The opaque client-owned project document"
++ },
++ "expected_revision": {
++ "type": "integer",
++ "title": "Expected Revision",
++ "description": "The revision this save is based on; mismatch returns 409"
++ }
++ },
++ "type": "object",
++ "required": ["name", "data", "expected_revision"],
++ "title": "ProjectUpdateRequest",
++ "description": "Request body for saving a project with optimistic concurrency."
++ },
+ "PromptTemplateInvocation": {
+ "category": "prompt",
+ "class": "invocation",
+ "classification": "stable",
+ "description": "Applies a Style Preset template to positive and negative prompts.\n\nSelect a Style Preset and provide positive/negative prompts. The node replaces\n{prompt} placeholders in the template with your input prompts.",
+ "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"
},
- "bytes": {
- "type": "integer",
- "title": "Bytes",
- "description": "For a remote model, the number of bytes downloaded so far (may not be available)",
- "default": 0
+ "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"
},
- "total_bytes": {
- "type": "integer",
- "title": "Total Bytes",
- "description": "Total size of the model to be installed",
- "default": 0
+ "use_cache": {
+ "default": true,
+ "description": "Whether or not to use the cache",
+ "field_kind": "node_attribute",
+ "title": "Use Cache",
+ "type": "boolean"
},
- "source_metadata": {
+ "style_preset": {
"anyOf": [
{
- "oneOf": [
- {
- "$ref": "#/components/schemas/BaseMetadata"
- },
- {
- "$ref": "#/components/schemas/HuggingFaceMetadata"
- }
- ],
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "basemetadata": "#/components/schemas/BaseMetadata",
- "huggingface": "#/components/schemas/HuggingFaceMetadata"
- }
- }
+ "$ref": "#/components/schemas/StylePresetField"
},
{
"type": "null"
@@@ -64506,103 -73415,108 +74150,108 @@@
"type": "null"
}
],
- "default": null,
- "description": "Negative conditioning tensor",
- "field_kind": "input",
- "input": "connection",
- "orig_required": true
+ "title": "Batch Id",
+ "description": "The current queue item's batch id"
},
- "cfg_scale": {
+ "session_id": {
"anyOf": [
{
- "type": "number"
+ "type": "string"
},
{
- "items": {
- "type": "number"
- },
- "type": "array"
+ "type": "null"
}
],
- "default": 3.5,
- "description": "Classifier-Free Guidance scale",
- "field_kind": "input",
- "input": "any",
- "orig_default": 3.5,
- "orig_required": false,
- "title": "CFG Scale"
+ "title": "Session Id",
+ "description": "The current queue item's session id"
},
- "width": {
- "default": 1024,
- "description": "Width of the generated image.",
- "field_kind": "input",
- "input": "any",
- "multipleOf": 16,
- "orig_default": 1024,
- "orig_required": false,
- "title": "Width",
- "type": "integer"
+ "pending": {
+ "type": "integer",
+ "title": "Pending",
+ "description": "Number of queue items with status 'pending'"
},
- "height": {
- "default": 1024,
- "description": "Height of the generated image.",
- "field_kind": "input",
- "input": "any",
- "multipleOf": 16,
- "orig_default": 1024,
- "orig_required": false,
- "title": "Height",
- "type": "integer"
+ "in_progress": {
+ "type": "integer",
+ "title": "In Progress",
+ "description": "Number of queue items with status 'in_progress'"
},
- "steps": {
- "default": 10,
- "description": "Number of steps to run",
- "exclusiveMinimum": 0,
- "field_kind": "input",
- "input": "any",
- "orig_default": 10,
- "orig_required": false,
- "title": "Steps",
- "type": "integer"
+ "waiting": {
+ "type": "integer",
+ "title": "Waiting",
+ "description": "Number of queue items with status 'waiting'"
+ },
+ "completed": {
+ "type": "integer",
+ "title": "Completed",
+ "description": "Number of queue items with status 'complete'"
+ },
+ "failed": {
+ "type": "integer",
+ "title": "Failed",
+ "description": "Number of queue items with status 'error'"
+ },
+ "canceled": {
+ "type": "integer",
+ "title": "Canceled",
+ "description": "Number of queue items with status 'canceled'"
},
- "seed": {
- "default": 0,
- "description": "Randomness seed for reproducibility.",
- "field_kind": "input",
- "input": "any",
- "orig_default": 0,
- "orig_required": false,
- "title": "Seed",
- "type": "integer"
+ "total": {
+ "type": "integer",
+ "title": "Total",
+ "description": "Total number of queue items"
},
- "type": {
- "const": "sd3_denoise",
- "default": "sd3_denoise",
- "field_kind": "node_attribute",
- "title": "type",
- "type": "string"
+ "user_pending": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User Pending",
- "description": "Number of the requesting user's queue items with status 'pending' (None for admins/global callers)"
++ "description": "Number of the requesting user's queue items with status 'pending' (None for global callers)"
+ },
+ "user_in_progress": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "User In Progress",
- "description": "Number of the requesting user's queue items with status 'in_progress' (None for admins/global callers)"
++ "description": "Number of the requesting user's queue items with status 'in_progress' (None for global callers)"
}
},
- "required": ["type", "id"],
- "tags": ["image", "sd3"],
- "title": "Denoise - SD3",
"type": "object",
- "version": "1.2.0",
- "output": {
- "$ref": "#/components/schemas/LatentsOutput"
- }
+ "required": [
+ "queue_id",
+ "item_id",
+ "batch_id",
+ "session_id",
+ "pending",
+ "in_progress",
+ "waiting",
+ "completed",
+ "failed",
+ "canceled",
+ "total"
+ ],
+ "title": "SessionQueueStatus"
},
- "SD3ImageToLatentsInvocation": {
- "category": "latents",
- "class": "invocation",
- "classification": "stable",
- "description": "Generates latents from an image.",
- "node_pack": "invokeai",
+ "SetupRequest": {
"properties": {
- "board": {
+ "email": {
+ "type": "string",
+ "title": "Email",
+ "description": "Admin email address"
+ },
+ "display_name": {
"anyOf": [
{
- "$ref": "#/components/schemas/BoardField"
+ "type": "string"
},
{
"type": "null"
@@@ -74125,99 -83193,87 +83928,171 @@@
"type": "null"
}
],
- "title": "Cover Image Name",
- "description": "The most recent image name for this date."
+ "default": 4.0,
+ "description": "Optional separate CFG scale for the low-noise expert (Wan 2.2 A14B only). Values below 1.0 fall back to the primary 'Guidance Scale'.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 4.0,
+ "orig_required": false,
+ "title": "Guidance Scale (Low Noise)"
+ },
+ "width": {
+ "default": 832,
+ "description": "Width of the generated video.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 16,
+ "orig_default": 832,
+ "orig_required": false,
+ "title": "Width",
+ "type": "integer"
+ },
+ "height": {
+ "default": 480,
+ "description": "Height of the generated video.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "multipleOf": 16,
+ "orig_default": 480,
+ "orig_required": false,
+ "title": "Height",
+ "type": "integer"
+ },
+ "num_frames": {
+ "default": 81,
+ "description": "Number of output frames. Must satisfy (num_frames - 1) %% 4 == 0 so the latent temporal dim divides cleanly. Wan 2.2 was trained at 81 frames @ 16 FPS (~5 s).",
+ "field_kind": "input",
+ "input": "any",
+ "minimum": 5,
+ "orig_default": 81,
+ "orig_required": false,
+ "title": "Number of Frames",
+ "type": "integer"
+ },
+ "steps": {
+ "default": 40,
+ "description": "Number of denoising steps.",
+ "exclusiveMinimum": 0,
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 40,
+ "orig_required": false,
+ "title": "Steps",
+ "type": "integer"
+ },
+ "seed": {
+ "default": 0,
+ "description": "Randomness seed for reproducibility.",
+ "field_kind": "input",
+ "input": "any",
+ "orig_default": 0,
+ "orig_required": false,
+ "title": "Seed",
+ "type": "integer"
+ },
+ "type": {
+ "const": "wan_video_denoise",
+ "default": "wan_video_denoise",
+ "field_kind": "node_attribute",
+ "title": "type",
+ "type": "string"
}
},
+ "required": ["type", "id"],
+ "tags": ["video", "wan"],
+ "title": "Denoise Video - Wan 2.2",
"type": "object",
- "required": ["virtual_board_id", "board_name", "date", "image_count", "asset_count"],
- "title": "VirtualSubBoardDTO",
- "description": "A virtual sub-board computed from image metadata, not stored in the database."
+ "version": "1.0.0",
+ "output": {
+ "$ref": "#/components/schemas/LatentsOutput"
+ }
},
+ "WildcardChanges": {
+ "properties": {
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Name",
+ "description": "The wildcard's new name."
+ },
+ "values": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Values",
+ "description": "The wildcard's new values."
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "title": "WildcardChanges"
+ },
+ "WildcardRecordDTO": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name",
+ "description": "The wildcard's name, referenced in a prompt as `__name__`."
+ },
+ "values": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "title": "Values",
+ "description": "The values this wildcard expands to."
+ },
+ "id": {
+ "type": "string",
+ "title": "Id",
+ "description": "The wildcard ID."
+ },
+ "user_id": {
+ "type": "string",
+ "title": "User Id",
+ "description": "The user who owns this wildcard."
+ }
+ },
+ "type": "object",
+ "required": ["name", "values", "id", "user_id"],
+ "title": "WildcardRecordDTO"
+ },
+ "WildcardWithoutId": {
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name",
+ "description": "The wildcard's name, referenced in a prompt as `__name__`."
+ },
+ "values": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array",
+ "title": "Values",
+ "description": "The values this wildcard expands to."
+ }
+ },
+ "type": "object",
+ "required": ["name", "values"],
+ "title": "WildcardWithoutId"
+ },
"Workflow": {
"properties": {
"name": {
diff --cc invokeai/frontend/web/src/services/api/schema.ts
index 1822ff3960,7c960b6792..c0efcbf968
--- a/invokeai/frontend/web/src/services/api/schema.ts
+++ b/invokeai/frontend/web/src/services/api/schema.ts
@@@ -32758,304 -35287,1887 +35543,1936 @@@ export type components =
*/
base: "sdxl";
};
- /** ValidationError */
- ValidationError: {
- /** Location */
- loc: (string | number)[];
- /** Message */
- msg: string;
- /** Error Type */
- type: string;
- };
/**
- * VirtualSubBoardDTO
- * @description A virtual sub-board computed from image metadata, not stored in the database.
+ * VAE_Diffusers_Wan_Config
+ * @description Model config for Wan 2.2 VAE in diffusers folder layout (AutoencoderKLWan).
*/
- VirtualSubBoardDTO: {
+ VAE_Diffusers_Wan_Config: {
/**
- * Virtual Board Id
- * @description The virtual board ID, e.g. 'by_date:2026-03-18'.
+ * Key
+ * @description A unique key for this model.
*/
- virtual_board_id: string;
+ key: string;
/**
- * Board Name
- * @description The display name of the virtual sub-board, e.g. '2026-03-18'.
+ * Hash
+ * @description The hash of the model file(s).
*/
- board_name: string;
+ hash: string;
/**
- * Date
- * @description The ISO date string, e.g. '2026-03-18'.
+ * Path
+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.
*/
- date: string;
+ path: string;
/**
- * Image Count
- * @description The number of general images for this date.
+ * File Size
+ * @description The size of the model in bytes.
*/
- image_count: number;
+ file_size: number;
/**
- * Asset Count
- * @description The number of asset images for this date.
+ * Name
+ * @description Name of the model.
*/
- asset_count: number;
+ name: string;
/**
- * Cover Image Name
- * @description The most recent image name for this date.
+ * Description
+ * @description Model description
*/
- cover_image_name?: string | null;
- };
- /** WildcardChanges */
- WildcardChanges: {
+ description: string | null;
/**
- * Name
- * @description The wildcard's new name.
+ * Source
+ * @description The original source of the model (path, URL or repo_id).
*/
- name?: string | null;
+ source: string;
+ /** @description The type of source */
+ source_type: components["schemas"]["ModelSourceType"];
/**
- * Values
- * @description The wildcard's new values.
+ * Source Api Response
+ * @description The original API response from the source, as stringified JSON.
*/
- values?: string[] | null;
- };
- /** WildcardRecordDTO */
- WildcardRecordDTO: {
+ source_api_response: string | null;
/**
- * Name
- * @description The wildcard's name, referenced in a prompt as `__name__`.
+ * Source Url
+ * @description Optional URL for the model (e.g. download page or model page).
*/
- name: string;
+ source_url: string | null;
/**
- * Values
- * @description The values this wildcard expands to.
+ * Cover Image
+ * @description Url for image to preview model
*/
- values: string[];
+ cover_image: string | null;
/**
- * Id
- * @description The wildcard ID.
+ * Format
+ * @default diffusers
+ * @constant
*/
- id: string;
+ format: "diffusers";
+ /** @default */
+ repo_variant: components["schemas"]["ModelRepoVariant"];
/**
- * User Id
- * @description The user who owns this wildcard.
+ * Type
+ * @default vae
+ * @constant
*/
- user_id: string;
- };
- /** WildcardWithoutId */
- WildcardWithoutId: {
+ type: "vae";
/**
- * Name
- * @description The wildcard's name, referenced in a prompt as `__name__`.
+ * Base
+ * @default wan
+ * @constant
*/
- name: string;
+ base: "wan";
/**
- * Values
- * @description The values this wildcard expands to.
+ * Cpu Only
+ * @description Whether this model should run on CPU only
*/
- values: string[];
+ cpu_only: boolean | null;
+ /**
+ * Latent Channels
+ * @description VAE latent channel count: 16 for A14B or 48 for TI2V-5B's Wan2.2-VAE.
+ * @default 16
+ * @enum {integer}
+ */
+ latent_channels: 16 | 48;
};
- /** Workflow */
- Workflow: {
+ /** ValidationError */
+ ValidationError: {
+ /** Location */
+ loc: (string | number)[];
+ /** Message */
+ msg: string;
+ /** Error Type */
+ type: string;
+ };
+ /** VideoBoardArg */
+ VideoBoardArg: {
/**
- * Name
- * @description The name of the workflow.
+ * Board Id
+ * @description The id of the board to add or remove the video from
*/
- name: string;
+ board_id: string;
/**
- * Author
- * @description The author of the workflow.
+ * Video Name
+ * @description The name of the video to add to / remove from the board
*/
- author: string;
+ video_name: string;
+ };
+ /**
+ * Concatenate Videos
+ * @description Join two or more videos into a single MP4.
+ *
+ * Transitions:
+ *
+ * * ``cut`` — hard splice, no blending. Fastest; total length is the sum of inputs.
+ * * ``crossfade`` — linear A→B cross-dissolve over ``transition_frames``. Each boundary
+ * consumes ``transition_frames`` from both adjacent clips, so total length is
+ * ``sum(inputs) - transition_frames * (n - 1)``.
+ * * ``fade_through_black`` — A fades to black, then B fades in from black. Each boundary
+ * consumes ``transition_frames // 2`` frames from the preceding clip's tail and the
+ * remainder (``transition_frames - transition_frames // 2``) from the next clip's head,
+ * so the total emitted is exactly ``transition_frames`` per boundary — even for odd
+ * ``transition_frames`` — and the overall length equals the sum of inputs.
+ *
+ * All inputs must share the same pixel dimensions. Output frame rate defaults to the
+ * first input's fps; override with ``fps`` to force a specific rate (the frames are not
+ * resampled, only the container is encoded at the new rate).
+ */
+ VideoConcatInvocation: {
/**
- * Description
- * @description The description of the workflow.
+ * @description The board to save the image to
+ * @default null
*/
- description: string;
+ board?: components["schemas"]["BoardField"] | null;
/**
- * Version
- * @description The version of the workflow.
+ * @description Optional metadata to be saved with the image
+ * @default null
*/
- version: string;
+ metadata?: components["schemas"]["MetadataField"] | null;
/**
- * Contact
- * @description The contact of the workflow.
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
*/
- contact: string;
+ id: string;
/**
- * Tags
- * @description The tags of the workflow.
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
*/
- tags: string;
+ is_intermediate?: boolean;
/**
- * Notes
- * @description The notes of the workflow.
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
*/
- notes: string;
+ use_cache?: boolean;
/**
- * Exposedfields
- * @description The exposed fields of the workflow.
+ * Videos
+ * @description Videos to concatenate, in order. At least two are required.
+ * @default null
*/
- exposedFields: components["schemas"]["ExposedField"][];
- /** @description The meta of the workflow. */
- meta: components["schemas"]["WorkflowMeta"];
+ videos?: components["schemas"]["VideoField"][] | null;
/**
- * Nodes
- * @description The nodes of the workflow.
+ * Transition
+ * @description Transition between consecutive clips.
+ * @default cut
+ * @enum {string}
*/
- nodes: {
- [key: string]: components["schemas"]["JsonValue"];
- }[];
+ transition?: "cut" | "crossfade" | "fade_through_black";
/**
- * Edges
- * @description The edges of the workflow.
+ * Transition Frames
+ * @description Length of each transition in frames. Ignored when transition is 'cut'.
+ * @default 8
*/
- edges: {
- [key: string]: components["schemas"]["JsonValue"];
- }[];
+ transition_frames?: number;
/**
- * Form
- * @description The form of the workflow.
+ * Fps
+ * @description Output frame rate. Defaults to the first input's fps.
+ * @default null
*/
- form?: {
- [key: string]: components["schemas"]["JsonValue"];
- } | null;
+ fps?: number | null;
/**
- * Id
- * @description The id of the workflow.
+ * type
+ * @default video_concat
+ * @constant
*/
- id: string;
+ type: "video_concat";
};
/**
- * WorkflowAccessRevokedEvent
- * @description Event model for workflow_access_revoked.
+ * VideoDTO
+ * @description Deserialized video record, enriched for the frontend.
*/
- WorkflowAccessRevokedEvent: {
+ VideoDTO: {
/**
- * Timestamp
- * @description The timestamp of the event
+ * Video Name
+ * @description The unique name of the video.
*/
- timestamp: number;
+ video_name: string;
/**
- * Workflow Id
- * @description The ID of the workflow
+ * Video Url
+ * @description The URL of the video file (MP4).
*/
- workflow_id: string;
+ video_url: string;
/**
- * User Id
- * @description The owner of the workflow
+ * Thumbnail Url
+ * @description The URL of the video's first-frame thumbnail (WebP).
*/
- user_id: string;
- };
- /** WorkflowAndGraphResponse */
- WorkflowAndGraphResponse: {
+ thumbnail_url: string;
+ /** @description The origin of the video. */
+ video_origin: components["schemas"]["ResourceOrigin"];
+ /** @description The category of the video (reuses ImageCategory). */
+ video_category: components["schemas"]["ImageCategory"];
/**
- * Workflow
- * @description The workflow used to generate the image, as stringified JSON
+ * Width
+ * @description The pixel width of the video.
*/
- workflow: string | null;
+ width: number;
/**
- * Graph
- * @description The graph used to generate the image, as stringified JSON
+ * Height
+ * @description The pixel height of the video.
*/
- graph: string | null;
- };
- /** WorkflowCallCompatibility */
- WorkflowCallCompatibility: {
+ height: number;
/**
- * Is Callable
- * @description Whether the workflow can currently be executed by call_saved_workflow.
+ * Duration
+ * @description The duration of the video in seconds.
*/
- is_callable: boolean;
- /** @description Structured compatibility result. */
- reason: components["schemas"]["WorkflowCallCompatibilityReason"];
+ duration: number;
/**
- * Message
- * @description Human-readable compatibility detail when unavailable.
+ * Fps
+ * @description The frames-per-second of the video, if known.
*/
- message?: string | null;
- };
- /**
- * WorkflowCallCompatibilityReason
- * @enum {string}
- */
- WorkflowCallCompatibilityReason: "ok" | "missing_workflow_return" | "multiple_workflow_return" | "unsupported_node" | "unsupported_batch_input" | "invalid_graph" | "invalid_inputs" | "exceeds_capacity" | "unknown";
- /**
- * WorkflowCallExecution
- * @description Tracks one parent/child workflow-call relationship and its lifecycle.
- */
- WorkflowCallExecution: {
+ fps?: number | null;
/**
- * Id
- * @description The workflow-call execution id.
+ * Created At
+ * @description The created timestamp of the video.
*/
- id?: string;
+ created_at: string;
/**
- * Parent Session Id
- * @description The parent graph execution state id.
+ * Updated At
+ * @description The updated timestamp of the video.
*/
- parent_session_id: string;
+ updated_at: string;
/**
- * Child Session Id
- * @description The child graph execution state id, if any.
+ * Deleted At
+ * @description The deleted timestamp of the video.
*/
- child_session_id?: string | null;
+ deleted_at?: string | null;
/**
- * Prepared Call Node Id
- * @description The prepared exec node id for the parent call site.
+ * Is Intermediate
+ * @description Whether this is an intermediate video.
*/
- prepared_call_node_id: string;
+ is_intermediate: boolean;
/**
- * Source Call Node Id
- * @description The source graph node id for the parent call site.
+ * Session Id
+ * @description The session ID that produced this video, if any.
*/
- source_call_node_id: string;
+ session_id?: string | null;
/**
- * Workflow Id
- * @description The saved workflow being called.
+ * Node Id
+ * @description The node ID that produced this video, if any.
*/
- workflow_id: string;
+ node_id?: string | null;
/**
- * Depth
- * @description The 1-based depth of this call frame.
+ * Starred
+ * @description Whether this video is starred.
*/
- depth: number;
+ starred: boolean;
/**
- * Status
- * @description The current workflow-call lifecycle state.
- * @enum {string}
+ * Has Workflow
+ * @description Whether this video has a workflow associated.
*/
- status: "waiting_for_child" | "running_child" | "completed" | "failed";
+ has_workflow: boolean;
/**
- * Error Message
- * @description Failure reason, if the call failed.
+ * Video Subfolder
+ * @description The subfolder where the video is stored on disk.
+ * @default
*/
- error_message?: string | null;
+ video_subfolder?: string;
/**
- * Child Session Ids
- * @description All child graph execution state ids.
+ * Board Id
+ * @description The id of the board the video belongs to, if one exists.
*/
- child_session_ids?: string[];
+ board_id?: string | null;
+ };
+ /**
+ * VideoField
+ * @description A video primitive field
+ */
+ VideoField: {
/**
- * Child Item Ids
- * @description Child queue item ids in enqueue order.
+ * Video Name
+ * @description The name of the video
*/
- child_item_ids?: number[];
+ video_name: string;
+ };
+ /**
+ * Frame from Video
+ * @description Extract a single frame from a video and save it as an image.
+ *
+ * ``frame_index`` is 0-based. Negative indices count from the end, so the
+ * default of -1 returns the final frame — the typical setup for chaining
+ * I2V clips into a longer sequence.
+ */
+ VideoFrameExtractInvocation: {
/**
- * Expected Child Count
- * @description The number of child executions for this call.
- * @default 1
+ * @description The board to save the image to
+ * @default null
*/
- expected_child_count?: number;
+ board?: components["schemas"]["BoardField"] | null;
/**
- * Completed Child Item Ids
- * @description The child queue item ids whose workflow_return outputs have been aggregated.
+ * @description Optional metadata to be saved with the image
+ * @default null
*/
- completed_child_item_ids?: number[];
+ metadata?: components["schemas"]["MetadataField"] | null;
/**
- * Aggregated Values
- * @description The aggregated workflow_return values accumulated from child executions.
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
*/
- aggregated_values?: {
- [key: string]: unknown[];
- };
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description The video to extract a frame from.
+ * @default null
+ */
+ video?: components["schemas"]["VideoField"] | null;
+ /**
+ * Frame Index
+ * @description Index of the frame to extract. 0 = first frame, -1 = last frame, -2 = second-to-last, etc.
+ * @default -1
+ */
+ frame_index?: number;
+ /**
+ * type
+ * @default video_frame_extract
+ * @constant
+ */
+ type: "video_frame_extract";
+ };
+ /**
+ * Video Primitive
+ * @description A video primitive value. Drop a video onto the field to make it available as an input
+ * to downstream nodes (e.g. Frame from Video, Concatenate Videos).
+ */
+ VideoInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description The video to load
+ * @default null
+ */
+ video?: components["schemas"]["VideoField"] | null;
+ /**
+ * type
+ * @default video
+ * @constant
+ */
+ type: "video";
+ };
+ /** VideoNamesBatch */
+ VideoNamesBatch: {
+ /**
+ * Video Names
+ * @description The list of video names to process
+ */
+ video_names: string[];
+ };
+ /**
+ * VideoNamesResult
+ * @description Response containing ordered video names with metadata for optimistic updates.
+ */
+ VideoNamesResult: {
+ /**
+ * Video Names
+ * @description Ordered list of video names
+ */
+ video_names: string[];
+ /**
+ * Starred Count
+ * @description Number of starred videos (when starred_first=True)
+ */
+ starred_count: number;
+ /**
+ * Total Count
+ * @description Total number of videos matching the query
+ */
+ total_count: number;
+ };
+ /**
+ * VideoOutput
+ * @description Output of a node that produces a video file (e.g. Wan 2.2 latents-to-video).
+ */
+ VideoOutput: {
+ /** @description The output video */
+ video: components["schemas"]["VideoField"];
+ /**
+ * Width
+ * @description The width of the video in pixels
+ */
+ width: number;
+ /**
+ * Height
+ * @description The height of the video in pixels
+ */
+ height: number;
+ /**
+ * Num Frames
+ * @description The number of frames in the video
+ */
+ num_frames: number;
+ /**
+ * Fps
+ * @description The frames-per-second of the video
+ */
+ fps: number;
+ /**
+ * Duration
+ * @description The duration of the video in seconds
+ */
+ duration: number;
+ /**
+ * type
+ * @default video_output
+ * @constant
+ */
+ type: "video_output";
+ };
+ /**
+ * VideoRecordChanges
+ * @description Allowed mutations on a video record.
+ */
+ VideoRecordChanges: {
+ /** @description The video's new category. */
+ video_category?: components["schemas"]["ImageCategory"] | null;
+ /**
+ * Session Id
+ * @description The video's new session ID.
+ */
+ session_id?: string | null;
+ /**
+ * Is Intermediate
+ * @description The video's new `is_intermediate` flag.
+ */
+ is_intermediate?: boolean | null;
+ /**
+ * Starred
+ * @description The video's new `starred` state.
+ */
+ starred?: boolean | null;
+ } & {
+ [key: string]: unknown;
+ };
+ /**
+ * VideoUrlsDTO
+ * @description The URLs for a video and its thumbnail.
+ */
+ VideoUrlsDTO: {
+ /**
+ * Video Name
+ * @description The unique name of the video.
+ */
+ video_name: string;
+ /**
+ * Video Url
+ * @description The URL of the video file (MP4).
+ */
+ video_url: string;
+ /**
+ * Thumbnail Url
+ * @description The URL of the video's first-frame thumbnail (WebP).
+ */
+ thumbnail_url: string;
+ };
+ /**
+ * VirtualSubBoardDTO
+ * @description A virtual sub-board computed from image/video metadata, not stored in the database.
+ */
+ VirtualSubBoardDTO: {
+ /**
+ * Virtual Board Id
+ * @description The virtual board ID, e.g. 'by_date:2026-03-18'.
+ */
+ virtual_board_id: string;
+ /**
+ * Board Name
+ * @description The display name of the virtual sub-board, e.g. '2026-03-18'.
+ */
+ board_name: string;
+ /**
+ * Date
+ * @description The ISO date string, e.g. '2026-03-18'.
+ */
+ date: string;
+ /**
+ * Image Count
+ * @description The number of general images for this date.
+ */
+ image_count: number;
+ /**
+ * Asset Count
+ * @description The number of asset images for this date.
+ */
+ asset_count: number;
+ /**
+ * Video Count
+ * @description The number of videos for this date.
+ * @default 0
+ */
+ video_count?: number;
+ /**
+ * Cover Image Name
+ * @description The most recent image name for this date.
+ */
+ cover_image_name?: string | null;
+ /**
+ * Cover Video Name
+ * @description The most recent video name for this date. Set instead of cover_image_name when the newest item for the date is a video.
+ */
+ cover_video_name?: string | null;
+ };
+ /**
+ * WanConditioningField
+ * @description A Wan 2.2 conditioning tensor primitive value.
+ *
+ * Wan conditioning is the UMT5-XXL hidden state for the prompt plus an attention
+ * mask marking valid (non-padding) tokens.
+ */
+ WanConditioningField: {
+ /**
+ * Conditioning Name
+ * @description The name of conditioning tensor
+ */
+ conditioning_name: string;
+ };
+ /**
+ * WanConditioningOutput
+ * @description Base class for nodes that output a Wan 2.2 text conditioning tensor.
+ */
+ WanConditioningOutput: {
+ /** @description Conditioning tensor */
+ conditioning: components["schemas"]["WanConditioningField"];
+ /**
+ * type
+ * @default wan_conditioning_output
+ * @constant
+ */
+ type: "wan_conditioning_output";
+ };
+ /**
+ * Denoise - Wan 2.2
+ * @description Run the denoising process with a Wan 2.2 model.
+ *
+ * Drives the flow-matching schedule the model ships with (UniPC with flow
+ * sigmas for the Wan 2.2 reference repos; see ``_build_scheduler``). CFG is
+ * supported when negative conditioning is provided and ``guidance_scale != 1.0``.
+ *
+ * For Wan 2.2 A14B the high-noise expert handles timesteps at and above
+ * ``boundary_ratio * num_train_timesteps``; the low-noise expert handles
+ * timesteps below. Both experts share the model cache; only the active one is
+ * GPU-resident at any time.
+ */
+ WanDenoiseInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Transformer
+ * @description Wan transformer field (transformer + optional dual-expert metadata).
+ * @default null
+ */
+ transformer?: components["schemas"]["WanTransformerField"] | null;
+ /**
+ * @description Positive conditioning tensor
+ * @default null
+ */
+ positive_conditioning?: components["schemas"]["WanConditioningField"] | null;
+ /**
+ * @description Negative conditioning tensor
+ * @default null
+ */
+ negative_conditioning?: components["schemas"]["WanConditioningField"] | null;
+ /**
+ * Reference Image
+ * @description Reference-image (VAE-latent) conditioning for Wan 2.2 I2V.
+ * @default null
+ */
+ ref_image?: components["schemas"]["WanRefImageConditioningField"] | null;
+ /**
+ * @description Latents tensor
+ * @default null
+ */
+ latents?: components["schemas"]["LatentsField"] | null;
+ /**
+ * @description A mask of the region to apply the denoising process to. Values of 0.0 represent the regions to be fully denoised, and 1.0 represent the regions to be preserved.
+ * @default null
+ */
+ denoise_mask?: components["schemas"]["DenoiseMaskField"] | null;
+ /**
+ * Denoising Start
+ * @description When to start denoising, expressed a percentage of total steps
+ * @default 0
+ */
+ denoising_start?: number;
+ /**
+ * Denoising End
+ * @description When to stop denoising, expressed a percentage of total steps
+ * @default 1
+ */
+ denoising_end?: number;
+ /**
+ * Add Noise
+ * @description Add noise based on denoising start.
+ * @default true
+ */
+ add_noise?: boolean;
+ /**
+ * Guidance Scale
+ * @description Classifier-free guidance scale. 4.0 is the Wan 2.2 default for A14B; TI2V-5B can tolerate higher values up to ~5.5.
+ * @default 4
+ */
+ guidance_scale?: number;
+ /**
+ * Guidance Scale (Low Noise)
+ * @description Optional separate CFG scale for the low-noise expert (Wan 2.2 A14B only). Values below 1.0 (including 0) fall back to the primary 'Guidance Scale'. Ignored for TI2V-5B.
+ * @default null
+ */
+ guidance_scale_low_noise?: number | null;
+ /**
+ * Width
+ * @description Width of the generated image.
+ * @default 1024
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Height of the generated image.
+ * @default 1024
+ */
+ height?: number;
+ /**
+ * Steps
+ * @description Number of denoising steps.
+ * @default 40
+ */
+ steps?: number;
+ /**
+ * Seed
+ * @description Randomness seed for reproducibility.
+ * @default 0
+ */
+ seed?: number;
+ /**
+ * type
+ * @default wan_denoise
+ * @constant
+ */
+ type: "wan_denoise";
+ };
+ /**
+ * Wan 2.2 I2V Ideal Dimensions (A14B)
+ * @description Ideal dimensions for the Wan 2.2 A14B models (I2V-A14B and T2V-A14B).
+ *
+ * Use this node for the A14B family. For the TI2V-5B model use "Wan 2.2 TI2V
+ * Ideal Dimensions" instead — TI2V-5B requires multiples of 32, and feeding it
+ * these multiples-of-16 dims fails the patchify step.
+ *
+ * Scales the input W×H so the shorter side equals the chosen preset (480 / 720 /
+ * 1080 px), then snaps each dimension to a multiple of 16 (the A14B pixel-grid
+ * constraint). Wire from ``Image Primitive``'s width/height outputs and into
+ * ``wan_ref_image_encoder`` / ``wan_denoise``.
+ */
+ WanI2VIdealDimensionsInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Width
+ * @description Source image width in pixels.
+ * @default 1024
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Source image height in pixels.
+ * @default 1024
+ */
+ height?: number;
+ /**
+ * Target Resolution
+ * @description Short-side resolution preset. 480p and 720p are Wan 2.2's native training resolutions; 1080p works but is extrapolation and costs ~2.25x the memory of 720p.
+ * @default 720p
+ * @enum {string}
+ */
+ target_resolution?: "480p" | "720p" | "1080p";
+ /**
+ * Rounding
+ * @description How to snap each dimension to a multiple of 16. 'floor' rounds down — safest for VRAM, guaranteed not to exceed the unsnapped target. 'ceiling' rounds up. 'nearest' minimizes aspect-ratio drift (default).
+ * @default nearest
+ * @enum {string}
+ */
+ rounding?: "nearest" | "floor" | "ceiling";
+ /**
+ * type
+ * @default wan_i2v_ideal_dimensions
+ * @constant
+ */
+ type: "wan_i2v_ideal_dimensions";
+ };
+ /**
+ * Image to Latents - Wan 2.2
+ * @description Encodes an image with the Wan VAE (AutoencoderKLWan).
+ *
+ * The output latents have the temporal dimension squeezed out, so downstream
+ * nodes see 4D ``[B, C, H, W]``. The denoise loop re-adds ``T=1`` before
+ * feeding the transformer.
+ */
+ WanImageToLatentsInvocation: {
+ /**
+ * @description The board to save the image to
+ * @default null
+ */
+ board?: components["schemas"]["BoardField"] | null;
+ /**
+ * @description Optional metadata to be saved with the image
+ * @default null
+ */
+ metadata?: components["schemas"]["MetadataField"] | null;
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description The image to encode.
+ * @default null
+ */
+ image?: components["schemas"]["ImageField"] | null;
+ /**
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * type
+ * @default wan_i2l
+ * @constant
+ */
+ type: "wan_i2l";
+ };
+ /**
+ * Latents to Image - Wan 2.2
+ * @description Decodes Wan latents back to RGB.
+ */
+ WanLatentsToImageInvocation: {
+ /**
+ * @description The board to save the image to
+ * @default null
+ */
+ board?: components["schemas"]["BoardField"] | null;
+ /**
+ * @description Optional metadata to be saved with the image
+ * @default null
+ */
+ metadata?: components["schemas"]["MetadataField"] | null;
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description Latents tensor
+ * @default null
+ */
+ latents?: components["schemas"]["LatentsField"] | null;
+ /**
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * type
+ * @default wan_l2i
+ * @constant
+ */
+ type: "wan_l2i";
+ };
+ /**
+ * Latents to Video - Wan 2.2
+ * @description Decode 5D Wan latents to RGB frames and encode an MP4.
+ */
+ WanLatentsToVideoInvocation: {
+ /**
+ * @description The board to save the image to
+ * @default null
+ */
+ board?: components["schemas"]["BoardField"] | null;
+ /**
+ * @description Optional metadata to be saved with the image
+ * @default null
+ */
+ metadata?: components["schemas"]["MetadataField"] | null;
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description Latents tensor
+ * @default null
+ */
+ latents?: components["schemas"]["LatentsField"] | null;
+ /**
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Fps
+ * @description Frames-per-second for the encoded MP4. Wan 2.2 was trained at 16 FPS.
+ * @default 16
+ */
+ fps?: number;
+ /**
+ * type
+ * @default wan_l2v
+ * @constant
+ */
+ type: "wan_l2v";
+ };
+ /**
+ * Apply LoRA Collection - Wan 2.2
+ * @description Apply a collection of LoRAs to the Wan 2.2 transformer(s).
+ *
+ * Each LoRA is routed to the primary and/or low-noise list based on its
+ * recorded ``expert`` tag (set by the probe from the filename). Untagged
+ * LoRAs go to both lists.
+ */
+ WanLoRACollectionLoader: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * LoRAs
+ * @description LoRAs to apply. May be a single LoRA or a collection.
+ * @default null
+ */
+ loras?: components["schemas"]["LoRAField"] | components["schemas"]["LoRAField"][] | null;
+ /**
+ * Wan Transformer
+ * @description Transformer
+ * @default null
+ */
+ transformer?: components["schemas"]["WanTransformerField"] | null;
+ /**
+ * type
+ * @default wan_lora_collection_loader
+ * @constant
+ */
+ type: "wan_lora_collection_loader";
+ };
+ /**
+ * Apply LoRA - Wan 2.2
+ * @description Apply a LoRA to the Wan 2.2 transformer(s).
+ *
+ * For A14B (dual expert) the LoRA's recorded ``expert`` field determines
+ * which expert list it lands in: ``"high"`` -> primary list, ``"low"`` ->
+ * low-noise list, ``None`` (untagged) -> both lists. Use the ``target``
+ * field to override.
+ *
+ * For TI2V-5B (single transformer) only the primary list is used at denoise
+ * time; a LoRA routed only to the low-noise list would be inert, so that
+ * routing logs a warning.
+ */
+ WanLoRALoaderInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * LoRA
+ * @description LoRA model to load
+ * @default null
+ */
+ lora?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * Weight
+ * @description The weight at which the LoRA is applied to each model
+ * @default 0.75
+ */
+ weight?: number;
+ /**
+ * Target
+ * @description Which expert(s) to apply this LoRA to. 'auto' uses the LoRA's recorded expert tag (or both if untagged); 'both'/'high'/'low' override it.
+ * @default auto
+ * @enum {string}
+ */
+ target?: "auto" | "both" | "high" | "low";
+ /**
+ * Wan Transformer
+ * @description Transformer
+ * @default null
+ */
+ transformer?: components["schemas"]["WanTransformerField"] | null;
+ /**
+ * type
+ * @default wan_lora_loader
+ * @constant
+ */
+ type: "wan_lora_loader";
+ };
+ /**
+ * WanLoRALoaderOutput
+ * @description Wan 2.2 LoRA loader output.
+ */
+ WanLoRALoaderOutput: {
+ /**
+ * Wan Transformer
+ * @description Transformer
+ * @default null
+ */
+ transformer: components["schemas"]["WanTransformerField"] | null;
+ /**
+ * type
+ * @default wan_lora_loader_output
+ * @constant
+ */
+ type: "wan_lora_loader_output";
+ };
+ /**
+ * WanLoRAVariantType
+ * @description Wan 2.2 LoRA variants, identifying which model family a LoRA targets.
+ *
+ * Detected from the LoRA's inner attention dim: A14B has ``inner_dim=5120``,
+ * TI2V-5B has ``inner_dim=3072``. A14B and 5B LoRAs are NOT interchangeable —
+ * applying one against the wrong main model crashes in the layer patcher
+ * with a tensor-shape error.
+ * @enum {string}
+ */
+ WanLoRAVariantType: "a14b" | "5b";
+ /**
+ * Main Model - Wan 2.2
+ * @description Loads a Wan 2.2 model, outputting its submodels.
+ *
+ * Components can be mixed and matched, mirroring the Qwen Image loader pattern:
+ *
+ * - Transformer(s):
+ * * Diffusers main: emits ``transformer/`` and (for A14B) ``transformer_2/``
+ * from the same model record.
+ * * GGUF main: emits the single GGUF as the primary transformer; for A14B
+ * the second-expert GGUF must be wired to ``Transformer (Low Noise)``.
+ * - VAE: standalone Wan VAE > main (if Diffusers) > Component Source (Diffusers).
+ * - UMT5-XXL encoder: standalone Wan T5 encoder > main (if Diffusers) >
+ * Component Source (Diffusers).
+ *
+ * The Component Source slot lets users supply a Diffusers Wan main model purely
+ * for VAE / encoder extraction when the actual transformer is in a single-file
+ * format. Together, the standalone VAE + standalone encoder let a GGUF
+ * transformer run without a full ~30 GB Diffusers install.
+ */
+ WanModelLoaderInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Transformer
+ * @description Wan 2.2 model (Transformer) to load
+ */
+ model: components["schemas"]["ModelIdentifierField"];
+ /**
+ * Transformer (Low Noise)
+ * @description Optional second GGUF transformer for the A14B low-noise expert. Only relevant when the main model is a single-file GGUF and the variant is A14B; ignored when the main is a Diffusers A14B (both experts are pulled from transformer/ and transformer_2/ already) or when the variant is TI2V-5B.
+ * @default null
+ */
+ transformer_low_noise_model?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * VAE
+ * @description Standalone Wan VAE model. If not set, the VAE is loaded from the main model (when in Diffusers format) or from the Component Source.
+ * @default null
+ */
+ vae_model?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * Wan T5 Encoder
+ * @description Standalone Wan UMT5-XXL encoder. If not set, the encoder is loaded from the main model (when in Diffusers format) or from the Component Source.
+ * @default null
+ */
+ wan_t5_encoder_model?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * Component Source (Diffusers)
+ * @description Diffusers Wan main model to extract VAE and/or encoder from. Use this if you don't have separate VAE/encoder models. Ignored for any submodel that is provided separately.
+ * @default null
+ */
+ component_source?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * type
+ * @default wan_model_loader
+ * @constant
+ */
+ type: "wan_model_loader";
+ };
+ /**
+ * WanModelLoaderOutput
+ * @description Wan 2.2 model loader output.
+ */
+ WanModelLoaderOutput: {
+ /**
+ * Transformer
+ * @description Wan transformer (one or two experts depending on the variant)
+ */
+ transformer: components["schemas"]["WanTransformerField"];
+ /**
+ * UMT5-XXL Encoder
+ * @description UMT5-XXL tokenizer and text encoder for Wan 2.2
+ */
+ wan_t5_encoder: components["schemas"]["WanT5EncoderField"];
+ /**
+ * VAE
+ * @description VAE
+ */
+ vae: components["schemas"]["VAEField"];
+ /**
+ * type
+ * @default wan_model_loader_output
+ * @constant
+ */
+ type: "wan_model_loader_output";
+ };
+ /**
+ * WanRefImageConditioningField
+ * @description Reference-image conditioning for Wan 2.2 I2V.
+ *
+ * Carries the 20-channel VAE-latent condition tensor (4-channel first-frame
+ * mask + 16-channel ref-image latents). The denoise loop concatenates this
+ * to the 16-channel noise latents along the channel dim each step, producing
+ * the 36-channel input the I2V-A14B transformer expects.
+ *
+ * Also carries the spatial dims and frame count used to encode the image so
+ * the denoise node can sanity-check the user's width/height/num_frames — a
+ * latent temporal-dim mismatch is hard to debug from the downstream error.
+ */
+ WanRefImageConditioningField: {
+ /**
+ * Condition Tensor Name
+ * @description Name of the saved [1, 20, T_lat, H/8, W/8] condition tensor.
+ */
+ condition_tensor_name: string;
+ /**
+ * Width
+ * @description Image width used during VAE encoding (matches denoise width).
+ */
+ width: number;
+ /**
+ * Height
+ * @description Image height used during VAE encoding (matches denoise height).
+ */
+ height: number;
+ /**
+ * Num Frames
+ * @description Pixel-frame count the condition was built for. 1 for single-frame I2V (image output), 81+ for video.
+ * @default 1
+ */
+ num_frames?: number;
+ };
+ /**
+ * Reference Image - Wan 2.2
+ * @description VAE-encode a reference image into Wan 2.2 I2V conditioning.
+ *
+ * The wired VAE selects the output shape. With the 16-channel A14B VAE the
+ * output is a ``[1, 20, T_lat, height // 8, width // 8]`` condition (4-ch
+ * first-frame mask + 16-ch image latents) that the denoise loop concatenates
+ * to the noise latents each step, producing the 36-channel input the
+ * I2V-A14B transformer expects. With the 48-channel TI2V-5B VAE the output
+ * is a ``[1, 48, 1, height // 16, width // 16]`` condition that the denoise
+ * loop blends into the noisy latents at every step.
+ *
+ * For image (single-frame) I2V leave ``num_frames=1`` (T_lat=1). For A14B
+ * video I2V set ``num_frames`` to match the value on the video-denoise node
+ * (e.g. 81 for the Wan 2.2 reference defaults); TI2V-5B always uses the
+ * single-frame condition.
+ *
+ * Supply an optional ``end_image`` for **first-last-frame interpolation
+ * (FLF2V)** — the model then interpolates the motion from ``image`` (first
+ * frame) to ``end_image`` (final frame). FLF2V is I2V-A14B video only
+ * (``num_frames > 1``); it is not supported for TI2V-5B or single-frame I2V.
+ *
+ * For T2V (no reference image), omit this node entirely.
+ */
+ WanRefImageEncoderInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * @description Reference image to condition on (the first frame).
+ * @default null
+ */
+ image?: components["schemas"]["ImageField"] | null;
+ /**
+ * VAE
+ * @description VAE
+ * @default null
+ */
+ vae?: components["schemas"]["VAEField"] | null;
+ /**
+ * Width
+ * @description Width to resize the reference image to (must match denoise width).
+ * @default 1024
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Height to resize the reference image to (must match denoise height).
+ * @default 1024
+ */
+ height?: number;
+ /**
+ * Number of Frames
+ * @description Pixel-frame count to build the condition for. Use 1 for single-frame image I2V. For video I2V, set this to match the video-denoise node's num_frames (and ensure (num_frames - 1) %% 4 == 0, e.g. 81).
+ * @default 1
+ */
+ num_frames?: number;
+ /**
+ * End Image (FLF2V)
+ * @description Optional end frame for first-last-frame interpolation (FLF2V). When set, the video interpolates from the reference image (first frame) to this image (final frame). I2V-A14B video only (num_frames > 1); not supported for TI2V-5B or single-frame I2V.
+ * @default null
+ */
+ end_image?: components["schemas"]["ImageField"] | null;
+ /**
+ * type
+ * @default wan_ref_image_encoder
+ * @constant
+ */
+ type: "wan_ref_image_encoder";
+ };
+ /**
+ * WanRefImageOutput
+ * @description Output of a Wan 2.2 reference-image VAE-encoder.
+ */
+ WanRefImageOutput: {
+ /**
+ * Reference Image
+ * @description VAE-latent reference-image conditioning for Wan 2.2 I2V.
+ */
+ ref_image: components["schemas"]["WanRefImageConditioningField"];
+ /**
+ * type
+ * @default wan_ref_image_output
+ * @constant
+ */
+ type: "wan_ref_image_output";
+ };
+ /**
+ * WanT5EncoderField
+ * @description Field for the UMT5-XXL text encoder used by Wan 2.2 models.
+ */
+ WanT5EncoderField: {
+ /** @description Info to load tokenizer submodel */
+ tokenizer: components["schemas"]["ModelIdentifierField"];
+ /** @description Info to load text_encoder submodel */
+ text_encoder: components["schemas"]["ModelIdentifierField"];
+ /**
+ * Loras
+ * @description LoRAs to apply on model loading
+ */
+ loras?: components["schemas"]["LoRAField"][];
+ };
+ /**
+ * WanT5Encoder_WanT5Encoder_Config
+ * @description UMT5-XXL encoder in diffusers folder layout.
+ *
+ * Accepts either:
+ * - A directory containing ``text_encoder/`` (and typically ``tokenizer/``) ─ the
+ * shape produced by ``Wan-AI/Wan2.2-T2V-A14B::text_encoder+tokenizer``.
+ * - A bare ``text_encoder/`` directory whose own ``config.json`` declares
+ * ``model_type: umt5``.
+ */
+ WanT5Encoder_WanT5Encoder_Config: {
+ /**
+ * Key
+ * @description A unique key for this model.
+ */
+ key: string;
+ /**
+ * Hash
+ * @description The hash of the model file(s).
+ */
+ hash: string;
+ /**
+ * Path
+ * @description Path to the model on the filesystem. Relative paths are relative to the Invoke root directory.
+ */
+ path: string;
+ /**
+ * File Size
+ * @description The size of the model in bytes.
+ */
+ file_size: number;
+ /**
+ * Name
+ * @description Name of the model.
+ */
+ name: string;
+ /**
+ * Description
+ * @description Model description
+ */
+ description: string | null;
+ /**
+ * Source
+ * @description The original source of the model (path, URL or repo_id).
+ */
+ source: string;
+ /** @description The type of source */
+ source_type: components["schemas"]["ModelSourceType"];
+ /**
+ * Source Api Response
+ * @description The original API response from the source, as stringified JSON.
+ */
+ source_api_response: string | null;
+ /**
+ * Source Url
+ * @description Optional URL for the model (e.g. download page or model page).
+ */
+ source_url: string | null;
+ /**
+ * Cover Image
+ * @description Url for image to preview model
+ */
+ cover_image: string | null;
+ /**
+ * Base
+ * @default any
+ * @constant
+ */
+ base: "any";
+ /**
+ * Type
+ * @default wan_t5_encoder
+ * @constant
+ */
+ type: "wan_t5_encoder";
+ /**
+ * Format
+ * @default wan_t5_encoder
+ * @constant
+ */
+ format: "wan_t5_encoder";
+ /**
+ * Cpu Only
+ * @description Whether this model should run on CPU only
+ */
+ cpu_only: boolean | null;
+ };
+ /**
+ * Wan 2.2 TI2V Ideal Dimensions (5B)
+ * @description Ideal dimensions for the Wan 2.2 TI2V-5B model.
+ *
+ * Use this node for TI2V-5B only. For the A14B models (I2V-A14B / T2V-A14B) use
+ * "Wan 2.2 I2V Ideal Dimensions" instead — those need multiples of 16, and this
+ * node's multiples-of-32 dims would overshoot their pixel grid.
+ *
+ * Identical to the A14B node but snaps each dimension to a multiple of 32 instead
+ * of 16: the Wan 2.2-VAE used by TI2V-5B applies 16x spatial compression and the
+ * transformer adds a 2x patch on top, so pixel dims must divide by 32 for the
+ * patchify step. Wire from ``Image Primitive``'s width/height outputs and into
+ * the matching ``wan_denoise`` inputs.
+ */
+ WanTI2VIdealDimensionsInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Width
+ * @description Source image width in pixels.
+ * @default 1024
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Source image height in pixels.
+ * @default 1024
+ */
+ height?: number;
+ /**
+ * Target Resolution
+ * @description Short-side resolution preset. 480p and 720p are Wan 2.2's native training resolutions; 1080p works but is extrapolation and costs ~2.25x the memory of 720p.
+ * @default 720p
+ * @enum {string}
+ */
+ target_resolution?: "480p" | "720p" | "1080p";
+ /**
+ * Rounding
+ * @description How to snap each dimension to a multiple of 32. 'floor' rounds down — safest for VRAM, guaranteed not to exceed the unsnapped target. 'ceiling' rounds up. 'nearest' minimizes aspect-ratio drift (default).
+ * @default nearest
+ * @enum {string}
+ */
+ rounding?: "nearest" | "floor" | "ceiling";
+ /**
+ * type
+ * @default wan_ti2v_ideal_dimensions
+ * @constant
+ */
+ type: "wan_ti2v_ideal_dimensions";
+ };
+ /**
+ * Prompt - Wan 2.2
+ * @description Encodes a text prompt for Wan 2.2 using the UMT5-XXL encoder.
+ *
+ * Output is the encoder's last hidden state (shape: [seq_len=512, 4096]) plus
+ * an attention mask marking valid (non-padding) tokens. The Wan transformer
+ * consumes these directly as ``encoder_hidden_states``.
+ */
+ WanTextEncoderInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Prompt
+ * @description Text prompt for Wan 2.2.
+ * @default null
+ */
+ prompt?: string | null;
+ /**
+ * UMT5-XXL Encoder
+ * @description UMT5-XXL tokenizer and text encoder for Wan 2.2
+ * @default null
+ */
+ wan_t5_encoder?: components["schemas"]["WanT5EncoderField"] | null;
+ /**
+ * type
+ * @default wan_text_encoder
+ * @constant
+ */
+ type: "wan_text_encoder";
+ };
+ /**
+ * WanTransformerField
+ * @description Transformer field for Wan 2.2 models.
+ *
+ * Wan 2.2 A14B is a Mixture-of-Experts model with two transformer experts:
+ * a high-noise expert (active at large timesteps) and a low-noise expert
+ * (active at small timesteps). TI2V-5B is a single-transformer model and only
+ * populates ``transformer``.
+ *
+ * ``boundary_ratio`` matches Diffusers' ``WanPipeline`` semantics: it's the
+ * boundary timestep as a fraction of ``num_train_timesteps`` (typically 1000),
+ * so ``boundary_ratio=0.875`` means the high-noise expert handles t >= 875 and
+ * the low-noise expert handles t < 875.
+ */
+ WanTransformerField: {
+ /** @description Primary transformer submodel. For A14B this is the high-noise expert. */
+ transformer: components["schemas"]["ModelIdentifierField"];
+ /**
+ * @description Low-noise transformer expert (Wan 2.2 A14B only). None for TI2V-5B.
+ * @default null
+ */
+ transformer_low_noise?: components["schemas"]["ModelIdentifierField"] | null;
+ /**
+ * Loras
+ * @description LoRAs to apply to the primary transformer. For A14B applied to the high-noise expert.
+ */
+ loras?: components["schemas"]["LoRAField"][];
+ /**
+ * Loras Low Noise
+ * @description LoRAs to apply to the low-noise expert (Wan 2.2 A14B). The Wan LoRA loader routes 'both'- and 'low'-targeted LoRAs here; if empty, no LoRAs are applied to the low-noise expert (a 'high'-targeted LoRA must not leak onto it).
+ */
+ loras_low_noise?: components["schemas"]["LoRAField"][];
+ /**
+ * Boundary Ratio
+ * @description Boundary timestep as a fraction of num_train_timesteps (Wan 2.2 A14B only). High-noise expert: t >= boundary_ratio * num_train_timesteps. Low-noise expert: t below. Ignored for TI2V-5B.
+ * @default 0.875
+ */
+ boundary_ratio?: number;
+ };
+ /**
+ * WanVariantType
+ * @description Wan 2.2 model variants.
+ *
+ * All variants are used for image generation at num_frames=1. The A14B family
+ * is a Mixture-of-Experts (high-noise + low-noise) totalling ~28B params; the
+ * T2V sub-variant takes text only, while the I2V sub-variant additionally
+ * conditions on a reference image (encoded by the VAE and concatenated to the
+ * noise latents along the channel dim — its transformer has ``in_channels=36``
+ * instead of ``16``). TI2V-5B is a single ~5B transformer with a
+ * higher-compression VAE (z_dim=48).
+ * @enum {string}
+ */
+ WanVariantType: "t2v_a14b" | "i2v_a14b" | "ti2v_5b";
+ /**
+ * Denoise Video - Wan 2.2
+ * @description Run the Wan 2.2 denoising loop on a multi-frame latent tensor.
+ *
+ * The output is a 5D ``[1, C, T_lat, H/8, W/8]`` latent tensor ready for
+ * :class:`WanLatentsToVideoInvocation` to VAE-decode and encode as MP4.
+ *
+ * Mirrors :class:`WanDenoiseInvocation` for the per-step logic (CFG, MoE
+ * expert swap at the boundary timestep, LoRA patching, scheduler selection).
+ * Differences from the image denoise:
+ *
+ * * The noise tensor has a real temporal dim built from ``num_frames``.
+ * * The I2V condition is built across all latent frames (frame 0
+ * conditioned, rest zero) via
+ * :func:`encode_reference_image_to_video_condition` upstream — the
+ * ``ref_image`` field on this node carries a tensor of shape
+ * ``[1, 20, T_lat, H_lat, W_lat]`` instead of ``[1, 20, 1, ...]``.
+ * * No ``denoising_start`` / ``denoising_end`` / initial-latents inputs.
+ * The image denoise node uses those for img2img (noise injection on an
+ * existing latent), but image-conditioned video generation flows through
+ * the reference-frame conditioning mechanism instead — the first frame
+ * drives subsequent frames at every step, so a partial-schedule run from
+ * an initial latent has no analogue here. Run the schedule from t=1
+ * to t=0 every time. The base ``WanDenoiseInvocation`` still handles
+ * the img2img case for stills.
+ */
+ WanVideoDenoiseInvocation: {
+ /**
+ * Id
+ * @description The id of this instance of an invocation. Must be unique among all instances of invocations.
+ */
+ id: string;
+ /**
+ * Is Intermediate
+ * @description Whether or not this is an intermediate invocation.
+ * @default false
+ */
+ is_intermediate?: boolean;
+ /**
+ * Use Cache
+ * @description Whether or not to use the cache
+ * @default true
+ */
+ use_cache?: boolean;
+ /**
+ * Transformer
+ * @description Wan transformer field. Supported: T2V-A14B / I2V-A14B (dual-expert) and TI2V-5B (single-expert, handles both T2V and I2V). All three accept a Reference Image input for image-to-video; A14B uses the 36-channel concat scheme while TI2V-5B uses the expand_timesteps first-frame-mask blend.
+ * @default null
+ */
+ transformer?: components["schemas"]["WanTransformerField"] | null;
+ /**
+ * @description Positive conditioning tensor
+ * @default null
+ */
+ positive_conditioning?: components["schemas"]["WanConditioningField"] | null;
+ /**
+ * @description Negative conditioning tensor
+ * @default null
+ */
+ negative_conditioning?: components["schemas"]["WanConditioningField"] | null;
+ /**
+ * Reference Image
+ * @description Reference-image (VAE-latent) conditioning for Wan 2.2 I2V.
+ * @default null
+ */
+ ref_image?: components["schemas"]["WanRefImageConditioningField"] | null;
+ /**
+ * Guidance Scale
+ * @description Classifier-free guidance scale. Wan 2.2 video reference uses 5.0 for the high-noise expert and 4.0 for the low-noise expert.
+ * @default 5
+ */
+ guidance_scale?: number;
+ /**
+ * Guidance Scale (Low Noise)
+ * @description Optional separate CFG scale for the low-noise expert (Wan 2.2 A14B only). Values below 1.0 fall back to the primary 'Guidance Scale'.
+ * @default 4
+ */
+ guidance_scale_low_noise?: number | null;
+ /**
+ * Width
+ * @description Width of the generated video.
+ * @default 832
+ */
+ width?: number;
+ /**
+ * Height
+ * @description Height of the generated video.
+ * @default 480
+ */
+ height?: number;
+ /**
+ * Number of Frames
+ * @description Number of output frames. Must satisfy (num_frames - 1) %% 4 == 0 so the latent temporal dim divides cleanly. Wan 2.2 was trained at 81 frames @ 16 FPS (~5 s).
+ * @default 81
+ */
+ num_frames?: number;
+ /**
+ * Steps
+ * @description Number of denoising steps.
+ * @default 40
+ */
+ steps?: number;
+ /**
+ * Seed
+ * @description Randomness seed for reproducibility.
+ * @default 0
+ */
+ seed?: number;
+ /**
+ * type
+ * @default wan_video_denoise
+ * @constant
+ */
+ type: "wan_video_denoise";
+ };
++ /** WildcardChanges */
++ WildcardChanges: {
++ /**
++ * Name
++ * @description The wildcard's new name.
++ */
++ name?: string | null;
++ /**
++ * Values
++ * @description The wildcard's new values.
++ */
++ values?: string[] | null;
++ };
++ /** WildcardRecordDTO */
++ WildcardRecordDTO: {
++ /**
++ * Name
++ * @description The wildcard's name, referenced in a prompt as `__name__`.
++ */
++ name: string;
++ /**
++ * Values
++ * @description The values this wildcard expands to.
++ */
++ values: string[];
++ /**
++ * Id
++ * @description The wildcard ID.
++ */
++ id: string;
++ /**
++ * User Id
++ * @description The user who owns this wildcard.
++ */
++ user_id: string;
++ };
++ /** WildcardWithoutId */
++ WildcardWithoutId: {
++ /**
++ * Name
++ * @description The wildcard's name, referenced in a prompt as `__name__`.
++ */
++ name: string;
++ /**
++ * Values
++ * @description The values this wildcard expands to.
++ */
++ values: string[];
++ };
+ /** Workflow */
+ Workflow: {
+ /**
+ * Name
+ * @description The name of the workflow.
+ */
+ name: string;
+ /**
+ * Author
+ * @description The author of the workflow.
+ */
+ author: string;
+ /**
+ * Description
+ * @description The description of the workflow.
+ */
+ description: string;
+ /**
+ * Version
+ * @description The version of the workflow.
+ */
+ version: string;
+ /**
+ * Contact
+ * @description The contact of the workflow.
+ */
+ contact: string;
+ /**
+ * Tags
+ * @description The tags of the workflow.
+ */
+ tags: string;
+ /**
+ * Notes
+ * @description The notes of the workflow.
+ */
+ notes: string;
+ /**
+ * Exposedfields
+ * @description The exposed fields of the workflow.
+ */
+ exposedFields: components["schemas"]["ExposedField"][];
+ /** @description The meta of the workflow. */
+ meta: components["schemas"]["WorkflowMeta"];
+ /**
+ * Nodes
+ * @description The nodes of the workflow.
+ */
+ nodes: {
+ [key: string]: components["schemas"]["JsonValue"];
+ }[];
+ /**
+ * Edges
+ * @description The edges of the workflow.
+ */
+ edges: {
+ [key: string]: components["schemas"]["JsonValue"];
+ }[];
+ /**
+ * Form
+ * @description The form of the workflow.
+ */
+ form?: {
+ [key: string]: components["schemas"]["JsonValue"];
+ } | null;
+ /**
+ * Id
+ * @description The id of the workflow.
+ */
+ id: string;
+ };
+ /**
+ * WorkflowAccessRevokedEvent
+ * @description Event model for workflow_access_revoked.
+ */
+ WorkflowAccessRevokedEvent: {
+ /**
+ * Timestamp
+ * @description The timestamp of the event
+ */
+ timestamp: number;
+ /**
+ * Workflow Id
+ * @description The ID of the workflow
+ */
+ workflow_id: string;
+ /**
+ * User Id
+ * @description The owner of the workflow
+ */
+ user_id: string;
+ };
+ /** WorkflowAndGraphResponse */
+ WorkflowAndGraphResponse: {
+ /**
+ * Workflow
+ * @description The workflow used to generate the image, as stringified JSON
+ */
+ workflow: string | null;
+ /**
+ * Graph
+ * @description The graph used to generate the image, as stringified JSON
+ */
+ graph: string | null;
+ };
+ /** WorkflowCallCompatibility */
+ WorkflowCallCompatibility: {
+ /**
+ * Is Callable
+ * @description Whether the workflow can currently be executed by call_saved_workflow.
+ */
+ is_callable: boolean;
+ /** @description Structured compatibility result. */
+ reason: components["schemas"]["WorkflowCallCompatibilityReason"];
+ /**
+ * Message
+ * @description Human-readable compatibility detail when unavailable.
+ */
+ message?: string | null;
+ };
+ /**
+ * WorkflowCallCompatibilityReason
+ * @enum {string}
+ */
+ WorkflowCallCompatibilityReason: "ok" | "missing_workflow_return" | "multiple_workflow_return" | "unsupported_node" | "unsupported_batch_input" | "invalid_graph" | "invalid_inputs" | "exceeds_capacity" | "unknown";
+ /**
+ * WorkflowCallExecution
+ * @description Tracks one parent/child workflow-call relationship and its lifecycle.
+ */
+ WorkflowCallExecution: {
+ /**
+ * Id
+ * @description The workflow-call execution id.
+ */
+ id?: string;
+ /**
+ * Parent Session Id
+ * @description The parent graph execution state id.
+ */
+ parent_session_id: string;
+ /**
+ * Child Session Id
+ * @description The child graph execution state id, if any.
+ */
+ child_session_id?: string | null;
+ /**
+ * Prepared Call Node Id
+ * @description The prepared exec node id for the parent call site.
+ */
+ prepared_call_node_id: string;
+ /**
+ * Source Call Node Id
+ * @description The source graph node id for the parent call site.
+ */
+ source_call_node_id: string;
+ /**
+ * Workflow Id
+ * @description The saved workflow being called.
+ */
+ workflow_id: string;
+ /**
+ * Depth
+ * @description The 1-based depth of this call frame.
+ */
+ depth: number;
+ /**
+ * Status
+ * @description The current workflow-call lifecycle state.
+ * @enum {string}
+ */
+ status: "waiting_for_child" | "running_child" | "completed" | "failed";
+ /**
+ * Error Message
+ * @description Failure reason, if the call failed.
+ */
+ error_message?: string | null;
+ /**
+ * Child Session Ids
+ * @description All child graph execution state ids.
+ */
+ child_session_ids?: string[];
+ /**
+ * Child Item Ids
+ * @description Child queue item ids in enqueue order.
+ */
+ child_item_ids?: number[];
+ /**
+ * Expected Child Count
+ * @description The number of child executions for this call.
+ * @default 1
+ */
+ expected_child_count?: number;
+ /**
+ * Completed Child Item Ids
+ * @description The child queue item ids whose workflow_return outputs have been aggregated.
+ */
+ completed_child_item_ids?: number[];
+ /**
+ * Aggregated Values
+ * @description The aggregated workflow_return values accumulated from child executions.
+ */
+ aggregated_values?: {
+ [key: string]: unknown[];
+ };
/**
* Child Outputs
* @description Workflow return values keyed by child queue item id.
@@@ -34547,29 -39097,16 +39402,36 @@@ export interface operations
};
};
};
- get_current_user_info_api_v1_auth_me_get: {
++ get_models_dir: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
- /** @description Successful Response */
++ /** @description The absolute path of the models directory */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
- "application/json": components["schemas"]["UserDTO"];
++ "application/json": string;
+ };
+ };
+ };
+ };
- update_current_user_api_v1_auth_me_patch: {
+ get_model_records_by_attrs: {
parameters: {
- query?: never;
+ query: {
+ /** @description The name of the model */
+ name: string;
+ /** @description The type of the model */
+ type: components["schemas"]["ModelType"];
+ /** @description The base model of the model */
+ base: components["schemas"]["BaseModelType"];
+ };
header?: never;
path?: never;
cookie?: never;
@@@ -34965,10 -39701,17 +40026,20 @@@
};
};
};
- get_models_dir: {
+ install_model: {
parameters: {
- query?: never;
- header?: never;
+ query: {
+ /** @description Model source to install, can be a local path, repo_id, or remote URL */
+ source: string;
+ /** @description Whether or not to install a local model in place */
+ inplace?: boolean | null;
+ /** @description access token for the remote resource */
+ access_token?: string | null;
+ };
- header?: never;
++ header?: {
++ /** @description access token for the remote resource */
++ "X-Model-Source-Access-Token"?: string | null;
++ };
path?: never;
cookie?: never;
};
@@@ -35482,18 -40208,22 +40536,22 @@@
[name: string]: unknown;
};
content: {
-- "application/json": unknown;
- };
- };
- /** @description Bad request */
- 400: {
- headers: {
- [name: string]: unknown;
++ "application/json": components["schemas"]["EmptyModelCacheResponse"];
};
- content?: never;
};
- /** @description Validation Error */
- 422: {
+ };
+ };
+ get_hf_login_status: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Successful Response */
+ 200: {
headers: {
[name: string]: unknown;
};
@@@ -35971,14 -40649,30 +40977,34 @@@
};
};
};
- convert_model: {
+ list_image_dtos: {
parameters: {
- query?: never;
- header?: never;
- path: {
- /** @description Unique key of the safetensors main model to convert to diffusers format. */
- key: string;
+ query?: {
+ /** @description The origin of images to list. */
+ image_origin?: components["schemas"]["ResourceOrigin"] | null;
+ /** @description The categories of image to include. */
+ categories?: components["schemas"]["ImageCategory"][] | null;
+ /** @description Whether to list intermediate images. */
+ is_intermediate?: boolean | null;
- /** @description The board id to filter by. Use 'none' to find images without a board. */
++ /** @description The board id to filter by. Use 'none' for the current user's uncategorized images or 'all' for images on every readable, non-archived board plus authorized uncategorized images. If omitted, non-admin results remain limited to images owned by the current user. */
+ board_id?: string | null;
+ /** @description The page offset */
+ offset?: number;
+ /** @description The number of images per page */
+ limit?: number;
+ /** @description The order of sort */
+ order_dir?: components["schemas"]["SQLiteDirection"];
+ /** @description Whether to sort by starred images first */
+ starred_first?: boolean;
+ /** @description The term to search for */
+ search_term?: string | null;
++ /** @description Inclusive start date (YYYY-MM-DD) to filter by created_at. */
++ created_from?: string | null;
++ /** @description Inclusive end date (YYYY-MM-DD) to filter by created_at. */
++ created_to?: string | null;
};
+ header?: never;
+ path?: never;
cookie?: never;
};
requestBody?: never;
@@@ -36549,12 -41289,8 +41621,8 @@@
categories?: components["schemas"]["ImageCategory"][] | null;
/** @description Whether to list intermediate images. */
is_intermediate?: boolean | null;
- /** @description The board id to filter by. Use 'none' to find images without a board. */
+ /** @description The board id to filter by. Use 'none' for the current user's uncategorized images or 'all' for images on every readable, non-archived board plus authorized uncategorized images. If omitted, non-admin results remain limited to images owned by the current user. */
board_id?: string | null;
- /** @description The page offset */
- offset?: number;
- /** @description The number of images per page */
- limit?: number;
/** @description The order of sort */
order_dir?: components["schemas"]["SQLiteDirection"];
/** @description Whether to sort by starred images first */
diff --cc tests/app/routers/test_image_moves.py
index 23bc6f2c6b,1dd6066b17..16ec8ea4f4
--- a/tests/app/routers/test_image_moves.py
+++ b/tests/app/routers/test_image_moves.py
@@@ -21,10 -22,9 +22,11 @@@ from invokeai.app.services.invocation_c
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.project_records.project_records_sqlite import ProjectRecordsSqlite
from invokeai.app.services.users.users_common import UserCreateRequest
from invokeai.app.services.users.users_default import UserService
+ from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
+from invokeai.app.services.wildcard_records.wildcard_records_sqlite import SqliteWildcardRecordsStorage
from invokeai.app.services.workflow_records.workflow_records_sqlite import SqliteWorkflowRecordsStorage
from invokeai.backend.util.logging import InvokeAILogger
from tests.fixtures.sqlite_database import create_mock_sqlite_database
@@@ -80,9 -80,12 +82,14 @@@ def mock_services() -> InvocationServic
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore
client_state_persistence=ClientStatePersistenceSqlite(db=db),
+ project_records=ProjectRecordsSqlite(db=db),
users=UserService(db),
+ wildcard_records=SqliteWildcardRecordsStorage(db=db),
+ videos=None, # type: ignore
+ video_files=None, # type: ignore
+ video_records=SqliteVideoRecordStorage(db=db),
+ board_video_records=SqliteBoardVideoRecordStorage(db=db),
+ gallery=None, # type: ignore
image_moves=image_moves,
)
diff --cc tests/app/routers/test_multiuser_authorization.py
index 52c3e6d8af,1d8d3f5f52..d125198476
--- a/tests/app/routers/test_multiuser_authorization.py
+++ b/tests/app/routers/test_multiuser_authorization.py
@@@ -79,7 -80,7 +81,8 @@@ def mock_services() -> InvocationServic
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.users.users_default import UserService
+ from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
+ from invokeai.app.services.wildcard_records.wildcard_records_sqlite import SqliteWildcardRecordsStorage
from tests.test_nodes import TestEventService
configuration = InvokeAIAppConfig(use_memory_db=True, node_cache_size=0)
@@@ -116,10 -117,13 +119,15 @@@
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore
client_state_persistence=ClientStatePersistenceSqlite(db=db),
+ project_records=ProjectRecordsSqlite(db=db),
users=UserService(db),
+ wildcard_records=SqliteWildcardRecordsStorage(db=db),
external_generation=None, # type: ignore
+ videos=None, # type: ignore
+ video_files=None, # type: ignore
+ video_records=SqliteVideoRecordStorage(db=db),
+ board_video_records=SqliteBoardVideoRecordStorage(db=db),
+ gallery=None, # type: ignore
)
diff --cc tests/app/routers/test_session_queue_workflow_call.py
index 2ee4fc5e86,69be937125..f8b1adf563
--- a/tests/app/routers/test_session_queue_workflow_call.py
+++ b/tests/app/routers/test_session_queue_workflow_call.py
@@@ -54,9 -55,8 +55,10 @@@ def mock_services() -> InvocationServic
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.project_records.project_records_sqlite import ProjectRecordsSqlite
from invokeai.app.services.users.users_default import UserService
+ from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
+ from invokeai.app.services.wildcard_records.wildcard_records_sqlite import SqliteWildcardRecordsStorage
from tests.test_nodes import TestEventService
configuration = InvokeAIAppConfig(use_memory_db=True, node_cache_size=0)
@@@ -93,10 -93,13 +95,15 @@@
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore
client_state_persistence=ClientStatePersistenceSqlite(db=db),
+ project_records=ProjectRecordsSqlite(db=db),
users=UserService(db),
+ wildcard_records=SqliteWildcardRecordsStorage(db=db),
external_generation=None, # type: ignore
+ videos=None, # type: ignore
+ video_files=None, # type: ignore
+ video_records=SqliteVideoRecordStorage(db=db),
+ board_video_records=SqliteBoardVideoRecordStorage(db=db),
+ gallery=None, # type: ignore
)
diff --cc tests/app/routers/test_workflows_multiuser.py
index 5572089dea,c6492c70dc..e6dc7fd63e
--- a/tests/app/routers/test_workflows_multiuser.py
+++ b/tests/app/routers/test_workflows_multiuser.py
@@@ -70,7 -70,7 +71,8 @@@ def mock_services() -> InvocationServic
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.users.users_default import UserService
+ from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
+ from invokeai.app.services.wildcard_records.wildcard_records_sqlite import SqliteWildcardRecordsStorage
from tests.test_nodes import TestEventService
configuration = InvokeAIAppConfig(use_memory_db=True, node_cache_size=0)
@@@ -107,10 -107,13 +109,15 @@@
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore
client_state_persistence=ClientStatePersistenceSqlite(db=db),
+ project_records=ProjectRecordsSqlite(db=db),
users=UserService(db),
+ wildcard_records=SqliteWildcardRecordsStorage(db=db),
external_generation=None, # type: ignore
+ videos=None, # type: ignore
+ video_files=None, # type: ignore
+ video_records=SqliteVideoRecordStorage(db=db),
+ board_video_records=SqliteBoardVideoRecordStorage(db=db),
+ gallery=None, # type: ignore
)
diff --cc tests/app/services/session_queue/test_session_queue_status_event_isolation.py
index eac25679a3,48c90a950a..5c46650c7c
--- a/tests/app/services/session_queue/test_session_queue_status_event_isolation.py
+++ b/tests/app/services/session_queue/test_session_queue_status_event_isolation.py
@@@ -223,11 -209,11 +209,11 @@@ def test_event_redaction_uses_same_ligh
a_event = _last_status_event_for_item(event_bus, a_item_id)
assert a_event.user_id == user_a
assert a_event.queue_status.item_id is None, (
-- "race-window leak: other user's item_id survived because the second "
-- "get_current() returned None and the redaction guard was skipped"
++ "leak: B's item_id reached A's event — the identifier read and the redaction "
++ "decision must come from one snapshot inside a single transaction"
)
-- assert a_event.queue_status.session_id is None, "race-window leak of session_id"
-- assert a_event.queue_status.batch_id is None, "race-window leak of batch_id"
++ assert a_event.queue_status.session_id is None, "leak of B's session_id"
++ assert a_event.queue_status.batch_id is None, "leak of B's batch_id"
def test_event_preserves_identifiers_when_current_item_is_the_changed_item(
diff --cc tests/app/services/session_queue/test_session_queue_status_user_scoping.py
index 65ced9b875,c9e2147b0e..9cfc39e4b6
--- a/tests/app/services/session_queue/test_session_queue_status_user_scoping.py
+++ b/tests/app/services/session_queue/test_session_queue_status_user_scoping.py
@@@ -133,35 -133,6 +133,61 @@@ def test_status_admin_caller_gets_user_
assert status.user_pending == 1 # the admin's single pending item
+def test_status_origin_scope_preserves_admin_subcounts_and_current_item_visibility(
+ session_queue: SqliteSessionQueue,
+) -> None:
+ """Origin scoping applies consistently to aggregate counts, personal counts, and the
+ current-item snapshot without hiding another owner's identifiers from an admin."""
+ admin_id = "admin-1"
+ scoped_item_id = _insert_queue_item(session_queue, user_id="user-b", origin="project-a:canvas")
+ _insert_queue_item(session_queue, user_id=admin_id, origin="project-a:workflows")
+ _insert_queue_item(session_queue, user_id="user-c", origin="project-b:canvas")
+
+ in_progress = session_queue.dequeue()
+ assert in_progress is not None and in_progress.item_id == scoped_item_id
+
+ status = session_queue.get_queue_status(
+ queue_id="default",
+ user_id=admin_id,
+ acting_user_id=admin_id,
+ origin_prefix="project-a:",
+ is_admin=True,
+ )
+
+ assert status.item_id == scoped_item_id
+ assert status.pending == 1
+ assert status.in_progress == 1
+ assert status.total == 2
+ assert status.user_pending == 1
+ assert status.user_in_progress == 0
+
+
++def test_status_origin_scope_excludes_out_of_scope_current_item(session_queue: SqliteSessionQueue) -> None:
++ """The current-item snapshot must honour origin_prefix, not just the aggregate counts.
++
++ get_queue_status reads the in-progress item with a lightweight 4-column query rather than
++ hydrating a full SessionQueueItem. That query carries its own copy of the origin filter, so
++ dropping the filter there would leak an out-of-scope item's identifiers while every
++ origin-scoped count still looked correct — which is why the positive-path test above cannot
++ catch it on its own.
++ """
++ out_of_scope_item_id = _insert_queue_item(session_queue, user_id="user-b", origin="project-b:canvas")
++ _insert_queue_item(session_queue, user_id="user-b", origin="project-a:canvas")
++
++ in_progress = session_queue.dequeue()
++ assert in_progress is not None and in_progress.item_id == out_of_scope_item_id
++
++ status = session_queue.get_queue_status(queue_id="default", origin_prefix="project-a:", is_admin=True)
++
++ assert status.item_id is None, "out-of-scope in-progress item leaked into an origin-scoped status"
++ assert status.session_id is None
++ assert status.batch_id is None
++ # The scoped counts still describe project-a only: its one pending item, and no in-progress.
++ assert status.pending == 1
++ assert status.in_progress == 0
++ assert status.total == 1
++
++
def test_get_queue_item_ids_returns_all_users_ids(session_queue: SqliteSessionQueue) -> None:
"""get_queue_item_ids returns ids for every user so the virtualized list can show the
(redacted) entries belonging to other users. Redaction happens at hydration time."""
diff --cc tests/app/services/test_image_move_startup_safety.py
index ef57cb0731,e6b1380e5e..90da744617
--- a/tests/app/services/test_image_move_startup_safety.py
+++ b/tests/app/services/test_image_move_startup_safety.py
@@@ -37,9 -37,12 +37,14 @@@ def _services(**overrides)
"style_preset_image_files": object(),
"workflow_thumbnails": object(),
"client_state_persistence": object(),
+ "project_records": object(),
"users": object(),
+ "wildcard_records": object(),
+ "videos": object(),
+ "video_files": object(),
+ "video_records": object(),
+ "board_video_records": object(),
+ "gallery": object(),
"image_moves": None,
}
services.update(overrides)
diff --cc tests/conftest.py
index 7022b129f2,d930a4de78..83b023b44a
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@@ -23,9 -25,8 +25,10 @@@ from invokeai.app.services.invocation_c
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.project_records.project_records_sqlite import ProjectRecordsSqlite
from invokeai.app.services.users.users_default import UserService
+ from invokeai.app.services.video_records.video_records_sqlite import SqliteVideoRecordStorage
+from invokeai.app.services.wildcard_records.wildcard_records_sqlite import SqliteWildcardRecordsStorage
from invokeai.app.services.workflow_records.workflow_records_sqlite import SqliteWorkflowRecordsStorage
from invokeai.backend.util.logging import InvokeAILogger
from tests.backend.model_manager.model_manager_fixtures import * # noqa: F403
@@@ -71,9 -72,14 +74,16 @@@ def mock_services() -> InvocationServic
model_relationship_records=None, # type: ignore
model_relationships=None, # type: ignore
client_state_persistence=ClientStatePersistenceSqlite(db=db),
+ project_records=ProjectRecordsSqlite(db=db),
users=UserService(db),
+ wildcard_records=SqliteWildcardRecordsStorage(db=db),
+ videos=None, # type: ignore
+ video_files=None, # type: ignore
+ video_records=SqliteVideoRecordStorage(db=db),
+ board_video_records=SqliteBoardVideoRecordStorage(db=db),
+ # Real SQLite-backed gallery service: the virtual-boards router reads dates and
+ # per-date item names through it, and MagicMock cannot exercise the filter SQL.
+ gallery=SqliteGalleryService(db=db),
)