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.

4.3 MB
Raw Blame
{
  "openapi": "3.1.0",
  "info": {
    "title": "Invoke - Community Edition",
    "description": "An API for invoking AI image operations",
    "version": "1.0.0"
  },
  "paths": {
    "/api/v1/auth/status": {
      "get": {
        "tags": ["authentication"],
        "summary": "Get Setup Status",
        "description": "Check if initial administrator setup is required.\n\nReturns:\n    SetupStatusResponse indicating whether setup is needed and multiuser mode status",
        "operationId": "get_setup_status_api_v1_auth_status_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupStatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/login": {
      "post": {
        "tags": ["authentication"],
        "summary": "Login",
        "description": "Authenticate user and return access token.\n\nArgs:\n    request: Login credentials (email and password)\n\nReturns:\n    LoginResponse containing JWT token and user information\n\nRaises:\n    HTTPException: 401 if credentials are invalid or user is inactive\n    HTTPException: 403 if multiuser mode is disabled",
        "operationId": "login_api_v1_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest",
                "description": "Login credentials"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "tags": ["authentication"],
        "summary": "Logout",
        "description": "Logout current user.\n\nCurrently a no-op since we use stateless JWT tokens. For token invalidation in\nfuture implementations, consider:\n- Token blacklist: Store invalidated tokens in Redis/database with expiration\n- Token versioning: Add version field to user record, increment on logout\n- Short-lived tokens: Use refresh token pattern with token rotation\n- Session storage: Track active sessions server-side for revocation\n\nArgs:\n    current_user: The authenticated user (validates token)\n\nReturns:\n    LogoutResponse indicating success",
        "operationId": "logout_api_v1_auth_logout_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogoutResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/media-cookie": {
      "post": {
        "tags": ["authentication"],
        "summary": "Refresh Media Cookie",
        "description": "Re-issue the media cookie from a valid Bearer token.\n\nThe media cookie is normally set at login, but a session can hold a valid JWT\nwithout it \u2014 the session may predate the cookie's introduction, or the cookie\nmay have been cleared while the JWT (in client storage) survived. Media\nelements can't send Authorization headers, so such sessions silently fail to\nload videos (black player) while every other API call works. The frontend\ncalls this on app load so an existing session self-heals without re-login.\n\nThe cookie's lifetime is clamped to the presented token's remaining validity \u2014\nit is the same JWT, so a longer-lived cookie would just yield 401s after\nexpiry anyway.\n\nReturns:\n    MediaCookieResponse indicating the cookie was set. In single-user mode the\n    media routes don't require authentication, so this is a successful no-op.\n\nRaises:\n    HTTPException: 401 if the Bearer token is missing, invalid, or expired, or\n    the user no longer exists or is inactive (raised by the auth dependency).",
        "operationId": "refresh_media_cookie_api_v1_auth_media_cookie_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaCookieResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/me": {
      "get": {
        "tags": ["authentication"],
        "summary": "Get Current User Info",
        "description": "Get current authenticated user's information.\n\nArgs:\n    current_user: The authenticated user's token data\n\nReturns:\n    UserDTO containing user information\n\nRaises:\n    HTTPException: 404 if user is not found (should not happen normally)",
        "operationId": "get_current_user_info_api_v1_auth_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "patch": {
        "tags": ["authentication"],
        "summary": "Update Current User",
        "description": "Update the current user's own profile.\n\nTo change the password, both ``current_password`` and ``new_password`` must\nbe provided. The current password is verified before the change is applied.\n\nA password change signs out the account's *other* sessions: it bumps the\nrevocation epoch, invalidating every previously issued token. This response\ncarries a replacement token in ``X-Refreshed-Token`` so the caller stays\nsigned in.\n\nArgs:\n    request: Profile fields to update\n    current_user: The authenticated user\n    http_request: The HTTP request, used to scope the replacement media cookie\n    response: The HTTP response, used to return the replacement token\n\nReturns:\n    The updated user\n\nRaises:\n    HTTPException: 400 if current password is incorrect or new password is weak\n    HTTPException: 404 if user not found",
        "operationId": "update_current_user_api_v1_auth_me_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserProfileUpdateRequest",
                "description": "Profile fields to update"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/setup": {
      "post": {
        "tags": ["authentication"],
        "summary": "Setup Admin",
        "description": "Set up initial administrator account.\n\nThis endpoint can only be called once, when no admin user exists. It creates\nthe first admin user for the system.\n\nArgs:\n    request: Admin account details (email, display_name, password)\n\nReturns:\n    SetupResponse containing the created admin user\n\nRaises:\n    HTTPException: 400 if admin already exists or password is weak\n    HTTPException: 403 if multiuser mode is disabled",
        "operationId": "setup_admin_api_v1_auth_setup_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetupRequest",
                "description": "Admin account details"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetupResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/generate-password": {
      "get": {
        "tags": ["authentication"],
        "summary": "Generate Password",
        "description": "Generate a strong random password.\n\nReturns a cryptographically secure random password of 16 characters\ncontaining uppercase, lowercase, digits, and punctuation.",
        "operationId": "generate_password_api_v1_auth_generate_password_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GeneratePasswordResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/users": {
      "get": {
        "tags": ["authentication"],
        "summary": "List Users",
        "description": "List all users. Requires admin privileges.\n\nThe internal 'system' user (created for backward compatibility) is excluded\nfrom the results since it cannot be managed through this interface.\n\nReturns:\n    List of all real users (system user excluded)",
        "operationId": "list_users_api_v1_auth_users_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UserDTO"
                  },
                  "type": "array",
                  "title": "Response List Users Api V1 Auth Users Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": ["authentication"],
        "summary": "Create User",
        "description": "Create a new user. Requires admin privileges.\n\nArgs:\n    request: New user details\n\nReturns:\n    The created user\n\nRaises:\n    HTTPException: 400 if email already exists or password is weak",
        "operationId": "create_user_api_v1_auth_users_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserCreateRequest",
                "description": "New user details"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/users/{user_id}": {
      "get": {
        "tags": ["authentication"],
        "summary": "Get User",
        "description": "Get a user by ID. Requires admin privileges.\n\nArgs:\n    user_id: The user ID\n\nReturns:\n    The user\n\nRaises:\n    HTTPException: 404 if user not found",
        "operationId": "get_user_api_v1_auth_users__user_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "User ID",
              "title": "User Id"
            },
            "description": "User ID"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["authentication"],
        "summary": "Update User",
        "description": "Update a user. Requires admin privileges.\n\nResetting a password revokes the target's existing sessions. An admin resetting\ntheir own password receives a replacement token in ``X-Refreshed-Token`` so they\nare not signed out by their own action.\n\nArgs:\n    user_id: The user ID\n    request: Fields to update\n\nReturns:\n    The updated user\n\nRaises:\n    HTTPException: 400 if password is weak, if the change would remove the last\n        administrator, or if it targets the protected system account\n    HTTPException: 404 if user not found",
        "operationId": "update_user_api_v1_auth_users__user_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "User ID",
              "title": "User Id"
            },
            "description": "User ID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminUserUpdateRequest",
                "description": "User fields to update"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["authentication"],
        "summary": "Delete User",
        "description": "Delete a user. Requires admin privileges.\n\nAdmins can delete any user including other admins, but cannot delete the last\nremaining admin, nor the internal system user.\n\nArgs:\n    user_id: The user ID\n\nRaises:\n    HTTPException: 400 if attempting to delete the last admin or the system user\n    HTTPException: 404 if user not found",
        "operationId": "delete_user_api_v1_auth_users__user_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "User ID",
              "title": "User Id"
            },
            "description": "User ID"
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/utilities/dynamicprompts": {
      "post": {
        "tags": ["utilities"],
        "summary": "Parse Dynamicprompts",
        "description": "Expands a prompt's dynamic syntax against the current user's wildcards.",
        "operationId": "parse_dynamicprompts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_parse_dynamicprompts"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DynamicPromptsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/utilities/fonts": {
      "get": {
        "tags": ["utilities"],
        "summary": "List User Fonts",
        "operationId": "list_user_fonts",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserFontsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/utilities/fonts/{font_path}": {
      "get": {
        "tags": ["utilities"],
        "summary": "Get User Font File",
        "operationId": "get_user_font_file",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "font_path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Font Path"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/utilities/expand-prompt": {
      "post": {
        "tags": ["utilities"],
        "summary": "Expand Prompt",
        "description": "Expand a brief prompt into a detailed image generation prompt using a text LLM.",
        "operationId": "expand_prompt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExpandPromptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExpandPromptResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/utilities/image-to-prompt": {
      "post": {
        "tags": ["utilities"],
        "summary": "Image To Prompt",
        "description": "Generate a descriptive prompt from an image using a vision-language model.",
        "operationId": "image_to_prompt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageToPromptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageToPromptResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/fonts": {
      "get": {
        "tags": ["fonts"],
        "summary": "List Fonts",
        "operationId": "list_fonts",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 0,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "title": "Search"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FontScope",
              "default": "all"
            }
          },
          {
            "name": "content_hash",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 64,
                  "maxLength": 64,
                  "pattern": "^[a-f0-9]{64}$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Content Hash"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FontListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": ["fonts"],
        "summary": "Upload Font",
        "operationId": "upload_font",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_font"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FontUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fonts/validate": {
      "post": {
        "tags": ["fonts"],
        "summary": "Validate Font",
        "operationId": "validate_font",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_validate_font"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FontValidationResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/fonts/rescan": {
      "post": {
        "tags": ["fonts"],
        "summary": "Rescan Fonts",
        "operationId": "rescan_fonts",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FontRescanResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/fonts/{font_id}/file": {
      "get": {
        "tags": ["fonts"],
        "summary": "Get Font File",
        "operationId": "get_font_file",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "font_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "title": "Font Id"
            }
          },
          {
            "name": "expected_hash",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 64,
                  "maxLength": 64,
                  "pattern": "^[a-f0-9]{64}$"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Expected Hash"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fonts/{font_id}": {
      "get": {
        "tags": ["fonts"],
        "summary": "Get Font",
        "operationId": "get_font",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "font_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "title": "Font Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FontDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["fonts"],
        "summary": "Delete Font",
        "operationId": "delete_font",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "font_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "title": "Font Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fonts/{font_id}/instance": {
      "post": {
        "tags": ["fonts"],
        "summary": "Create Font Instance",
        "operationId": "create_font_instance",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "font_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "title": "Font Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FontInstanceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/capabilities": {
      "get": {
        "tags": ["model_manager"],
        "summary": "List Architecture Capabilities",
        "description": "What each model architecture can generate, and which generation features it supports.\n\nA static table, the same for every install and every user, derived from what the architectures\ndeclare under `invokeai/backend/architectures/defs/`. Fetch it once and join it against model\nrecords locally: look up `(base, variant)`, fall back to `(base, null)`.\n\nDeliberately not a field on the model records themselves \u2014 it is the same for every model of an\narchitecture, and putting it there would add these fields to all 115 config schemas.\n\nAuthenticated like every other route here even though the response holds nothing user-specific:\nthe allowlist for public routes is short and deliberate, and this is not a reason to lengthen it.\n\nDeclared `def`, not `async def`: it awaits nothing, so FastAPI runs it in a threadpool instead of\non the event loop. See docs/contributing/blocking-work-in-api-routes.",
        "operationId": "list_architecture_capabilities",
        "responses": {
          "200": {
            "description": "What each model architecture supports",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ArchitectureCapabilities"
                  },
                  "type": "array",
                  "title": "Response List Architecture Capabilities"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/fp8_storage_support": {
      "get": {
        "tags": ["model_manager"],
        "summary": "List Fp8 Storage Support",
        "description": "Which kinds of model FP8 Storage actually reaches, so a client stops offering it for the rest.\n\nKeyed `(base, type, format)` -- the key model loaders are registered under, because the answer\ndiffers along all three: FLUX main implements the cast and FLUX ControlNet does not, and a GGUF\nmain model must never be re-encoded. A key with no row is not supported; that is also what the\nserver itself concludes for one.\n\nA static table, the same for every install and every user. Fetch it once and join it against model\nrecords locally. Whether the *device* can do fp8 is deliberately not in here -- that probe belongs\non the loading thread, not behind an HTTP handler.\n\nDeclared `def`, not `async def`: it awaits nothing, so FastAPI runs it in a threadpool instead of\non the event loop. See docs/contributing/blocking-work-in-api-routes.",
        "operationId": "list_fp8_storage_support",
        "responses": {
          "200": {
            "description": "Whether FP8 Storage does anything, per loader key",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Fp8StorageSupport"
                  },
                  "type": "array",
                  "title": "Response List Fp8 Storage Support"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/": {
      "get": {
        "tags": ["model_manager"],
        "summary": "List Model Records",
        "description": "Get a list of models.",
        "operationId": "list_model_records",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "base_models",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BaseModelType"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "Base models to include",
              "title": "Base Models"
            },
            "description": "Base models to include"
          },
          {
            "name": "model_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ModelType"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The type of model to get",
              "title": "Model Type"
            },
            "description": "The type of model to get"
          },
          {
            "name": "model_name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Exact match on the name of the model",
              "title": "Model Name"
            },
            "description": "Exact match on the name of the model"
          },
          {
            "name": "model_format",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ModelFormat"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Exact match on the format of the model (e.g. 'diffusers')",
              "title": "Model Format"
            },
            "description": "Exact match on the format of the model (e.g. 'diffusers')"
          },
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ModelRecordOrderBy",
              "description": "The field to order by",
              "default": "name"
            },
            "description": "The field to order by"
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The direction to order by",
              "default": "ASC"
            },
            "description": "The direction to order by"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelsList"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/missing": {
      "get": {
        "tags": ["model_manager"],
        "summary": "List Missing Models",
        "description": "Get models whose files are missing from disk.\n\nThese are models that have database entries but their corresponding\nweight files have been deleted externally (not via Model Manager).\n\nAvailable to any authenticated user, not just admins: the frontend's model hooks subtract this\nset from the model list so unusable models are kept out of the generation dropdowns.",
        "operationId": "list_missing_models",
        "responses": {
          "200": {
            "description": "List of models with missing files",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelsList"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/models_dir": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Models Dir",
        "description": "Get the absolute path of the directory managed models are stored in.\n\nModel config `path` values are relative to this directory unless they are\nabsolute (in-place installs from outside it).",
        "operationId": "get_models_dir",
        "responses": {
          "200": {
            "description": "The absolute path of the models directory",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "title": "Response Get Models Dir"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/get_by_attrs": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Model Records By Attrs",
        "description": "Gets a model by its attributes. The main use of this route is to provide backwards compatibility with the old\nmodel manager, which identified models by a combination of name, base and type.",
        "operationId": "get_model_records_by_attrs",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of the model",
              "title": "Name"
            },
            "description": "The name of the model"
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ModelType",
              "description": "The type of the model"
            },
            "description": "The type of the model"
          },
          {
            "name": "base",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/BaseModelType",
              "description": "The base model of the model"
            },
            "description": "The base model of the model"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_LTX2_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_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlNet_Checkpoint_Flux2_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_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Wan_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_SDNQ_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLVisionTower_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen35Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_SDNQ_Folder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_Gemma2Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_Gemma4Encoder_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_WanT5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_GGUF_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/IPAdapter_Checkpoint_Anima_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/CLIPEmbed_Checkpoint_G_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPEmbed_Checkpoint_L_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LTX2DurationHead_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ExternalApiModelConfig"
                    },
                    {
                      "$ref": "#/components/schemas/Unknown_Config"
                    }
                  ],
                  "title": "Response Get Model Records By Attrs"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/get_by_hash": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Model Records By Hash",
        "description": "Gets a model by its hash. This is useful for recalling models that were deleted and reinstalled,\nas the hash remains stable across reinstallations while the key (UUID) changes.",
        "operationId": "get_model_records_by_hash",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The hash of the model",
              "title": "Hash"
            },
            "description": "The hash of the model"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_LTX2_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_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlNet_Checkpoint_Flux2_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_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Wan_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_SDNQ_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLVisionTower_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen35Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_SDNQ_Folder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_Gemma2Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_Gemma4Encoder_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_WanT5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_GGUF_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/IPAdapter_Checkpoint_Anima_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/CLIPEmbed_Checkpoint_G_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPEmbed_Checkpoint_L_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LTX2DurationHead_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ExternalApiModelConfig"
                    },
                    {
                      "$ref": "#/components/schemas/Unknown_Config"
                    }
                  ],
                  "title": "Response Get Model Records By Hash"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/i/{key}": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Model Record",
        "description": "Get a model record",
        "operationId": "get_model_record",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Key of the model record to fetch.",
              "title": "Key"
            },
            "description": "Key of the model record to fetch."
          }
        ],
        "responses": {
          "200": {
            "description": "The model configuration was retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_LTX2_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_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlNet_Checkpoint_Flux2_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_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Wan_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_SDNQ_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLVisionTower_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen35Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_SDNQ_Folder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_Gemma2Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_Gemma4Encoder_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_WanT5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_GGUF_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/IPAdapter_Checkpoint_Anima_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/CLIPEmbed_Checkpoint_G_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPEmbed_Checkpoint_L_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LTX2DurationHead_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ExternalApiModelConfig"
                    },
                    {
                      "$ref": "#/components/schemas/Unknown_Config"
                    }
                  ],
                  "title": "Response Get Model Record"
                },
                "example": {
                  "path": "string",
                  "name": "string",
                  "base": "sd-1",
                  "type": "main",
                  "format": "checkpoint",
                  "config_path": "string",
                  "key": "string",
                  "hash": "string",
                  "file_size": 1,
                  "description": "string",
                  "source": "string",
                  "converted_at": 0,
                  "variant": "normal",
                  "prediction_type": "epsilon",
                  "repo_variant": "fp16"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "The model could not be found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["model_manager"],
        "summary": "Update Model Record",
        "description": "Update a model's config.",
        "operationId": "update_model_record",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unique key of model",
              "title": "Key"
            },
            "description": "Unique key of model"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelRecordChanges",
                "description": "Model config",
                "examples": [
                  {
                    "path": "/path/to/model",
                    "name": "model_name",
                    "base": "sd-1",
                    "type": "main",
                    "format": "checkpoint",
                    "config_path": "configs/stable-diffusion/v1-inference.yaml",
                    "description": "Model description",
                    "variant": "normal"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The model was updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_LTX2_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_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlNet_Checkpoint_Flux2_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_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Wan_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_SDNQ_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLVisionTower_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen35Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_SDNQ_Folder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_Gemma2Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_Gemma4Encoder_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_WanT5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_GGUF_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/IPAdapter_Checkpoint_Anima_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/CLIPEmbed_Checkpoint_G_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPEmbed_Checkpoint_L_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LTX2DurationHead_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ExternalApiModelConfig"
                    },
                    {
                      "$ref": "#/components/schemas/Unknown_Config"
                    }
                  ],
                  "title": "Response Update Model Record"
                },
                "example": {
                  "path": "string",
                  "name": "string",
                  "base": "sd-1",
                  "type": "main",
                  "format": "checkpoint",
                  "config_path": "string",
                  "key": "string",
                  "hash": "string",
                  "file_size": 1,
                  "description": "string",
                  "source": "string",
                  "converted_at": 0,
                  "variant": "normal",
                  "prediction_type": "epsilon",
                  "repo_variant": "fp16"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "The model could not be found"
          },
          "409": {
            "description": "The change cannot be applied to this model"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["model_manager"],
        "summary": "Delete Model",
        "description": "Delete model record from database.\n\nThe configuration record will be removed. The corresponding weights files will be\ndeleted as well if they reside within the InvokeAI \"models\" directory.",
        "operationId": "delete_model",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unique key of model to remove from model registry.",
              "title": "Key"
            },
            "description": "Unique key of model to remove from model registry."
          }
        ],
        "responses": {
          "204": {
            "description": "Model deleted successfully"
          },
          "404": {
            "description": "Model not found"
          },
          "409": {
            "description": "Another operation on this model is already in progress"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/i/{key}/reidentify": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Reidentify Model",
        "description": "Attempt to reidentify a model by re-probing its weights file.",
        "operationId": "reidentify_model",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Key of the model to reidentify.",
              "title": "Key"
            },
            "description": "Key of the model to reidentify."
          }
        ],
        "responses": {
          "200": {
            "description": "The model configuration was retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_LTX2_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_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlNet_Checkpoint_Flux2_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_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Wan_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_SDNQ_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLVisionTower_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen35Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_SDNQ_Folder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_Gemma2Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_Gemma4Encoder_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_WanT5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_GGUF_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/IPAdapter_Checkpoint_Anima_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/CLIPEmbed_Checkpoint_G_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPEmbed_Checkpoint_L_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LTX2DurationHead_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ExternalApiModelConfig"
                    },
                    {
                      "$ref": "#/components/schemas/Unknown_Config"
                    }
                  ],
                  "title": "Response Reidentify Model"
                },
                "example": {
                  "path": "string",
                  "name": "string",
                  "base": "sd-1",
                  "type": "main",
                  "format": "checkpoint",
                  "config_path": "string",
                  "key": "string",
                  "hash": "string",
                  "file_size": 1,
                  "description": "string",
                  "source": "string",
                  "converted_at": 0,
                  "variant": "normal",
                  "prediction_type": "epsilon",
                  "repo_variant": "fp16"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "The model could not be found"
          },
          "409": {
            "description": "Another operation on this model is already in progress"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/scan_folder": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Scan For Models",
        "operationId": "scan_for_models",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "scan_path",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Directory path to search for models",
              "title": "Scan Path"
            },
            "description": "Directory path to search for models"
          }
        ],
        "responses": {
          "200": {
            "description": "Directory scanned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FoundModel"
                  },
                  "title": "Response Scan For Models"
                }
              }
            }
          },
          "400": {
            "description": "Invalid directory path"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/hugging_face": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Hugging Face Models",
        "operationId": "get_hugging_face_models",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "hugging_face_repo",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Hugging face repo to search for models",
              "title": "Hugging Face Repo"
            },
            "description": "Hugging face repo to search for models"
          }
        ],
        "responses": {
          "200": {
            "description": "Hugging Face repo scanned successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HuggingFaceModels"
                }
              }
            }
          },
          "400": {
            "description": "Invalid hugging face repo"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/i/{key}/image": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Model Image",
        "description": "Gets an image file that previews the model",
        "operationId": "get_model_image",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of model image file to get",
              "title": "Key"
            },
            "description": "The name of model image file to get"
          }
        ],
        "responses": {
          "200": {
            "description": "The model image was fetched successfully",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "The model image could not be found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["model_manager"],
        "summary": "Update Model Image",
        "operationId": "update_model_image",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unique key of model",
              "title": "Key"
            },
            "description": "Unique key of model"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_update_model_image"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The model image was updated successfully",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "The model could not be found"
          },
          "409": {
            "description": "Another operation on this model is already in progress"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["model_manager"],
        "summary": "Delete Model Image",
        "operationId": "delete_model_image",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unique key of model image to remove from model_images directory.",
              "title": "Key"
            },
            "description": "Unique key of model image to remove from model_images directory."
          }
        ],
        "responses": {
          "204": {
            "description": "Model image deleted successfully"
          },
          "404": {
            "description": "Model image not found"
          },
          "409": {
            "description": "Another operation on this model is already in progress"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/i/bulk_delete": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Bulk Delete Models",
        "description": "Delete multiple model records from database.\n\nThe configuration records will be removed. The corresponding weights files will be\ndeleted as well if they reside within the InvokeAI \"models\" directory.\nReturns a list of successfully deleted keys and failed deletions with error messages.",
        "operationId": "bulk_delete_models",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkDeleteModelsRequest",
                "description": "List of model keys to delete"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Models deleted (possibly with some failures)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDeleteModelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/i/bulk_reidentify": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Bulk Reidentify Models",
        "description": "Reidentify multiple models by re-probing their weights files.\n\nReturns a list of successfully reidentified keys and failed reidentifications with error messages.",
        "operationId": "bulk_reidentify_models",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkReidentifyModelsRequest",
                "description": "List of model keys to reidentify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Models reidentified (possibly with some failures)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkReidentifyModelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/install": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Install Model",
        "description": "Install a model using a string identifier.\n\n`source` can be any of the following.\n\n1. A path on the local filesystem ('C:\\users\\fred\\model.safetensors')\n2. A Url pointing to a single downloadable model file\n3. A HuggingFace repo_id with any of the following formats:\n   - model/name\n   - model/name:fp16:vae\n   - model/name::vae          -- use default precision\n   - model/name:fp16:path/to/model.safetensors\n   - model/name::path/to/model.safetensors\n\n`config` is a ModelRecordChanges object. Fields in this object will override\nthe ones that are probed automatically. Pass an empty object to accept\nall the defaults.\n\n`access_token` is an optional access token for use with Urls that require\nauthentication.\n\nModels will be downloaded, probed, configured and installed in a\nseries of background threads. The return object has `status` attribute\nthat can be used to monitor progress.\n\nSee the documentation for `import_model_record` for more information on\ninterpreting the job information returned by this route.",
        "operationId": "install_model",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Model source to install, can be a local path, repo_id, or remote URL",
              "title": "Source"
            },
            "description": "Model source to install, can be a local path, repo_id, or remote URL"
          },
          {
            "name": "inplace",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether or not to install a local model in place",
              "default": false,
              "title": "Inplace"
            },
            "description": "Whether or not to install a local model in place"
          },
          {
            "name": "access_token",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "access token for the remote resource",
              "title": "Access Token"
            },
            "description": "access token for the remote resource"
          },
          {
            "name": "X-Model-Source-Access-Token",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "access token for the remote resource",
              "title": "X-Model-Source-Access-Token"
            },
            "description": "access token for the remote resource"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelRecordChanges",
                "description": "Object containing fields that override auto-probed values in the model config record, such as name, description and prediction_type ",
                "examples": [
                  {
                    "name": "string",
                    "description": "string"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The model imported successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelInstallJob"
                }
              }
            }
          },
          "415": {
            "description": "Unrecognized file/folder format"
          },
          "424": {
            "description": "The model appeared to import successfully, but could not be found in the model manager"
          },
          "409": {
            "description": "There is already a model corresponding to this path or repo_id"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["model_manager"],
        "summary": "List Model Installs",
        "description": "Return the list of model install jobs.\n\nInstall jobs have a numeric `id`, a `status`, and other fields that provide information on\nthe nature of the job and its progress. The `status` is one of:\n\n* \"waiting\" -- Job is waiting in the queue to run\n* \"downloading\" -- Model file(s) are downloading\n* \"running\" -- Model has downloaded and the model probing and registration process is running\n* \"paused\" -- Job is paused and can be resumed\n* \"completed\" -- Installation completed successfully\n* \"error\" -- An error occurred. Details will be in the \"error_type\" and \"error\" fields.\n* \"cancelled\" -- Job was cancelled before completion.\n\nOnce completed, information about the model such as its size, base\nmodel and type can be retrieved from the `config_out` field. For multi-file models such as diffusers,\ninformation on individual files can be retrieved from `download_parts`.\n\nSee the example and schema below for more information.",
        "operationId": "list_model_installs",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModelInstallJob"
                  },
                  "title": "Response List Model Installs"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["model_manager"],
        "summary": "Prune Model Install Jobs",
        "description": "Prune all completed and errored jobs from the install job list.",
        "operationId": "prune_model_install_jobs",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "IDs of completed and errored jobs that were pruned",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  },
                  "title": "Response Prune Model Install Jobs"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          }
        }
      }
    },
    "/api/v2/models/install/huggingface": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Install Hugging Face Model",
        "description": "Install a Hugging Face model using a string identifier.",
        "operationId": "install_hugging_face_model",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "HuggingFace repo_id to install",
              "title": "Source"
            },
            "description": "HuggingFace repo_id to install"
          }
        ],
        "responses": {
          "201": {
            "description": "The model is being installed",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "409": {
            "description": "There is already a model corresponding to this path or repo_id"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/install/{id}": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Model Install Job",
        "description": "Return model install job corresponding to the given source. See the documentation for 'List Model Install Jobs'\nfor information on the format of the return value.",
        "operationId": "get_model_install_job",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Model install id",
              "title": "Id"
            },
            "description": "Model install id"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelInstallJob"
                }
              }
            }
          },
          "404": {
            "description": "No such job"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["model_manager"],
        "summary": "Cancel Model Install Job",
        "description": "Cancel the model install job(s) corresponding to the given job ID.",
        "operationId": "cancel_model_install_job",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Model install job ID",
              "title": "Id"
            },
            "description": "Model install job ID"
          }
        ],
        "responses": {
          "201": {
            "description": "The job was cancelled successfully",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "415": {
            "description": "No such job"
          },
          "409": {
            "description": "The job cannot be cancelled safely in its current state"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/install/{id}/pause": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Pause Model Install Job",
        "description": "Pause the model install job corresponding to the given job ID.",
        "operationId": "pause_model_install_job",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Model install job ID",
              "title": "Id"
            },
            "description": "Model install job ID"
          }
        ],
        "responses": {
          "201": {
            "description": "The job was paused successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelInstallJob"
                }
              }
            }
          },
          "409": {
            "description": "The job cannot be paused in its current state"
          },
          "415": {
            "description": "No such job"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/install/{id}/resume": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Resume Model Install Job",
        "description": "Resume a paused model install job corresponding to the given job ID.",
        "operationId": "resume_model_install_job",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Model install job ID",
              "title": "Id"
            },
            "description": "Model install job ID"
          }
        ],
        "responses": {
          "201": {
            "description": "The job was resumed successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelInstallJob"
                }
              }
            }
          },
          "409": {
            "description": "A previous download still owns the staging directory"
          },
          "415": {
            "description": "No such job"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/install/{id}/restart_failed": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Restart Failed Model Install Job",
        "description": "Restart failed or non-resumable file downloads for the given job.",
        "operationId": "restart_failed_model_install_job",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Model install job ID",
              "title": "Id"
            },
            "description": "Model install job ID"
          }
        ],
        "responses": {
          "201": {
            "description": "Failed files restarted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelInstallJob"
                }
              }
            }
          },
          "409": {
            "description": "A prior download is active or recovery data must be preserved"
          },
          "415": {
            "description": "No such job"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/install/{id}/restart_file": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Restart Model Install File",
        "description": "Restart a specific file download for the given job.",
        "operationId": "restart_model_install_file",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Model install job ID",
              "title": "Id"
            },
            "description": "Model install job ID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "string",
                "format": "uri",
                "minLength": 1,
                "description": "File download URL to restart",
                "title": "File Source"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "File restarted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelInstallJob"
                }
              }
            }
          },
          "409": {
            "description": "A prior download is active or recovery data must be preserved"
          },
          "415": {
            "description": "No such job"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/convert/{key}": {
      "put": {
        "tags": ["model_manager"],
        "summary": "Convert Model",
        "description": "Permanently convert a model into diffusers format, replacing the safetensors version.\nNote that during the conversion process the key and model hash will change.\nThe return value is the model configuration for the converted model.",
        "operationId": "convert_model",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Unique key of the safetensors main model to convert to diffusers format.",
              "title": "Key"
            },
            "description": "Unique key of the safetensors main model to convert to diffusers format."
          }
        ],
        "responses": {
          "200": {
            "description": "Model converted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Diffusers_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_Checkpoint_MossImage_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_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_GGUF_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Main_SDNQ_Diffusers_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/VAE_Diffusers_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Wan_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_LTX2_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_Checkpoint_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlNet_Checkpoint_Flux2_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_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage21_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_ErnieImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_LyCORIS_Wan_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_SD3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Flux3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_MossImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_Ideogram4_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ControlLoRA_LyCORIS_Krea2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_SDNQ_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/T5Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3VLVisionTower_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen35Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Qwen3Encoder_SDNQ_Folder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/MistralEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_Gemma2Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_Gemma4Encoder_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma4Encoder_GGUF_LTX2_Config"
                    },
                    {
                      "$ref": "#/components/schemas/Gemma2Encoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/QwenVLEncoder_GGUF_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_WanT5Encoder_Config"
                    },
                    {
                      "$ref": "#/components/schemas/WanT5Encoder_GGUF_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/IPAdapter_Checkpoint_Anima_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/CLIPEmbed_Checkpoint_G_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPEmbed_Checkpoint_L_Config"
                    },
                    {
                      "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LTX2DurationHead_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
                    },
                    {
                      "$ref": "#/components/schemas/TextLLM_Checkpoint_Config"
                    },
                    {
                      "$ref": "#/components/schemas/ExternalApiModelConfig"
                    },
                    {
                      "$ref": "#/components/schemas/Unknown_Config"
                    }
                  ],
                  "title": "Response Convert Model"
                },
                "example": {
                  "path": "string",
                  "name": "string",
                  "base": "sd-1",
                  "type": "main",
                  "format": "checkpoint",
                  "config_path": "string",
                  "key": "string",
                  "hash": "string",
                  "file_size": 1,
                  "description": "string",
                  "source": "string",
                  "converted_at": 0,
                  "variant": "normal",
                  "prediction_type": "epsilon",
                  "repo_variant": "fp16"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "Model not found"
          },
          "409": {
            "description": "There is already a model registered at this location"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/starter_models": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Starter Models",
        "operationId": "get_starter_models",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StarterModelResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/stats": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get model manager RAM cache performance statistics.",
        "description": "Return performance statistics on the model manager's RAM cache. In multi-GPU mode there is\none cache per generation device; their statistics are aggregated. Will return null if no models\nhave been loaded.",
        "operationId": "get_stats",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CacheStats"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Get Stats"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/empty_model_cache": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Empty Model Cache",
        "description": "Drop all models from the model cache to free RAM/VRAM. 'Locked' models that are in active use will not be dropped.",
        "operationId": "empty_model_cache",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyModelCacheResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/hf_login": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Hf Login Status",
        "operationId": "get_hf_login_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HFTokenStatus"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": ["model_manager"],
        "summary": "Do Hf Login",
        "operationId": "do_hf_login",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_do_hf_login"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HFTokenStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": ["model_manager"],
        "summary": "Reset Hf Token",
        "operationId": "reset_hf_token",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HFTokenStatus"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/sync/orphaned": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Orphaned Models",
        "description": "Find orphaned model directories.\n\nOrphaned models are directories in the models folder that contain model files\nbut are not referenced in the database. This can happen when models are deleted\nfrom the database but the files remain on disk.\n\nReturns:\n    List of orphaned model directory information",
        "operationId": "get_orphaned_models",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrphanedModelInfo"
                  },
                  "type": "array",
                  "title": "Response Get Orphaned Models"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": ["model_manager"],
        "summary": "Delete Orphaned Models",
        "description": "Delete specified orphaned model directories.\n\nArgs:\n    request: Request containing list of relative paths to delete\n\nReturns:\n    Response indicating which paths were deleted and which had errors",
        "operationId": "delete_orphaned_models",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteOrphanedModelsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteOrphanedModelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/i/{key}/working_memory/calibrate": {
      "post": {
        "tags": ["model_manager"],
        "summary": "Calibrate Model Working Memory",
        "description": "Start a working-memory calibration run: enqueue the batch with every node uncached, its images intermediates\non no board (never in the gallery; clearing intermediates removes them), and measure each node's model operations\non the generation device. Needs exactly one generation device, and it must be a GPU. The queue\ntakes all of the batch's items or none.\n\nOnce the items are queued, a request without an `idempotency_key` succeeds even when the store fails for a passing\nreason (an unwritable root, a lock timeout) to record them: they run all the same, and the status finds them by\ntheir origin. With a key, that failure is a 503 although the items are queued. A run removed meanwhile (404) or an\nunusable store file (409) fails the request with or without a key; its queued items then fail when they start.\n\nWith a key, repeating the request (also after a lost response) records the queued items and returns the run; it\nenqueues nothing new. The items come from the queue's enqueue receipt for the key while it exists, otherwise from\nthe queue items that carry the run's origin and those the runner saw. Once a reset removed the run, a repeat is\nrefused (404). Acknowledge the key through the queue's enqueue_batch/acknowledge route once the response\narrived.",
        "operationId": "calibrate_model_working_memory",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Key of the model the run calibrates",
              "title": "Key"
            },
            "description": "Key of the model the run calibrates"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkingMemoryCalibrationRequest",
                "description": "The batch to measure"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingMemoryCalibrationRunCreated"
                }
              }
            }
          },
          "404": {
            "description": "The model could not be found; the run was removed while it was being created, whose items are queued then and fail when they start; or a reset removed the run the idempotency key started"
          },
          "409": {
            "description": "This machine cannot calibrate now (no GPU, or several generation devices), the device class's store file is unusable and kept as it is (possibly after the items were queued, which then fail when they start), the queue has no room for all of the run's items (it then takes none), the idempotency key was used for another request, or attempt_steps differs from that of the attempt's runs already stored (or of the run a repeated request names). Three of them carry a code, as `{\"code\": ..., \"message\": ...}` in `detail`: `calibration_running`, another calibration attempt still runs on this GPU, or another owner's attempt is between its steps and was active in the last two minutes (an owner's new attempt replaces its own attempt that stopped between steps); `calibration_interleaved`, a later step of an attempt after another calibration ran on this GPU since the attempt began; `model_changed`, a model the graph names changed or was removed since the graph was compiled (its record differs from the graph's identifier or its graph_models entry), or since an earlier step of the attempt"
          },
          "422": {
            "description": "The graph cannot be measured as a calibration run, graph_models does not state exactly the graph's models, or attempt_id and attempt_steps were not sent together"
          },
          "429": {
            "description": "Too many unacknowledged idempotency keys; acknowledge or wait, then retry"
          },
          "503": {
            "description": "The calibration store cannot be read or written (unwritable root, lock timeout); with an idempotency key, possibly after the items were queued"
          }
        }
      }
    },
    "/api/v2/models/working_memory/status": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Working Memory Calibration Status",
        "description": "Every device class's calibration runs, with their derived status, point counts and environments.",
        "operationId": "get_working_memory_calibration_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingMemoryCalibrationStatus"
                }
              }
            }
          },
          "503": {
            "description": "The calibration store cannot be read or written (unwritable root, lock timeout)"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v2/models/i/{key}/working_memory/plan": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Model Working Memory Calibration Plan",
        "description": "The text-to-image cases that calibrate the model's decode on this machine's GPU, how often each runs, which\nother installed models the calibration also moves, or why the model cannot be calibrated here (`supported`).",
        "operationId": "get_model_working_memory_calibration_plan",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Key of the model to calibrate",
              "title": "Key"
            },
            "description": "Key of the model to calibrate"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingMemoryCalibrationPlan"
                }
              }
            }
          },
          "404": {
            "description": "The model could not be found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/i/{key}/working_memory/summary": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Get Model Working Memory Calibration Summary",
        "description": "What the calibration windows of the model's lines measured on one device class, per estimator line and\nenvironment: the sizes, the largest demand, the shipped and the user estimate, whether the user line is in use,\nstale or unusable, and which models measured it, also for a line the model's decode shares with other models'\nmeasurements; and the model's runs.",
        "operationId": "get_model_working_memory_calibration_summary",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Key of the model whose measurements to summarise",
              "title": "Key"
            },
            "description": "Key of the model whose measurements to summarise"
          },
          {
            "name": "device_class_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{16}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The device class to act on; the current generation device's by default",
              "title": "Device Class Id"
            },
            "description": "The device class to act on; the current generation device's by default"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingMemoryCalibrationModelSummary"
                }
              }
            }
          },
          "404": {
            "description": "The model could not be found"
          },
          "409": {
            "description": "No device_class_id was given and there is no current one"
          },
          "503": {
            "description": "The calibration store cannot be read or written (unwritable root, lock timeout)"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/working_memory/runs/{run_id}": {
      "delete": {
        "tags": ["model_manager"],
        "summary": "Delete Working Memory Calibration Run",
        "description": "Remove a calibration run and its measurements. Its queue items that have not run yet fail when they start.\n\nA removed run of an attempt still counts toward the attempt's runs (`attempt_steps`), so the rest of a finished\nattempt is judged as before. Removing a run while its attempt runs, or after it was stopped (a canceled item),\nstops the attempt for good: none of its measurements count.",
        "operationId": "delete_working_memory_calibration_run",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "run_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The calibration run to remove",
              "title": "Run Id"
            },
            "description": "The calibration run to remove"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingMemoryCalibrationResetResult"
                }
              }
            }
          },
          "404": {
            "description": "No usable store file holds the run"
          },
          "409": {
            "description": "The run's store file became unusable after the run was found; it is kept as it is"
          },
          "503": {
            "description": "The calibration store cannot be read or written (unwritable root, lock timeout)"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/i/{key}/working_memory": {
      "delete": {
        "tags": ["model_manager"],
        "summary": "Reset Model Working Memory Calibration",
        "description": "Remove a model's calibration runs with all their measurements, and every measurement of the model taken in\nother runs (a VAE measured inside a transformer's run, say), from one device class. Removed runs of an attempt\nstill count toward its runs; an attempt that was running is stopped for good, its later steps included.",
        "operationId": "reset_model_working_memory_calibration",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Key of the model whose runs and measurements to remove",
              "title": "Key"
            },
            "description": "Key of the model whose runs and measurements to remove"
          },
          {
            "name": "device_class_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{16}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The device class to act on; the current generation device's by default",
              "title": "Device Class Id"
            },
            "description": "The device class to act on; the current generation device's by default"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingMemoryCalibrationResetResult"
                }
              }
            }
          },
          "409": {
            "description": "No device_class_id was given and there is no current one (no GPU, or several generation devices), or the device class's store file is unusable and kept as it is"
          },
          "503": {
            "description": "The calibration store cannot be read or written (unwritable root, lock timeout)"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/working_memory": {
      "delete": {
        "tags": ["model_manager"],
        "summary": "Reset Working Memory Calibration",
        "description": "Remove every calibration run and measurement of one device class. An attempt that was running is stopped\nfor good: its later steps never count either.",
        "operationId": "reset_working_memory_calibration",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_class_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{16}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The device class to act on; the current generation device's by default",
              "title": "Device Class Id"
            },
            "description": "The device class to act on; the current generation device's by default"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkingMemoryCalibrationResetResult"
                }
              }
            }
          },
          "409": {
            "description": "No device_class_id was given and there is no current one (no GPU, or several generation devices), or the device class's store file is unusable and kept as it is"
          },
          "503": {
            "description": "The calibration store cannot be read or written (unwritable root, lock timeout)"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/models/working_memory/export": {
      "get": {
        "tags": ["model_manager"],
        "summary": "Export Working Memory Calibration",
        "description": "The device class's calibration store file as it is on disk, readable by this version or not.",
        "operationId": "export_working_memory_calibration",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "device_class_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[0-9a-f]{16}$"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The device class to act on; the current generation device's by default",
              "title": "Device Class Id"
            },
            "description": "The device class to act on; the current generation device's by default"
          }
        ],
        "responses": {
          "200": {
            "description": "The device class's store file byte for byte: a CalibrationStoreFile (schema_version 1) when this version can read it, otherwise whatever the file holds",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "The device class has no store file"
          },
          "409": {
            "description": "No device_class_id was given and there is no current one"
          },
          "503": {
            "description": "The calibration store cannot be read or written (unwritable root, lock timeout)"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/files/upload": {
      "post": {
        "tags": ["files"],
        "summary": "Upload File",
        "description": "Uploads a managed file for node inputs.",
        "operationId": "upload_file",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_file"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The file was uploaded successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDTO"
                }
              }
            }
          },
          "413": {
            "description": "The file is too large or managed file storage is full"
          },
          "415": {
            "description": "The file type is not supported"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/files/i/{file_id}": {
      "get": {
        "tags": ["files"],
        "summary": "Get File Dto",
        "description": "Gets metadata for a managed file.",
        "operationId": "get_file_dto",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The managed file ID.",
              "title": "File Id"
            },
            "description": "The managed file ID."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["files"],
        "summary": "Delete File",
        "description": "Deletes a managed file.",
        "operationId": "delete_file",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "file_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The managed file ID.",
              "title": "File Id"
            },
            "description": "The managed file ID."
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/image_moves/start": {
      "post": {
        "tags": ["image_moves"],
        "summary": "Start Image Move",
        "operationId": "start_image_move",
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMoveStatusResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/image_moves/recover": {
      "post": {
        "tags": ["image_moves"],
        "summary": "Start Image Move Recovery",
        "operationId": "start_image_move_recovery",
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMoveStatusResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/image_moves/status": {
      "get": {
        "tags": ["image_moves"],
        "summary": "Get Image Move Status",
        "operationId": "get_image_move_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMoveStatusResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/upload": {
      "post": {
        "tags": ["images"],
        "summary": "Upload Image",
        "description": "Uploads an image for the current user",
        "operationId": "upload_image",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_category",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ImageCategory",
              "description": "The category of the image"
            },
            "description": "The category of the image"
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Whether this is an intermediate image",
              "title": "Is Intermediate"
            },
            "description": "Whether this is an intermediate image"
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board to add this image to, if any",
              "title": "Board Id"
            },
            "description": "The board to add this image to, if any"
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The session ID associated with this upload, if any",
              "title": "Session Id"
            },
            "description": "The session ID associated with this upload, if any"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                {
                  "type": "null"
                }
              ],
              "description": "The caller's project this upload originates in, if any; recorded for intermediates cleanup",
              "title": "Project Id"
            },
            "description": "The caller's project this upload originates in, if any; recorded for intermediates cleanup"
          },
          {
            "name": "crop_visible",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to crop the image",
              "default": false,
              "title": "Crop Visible"
            },
            "description": "Whether to crop the image"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_image"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The image was uploaded successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageDTO"
                }
              }
            }
          },
          "415": {
            "description": "Image upload failed"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/": {
      "post": {
        "tags": ["images"],
        "summary": "Create Image Upload Entry",
        "description": "Uploads an image from a URL, not implemented",
        "operationId": "create_image_upload_entry",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_create_image_upload_entry"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageUploadEntry"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["images"],
        "summary": "List Image Dtos",
        "description": "Gets a list of image DTOs for the current user",
        "operationId": "list_image_dtos",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of images to list.",
              "title": "Image Origin"
            },
            "description": "The origin of images to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of image to include.",
              "title": "Categories"
            },
            "description": "The categories of image to include."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate images.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate images."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "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.",
              "title": "Board Id"
            },
            "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."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "The page offset",
              "default": 0,
              "title": "Offset"
            },
            "description": "The page offset"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 0,
              "description": "The number of images per page",
              "default": 10,
              "title": "Limit"
            },
            "description": "The number of images per page"
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort by starred images first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort by starred images first"
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          },
          {
            "name": "created_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created From"
            },
            "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at."
          },
          {
            "name": "created_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created To"
            },
            "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OffsetPaginatedResults_ImageDTO_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/i/{image_name}": {
      "delete": {
        "tags": ["images"],
        "summary": "Delete Image",
        "description": "Deletes an image",
        "operationId": "delete_image",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of the image to delete",
              "title": "Image Name"
            },
            "description": "The name of the image to delete"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteImagesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["images"],
        "summary": "Update Image",
        "description": "Updates an image",
        "operationId": "update_image",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of the image to update",
              "title": "Image Name"
            },
            "description": "The name of the image to update"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageRecordChanges",
                "description": "The changes to apply to the image"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["images"],
        "summary": "Get Image Dto",
        "description": "Gets an image's DTO",
        "operationId": "get_image_dto",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of image to get",
              "title": "Image Name"
            },
            "description": "The name of image to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/intermediates": {
      "get": {
        "tags": ["images"],
        "summary": "Get Intermediates Count",
        "description": "Counts the intermediate images a clear would delete. Non-admin users only see their own intermediates.\n\nActive, recent and referenced images are left out, as `DELETE /intermediates` keeps them.",
        "operationId": "get_intermediates_count",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "title": "Response Get Intermediates Count"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": ["images"],
        "summary": "Clear Intermediates",
        "description": "Clears every safe intermediate image, instance-wide. Requires admin.\n\nRuns under the same policy as the intermediates manager: images that active work, a saved\ndocument or the recency window protect are kept. Videos are not touched; use the manager.",
        "operationId": "clear_intermediates",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "title": "Response Clear Intermediates"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/i/{image_name}/metadata": {
      "get": {
        "tags": ["images"],
        "summary": "Get Image Metadata",
        "description": "Gets an image's metadata",
        "operationId": "get_image_metadata",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of image to get",
              "title": "Image Name"
            },
            "description": "The name of image to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/MetadataField"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Get Image Metadata"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/i/{image_name}/workflow": {
      "get": {
        "tags": ["images"],
        "summary": "Get Image Workflow",
        "operationId": "get_image_workflow",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of image whose workflow to get",
              "title": "Image Name"
            },
            "description": "The name of image whose workflow to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowAndGraphResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/i/{image_name}/full": {
      "head": {
        "tags": ["images"],
        "summary": "Get Image Full",
        "description": "Gets a full-resolution image file.\n\nBrowser media requests authenticate with the path-scoped HttpOnly cookie set at login.\nReturns 409 while image storage maintenance is active.",
        "operationId": "get_image_full_head",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of full-resolution image file to get",
              "title": "Image Name"
            },
            "description": "The name of full-resolution image file to get"
          },
          {
            "name": "invokeai_media_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invokeai Media Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return the full-resolution image",
            "content": {
              "image/png": {}
            }
          },
          "404": {
            "description": "Image not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["images"],
        "summary": "Get Image Full",
        "description": "Gets a full-resolution image file.\n\nBrowser media requests authenticate with the path-scoped HttpOnly cookie set at login.\nReturns 409 while image storage maintenance is active.",
        "operationId": "get_image_full",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of full-resolution image file to get",
              "title": "Image Name"
            },
            "description": "The name of full-resolution image file to get"
          },
          {
            "name": "invokeai_media_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invokeai Media Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return the full-resolution image",
            "content": {
              "image/png": {}
            }
          },
          "404": {
            "description": "Image not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/i/{image_name}/thumbnail": {
      "get": {
        "tags": ["images"],
        "summary": "Get Image Thumbnail",
        "description": "Gets a thumbnail image file.\n\nBrowser media requests authenticate with the path-scoped HttpOnly cookie set at login.\nReturns 409 while image storage maintenance is active.",
        "operationId": "get_image_thumbnail",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of thumbnail image file to get",
              "title": "Image Name"
            },
            "description": "The name of thumbnail image file to get"
          },
          {
            "name": "invokeai_media_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invokeai Media Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return the image thumbnail",
            "content": {
              "image/webp": {}
            }
          },
          "404": {
            "description": "Image not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/i/{image_name}/urls": {
      "get": {
        "tags": ["images"],
        "summary": "Get Image Urls",
        "description": "Gets an image and thumbnail URL",
        "operationId": "get_image_urls",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of the image whose URL to get",
              "title": "Image Name"
            },
            "description": "The name of the image whose URL to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageUrlsDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/delete": {
      "post": {
        "tags": ["images"],
        "summary": "Delete Images From List",
        "operationId": "delete_images_from_list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_delete_images_from_list"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteImagesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/gone": {
      "post": {
        "tags": ["images"],
        "summary": "Get Gone Images",
        "description": "Returns the requested names whose image records are positively absent.\n\nLets a client whose delete response was lost learn which deletions committed, so it can drop\nits references to them. A name is listed only when the record is confirmed missing: a name\nthat exists (readable by the caller or not) or that storage could not check is left out, so\nan unavailable database prunes nothing. Revealing absence matches the 404 the per-image\nroutes already answer for a gone image (see `_assert_image_record_exists`).",
        "operationId": "get_gone_images",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_get_gone_images"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array",
                  "title": "Response Get Gone Images"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/uncategorized": {
      "delete": {
        "tags": ["images"],
        "summary": "Delete Uncategorized Images",
        "description": "Deletes all uncategorized images owned by the current user (or all if admin)",
        "operationId": "delete_uncategorized_images",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteImagesResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/copy": {
      "post": {
        "tags": ["images"],
        "summary": "Copy Images To Board",
        "description": "Copies images, optionally onto a board, and returns the new names.\n\nEach copy is a genuinely new image with its own name, because `board_images` keys on\n`image_name` \u2014 one image can sit on exactly one board, so sharing a name between two boards is\nnot representable. Duplicating a project needs that: its copy must own its media outright.\n\nThe pixels never leave the server, and never leave the disk either: `images.copy` clones the\nrecord and copies the file byte for byte, so the embedded metadata, workflow and graph travel\nwithout being parsed and rewritten. Category and origin travel; the originating session and\nnode do not. Starring is not copied \u2014 callers that want it use `POST /images/star`, the same\npath an import uses.\n\nPer-image failures are reported rather than raised, so one unreadable source cannot cost the\ncaller the whole batch.\n\nA sync `def`, so FastAPI runs the batch on its threadpool: file copies are blocking, and a\nboard's worth of them on the event loop would stall every other request for the duration.\n\nRead access is enough to copy, which means an image on a board shared with you can be copied\ninto something you own, and the copy outlives the share. That is deliberate \u2014 it is what makes\na shared board usable as a source \u2014 but it is a real widening of what \"read-only\" means, so it\nis stated rather than left to be discovered.",
        "operationId": "copy_images_to_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_copy_images_to_board"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopyImagesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/star": {
      "post": {
        "tags": ["images"],
        "summary": "Star Images In List",
        "operationId": "star_images_in_list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_star_images_in_list"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StarredImagesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/unstar": {
      "post": {
        "tags": ["images"],
        "summary": "Unstar Images In List",
        "operationId": "unstar_images_in_list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_unstar_images_in_list"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnstarredImagesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/download": {
      "post": {
        "tags": ["images"],
        "summary": "Download Images From List",
        "operationId": "download_images_from_list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_download_images_from_list"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesDownloaded"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/images/download/{bulk_download_item_name}": {
      "get": {
        "tags": ["images"],
        "summary": "Get Bulk Download Item",
        "description": "Gets a bulk download zip file.\n\nRequires authentication.  The caller must be the user who initiated the\ndownload (tracked by the bulk download service) or an admin.",
        "operationId": "get_bulk_download_item",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "bulk_download_item_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The bulk_download_item_name of the bulk download item to get",
              "title": "Bulk Download Item Name"
            },
            "description": "The bulk_download_item_name of the bulk download item to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Return the complete bulk download item",
            "content": {
              "application/zip": {}
            }
          },
          "404": {
            "description": "Image not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/names": {
      "get": {
        "tags": ["images"],
        "summary": "Get Image Names",
        "description": "Gets ordered list of image names with metadata for optimistic updates.\n\nDeprecated: use `GET /v1/gallery/item_names`, which returns images and videos interleaved\nin one ordered list. This image-only endpoint predates the polymorphic gallery.",
        "operationId": "get_image_names",
        "deprecated": true,
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of images to list.",
              "title": "Image Origin"
            },
            "description": "The origin of images to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of image to include.",
              "title": "Categories"
            },
            "description": "The categories of image to include."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate images.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate images."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "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.",
              "title": "Board Id"
            },
            "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."
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort by starred images first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort by starred images first"
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          },
          {
            "name": "created_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created From"
            },
            "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at."
          },
          {
            "name": "created_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created To"
            },
            "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageNamesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/images/images_by_names": {
      "post": {
        "tags": ["images"],
        "summary": "Get Images By Names",
        "description": "Gets image DTOs for the specified image names. Maintains order of input names.",
        "operationId": "get_images_by_names",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_get_images_by_names"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ImageDTO"
                  },
                  "type": "array",
                  "title": "Response 200 Get Images By Names"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/image_map/points": {
      "get": {
        "tags": ["image_map"],
        "summary": "Get Image Map Points",
        "description": "Gets the current user's semantic image map.\n\nServes the cached UMAP projection (never blocks on a UMAP fit) and runs\nDBSCAN per request, so `eps` is live-adjustable. If the cache is missing\nor stale, a recompute is enqueued and reflected in `state`/`stale`.",
        "operationId": "get_image_map_points",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eps",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 2.0,
                  "minimum": 1e-6
                },
                {
                  "type": "null"
                }
              ],
              "description": "DBSCAN eps for clustering. Defaults to an adaptive value derived from the projection's k-distance distribution; that default is clamped relative to the coordinate span, a supplied value is not. Either way it is reduced if needed to keep DBSCAN's neighbourhoods inside a memory budget, and the value actually used is returned as `cluster_eps`.",
              "title": "Eps"
            },
            "description": "DBSCAN eps for clustering. Defaults to an adaptive value derived from the projection's k-distance distribution; that default is clamped relative to the coordinate span, a supplied value is not. Either way it is reduced if needed to keep DBSCAN's neighbourhoods inside a memory budget, and the value actually used is returned as `cluster_eps`."
          },
          {
            "name": "min_samples",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 2,
              "description": "DBSCAN min_samples for clustering",
              "default": 10,
              "title": "Min Samples"
            },
            "description": "DBSCAN min_samples for clustering"
          },
          {
            "name": "include_videos",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names.",
              "default": false,
              "title": "Include Videos"
            },
            "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names."
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects.",
              "title": "Media Kind"
            },
            "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapPointsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/image_map/search": {
      "get": {
        "tags": ["image_map"],
        "summary": "Search Image Map",
        "description": "Ranks the user's accessible images and videos by semantic similarity.\n\nProvide exactly one of `q` (text search \u2014 requires the embedding model's\ntext encoder to be installed), `image_name`, or `video_name` (visual\nsimilarity \u2014 uses the reference item's stored embedding when it exists,\nand otherwise embeds its file on demand, so unindexed items such as assets\ncan be reference items too). A video is represented by its thumbnail, the\nsame frame the index embedded.",
        "operationId": "search_image_map",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ],
              "description": "Text query to embed and search with",
              "title": "Q"
            },
            "description": "Text query to embed and search with"
          },
          {
            "name": "image_name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Reference image for similarity search",
              "title": "Image Name"
            },
            "description": "Reference image for similarity search"
          },
          {
            "name": "video_name",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Reference video for similarity search",
              "title": "Video Name"
            },
            "description": "Reference video for similarity search"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 1,
              "description": "Maximum number of results",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of results"
          },
          {
            "name": "include_videos",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names.",
              "default": false,
              "title": "Include Videos"
            },
            "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names."
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects.",
              "title": "Media Kind"
            },
            "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict results to this board's items; 'none' selects items on no board. Omit to rank every accessible item.",
              "title": "Board Id"
            },
            "description": "Restrict results to this board's items; 'none' selects items on no board. Omit to rank every accessible item."
          },
          {
            "name": "created_date",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict results to items created on this ISO date, as the date-based virtual boards list them.",
              "title": "Created Date"
            },
            "description": "Restrict results to items created on this ISO date, as the date-based virtual boards list them."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapSearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/image_map/search_by_image": {
      "post": {
        "tags": ["image_map"],
        "summary": "Search Image Map By Image",
        "description": "Ranks the user's accessible images by similarity to an arbitrary reference image.\n\nProvide exactly one of `image` (multipart upload) or `image_url` (the\nserver downloads it). The reference is embedded for this query only \u2014\nnothing is stored.",
        "operationId": "search_image_map_by_image",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_url",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2000
                },
                {
                  "type": "null"
                }
              ],
              "description": "URL of a reference image",
              "title": "Image Url"
            },
            "description": "URL of a reference image"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 1,
              "description": "Maximum number of results",
              "default": 100,
              "title": "Limit"
            },
            "description": "Maximum number of results"
          },
          {
            "name": "include_videos",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names.",
              "default": false,
              "title": "Include Videos"
            },
            "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names."
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects.",
              "title": "Media Kind"
            },
            "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict results to this board's items; 'none' selects items on no board. Omit to rank every accessible item.",
              "title": "Board Id"
            },
            "description": "Restrict results to this board's items; 'none' selects items on no board. Omit to rank every accessible item."
          },
          {
            "name": "created_date",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict results to items created on this ISO date, as the date-based virtual boards list them.",
              "title": "Created Date"
            },
            "description": "Restrict results to items created on this ISO date, as the date-based virtual boards list them."
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_search_image_map_by_image"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapSearchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/image_map/cluster_labels": {
      "get": {
        "tags": ["image_map"],
        "summary": "Get Image Map Cluster Labels",
        "description": "Labels the user's visible clusters with the most similar vocabulary phrases.\n\nClustering mirrors `/points` (same eps semantics, computed over the\ncaller's currently-accessible points), so cluster ids line up with the\nserved map. Pass the `cluster_eps` reported by `/points` so both requests\ncluster with the same eps; cluster ids can still differ if the accessible\nset changes between the requests, so compare the two responses'\n`visible_hash` (and `updated_at`) and discard labels on mismatch.\nRequires the embedding model's text encoder; the first call per model\nembeds the whole vocabulary and is slow.",
        "operationId": "get_image_map_cluster_labels",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "eps",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number",
                  "maximum": 2.0,
                  "minimum": 1e-6
                },
                {
                  "type": "null"
                }
              ],
              "description": "DBSCAN eps for clustering. Defaults to an adaptive value derived from the projection's k-distance distribution; that default is clamped relative to the coordinate span, a supplied value is not. Either way it is reduced if needed to keep DBSCAN's neighbourhoods inside a memory budget, and the value actually used is returned as `cluster_eps`.",
              "title": "Eps"
            },
            "description": "DBSCAN eps for clustering. Defaults to an adaptive value derived from the projection's k-distance distribution; that default is clamped relative to the coordinate span, a supplied value is not. Either way it is reduced if needed to keep DBSCAN's neighbourhoods inside a memory budget, and the value actually used is returned as `cluster_eps`."
          },
          {
            "name": "min_samples",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 2,
              "description": "DBSCAN min_samples for clustering",
              "default": 10,
              "title": "Min Samples"
            },
            "description": "DBSCAN min_samples for clustering"
          },
          {
            "name": "top_k",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1,
              "description": "Candidate labels per cluster",
              "default": 3,
              "title": "Top K"
            },
            "description": "Candidate labels per cluster"
          },
          {
            "name": "include_videos",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names.",
              "default": false,
              "title": "Include Videos"
            },
            "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names."
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects.",
              "title": "Media Kind"
            },
            "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapClusterLabelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/image_map/image_labels": {
      "get": {
        "tags": ["image_map"],
        "summary": "Get Image Map Image Labels",
        "description": "Labels one gallery item with the vocabulary phrases most similar to its stored embedding.\n\nServes map hover cards, so it only covers items the index has embedded;\nan unindexed item (assets, intermediates, not-yet-indexed) is a 404\nrather than an on-demand embed \u2014 a hover must never queue encoder work.\nRequires the embedding model's text encoder, like /cluster_labels.",
        "operationId": "get_image_map_image_labels",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "image_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The image or video to label",
              "title": "Image Name"
            },
            "description": "The image or video to label"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["image", "video"],
              "type": "string",
              "description": "Which namespace image_name belongs to",
              "default": "image",
              "title": "Kind"
            },
            "description": "Which namespace image_name belongs to"
          },
          {
            "name": "top_k",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10,
              "minimum": 1,
              "description": "Number of candidate labels",
              "default": 3,
              "title": "Top K"
            },
            "description": "Number of candidate labels"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapImageLabelsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/image_map/refresh": {
      "post": {
        "tags": ["image_map"],
        "summary": "Refresh Image Map",
        "description": "Requests a recompute of the current user's image map projection.",
        "operationId": "refresh_image_map",
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapRefreshResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/image_map/vocab": {
      "get": {
        "tags": ["image_map"],
        "summary": "Get Image Map Vocab",
        "description": "Gets the supplementary cluster-labeling vocabulary.\n\nThe list is server-wide: cluster labels are computed against one shared\nvocabulary. Readable by any user; only admins may change it.",
        "operationId": "get_image_map_vocab",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapVocabResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "put": {
        "tags": ["image_map"],
        "summary": "Update Image Map Vocab",
        "description": "Replaces the supplementary cluster-labeling vocabulary. Admin-only.\n\nThe stored embeddings are invalidated and rebuilt in the background (the\nresponse's `state` reflects this); labels served in the meantime still use\nthe previous vocabulary. Works while the index is disabled too \u2014 terms\npersist and take effect when indexing next runs.",
        "operationId": "update_image_map_vocab",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageMapVocabUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapVocabResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/image_map/status": {
      "get": {
        "tags": ["image_map"],
        "summary": "Get Image Map Status",
        "description": "Gets embedding index progress and the user's projection cache status.",
        "operationId": "get_image_map_status",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "include_videos",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names.",
              "default": false,
              "title": "Include Videos"
            },
            "description": "Include indexed videos among the returned items. Leave off unless the client resolves each item through the endpoint its `kind` names."
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects.",
              "title": "Media Kind"
            },
            "description": "Serve only images ('image') or only videos ('video'). When set it alone decides the served kinds, overriding include_videos; omit to serve what include_videos selects."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageMapStatusResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/intermediates/summary": {
      "get": {
        "tags": ["intermediates"],
        "summary": "Get Intermediates Summary",
        "description": "Per-project intermediates with what a cleanup could reclaim. Non-admins see their own rows.",
        "operationId": "get_intermediates_summary",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "owner_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                {
                  "type": "null"
                }
              ],
              "description": "Admins only: restrict rows to one account",
              "title": "Owner Id"
            },
            "description": "Admins only: restrict rows to one account"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Id"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 200
                },
                {
                  "type": "null"
                }
              ],
              "description": "Project (and, for admins, owner) filter",
              "title": "Search"
            },
            "description": "Project (and, for admins, owner) filter"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["reclaimable_bytes", "project_name"],
              "type": "string",
              "default": "reclaimable_bytes",
              "title": "Sort"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["asc", "desc"],
              "type": "string",
              "default": "desc",
              "title": "Order"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntermediatesSummary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/intermediates/previews": {
      "post": {
        "tags": ["intermediates"],
        "summary": "Create Intermediates Preview",
        "description": "Reports what a cleanup would delete and keep, and fixes the instant its recency is judged at. Previews expire unused.",
        "operationId": "create_intermediates_preview",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntermediatesPreviewRequest",
                "description": "What to clear and how"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntermediatesPreview"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/intermediates/operations": {
      "get": {
        "tags": ["intermediates"],
        "summary": "List Intermediates Operations",
        "description": "The caller's running and recently settled cleanups, newest first. Operations do not survive a server restart.",
        "operationId": "list_intermediates_operations",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntermediatesOperationList"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": ["intermediates"],
        "summary": "Start Intermediates Operation",
        "description": "Starts the cleanup a preview described. A preview is confirmed at most once; list operations to find a run whose response was lost.",
        "operationId": "start_intermediates_operation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntermediatesOperationRequest",
                "description": "The confirmed preview"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntermediatesOperation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/intermediates/operations/{operation_id}": {
      "get": {
        "tags": ["intermediates"],
        "summary": "Get Intermediates Operation",
        "operationId": "get_intermediates_operation",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "title": "Operation Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntermediatesOperation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/intermediates/holds/{lease_id}": {
      "put": {
        "tags": ["intermediates"],
        "summary": "Replace Intermediates Browser Hold",
        "description": "Protect names still held by this account's open browser editor, including undo state.",
        "operationId": "replace_intermediates_browser_hold",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "lease_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_-]+$",
              "title": "Lease Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IntermediatesBrowserHoldRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["intermediates"],
        "summary": "Release Intermediates Browser Hold",
        "operationId": "release_intermediates_browser_hold",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "lease_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64,
              "pattern": "^[A-Za-z0-9_-]+$",
              "title": "Lease Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/upload": {
      "post": {
        "tags": ["videos"],
        "summary": "Upload Video",
        "description": "Uploads a video for the current user.",
        "operationId": "upload_video",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_category",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ImageCategory",
              "description": "The category of the video"
            },
            "description": "The category of the video"
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Whether this is an intermediate video",
              "title": "Is Intermediate"
            },
            "description": "Whether this is an intermediate video"
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board to add this video to, if any",
              "title": "Board Id"
            },
            "description": "The board to add this video to, if any"
          },
          {
            "name": "session_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The session ID associated with this upload, if any",
              "title": "Session Id"
            },
            "description": "The session ID associated with this upload, if any"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                {
                  "type": "null"
                }
              ],
              "description": "The caller's project this upload originates in, if any; recorded for intermediates cleanup",
              "title": "Project Id"
            },
            "description": "The caller's project this upload originates in, if any; recorded for intermediates cleanup"
          }
        ],
        "responses": {
          "201": {
            "description": "The video was uploaded successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDTO"
                }
              }
            }
          },
          "415": {
            "description": "Video upload failed"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "type": "string",
                    "contentMediaType": "application/octet-stream",
                    "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"
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/i/{video_name}": {
      "delete": {
        "tags": ["videos"],
        "summary": "Delete Video",
        "operationId": "delete_video",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of the video to delete",
              "title": "Video Name"
            },
            "description": "The name of the video to delete"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteVideosResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["videos"],
        "summary": "Update Video",
        "operationId": "update_video",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of the video to update",
              "title": "Video Name"
            },
            "description": "The name of the video to update"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoRecordChanges",
                "description": "The changes to apply to the video"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["videos"],
        "summary": "Get Video Dto",
        "operationId": "get_video_dto",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of video to get",
              "title": "Video Name"
            },
            "description": "The name of video to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/delete": {
      "post": {
        "tags": ["videos"],
        "summary": "Delete Videos From List",
        "operationId": "delete_videos_from_list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoNamesBatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteVideosResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/videos/uncategorized": {
      "delete": {
        "tags": ["videos"],
        "summary": "Delete Uncategorized Videos",
        "description": "Deletes all uncategorized videos owned by the current user (or all if admin).\n\nMirrors ``delete_uncategorized_images`` so the \"Delete All Uncategorized\nImages/Videos\" board action covers both media kinds.",
        "operationId": "delete_uncategorized_videos",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteVideosResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/videos/i/{video_name}/metadata": {
      "get": {
        "tags": ["videos"],
        "summary": "Get Video Metadata",
        "operationId": "get_video_metadata",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of video to get",
              "title": "Video Name"
            },
            "description": "The name of video to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/MetadataField"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response Get Video Metadata"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/i/{video_name}/workflow": {
      "get": {
        "tags": ["videos"],
        "summary": "Get Video Workflow",
        "description": "Gets the workflow and graph saved with a generated video (mirrors the image route).",
        "operationId": "get_video_workflow",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of video whose workflow to get",
              "title": "Video Name"
            },
            "description": "The name of video whose workflow to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowAndGraphResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/i/{video_name}/full": {
      "head": {
        "tags": ["videos"],
        "summary": "Get Video Full",
        "description": "Serves the video file with HTTP Range support so HTML5 <video> seek/scrub works.\n\nBrowser media requests authenticate with the path-scoped HttpOnly cookie set at login.",
        "operationId": "get_video_full_head",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of video file to get",
              "title": "Video Name"
            },
            "description": "The name of video file to get"
          },
          {
            "name": "invokeai_media_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invokeai Media Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return the full video file",
            "content": {
              "video/mp4": {}
            }
          },
          "404": {
            "description": "Video not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["videos"],
        "summary": "Get Video Full",
        "description": "Serves the video file with HTTP Range support so HTML5 <video> seek/scrub works.\n\nBrowser media requests authenticate with the path-scoped HttpOnly cookie set at login.",
        "operationId": "get_video_full",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of video file to get",
              "title": "Video Name"
            },
            "description": "The name of video file to get"
          },
          {
            "name": "invokeai_media_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invokeai Media Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return the full video file",
            "content": {
              "video/mp4": {}
            }
          },
          "206": {
            "description": "Return a byte-range of the video file",
            "content": {
              "video/mp4": {}
            }
          },
          "404": {
            "description": "Video not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/i/{video_name}/thumbnail": {
      "get": {
        "tags": ["videos"],
        "summary": "Get Video Thumbnail",
        "description": "Returns the WebP thumbnail of an authorized video.",
        "operationId": "get_video_thumbnail",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of thumbnail file to get",
              "title": "Video Name"
            },
            "description": "The name of thumbnail file to get"
          },
          {
            "name": "invokeai_media_token",
            "in": "cookie",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Invokeai Media Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return the video thumbnail",
            "content": {
              "image/webp": {}
            }
          },
          "404": {
            "description": "Video not found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/i/{video_name}/urls": {
      "get": {
        "tags": ["videos"],
        "summary": "Get Video Urls",
        "operationId": "get_video_urls",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The name of the video whose URL to get",
              "title": "Video Name"
            },
            "description": "The name of the video whose URL to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoUrlsDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/": {
      "get": {
        "tags": ["videos"],
        "summary": "List Video Dtos",
        "description": "Gets a list of video DTOs for the current user.",
        "operationId": "list_video_dtos",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of videos to list.",
              "title": "Video Origin"
            },
            "description": "The origin of videos to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of video to include.",
              "title": "Categories"
            },
            "description": "The categories of video to include."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate videos.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate videos."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board id to filter by. Use 'none' to find videos without a board.",
              "title": "Board Id"
            },
            "description": "The board id to filter by. Use 'none' to find videos without a board."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "The page offset",
              "default": 0,
              "title": "Offset"
            },
            "description": "The page offset"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 0,
              "description": "The number of videos per page",
              "default": 10,
              "title": "Limit"
            },
            "description": "The number of videos per page"
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort by starred videos first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort by starred videos first"
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OffsetPaginatedResults_VideoDTO_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/names": {
      "get": {
        "tags": ["videos"],
        "summary": "Get Video Names",
        "description": "Gets ordered list of video names with metadata for optimistic updates.\n\nDeprecated: use `GET /v1/gallery/item_names`, which returns images and videos interleaved\nin one ordered list. This video-only endpoint predates the polymorphic gallery.",
        "operationId": "get_video_names",
        "deprecated": true,
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "video_origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of videos to list.",
              "title": "Video Origin"
            },
            "description": "The origin of videos to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of video to include.",
              "title": "Categories"
            },
            "description": "The categories of video to include."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate videos.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate videos."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board id to filter by. Use 'none' to find videos without a board.",
              "title": "Board Id"
            },
            "description": "The board id to filter by. Use 'none' to find videos without a board."
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort by starred videos first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort by starred videos first"
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoNamesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/videos/copy": {
      "post": {
        "tags": ["videos"],
        "summary": "Copy Videos To Board",
        "description": "Copies videos, optionally onto a board, and returns the new names.\n\nThe image twin of this route explains why copies rather than shared references: `board_videos`\nkeys on `video_name`, so one video sits on exactly one board.\n\nBlocking work (the service copies the file off disk) runs on FastAPI's threadpool by virtue of\nthis being a sync `def`, so a large batch cannot stall the event loop.\n\n`move_source=False` is load-bearing, not defensive: `create` consumes the path it is given,\nbecause every other caller hands it a temp file. Here the path is the *source's own* file.\n\nRead access is enough to copy, which means a video on a board shared with you can be copied\ninto something you own, and the copy outlives the share. That is deliberate \u2014 it is what makes\na shared board usable as a source \u2014 but it is a real widening of what \"read-only\" means, so it\nis stated rather than left to be discovered.",
        "operationId": "copy_videos_to_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_copy_videos_to_board"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CopyVideosResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/videos/star": {
      "post": {
        "tags": ["videos"],
        "summary": "Star Videos In List",
        "operationId": "star_videos_in_list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoNamesBatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StarredVideosResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/videos/unstar": {
      "post": {
        "tags": ["videos"],
        "summary": "Unstar Videos In List",
        "operationId": "unstar_videos_in_list",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoNamesBatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnstarredVideosResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/videos/board": {
      "post": {
        "tags": ["videos"],
        "summary": "Add Video To Board",
        "operationId": "add_video_to_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoBoardArg"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddVideosToBoardResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": ["videos"],
        "summary": "Remove Video From Board",
        "operationId": "remove_video_from_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_remove_video_from_board"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveVideosFromBoardResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gallery/items/": {
      "get": {
        "tags": ["gallery"],
        "summary": "List Gallery Items",
        "description": "Returns a paginated, time-sorted stream of polymorphic gallery items (images + videos).",
        "operationId": "list_gallery_items",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of items to list.",
              "title": "Origin"
            },
            "description": "The origin of items to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories to include. Shared between images and videos.",
              "title": "Categories"
            },
            "description": "The categories to include. Shared between images and videos."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate items.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate items."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read.",
              "title": "Board Id"
            },
            "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "The page offset",
              "default": 0,
              "title": "Offset"
            },
            "description": "The page offset"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 0,
              "description": "The number of items per page",
              "default": 10,
              "title": "Limit"
            },
            "description": "The number of items per page"
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort by starred items first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort by starred items first"
          },
          {
            "name": "starred",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both.",
              "title": "Starred"
            },
            "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both."
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind.",
              "title": "Media Kind"
            },
            "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind."
          },
          {
            "name": "created_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created From"
            },
            "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at."
          },
          {
            "name": "created_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created To"
            },
            "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OffsetPaginatedResults_GalleryItem_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gallery/items/location": {
      "get": {
        "tags": ["gallery"],
        "summary": "Get Gallery Item Location",
        "description": "Returns exact item's position in an ordinary filtered gallery listing.",
        "operationId": "get_gallery_item_location",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/GalleryItemKind",
              "description": "Whether the target is an image or video."
            },
            "description": "Whether the target is an image or video."
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The target image or video name.",
              "title": "Name"
            },
            "description": "The target image or video name."
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of items to list.",
              "title": "Origin"
            },
            "description": "The origin of items to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories to include. Shared between images and videos.",
              "title": "Categories"
            },
            "description": "The categories to include. Shared between images and videos."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate items.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate items."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read.",
              "title": "Board Id"
            },
            "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read."
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both.",
              "title": "Starred"
            },
            "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both."
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind.",
              "title": "Media Kind"
            },
            "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind."
          },
          {
            "name": "created_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created From"
            },
            "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at."
          },
          {
            "name": "created_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created To"
            },
            "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryItemLocation"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gallery/item_names": {
      "get": {
        "tags": ["gallery"],
        "summary": "List Gallery Item Names",
        "description": "Returns the ordered flat list of item names \u2014 used to drive virtualized gallery selection.\n\nNames are polymorphic: image and video names are interleaved by `created_at`. A name ending\nin `.mp4` is a video.",
        "operationId": "list_gallery_item_names",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of items to list.",
              "title": "Origin"
            },
            "description": "The origin of items to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories to include. Shared between images and videos.",
              "title": "Categories"
            },
            "description": "The categories to include. Shared between images and videos."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate items.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate items."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read.",
              "title": "Board Id"
            },
            "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read."
          },
          {
            "name": "created_date",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Restrict to items created on this ISO date, e.g. '2026-03-18'. Used by date-based virtual boards.",
              "title": "Created Date"
            },
            "description": "Restrict to items created on this ISO date, e.g. '2026-03-18'. Used by date-based virtual boards."
          },
          {
            "name": "created_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created From"
            },
            "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at."
          },
          {
            "name": "created_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created To"
            },
            "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at."
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort by starred items first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort by starred items first"
          },
          {
            "name": "starred",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both.",
              "title": "Starred"
            },
            "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both."
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind.",
              "title": "Media Kind"
            },
            "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryItemNames"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gallery/items/names": {
      "get": {
        "tags": ["gallery"],
        "summary": "Get Gallery Item Names",
        "description": "Returns an ordered (kind, name) list \u2014 used to drive virtualized gallery selection.\n\nDeprecated: use `GET /v1/gallery/item_names`, which returns the same order as a flat name\nlist. The `kind` discriminator here costs a model per row \u2014 ~800ms on a 200k-item library \u2014\nfor a value callers already derive from the file extension.",
        "operationId": "get_gallery_item_names",
        "deprecated": true,
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/ResourceOrigin"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The origin of items to list.",
              "title": "Origin"
            },
            "description": "The origin of items to list."
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories to include. Shared between images and videos.",
              "title": "Categories"
            },
            "description": "The categories to include. Shared between images and videos."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate items.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate items."
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read.",
              "title": "Board Id"
            },
            "description": "The board id to filter by. Use 'none' for items on no board (the current user's, unless an administrator), or 'all' for those items plus the items on every non-archived board the current user may read."
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort by starred items first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort by starred items first"
          },
          {
            "name": "starred",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both.",
              "title": "Starred"
            },
            "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both."
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The term to search for",
              "title": "Search Term"
            },
            "description": "The term to search for"
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind.",
              "title": "Media Kind"
            },
            "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind."
          },
          {
            "name": "created_from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created From"
            },
            "description": "Inclusive start date (YYYY-MM-DD) to filter by created_at."
          },
          {
            "name": "created_to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at.",
              "title": "Created To"
            },
            "description": "Inclusive end date (YYYY-MM-DD) to filter by created_at."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryItemNamesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gallery/usage": {
      "post": {
        "tags": ["gallery"],
        "summary": "Get Gallery Media Usage",
        "description": "Reports what still uses media before it is deleted: the caller's saved documents and active queue work by\nname, other accounts' as counts. Deleting stays a separate request; this only reads.",
        "operationId": "get_gallery_media_usage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GalleryMediaUsageRequest",
                "description": "The media to check"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryMediaUsage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/gallery/maintenance/preview": {
      "post": {
        "tags": ["gallery_maintenance"],
        "summary": "Preview Gallery Maintenance",
        "operationId": "preview_gallery_maintenance",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GalleryMaintenancePreviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryMaintenancePreview"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Admin privileges required"
          },
          "409": {
            "description": "Gallery maintenance is already active"
          },
          "500": {
            "description": "Gallery maintenance preview failed"
          },
          "503": {
            "description": "Gallery maintenance unavailable"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/gallery/maintenance/remove-missing": {
      "post": {
        "tags": ["gallery_maintenance"],
        "summary": "Remove Missing Images",
        "operationId": "remove_missing_images",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GalleryMaintenanceExecuteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryMaintenanceResult"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Admin privileges required"
          },
          "409": {
            "description": "Preview is stale or image storage is busy"
          },
          "500": {
            "description": "Gallery maintenance failed"
          },
          "503": {
            "description": "Gallery maintenance unavailable"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/gallery/maintenance/archive-untracked": {
      "post": {
        "tags": ["gallery_maintenance"],
        "summary": "Archive Untracked Images",
        "operationId": "archive_untracked_images",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GalleryMaintenanceExecuteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryMaintenanceResult"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Admin privileges required"
          },
          "409": {
            "description": "Preview is stale or image storage is busy"
          },
          "500": {
            "description": "Gallery maintenance failed"
          },
          "503": {
            "description": "Gallery maintenance unavailable"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/gallery/maintenance/regenerate-thumbnails": {
      "post": {
        "tags": ["gallery_maintenance"],
        "summary": "Regenerate Missing Thumbnails",
        "operationId": "regenerate_missing_thumbnails",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GalleryMaintenanceExecuteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryMaintenanceResult"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Admin privileges required"
          },
          "409": {
            "description": "Preview is stale or image storage is busy"
          },
          "500": {
            "description": "Gallery maintenance failed"
          },
          "503": {
            "description": "Gallery maintenance unavailable"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/boards/": {
      "post": {
        "tags": ["boards"],
        "summary": "Create Board",
        "description": "Creates a board for the current user, in one of their projects or in the Library",
        "operationId": "create_board",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "board_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 300,
              "description": "The name of the board to create",
              "title": "Board Name"
            },
            "description": "The name of the board to create"
          },
          {
            "name": "project_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "One of the current user's projects to create the board in; omit for the Library",
              "title": "Project Id"
            },
            "description": "One of the current user's projects to create the board in; omit for the Library"
          }
        ],
        "responses": {
          "201": {
            "description": "The board was created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["boards"],
        "summary": "List Boards",
        "description": "Gets a list of boards for the current user, including shared boards. Admin users see all boards.",
        "operationId": "list_boards",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/BoardRecordOrderBy",
              "description": "The attribute to order by",
              "default": "created_at"
            },
            "description": "The attribute to order by"
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The direction to order by",
              "default": "DESC"
            },
            "description": "The direction to order by"
          },
          {
            "name": "all",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list all boards",
              "title": "All"
            },
            "description": "Whether to list all boards"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The page offset",
              "title": "Offset"
            },
            "description": "The page offset"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The number of boards per page",
              "title": "Limit"
            },
            "description": "The number of boards per page"
          },
          {
            "name": "include_archived",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether or not to include archived boards in list",
              "default": false,
              "title": "Include Archived"
            },
            "description": "Whether or not to include archived boards in list"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/OffsetPaginatedResults_BoardDTO_"
                    },
                    {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BoardDTO"
                      }
                    }
                  ],
                  "title": "Response List Boards"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/boards/{board_id}": {
      "get": {
        "tags": ["boards"],
        "summary": "Get Board",
        "description": "Gets a board (user must have access to it)",
        "operationId": "get_board",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "board_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of board to get",
              "title": "Board Id"
            },
            "description": "The id of board to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["boards"],
        "summary": "Update Board",
        "description": "Updates a board. Each field takes its own board action: renaming, setting the cover and archiving need an\neditor; general access and moving between the Library and a project need the owner.\n\nA project's inbox takes its name, archived state and general access from the project and cannot be moved,\nso those changes are refused for it \u2014 for admins too; its cover is still fair game. The storage decides\nthat in one transaction.",
        "operationId": "update_board",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "board_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of board to update",
              "title": "Board Id"
            },
            "description": "The id of board to update"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BoardChanges",
                "description": "The changes to apply to the board"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The board was updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["boards"],
        "summary": "Delete Board",
        "description": "Deletes a board: its owner's, or an admin's, to do",
        "operationId": "delete_board",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "board_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of board to delete",
              "title": "Board Id"
            },
            "description": "The id of board to delete"
          },
          {
            "name": "include_images",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Permanently delete all images and videos on the board",
              "default": false,
              "title": "Include Images"
            },
            "description": "Permanently delete all images and videos on the board"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteBoardResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/boards/{board_id}/image_names": {
      "get": {
        "tags": ["boards"],
        "summary": "List All Board Image Names",
        "description": "Gets a list of images for a board",
        "operationId": "list_all_board_image_names",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "board_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of the board or 'none' for uncategorized images",
              "title": "Board Id"
            },
            "description": "The id of the board or 'none' for uncategorized images"
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of image to include.",
              "title": "Categories"
            },
            "description": "The categories of image to include."
          },
          {
            "name": "is_intermediate",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Whether to list intermediate images.",
              "title": "Is Intermediate"
            },
            "description": "Whether to list intermediate images."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "title": "Response List All Board Image Names"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/board_images/": {
      "post": {
        "tags": ["boards"],
        "summary": "Add Image To Board",
        "description": "Creates a board_image",
        "operationId": "add_image_to_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_add_image_to_board"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The image was added to a board successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddImagesToBoardResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": ["boards"],
        "summary": "Remove Image From Board",
        "description": "Removes an image from its board, if it had one",
        "operationId": "remove_image_from_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_remove_image_from_board"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The image was removed from the board successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveImagesFromBoardResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/board_images/batch": {
      "post": {
        "tags": ["boards"],
        "summary": "Add Images To Board",
        "description": "Adds a list of images to a board",
        "operationId": "add_images_to_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_add_images_to_board"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Images were added to board successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddImagesToBoardResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/board_images/batch/delete": {
      "post": {
        "tags": ["boards"],
        "summary": "Remove Images From Board",
        "description": "Removes a list of images from their board, if they had one",
        "operationId": "remove_images_from_board",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_remove_images_from_board"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Images were removed from board successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveImagesFromBoardResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/virtual_boards/by_date": {
      "get": {
        "tags": ["virtual_boards"],
        "summary": "List Virtual Boards By Date",
        "description": "Gets a list of virtual sub-boards grouped by date. Covers both images and videos.",
        "operationId": "list_virtual_boards_by_date",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/VirtualSubBoardDTO"
                  },
                  "type": "array",
                  "title": "Response List Virtual Boards By Date"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/virtual_boards/by_date/{date}/image_names": {
      "get": {
        "tags": ["virtual_boards"],
        "summary": "List Virtual Board Image Names By Date",
        "description": "Gets ordered image names for a specific date. Image-only.\n\nDeprecated: use `GET /v1/gallery/item_names?created_date=<date>`, which covers images and\nvideos in one ordered list.",
        "operationId": "list_virtual_board_image_names_by_date",
        "deprecated": true,
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The ISO date string, e.g. '2026-03-18'",
              "title": "Date"
            },
            "description": "The ISO date string, e.g. '2026-03-18'"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort starred images first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort starred images first"
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The sort direction",
              "default": "DESC"
            },
            "description": "The sort direction"
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of images to include",
              "title": "Categories"
            },
            "description": "The categories of images to include"
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Search term to filter images",
              "title": "Search Term"
            },
            "description": "Search term to filter images"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageNamesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/virtual_boards/by_date/{date}/item_names": {
      "get": {
        "tags": ["virtual_boards"],
        "summary": "List Virtual Board Item Names By Date",
        "description": "Gets ordered polymorphic (image + video) item refs for a specific date.\n\nDeprecated: use `GET /v1/gallery/item_names?created_date=<date>`, which returns the same\norder as a flat name list instead of one model per item.",
        "operationId": "list_virtual_board_item_names_by_date",
        "deprecated": true,
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The ISO date string, e.g. '2026-03-18'",
              "title": "Date"
            },
            "description": "The ISO date string, e.g. '2026-03-18'"
          },
          {
            "name": "starred_first",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Whether to sort starred items first",
              "default": true,
              "title": "Starred First"
            },
            "description": "Whether to sort starred items first"
          },
          {
            "name": "starred",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both.",
              "title": "Starred"
            },
            "description": "Filter by starred state: true for starred items only, false for unstarred only. Omit to include both."
          },
          {
            "name": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The sort direction",
              "default": "DESC"
            },
            "description": "The sort direction"
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImageCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of items to include",
              "title": "Categories"
            },
            "description": "The categories of items to include"
          },
          {
            "name": "search_term",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Search term to filter items",
              "title": "Search Term"
            },
            "description": "Search term to filter items"
          },
          {
            "name": "media_kind",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": ["image", "video"],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind.",
              "title": "Media Kind"
            },
            "description": "List only images ('image') or only videos ('video'). Omit to include both. Totals, positions and names cover only the listed kind."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GalleryItemNamesResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/model_relationships/i/{model_key}": {
      "get": {
        "tags": ["model_relationships"],
        "summary": "Get Related Models",
        "description": "Get a list of model keys related to a given model.",
        "operationId": "get_related_models",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "model_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The key of the model to get relationships for",
              "title": "Model Key"
            },
            "description": "The key of the model to get relationships for"
          }
        ],
        "responses": {
          "200": {
            "description": "A list of related model keys was retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "title": "Response Get Related Models"
                },
                "example": [
                  "15e9eb28-8cfe-47c9-b610-37907a79fc3c",
                  "71272e82-0e5f-46d5-bca9-9a61f4bd8a82",
                  "a5d7cd49-1b98-4534-a475-aeee4ccf5fa2"
                ]
              }
            }
          },
          "404": {
            "description": "The specified model could not be found"
          },
          "422": {
            "description": "Validation error"
          }
        }
      }
    },
    "/api/v1/model_relationships/": {
      "post": {
        "tags": ["model_relationships"],
        "summary": "Add Model Relationship",
        "description": "Creates a **bidirectional** relationship between two models, allowing each to reference the other as related.",
        "operationId": "add_model_relationship_api_v1_model_relationships__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelRelationshipCreateRequest",
                "description": "The model keys to relate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "The relationship was successfully created"
          },
          "400": {
            "description": "Invalid model keys or self-referential relationship"
          },
          "409": {
            "description": "The relationship already exists"
          },
          "422": {
            "description": "Validation error"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "delete": {
        "tags": ["model_relationships"],
        "summary": "Remove Model Relationship",
        "description": "Removes a **bidirectional** relationship between two models. The relationship must already exist.",
        "operationId": "remove_model_relationship_api_v1_model_relationships__delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelRelationshipCreateRequest",
                "description": "The model keys to disconnect"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "The relationship was successfully removed"
          },
          "400": {
            "description": "Invalid model keys or self-referential relationship"
          },
          "404": {
            "description": "The relationship does not exist"
          },
          "422": {
            "description": "Validation error"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/model_relationships/batch": {
      "post": {
        "tags": ["model_relationships"],
        "summary": "Get Related Model Keys (Batch)",
        "description": "Retrieves all **unique related model keys** for a list of given models. This is useful for contextual suggestions or filtering.",
        "operationId": "get_related_models_batch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelRelationshipBatchRequest",
                "description": "Model keys to check for related connections"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Related model keys retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array",
                  "title": "Response Get Related Models Batch"
                },
                "example": [
                  "ca562b14-995e-4a42-90c1-9528f1a5921d",
                  "cc0c2b8a-c62e-41d6-878e-cc74dde5ca8f",
                  "18ca7649-6a9e-47d5-bc17-41ab1e8cec81",
                  "7c12d1b2-0ef9-4bec-ba55-797b2d8f2ee1",
                  "c382eaa3-0e28-4ab0-9446-408667699aeb",
                  "71272e82-0e5f-46d5-bca9-9a61f4bd8a82",
                  "a5d7cd49-1b98-4534-a475-aeee4ccf5fa2"
                ]
              }
            }
          },
          "422": {
            "description": "Validation error"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/frontend_config": {
      "get": {
        "tags": ["app"],
        "summary": "Get Frontend Config",
        "operationId": "get_frontend_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FrontendConfig"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/version": {
      "get": {
        "tags": ["app"],
        "summary": "Get Version",
        "operationId": "app_version",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppVersion"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/app/app_deps": {
      "get": {
        "tags": ["app"],
        "summary": "Get App Deps",
        "operationId": "get_app_deps",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object",
                  "title": "Response Get App Deps"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/patchmatch_status": {
      "get": {
        "tags": ["app"],
        "summary": "Get Patchmatch Status",
        "operationId": "get_patchmatch_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean",
                  "title": "Response Get Patchmatch Status"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/database/vacuum": {
      "post": {
        "tags": ["app"],
        "summary": "Vacuum Database",
        "operationId": "vacuum_database",
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Admin privileges required"
          },
          "500": {
            "description": "Database vacuum failed"
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/generation_device_options": {
      "get": {
        "tags": ["app"],
        "summary": "Get Generation Device Options",
        "description": "List the devices available for generation, for use with the `generation_devices` setting.",
        "operationId": "get_generation_device_options",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/GenerationDeviceOption"
                  },
                  "type": "array",
                  "title": "Response Get Generation Device Options"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/runtime_config": {
      "get": {
        "tags": ["app"],
        "summary": "Get Runtime Config",
        "operationId": "get_runtime_config",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvokeAIAppConfigWithSetFields"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "patch": {
        "tags": ["app"],
        "summary": "Update Runtime Config",
        "operationId": "update_runtime_config",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAppGenerationSettingsRequest",
                "description": "Writable runtime configuration changes"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvokeAIAppConfigWithSetFields"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/external_providers/status": {
      "get": {
        "tags": ["app"],
        "summary": "Get External Provider Statuses",
        "operationId": "get_external_provider_statuses",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ExternalProviderStatusModel"
                  },
                  "type": "array",
                  "title": "Response Get External Provider Statuses"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/external_providers/config": {
      "get": {
        "tags": ["app"],
        "summary": "Get External Provider Configs",
        "operationId": "get_external_provider_configs",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ExternalProviderConfigModel"
                  },
                  "type": "array",
                  "title": "Response Get External Provider Configs"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/external_providers/config/{provider_id}": {
      "post": {
        "tags": ["app"],
        "summary": "Set External Provider Config",
        "operationId": "set_external_provider_config",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external provider identifier",
              "title": "Provider Id"
            },
            "description": "The external provider identifier"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalProviderConfigUpdate",
                "description": "External provider configuration settings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalProviderConfigModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["app"],
        "summary": "Reset External Provider Config",
        "operationId": "reset_external_provider_config",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external provider identifier",
              "title": "Provider Id"
            },
            "description": "The external provider identifier"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalProviderConfigModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/app/logging": {
      "get": {
        "tags": ["app"],
        "summary": "Get Log Level",
        "description": "Returns the log level",
        "operationId": "get_log_level",
        "responses": {
          "200": {
            "description": "The operation was successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogLevel"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": ["app"],
        "summary": "Set Log Level",
        "description": "Sets the log verbosity level",
        "operationId": "set_log_level",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogLevel",
                "description": "New log verbosity level"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The operation was successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogLevel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/invocation_cache": {
      "delete": {
        "tags": ["app"],
        "summary": "Clear Invocation Cache",
        "description": "Clears the invocation cache",
        "operationId": "clear_invocation_cache",
        "responses": {
          "200": {
            "description": "The operation was successful",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/invocation_cache/enable": {
      "put": {
        "tags": ["app"],
        "summary": "Enable Invocation Cache",
        "description": "Clears the invocation cache",
        "operationId": "enable_invocation_cache",
        "responses": {
          "200": {
            "description": "The operation was successful",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/invocation_cache/disable": {
      "put": {
        "tags": ["app"],
        "summary": "Disable Invocation Cache",
        "description": "Clears the invocation cache",
        "operationId": "disable_invocation_cache",
        "responses": {
          "200": {
            "description": "The operation was successful",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/app/invocation_cache/status": {
      "get": {
        "tags": ["app"],
        "summary": "Get Invocation Cache Status",
        "description": "Clears the invocation cache",
        "operationId": "get_invocation_cache_status",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvocationCacheStatus"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/queue/{queue_id}/enqueue_batch": {
      "post": {
        "tags": ["queue"],
        "summary": "Enqueue Batch",
        "description": "Processes a batch and enqueues the output graphs for execution for the current user.",
        "operationId": "enqueue_batch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "queue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "The queue id to perform this operation on",
              "title": "Queue Id"
            },
            "description": "The queue id to perform this operation on"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_enqueue_batch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnqueueBatchResult"
                }
              }
            }
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnqueueBatchResult"
                }
              }
            },
            "description": "Created"
          },
          "400": {
            "description": "The batch's origin starts with 'invokeai:wm-calibration:' (in any case), which is reserved for working-memory calibration runs"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/enqueue_batch/acknowledge": {
      "post": {
        "tags": ["queue"],
        "summary": "Acknowledge Enqueue Batch",
        "operationId": "acknowledge_enqueue_batch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "queue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The queue id that accepted the batch",
              "title": "Queue Id"
            },
            "description": "The queue id that accepted the batch"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_acknowledge_enqueue_batch"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/enqueue_batch/receipt": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Enqueue Batch Receipt",
        "operationId": "get_enqueue_batch_receipt",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "queue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The queue id that accepted the batch",
              "title": "Queue Id"
            },
            "description": "The queue id that accepted the batch"
          },
          {
            "name": "idempotency_key",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "The enqueue retry key",
              "title": "Idempotency Key"
            },
            "description": "The enqueue retry key"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnqueueBatchReceipt"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/list_all": {
      "get": {
        "tags": ["queue"],
        "summary": "List All Queue Items",
        "description": "Gets all queue items",
        "operationId": "list_all_queue_items",
        "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": "destination",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The destination of queue items to fetch",
              "title": "Destination"
            },
            "description": "The destination of queue items to fetch"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SessionQueueItem"
                  },
                  "title": "Response 200 List All Queue Items"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/item_ids": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Queue Item Ids",
        "description": "Gets the queue item ids that match the given parameters, ordered by creation time.\n\n`total_count` is the number of ids in `item_ids`. Without `limit`, every matching id is returned, so it\nequals the number of matching items. With `limit`, only the first `limit` ids of the same order are\nreturned, and it is not a total (counting every match would read the whole queue history); use the queue\nstatus for totals.\n\nWithout `origin_prefix`, IDs for every user's items are returned (item ids carry no sensitive data on their\nown); with it, a non-admin gets only their own.\nWhen the corresponding items are hydrated via get_queue_items_by_item_ids, those belonging\nto other users are redacted by sanitize_queue_item_for_user. This lets a non-admin see\npartially-redacted entries for other users' jobs in the queue list, while still revealing\nonly timestamps and status for items they do not own.\n\ncurrent_user is required so the endpoint stays behind authentication in multiuser mode.",
        "operationId": "get_queue_item_ids",
        "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": "order_dir",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The order of sort",
              "default": "DESC"
            },
            "description": "The order of sort"
          },
          {
            "name": "origin_prefix",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match",
              "title": "Origin Prefix"
            },
            "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Return at most this many ids, from the start of the requested order. Omit to return every matching id",
              "title": "Limit"
            },
            "description": "Return at most this many ids, from the start of the requested order. Omit to return every matching id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemIdsResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/items_by_ids": {
      "post": {
        "tags": ["queue"],
        "summary": "Get Queue Items By Item Ids",
        "description": "Gets queue items for the specified queue item ids. Maintains order of item ids.\n\nBound the legacy full-item endpoint as well as the summary endpoint: callers can otherwise\nforce one graph deserialization and response copy per supplied id, defeating the queue-list\noptimization with an authenticated memory/CPU exhaustion request.",
        "operationId": "get_queue_items_by_item_ids",
        "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"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_get_queue_items_by_item_ids"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SessionQueueItem"
                  },
                  "title": "Response 200 Get Queue Items By Item Ids"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/item_summaries_by_ids": {
      "post": {
        "tags": ["queue"],
        "summary": "Get Queue Item Summaries By Ids",
        "description": "Gets lightweight queue item summaries for specified IDs in requested order.",
        "operationId": "get_queue_item_summaries_by_ids",
        "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"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_get_queue_item_summaries_by_ids"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SessionQueueItemSummary"
                  },
                  "title": "Response 200 Get Queue Item Summaries By Ids"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/processor/resume": {
      "put": {
        "tags": ["queue"],
        "summary": "Resume",
        "description": "Resumes session processor. Admin only.",
        "operationId": "resume",
        "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"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionProcessorStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/processor/pause": {
      "put": {
        "tags": ["queue"],
        "summary": "Pause",
        "description": "Pauses session processor. Admin only.",
        "operationId": "pause",
        "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"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionProcessorStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/cancel_all_except_current": {
      "put": {
        "tags": ["queue"],
        "summary": "Cancel All Except Current",
        "description": "Immediately cancels all queue items except in-processing items. Non-admin users can only cancel their own items.",
        "operationId": "cancel_all_except_current",
        "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": "origin_prefix",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only cancel queue items whose origin starts with this prefix",
              "title": "Origin Prefix"
            },
            "description": "Only cancel queue items whose origin starts with this prefix"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelAllExceptCurrentResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/cancel_all": {
      "put": {
        "tags": ["queue"],
        "summary": "Cancel All",
        "description": "Immediately cancels all queue items, in-progress items included. Non-admin users can only cancel their own items.",
        "operationId": "cancel_all",
        "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": "origin_prefix",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only cancel queue items whose origin starts with this prefix",
              "title": "Origin Prefix"
            },
            "description": "Only cancel queue items whose origin starts with this prefix"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelByQueueIDResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/delete_all_except_current": {
      "put": {
        "tags": ["queue"],
        "summary": "Delete All Except Current",
        "description": "Immediately deletes all queue items except in-processing items. Non-admin users can only delete their own items.",
        "operationId": "delete_all_except_current",
        "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"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAllExceptCurrentResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/cancel_by_batch_ids": {
      "put": {
        "tags": ["queue"],
        "summary": "Cancel By Batch Ids",
        "description": "Immediately cancels all queue items from the given batch ids. Non-admin users can only cancel their own items.",
        "operationId": "cancel_by_batch_ids",
        "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"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_cancel_by_batch_ids"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelByBatchIDsResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/cancel_by_destination": {
      "put": {
        "tags": ["queue"],
        "summary": "Cancel By Destination",
        "description": "Immediately cancels all queue items with the given destination. Non-admin users can only cancel their own items.",
        "operationId": "cancel_by_destination",
        "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": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The destination to cancel all queue items for",
              "title": "Destination"
            },
            "description": "The destination to cancel all queue items for"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelByDestinationResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/retry_items_by_id": {
      "put": {
        "tags": ["queue"],
        "summary": "Retry Items By Id",
        "description": "Retries the given queue items. Users can only retry their own items unless they are an admin.\n\nA calibration item's retry is recorded in the calibration store as it commits. When that store cannot be written,\nthe request retries nothing, also its items that are no calibration's (503); retry again once it can. A calibration\nitem whose retry would measure between another calibration attempt's steps, or after another calibration cut its\nown attempt off, refuses the whole request too, generations included (409 with a code). The web UI retries one\nitem per request; an API client that retries several at once should retry its calibration items on their own.",
        "operationId": "retry_items_by_id",
        "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"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "The queue item ids to retry",
                "title": "Item Ids"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetryItemsResult"
                }
              }
            }
          },
          "409": {
            "description": "The items include a working-memory calibration's whose retry would break attempt exclusivity on its GPU: no item is retried, the request's other items included. Carries a code, as `{\"code\": ..., \"message\": ...}` in `detail`: `calibration_running`, another calibration attempt still runs on that GPU or is between its steps (also for an item of a calibration without an attempt); `calibration_interleaved`, another calibration ran on that GPU since the item's attempt began"
          },
          "503": {
            "description": "The items include a working-memory calibration's, and its store cannot be written now (unwritable root, lock timeout): no item is retried, the request's other items included"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/clear": {
      "put": {
        "tags": ["queue"],
        "summary": "Clear",
        "description": "Clears the queue. Admin users clear (and cancel) all items; non-admin users clear only their\nown items \u2014 other users' queued and running items are untouched.",
        "operationId": "clear",
        "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"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/prune": {
      "put": {
        "tags": ["queue"],
        "summary": "Prune",
        "description": "Prunes all completed or errored queue items. Non-admin users can only prune their own items.",
        "operationId": "prune",
        "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"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PruneResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/current": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Current Queue Item",
        "description": "Gets the currently execution queue item",
        "operationId": "get_current_queue_item",
        "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": "origin_prefix",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match",
              "title": "Origin Prefix"
            },
            "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SessionQueueItem"
                    },
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/SessionQueueItem"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response 200 Get Current Queue Item"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/previews": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Progress Previews",
        "description": "The latest denoising preview frame of each of the caller's running queue items: the same\npayloads as the `invocation_progress` socket events, with their revisions. A client whose socket\nwas dropped, or whose tab was hidden, reconciles from this instead of waiting for the next step.\nOwner-scoped: progress is personal UI, so even admins see only their own.",
        "operationId": "get_progress_previews",
        "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"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProgressPreviewDTO"
                  },
                  "title": "Response 200 Get Progress Previews"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/next": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Next Queue Item",
        "description": "Gets the next queue item, without executing it",
        "operationId": "get_next_queue_item",
        "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": "origin_prefix",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match",
              "title": "Origin Prefix"
            },
            "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SessionQueueItem"
                    },
                    {
                      "type": "null"
                    },
                    {
                      "$ref": "#/components/schemas/SessionQueueItem"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "title": "Response 200 Get Next Queue Item"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/status": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Queue Status",
        "description": "Gets the status of the session queue. Returns global counts (a non-admin's counts are their own when\n`origin_prefix` is given); every user additionally gets their own pending/in_progress counts (so the UI\ncan show an X/Y badge and scope personal UI like the progress bar to the user's own activity). Non-admin\nusers cannot see the current item's identifiers unless they own it.",
        "operationId": "get_queue_status",
        "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": "origin_prefix",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match",
              "title": "Origin Prefix"
            },
            "description": "Only include queue items whose origin starts with this prefix. For a non-admin caller, only their own items match"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionQueueAndProcessorStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/b/{batch_id}/status": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Batch Status",
        "description": "Gets the status of a batch. Non-admin users only see their own batches.",
        "operationId": "get_batch_status",
        "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": "batch_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The batch to get the status of",
              "title": "Batch Id"
            },
            "description": "The batch to get the status of"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchStatus"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/i/{item_id}": {
      "get": {
        "tags": ["queue"],
        "summary": "Get Queue Item",
        "description": "Gets a queue item",
        "operationId": "get_queue_item",
        "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": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "The queue item to get",
              "title": "Item Id"
            },
            "description": "The queue item to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionQueueItem"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["queue"],
        "summary": "Delete Queue Item",
        "description": "Deletes a queue item. Users can only delete their own items unless they are an admin.",
        "operationId": "delete_queue_item",
        "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": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "The queue item to delete",
              "title": "Item Id"
            },
            "description": "The queue item to delete"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/i/{item_id}/cancel": {
      "put": {
        "tags": ["queue"],
        "summary": "Cancel Queue Item",
        "description": "Cancels a queue item. Users can only cancel their own items unless they are an admin.",
        "operationId": "cancel_queue_item",
        "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": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "The queue item to cancel",
              "title": "Item Id"
            },
            "description": "The queue item to cancel"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionQueueItem"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/i/{item_id}/delivery": {
      "post": {
        "tags": ["queue"],
        "summary": "Claim Queue Item Delivery",
        "description": "Claims, confirms or releases staging a queue item's results, so that only one of its owner's browsers stages\nthem. A claim is held for a while unless confirmed, released or renewed.",
        "operationId": "claim_queue_item_delivery",
        "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": "item_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "The queue item whose results are delivered",
              "title": "Item Id"
            },
            "description": "The queue item whose results are delivered"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueueItemDeliveryRequest",
                "description": "The delivery change"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueItemDeliveryResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/counts_by_destination": {
      "get": {
        "tags": ["queue"],
        "summary": "Counts By Destination",
        "description": "Gets the counts of queue items by destination. Non-admin users only see their own items.",
        "operationId": "counts_by_destination",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "queue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The queue id to query",
              "title": "Queue Id"
            },
            "description": "The queue id to query"
          },
          {
            "name": "destination",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The destination to query",
              "title": "Destination"
            },
            "description": "The destination to query"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionQueueCountsByDestination"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/queue/{queue_id}/d/{destination}": {
      "delete": {
        "tags": ["queue"],
        "summary": "Delete By Destination",
        "description": "Deletes all items with the given destination. Non-admin users can only delete their own items.",
        "operationId": "delete_by_destination",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "queue_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The queue id to query",
              "title": "Queue Id"
            },
            "description": "The queue id to query"
          },
          {
            "name": "destination",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The destination to query",
              "title": "Destination"
            },
            "description": "The destination to query"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteByDestinationResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/i/{workflow_id}": {
      "get": {
        "tags": ["workflows"],
        "summary": "Get Workflow",
        "description": "Gets a workflow",
        "operationId": "get_workflow",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The workflow to get",
              "title": "Workflow Id"
            },
            "description": "The workflow to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRecordWithThumbnailDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["workflows"],
        "summary": "Update Workflow",
        "description": "Updates a workflow's content and advances its revision.",
        "operationId": "update_workflow",
        "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"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_update_workflow"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRecordDTO"
                }
              }
            }
          },
          "400": {
            "description": "The body's workflow id does not match the URL, or the update is malformed"
          },
          "403": {
            "description": "The workflow is bundled or belongs to another account"
          },
          "404": {
            "description": "The workflow does not exist"
          },
          "409": {
            "description": "The workflow's content revision no longer matches `expected_revision`"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["workflows"],
        "summary": "Delete Workflow",
        "description": "Deletes a workflow",
        "operationId": "delete_workflow",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The workflow to delete",
              "title": "Workflow Id"
            },
            "description": "The workflow to delete"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/": {
      "post": {
        "tags": ["workflows"],
        "summary": "Create Workflow",
        "description": "Creates a workflow",
        "operationId": "create_workflow",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_create_workflow"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRecordDTO"
                }
              }
            }
          },
          "400": {
            "description": "The workflow or the reserved id is malformed"
          },
          "409": {
            "description": "The reserved id already names a different workflow"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["workflows"],
        "summary": "List Workflows",
        "description": "Gets a page of workflows",
        "operationId": "list_workflows",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "description": "The page to get",
              "default": 0,
              "title": "Page"
            },
            "description": "The page to get"
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "description": "The number of workflows per page; all of them when omitted",
              "title": "Per Page"
            },
            "description": "The number of workflows per page; all of them when omitted"
          },
          {
            "name": "order_by",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/WorkflowRecordOrderBy",
              "description": "The attribute to order by",
              "default": "name"
            },
            "description": "The attribute to order by"
          },
          {
            "name": "direction",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SQLiteDirection",
              "description": "The direction to order by",
              "default": "ASC"
            },
            "description": "The direction to order by"
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories of workflow to get",
              "title": "Categories"
            },
            "description": "The categories of workflow to get"
          },
          {
            "name": "tags",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The tags of workflow to get",
              "title": "Tags"
            },
            "description": "The tags of workflow to get"
          },
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The text to query by (matches name and description)",
              "title": "Query"
            },
            "description": "The text to query by (matches name and description)"
          },
          {
            "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"
            },
            "description": "Whether to include/exclude recent workflows"
          },
          {
            "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"
          },
          {
            "name": "callable",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by whether workflows are callable by call_saved_workflow",
              "title": "Callable"
            },
            "description": "Filter by whether workflows are callable by call_saved_workflow"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedResults_WorkflowRecordListItemWithThumbnailDTO_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/i/{workflow_id}/thumbnail": {
      "put": {
        "tags": ["workflows"],
        "summary": "Set Workflow Thumbnail",
        "description": "Sets a workflow's thumbnail image",
        "operationId": "set_workflow_thumbnail",
        "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"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_set_workflow_thumbnail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["workflows"],
        "summary": "Delete Workflow Thumbnail",
        "description": "Removes a workflow's thumbnail image",
        "operationId": "delete_workflow_thumbnail",
        "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": {
                  "$ref": "#/components/schemas/WorkflowRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": ["workflows"],
        "summary": "Get Workflow Thumbnail",
        "description": "Gets a workflow's thumbnail image.\n\nThis endpoint is intentionally unauthenticated because browsers load images\nvia <img src> tags which cannot send Bearer tokens. Workflow IDs are UUIDs,\nproviding security through unguessability.",
        "operationId": "get_workflow_thumbnail",
        "parameters": [
          {
            "name": "workflow_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of the workflow thumbnail to get",
              "title": "Workflow Id"
            },
            "description": "The id of the workflow thumbnail to get"
          }
        ],
        "responses": {
          "200": {
            "description": "The workflow thumbnail was fetched successfully",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "The workflow thumbnail could not be found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/i/{workflow_id}/is_public": {
      "patch": {
        "tags": ["workflows"],
        "summary": "Update Workflow Is Public",
        "description": "Updates whether a workflow is shared publicly",
        "operationId": "update_workflow_is_public",
        "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"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_update_workflow_is_public"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/tags": {
      "get": {
        "tags": ["workflows"],
        "summary": "Get All Tags",
        "description": "Gets all unique tags from workflows",
        "operationId": "get_all_tags",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories to include",
              "title": "Categories"
            },
            "description": "The categories to include"
          },
          {
            "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": "array",
                  "items": {
                    "type": "string"
                  },
                  "title": "Response Get All Tags"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/counts_by_tag": {
      "get": {
        "tags": ["workflows"],
        "summary": "Get Counts By Tag",
        "description": "Counts workflows by tag",
        "operationId": "get_counts_by_tag",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "tags",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "The tags to get counts for",
              "title": "Tags"
            },
            "description": "The tags to get counts for"
          },
          {
            "name": "categories",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WorkflowCategory"
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "The categories to include",
              "title": "Categories"
            },
            "description": "The categories to include"
          },
          {
            "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"
            },
            "description": "Whether to include/exclude recent workflows"
          },
          {
            "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 Get Counts By Tag"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/counts_by_category": {
      "get": {
        "tags": ["workflows"],
        "summary": "Counts By Category",
        "description": "Counts workflows by category",
        "operationId": "counts_by_category",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "categories",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkflowCategory"
              },
              "description": "The categories to include",
              "title": "Categories"
            },
            "description": "The categories to include"
          },
          {
            "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"
            },
            "description": "Whether to include/exclude recent workflows"
          },
          {
            "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"
                }
              }
            }
          },
          "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": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows/i/{workflow_id}/last_run_at": {
      "put": {
        "tags": ["workflows"],
        "summary": "Update Workflow Last Run At",
        "description": "Updates the last_run_at field of a workflow",
        "operationId": "update_workflow_last_run_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": {
          "204": {
            "description": "Successful Response"
          },
          "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"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "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"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StylePresetRecordWithImage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "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": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/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"
                }
              }
            }
          }
        },
        "security": [
          {
            "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"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StylePresetRecordWithImage"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "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": {}
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "404": {
            "description": "The style preset image could not be found"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/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": {}
              },
              "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"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "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"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "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"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WildcardRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "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"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WildcardRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "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"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/wildcards/delete": {
      "post": {
        "tags": ["wildcards"],
        "summary": "Delete Wildcards",
        "description": "Deletes those of the wildcards that the current user owns.\n\nUnknown ids and other users' ids are skipped and left out of the result, as the single delete answers 404\nfor both, so the result never confirms that someone else's id exists.",
        "operationId": "delete_wildcards",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Body_delete_wildcards"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteWildcardsResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/system_prompts/": {
      "get": {
        "tags": ["system_prompts"],
        "summary": "List System Prompts",
        "description": "Lists system prompts visible to the current user (own + public).",
        "operationId": "list_system_prompts",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SystemPromptRecordDTO"
                  },
                  "type": "array",
                  "title": "Response 200 List System Prompts"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": ["system_prompts"],
        "summary": "Create System Prompt",
        "description": "Creates a new system prompt owned by the current user.",
        "operationId": "create_system_prompt",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemPromptWithoutId",
                "description": "The system prompt to create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemPromptRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/system_prompts/i/{system_prompt_id}": {
      "get": {
        "tags": ["system_prompts"],
        "summary": "Get System Prompt",
        "description": "Gets a system prompt by id.",
        "operationId": "get_system_prompt",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "system_prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of the system prompt to get",
              "title": "System Prompt Id"
            },
            "description": "The id of the system prompt to get"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemPromptRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": ["system_prompts"],
        "summary": "Update System Prompt",
        "description": "Updates a system prompt. Only the owner or an admin may update.",
        "operationId": "update_system_prompt",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "system_prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of the system prompt to update",
              "title": "System Prompt Id"
            },
            "description": "The id of the system prompt to update"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemPromptChanges",
                "description": "The changes to apply"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemPromptRecordDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": ["system_prompts"],
        "summary": "Delete System Prompt",
        "description": "Deletes a system prompt. Only the owner or an admin may delete.",
        "operationId": "delete_system_prompt",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "system_prompt_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of the system prompt to delete",
              "title": "System Prompt Id"
            },
            "description": "The id of the system prompt to delete"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/client_state/{queue_id}/get_by_key": {
      "get": {
        "tags": ["client_state"],
        "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)"
          },
          {
            "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"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/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)"
          },
          {
            "name": "key",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "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"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "title": "Response Set Client State"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/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)"
          },
          {
            "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"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/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)"
          },
          {
            "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": {}
              }
            }
          },
          "204": {
            "description": "Client state key deleted"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/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": {}
              }
            }
          },
          "204": {
            "description": "Client state deleted"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/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"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": ["projects"],
        "summary": "Create Project",
        "description": "Creates a project, and the private inbox board it owns, for the current user, and with it, when the request\ncarries `workspace`, the caller's workspace in it, in one transaction. Returns the record with the workspace\nthis create stored (null when it carried none).",
        "operationId": "create_project",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectCreateRequest",
                "description": "The project to create"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectWithWorkspaceDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/projects/{project_id}": {
      "get": {
        "tags": ["projects"],
        "summary": "Get Project",
        "description": "Gets one of the current user's projects: its content and the caller's workspace in it.",
        "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"
          },
          {
            "name": "max_canvas_schema_version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Newest canvas schema understood by this client",
              "default": 2,
              "title": "Max Canvas Schema Version"
            },
            "description": "Newest canvas schema understood by this client"
          },
          {
            "name": "max_document_schema_version",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Newest project document schema understood by this client",
              "default": 3,
              "title": "Max Document Schema Version"
            },
            "description": "Newest project document schema understood by this client"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectWithWorkspaceDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": ["projects"],
        "summary": "Update Project",
        "description": "Saves a project's content and, when the request carries `workspace`, the caller's workspace in it, in one\ntransaction. Returns the record with the workspace this save stored (null when it carried none). Returns 409\nwith the current revision when the save is based on a stale revision of either.",
        "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/ProjectWithWorkspaceDTO"
                }
              }
            }
          },
          "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 and its inbox, in one transaction.\n\nIdempotent. The media survives either way: deleting a board drops its memberships, so the images\nand videos on it return to Uncategorized, exactly as they would if the board were deleted without\n`include_images`. There is deliberately no option to take them with it \u2014 a project is a\nworkspace, and emptying someone's gallery is not what deleting one should be able to mean.\nNothing is reported back for the same reason: nothing was destroyed to report.",
        "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"
          },
          {
            "name": "boards",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["release", "delete"],
              "type": "string",
              "description": "What becomes of the project's boards other than its inbox: released to the Library with their media, or deleted so their media returns to Uncategorized",
              "default": "release",
              "title": "Boards"
            },
            "description": "What becomes of the project's boards other than its inbox: released to the Library with their media, or deleted so their media returns to Uncategorized"
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{project_id}/workspace": {
      "put": {
        "tags": ["projects"],
        "summary": "Save Project Workspace",
        "description": "Saves the caller's workspace in one of their projects: their layout, widgets and generation settings, apart\nfrom the project content, so that saving one never conflicts with the other. Returns 409 with the current\nrevision (null when there is none) when the save is based on another, and 400 `workspace_needs_split_document`\nwhile the project is still held whole: the workspace is saved only beside content at the split schema.",
        "operationId": "save_project_workspace",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of the project whose workspace to save",
              "title": "Project Id"
            },
            "description": "The id of the project whose workspace to save"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectWorkspaceSaveRequest",
                "description": "The workspace and the revision it is based on"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectWorkspaceDTO"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{project_id}/board-snapshot": {
      "get": {
        "tags": ["projects"],
        "summary": "Get Project Board Snapshot",
        "description": "Lists everything on the project's boards that the gallery would show, inbox first.\n\nIntermediates and the canvas's private `other` category are excluded. Unpaginated: the caller\nthat needs this \u2014 exporting a project \u2014 has to hold the whole list anyway. It is still bounded\nover all the boards together, because the answer is built entirely in memory and any client\nwith a project id can ask for it; a project past the ceiling is one an export could not have\npacked either, so it is refused as a 413 rather than paged.",
        "operationId": "get_project_board_snapshot",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The id of the project whose boards to enumerate",
              "title": "Project Id"
            },
            "description": "The id of the project whose boards to enumerate"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectBoardSnapshotDTO"
                }
              }
            }
          },
          "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"
              }
            }
          }
        },
        "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"
                }
              }
            }
          }
        }
      },
      "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/v1/recall/video/{queue_id}": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Video Parameters",
        "description": "Apply video generation parameters to the current user's Video panel.\n\nModels and media that cannot be used are dropped and listed in `skipped`; the rest are applied.",
        "operationId": "recall_video_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": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["recall", "remix"],
              "type": "string",
              "description": "`recall` applies every field; `remix` applies everything except the seed",
              "default": "recall",
              "title": "Mode"
            },
            "description": "`recall` applies every field; `remix` applies everything except the seed"
          },
          {
            "name": "strict",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "When true, the parameters are treated as a whole generation record: LoRAs and media not included are cleared from the Video panel. When false, only the included fields change.",
              "default": false,
              "title": "Strict"
            },
            "description": "When true, the parameters are treated as a whole generation record: LoRAs and media not included are cleared from the Video panel. When false, only the included fields change."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoRecallParameter",
                "description": "Video parameters to recall. Every field is optional: send only the ones to change."
              },
              "examples": {
                "prompt_and_model": {
                  "summary": "Prompt and model",
                  "value": {
                    "positive_prompt": "a heron takes flight over a misty lake",
                    "model": "Wan 2.2 I2V A14B (Diffusers)"
                  }
                },
                "first_frame": {
                  "summary": "Start from a gallery image",
                  "value": {
                    "model": "Wan 2.2 I2V A14B (Diffusers)",
                    "first_frame_image": {
                      "image_name": "<gallery image name>.png"
                    }
                  }
                },
                "extend_video": {
                  "summary": "Extend a gallery video",
                  "value": {
                    "positive_prompt": "the camera keeps panning left",
                    "source_video": {
                      "video_name": "<gallery video name>.mp4"
                    },
                    "source_video_start_frame": 0,
                    "source_video_end_frame": 80
                  }
                },
                "ref2va_references": {
                  "summary": "MiniMax H3 Ref2VA references",
                  "value": {
                    "model": "MiniMax H3 Ref2VA Transformer (int8, pruned)",
                    "minimax_h3_references": [
                      {
                        "kind": "image",
                        "image_name": "<gallery image name>.png"
                      },
                      {
                        "kind": "video",
                        "video_name": "<gallery video name>.mp4",
                        "conditioning": "video_audio"
                      }
                    ]
                  }
                },
                "every_field": {
                  "summary": "Every field (a reference, not a request to send as-is)",
                  "description": "Every accepted field with a placeholder value. Delete the ones you do not mean to set: media fields override one another (conditioning video, then references, then source video, then frames), so as-is only the conditioning video would apply, and the placeholder names would be skipped as not found.",
                  "value": {
                    "positive_prompt": "a heron takes flight over a misty lake",
                    "negative_prompt": "blurry, low quality",
                    "seed": 1234,
                    "num_frames": 81,
                    "fps": 16,
                    "width": 832,
                    "height": 480,
                    "steps": 30,
                    "cfg_scale": 5.0,
                    "wan_guidance_scale_low_noise": 4.0,
                    "ltx2_audio_cfg_scale": 7.0,
                    "ltx2_stg_scale": 1.0,
                    "ltx2_modality_scale": 3.0,
                    "ltx2_context_frames": 49,
                    "minimax_h3_hybrid_start_block": 25,
                    "model": "<video model name or key>",
                    "vae": "<Wan VAE name or key>",
                    "wan_t5_encoder_model": "<Wan UMT5 encoder name or key>",
                    "wan_transformer_low_noise": "<Wan low-noise expert name or key>",
                    "wan_component_source": "<Wan Diffusers install name or key>",
                    "minimax_h3_transformer_model": "<MiniMax H3 transformer name or key>",
                    "minimax_h3_component_source": "<MiniMax H3 Diffusers install name or key>",
                    "minimax_h3_text_encoder_model": "<MiniMax H3 Qwen3-VL encoder name or key>",
                    "minimax_h3_hybrid_base_model": "<MiniMax H3 FL2VA transformer name or key>",
                    "ltx2_component_source": "<LTX-2 components name or key>",
                    "ltx2_text_encoder_model": "<LTX-2 Gemma-4 encoder name or key>",
                    "loras": [
                      {
                        "model_name": "<LoRA name or key>",
                        "weight": 1.0
                      }
                    ],
                    "first_frame_image": {
                      "image_name": "<gallery image name>.png"
                    },
                    "last_frame_image": {
                      "image_name": "<gallery image name>.png"
                    },
                    "source_video": {
                      "video_name": "<gallery video name>.mp4"
                    },
                    "source_video_start_frame": 0,
                    "source_video_end_frame": 80,
                    "ltx2_conditioning_video": {
                      "video_name": "<gallery video name>.mp4"
                    },
                    "ltx2_conditioning_role": "audio",
                    "minimax_h3_references": [
                      {
                        "kind": "image",
                        "image_name": "<gallery image name>.png",
                        "detail": "max"
                      },
                      {
                        "kind": "video",
                        "video_name": "<gallery video name>.mp4",
                        "conditioning": "video_audio",
                        "start_frame": 0,
                        "end_frame": 48
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallParametersResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recall/video/{queue_id}/initial-video": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Initial Video",
        "description": "Place a gallery video in the current user's Video panel as the Initial Video.",
        "operationId": "recall_initial_video",
        "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": "video_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "The name of the gallery video",
              "title": "Video Name"
            },
            "description": "The name of the gallery video"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallMediaResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recall/video/{queue_id}/initial-video/upload": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Initial Video Upload",
        "description": "Upload a video into the gallery and place it in the current user's Video panel as the Initial Video.",
        "operationId": "recall_initial_video_upload",
        "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": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board to upload the video to; Uncategorized when omitted",
              "title": "Board Id"
            },
            "description": "The board to upload the video to; Uncategorized when omitted"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallMediaResponse"
                }
              }
            }
          },
          "413": {
            "description": "The video exceeds the upload size limit"
          },
          "415": {
            "description": "The file is not a supported video or audio file"
          },
          "429": {
            "description": "Too many concurrent video uploads"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "type": "string",
                    "contentMediaType": "application/octet-stream",
                    "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"
              }
            }
          }
        }
      }
    },
    "/api/v1/recall/video/{queue_id}/reference-video": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Reference Video",
        "description": "Append a gallery video to the current user's reference videos (models that take them, e.g. MiniMax H3 Ref2VA).",
        "operationId": "recall_reference_video",
        "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": "video_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "The name of the gallery video",
              "title": "Video Name"
            },
            "description": "The name of the gallery video"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallMediaResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recall/video/{queue_id}/reference-video/upload": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Reference Video Upload",
        "description": "Upload a video into the gallery and append it to the current user's reference videos.",
        "operationId": "recall_reference_video_upload",
        "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": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board to upload the video to; Uncategorized when omitted",
              "title": "Board Id"
            },
            "description": "The board to upload the video to; Uncategorized when omitted"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallMediaResponse"
                }
              }
            }
          },
          "413": {
            "description": "The video exceeds the upload size limit"
          },
          "415": {
            "description": "The file is not a supported video or audio file"
          },
          "429": {
            "description": "Too many concurrent video uploads"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "type": "string",
                    "contentMediaType": "application/octet-stream",
                    "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"
              }
            }
          }
        }
      }
    },
    "/api/v1/recall/video/{queue_id}/conditioning-video": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Conditioning Video",
        "description": "Set a gallery video as the current user's conditioning clip (models that take one, e.g. LTX-2).\n\nThe clip replaces the panel's initial video and references, and in the `video` role its first and last frames;\nin the `audio` role the frames stay, anchoring the picture generated for the soundtrack.",
        "operationId": "recall_conditioning_video",
        "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": "video_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "The name of the gallery video",
              "title": "Video Name"
            },
            "description": "The name of the gallery video"
          },
          {
            "name": "role",
            "in": "query",
            "required": true,
            "schema": {
              "enum": ["audio", "video"],
              "type": "string",
              "description": "Which stream of the video is the condition: `audio` generates a picture for its soundtrack, `video` generates a soundtrack for its picture",
              "title": "Role"
            },
            "description": "Which stream of the video is the condition: `audio` generates a picture for its soundtrack, `video` generates a soundtrack for its picture"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallMediaResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recall/video/{queue_id}/conditioning-video/upload": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Conditioning Video Upload",
        "description": "Upload a video into the gallery and set it as the current user's conditioning clip.",
        "operationId": "recall_conditioning_video_upload",
        "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": "role",
            "in": "query",
            "required": true,
            "schema": {
              "enum": ["audio", "video"],
              "type": "string",
              "description": "Which stream of the video is the condition: `audio` generates a picture for its soundtrack, `video` generates a soundtrack for its picture",
              "title": "Role"
            },
            "description": "Which stream of the video is the condition: `audio` generates a picture for its soundtrack, `video` generates a soundtrack for its picture"
          },
          {
            "name": "board_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "The board to upload the video to; Uncategorized when omitted",
              "title": "Board Id"
            },
            "description": "The board to upload the video to; Uncategorized when omitted"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallMediaResponse"
                }
              }
            }
          },
          "413": {
            "description": "The video exceeds the upload size limit"
          },
          "415": {
            "description": "The file is not a supported video or audio file"
          },
          "429": {
            "description": "Too many concurrent video uploads"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "type": "string",
                    "contentMediaType": "application/octet-stream",
                    "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"
              }
            }
          }
        }
      }
    },
    "/api/v1/recall/video/{queue_id}/image": {
      "post": {
        "tags": ["recall"],
        "summary": "Recall Video Image",
        "description": "Place a gallery image in the current user's Video panel, where the panel's model takes images.\n\nA model that takes reference images (e.g. MiniMax H3 Ref2VA) gets it as a reference: it replaces the reference\nimages, or with `append` joins them. A model that takes frames (e.g. Wan I2V, LTX-2) gets it as the first frame,\nclearing the last; with `append` it fills the first free frame slot, and is declined when both are set. The\npanel's model decides, so the outcome is reported to the user there rather than in this response.",
        "operationId": "recall_video_image",
        "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": "image_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "The name of the gallery image",
              "title": "Image Name"
            },
            "description": "The name of the gallery image"
          },
          {
            "name": "append",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "description": "Add the image after the panel's own images instead of replacing them",
              "default": false,
              "title": "Append"
            },
            "description": "Add the image after the panel's own images instead of replacing them"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoRecallImageResponse"
                }
              }
            }
          },
          "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"
          },
          "failed_images": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Failed Images",
            "description": "The names of authorized images that could not be added"
          }
        },
        "type": "object",
        "required": ["affected_boards", "added_images", "failed_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"
          },
          "use_cache": {
            "default": true,
            "description": "Whether or not to use the cache",
            "field_kind": "node_attribute",
            "title": "Use Cache",
            "type": "boolean"
          },
          "a": {
            "default": 0,
            "description": "The first number",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "A",
            "type": "integer"
          },
          "b": {
            "default": 0,
            "description": "The second number",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "B",
            "type": "integer"
          },
          "type": {
            "const": "add",
            "default": "add",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["math", "add"],
        "title": "Add Integers",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/IntegerOutput"
        }
      },
      "AddVideosToBoardResult": {
        "properties": {
          "affected_boards": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Affected Boards",
            "description": "The ids of boards affected by the operation"
          },
          "added_videos": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Added Videos",
            "description": "The video names that were added to the board"
          }
        },
        "type": "object",
        "required": ["affected_boards", "added_videos"],
        "title": "AddVideosToBoardResult"
      },
      "AdminUserCreateRequest": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email",
            "description": "User email address"
          },
          "display_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "title": "Display Name",
            "description": "Display name"
          },
          "password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Password",
            "description": "New password"
          },
          "is_admin": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Admin",
            "description": "Whether user should have admin privileges"
          },
          "is_active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Is Active",
            "description": "Whether user account should be active"
          }
        },
        "type": "object",
        "title": "AdminUserUpdateRequest",
        "description": "Request body for admin to update any user."
      },
      "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"
              }
            ],
            "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"
              }
            ],
            "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"
              }
            ],
            "default": null,
            "description": "Prompt",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "title": "Prompt"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "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"
          },
          "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"
          },
          "image_size": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "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"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          }
        },
        "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"
              }
            ],
            "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"
        }
      },
      "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"
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TensorField"
              },
              {
                "type": "null"
              }
            ],
            "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."
          }
        },
        "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"
          }
        },
        "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": {
          "metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetadataField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "default": null,
            "description": "Latents tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false
          },
          "noise": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LatentsField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "transformer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TransformerField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Anima transformer model.",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true,
            "title": "Transformer"
          },
          "positive_conditioning": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnimaConditioningField"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/AnimaConditioningField"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "control_lllite": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnimaLLLiteField"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/AnimaLLLiteField"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "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"
          },
          "ip_adapter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnimaIPAdapterField"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/AnimaIPAdapterField"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Anima IP-Adapter reference images. Images that share an adapter model are attended together.",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "IP-Adapter"
          },
          "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.10.0",
        "output": {
          "$ref": "#/components/schemas/LatentsMetaOutput"
        }
      },
      "AnimaDenoiseMetaInvocation": {
        "category": "metadata",
        "class": "invocation",
        "classification": "deprecated",
        "description": "Run denoising process with an Anima transformer model + metadata.",
        "node_pack": "invokeai",
        "properties": {
          "metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetadataField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "default": null,
            "description": "Latents tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false
          },
          "noise": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LatentsField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "transformer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TransformerField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Anima transformer model.",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true,
            "title": "Transformer"
          },
          "positive_conditioning": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnimaConditioningField"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/AnimaConditioningField"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "control_lllite": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnimaLLLiteField"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/AnimaLLLiteField"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "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"
          },
          "ip_adapter": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnimaIPAdapterField"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/AnimaIPAdapterField"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Anima IP-Adapter reference images. Images that share an adapter model are attended together.",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "IP-Adapter"
          },
          "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_meta",
            "default": "anima_denoise_meta",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          },
          "vae": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VAEField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional. The Anima VAE, recorded to metadata so recall can restore the VAE selection.",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "VAE"
          },
          "qwen3_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Qwen3EncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional. The Anima Qwen3 encoder, recorded to metadata so recall can restore the encoder selection.",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "Qwen3 Encoder"
          }
        },
        "required": ["type", "id"],
        "tags": ["anima", "latents", "denoise", "txt2img", "t2i", "t2l", "img2img", "i2i", "l2l"],
        "title": "Denoise - Anima + Metadata",
        "type": "object",
        "version": "1.2.0",
        "output": {
          "$ref": "#/components/schemas/LatentsMetaOutput"
        }
      },
      "AnimaIPAdapterField": {
        "description": "A reference image encoded for an Anima IP-Adapter.",
        "properties": {
          "tokens_name": {
            "description": "The name of the SigLIP2 image tokens tensor (strength not applied)",
            "title": "Tokens Name",
            "type": "string"
          },
          "image_name": {
            "description": "The name of the reference image the tokens encode",
            "title": "Image Name",
            "type": "string"
          },
          "ip_adapter_model": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "The Anima IP-Adapter model"
          },
          "strength": {
            "default": 1.0,
            "description": "Scales the image tokens; 0 turns it off",
            "maximum": 2.0,
            "minimum": 0.0,
            "title": "Strength",
            "type": "number"
          },
          "begin_step_percent": {
            "default": 0.0,
            "description": "When the IP-Adapter is first applied (% of total steps)",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Begin Step Percent",
            "type": "number"
          },
          "end_step_percent": {
            "default": 1.0,
            "description": "When the IP-Adapter is last applied (% of total steps)",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "End Step Percent",
            "type": "number"
          }
        },
        "required": ["tokens_name", "image_name", "ip_adapter_model"],
        "title": "AnimaIPAdapterField",
        "type": "object"
      },
      "AnimaIPAdapterInvocation": {
        "category": "conditioning",
        "class": "invocation",
        "classification": "prototype",
        "description": "Encodes a reference image with SigLIP2 for an Anima IP-Adapter, which carries its appearance into the image.\n\nThe SigLIP2 encoder (google/siglip2-base-patch16-512) is installed on first use.",
        "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"
              }
            ],
            "default": null,
            "description": "The reference image.",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "ip_adapter_model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelIdentifierField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "IP-Adapter to apply",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "title": "IP-Adapter Model",
            "ui_model_base": ["anima"],
            "ui_model_type": ["ip_adapter"]
          },
          "strength": {
            "default": 1.0,
            "description": "Scales the image tokens before the adapter projects them. 0 turns the adapter off.",
            "field_kind": "input",
            "input": "any",
            "maximum": 2.0,
            "minimum": 0.0,
            "orig_default": 1.0,
            "orig_required": false,
            "title": "Strength",
            "type": "number"
          },
          "begin_step_percent": {
            "default": 0.0,
            "description": "When the IP-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 IP-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_ip_adapter",
            "default": "anima_ip_adapter",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["ip_adapter", "anima", "reference", "image"],
        "title": "IP-Adapter - Anima",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/AnimaIPAdapterOutput"
        }
      },
      "AnimaIPAdapterOutput": {
        "class": "output",
        "properties": {
          "ip_adapter": {
            "$ref": "#/components/schemas/AnimaIPAdapterField",
            "description": "IP-Adapter to apply",
            "field_kind": "output",
            "title": "IP-Adapter",
            "ui_hidden": false
          },
          "type": {
            "const": "anima_ip_adapter_output",
            "default": "anima_ip_adapter_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "ip_adapter", "type", "type"],
        "title": "AnimaIPAdapterOutput",
        "type": "object"
      },
      "AnimaImageToLatentsInvocation": {
        "category": "image",
        "class": "invocation",
        "classification": "prototype",
        "description": "Generates latents from an image using the Anima VAE (the Wan 2.1 VAE, in either layout).",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to encode.",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "vae": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VAEField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "VAE",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "tiled": {
            "default": false,
            "description": "Processing using overlapping tiles (reduce memory consumption)",
            "field_kind": "input",
            "input": "any",
            "orig_default": false,
            "orig_required": false,
            "title": "Tiled",
            "type": "boolean"
          },
          "tile_size": {
            "default": 0,
            "description": "The tile size for VAE tiling in pixels (image space). If set to 0, the default tile size for the model will be used. Larger tile sizes generally produce better results at the cost of higher memory usage. Values between 1 and 64 are raised to 64.",
            "field_kind": "input",
            "input": "any",
            "multipleOf": 8,
            "orig_default": 0,
            "orig_required": false,
            "title": "Tile Size",
            "type": "integer"
          },
          "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.1.0",
        "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"
          },
          "mask_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "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"
          },
          "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"
          }
        },
        "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"
              }
            ],
            "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
          },
          "control_model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelIdentifierField"
              },
              {
                "type": "null"
              }
            ],
            "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"
          }
        },
        "required": ["output_meta", "control", "type", "type"],
        "title": "AnimaLLLiteOutput",
        "type": "object"
      },
      "AnimaLatentsToImageInvocation": {
        "category": "latents",
        "class": "invocation",
        "classification": "prototype",
        "description": "Generates an image from latents using the Anima VAE (the Wan 2.1 VAE, in either layout).",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
              }
            ],
            "default": null,
            "description": "Latents tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "vae": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VAEField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "VAE",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "type": {
            "const": "anima_l2i",
            "default": "anima_l2i",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["latents", "image", "vae", "l2i", "anima"],
        "title": "Latents to Image - Anima",
        "type": "object",
        "version": "1.0.4",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "AnimaLoRACollectionLoader": {
        "category": "model",
        "class": "invocation",
        "classification": "prototype",
        "description": "Applies a collection of LoRAs to an Anima transformer.",
        "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"
          },
          "loras": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LoRAField"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/LoRAField"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LoRA models and weights. May be a single LoRA or collection.",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false,
            "title": "LoRAs",
            "ui_model_base": ["anima"],
            "ui_model_type": ["lora"]
          },
          "transformer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TransformerField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Transformer",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "Transformer"
          },
          "qwen3_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Qwen3EncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Qwen3 tokenizer and text encoder",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "Qwen3 Encoder"
          },
          "type": {
            "const": "anima_lora_collection_loader",
            "default": "anima_lora_collection_loader",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["lora", "model", "anima"],
        "title": "Apply LoRA Collection - Anima",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/AnimaLoRALoaderOutput"
        }
      },
      "AnimaLoRALoaderInvocation": {
        "category": "model",
        "class": "invocation",
        "classification": "prototype",
        "description": "Apply a LoRA model to an Anima transformer and/or Qwen3 text encoder.",
        "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"
          },
          "lora": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelIdentifierField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "LoRA model to load",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "title": "LoRA",
            "ui_model_base": ["anima"],
            "ui_model_type": ["lora"]
          },
          "weight": {
            "default": 0.75,
            "description": "The weight at which the LoRA is applied to each model",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0.75,
            "orig_required": false,
            "title": "Weight",
            "type": "number"
          },
          "transformer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TransformerField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Transformer",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "Anima Transformer"
          },
          "qwen3_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Qwen3EncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Qwen3 tokenizer and text encoder",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "Qwen3 Encoder"
          },
          "type": {
            "const": "anima_lora_loader",
            "default": "anima_lora_loader",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["lora", "model", "anima"],
        "title": "Apply LoRA - Anima",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/AnimaLoRALoaderOutput"
        }
      },
      "AnimaLoRALoaderOutput": {
        "class": "output",
        "description": "Anima LoRA Loader Output",
        "properties": {
          "transformer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TransformerField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Transformer",
            "field_kind": "output",
            "title": "Anima Transformer",
            "ui_hidden": false
          },
          "qwen3_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Qwen3EncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Qwen3 tokenizer and text encoder",
            "field_kind": "output",
            "title": "Qwen3 Encoder",
            "ui_hidden": false
          },
          "type": {
            "const": "anima_lora_loader_output",
            "default": "anima_lora_loader_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "transformer", "qwen3_encoder", "type", "type"],
        "title": "AnimaLoRALoaderOutput",
        "type": "object"
      },
      "AnimaModelLoaderInvocation": {
        "category": "model",
        "class": "invocation",
        "classification": "prototype",
        "description": "Loads an Anima model, outputting its submodels.\n\nAnima uses:\n- Transformer: Cosmos Predict2 DiT + LLM Adapter (from single-file checkpoint)\n- Qwen3 Encoder: Qwen3 0.6B (standalone single-file)\n- VAE: AutoencoderKLQwenImage / Wan 2.1 VAE (standalone single-file)\n- Qwen3.5 Encoder: Qwen3.5 4B, for Anima-3.8B only, whose bundled semantic connector reads it\n\nThe T5-XXL tokenizer needed for LLM Adapter token IDs is bundled in the package,\nso no T5-XXL encoder model needs to be installed.",
        "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"
          },
          "model": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "Anima main model (transformer + LLM adapter).",
            "field_kind": "input",
            "input": "direct",
            "orig_required": true,
            "title": "Transformer",
            "ui_model_base": ["anima"],
            "ui_model_type": ["main"]
          },
          "vae_model": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "Standalone VAE model. Anima uses a Wan 2.1 / QwenImage VAE (16-channel).",
            "field_kind": "input",
            "input": "direct",
            "orig_required": true,
            "title": "VAE",
            "ui_model_base": ["anima", "qwen-image", "wan"],
            "ui_model_type": ["vae"]
          },
          "qwen3_encoder_model": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "Standalone Qwen3 0.6B Encoder model.",
            "field_kind": "input",
            "input": "direct",
            "orig_required": true,
            "title": "Qwen3 Encoder",
            "ui_model_type": ["qwen3_encoder"]
          },
          "qwen3_5_encoder_model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelIdentifierField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Standalone Qwen3.5 4B Encoder model. Required by Anima-3.8B, ignored by every other Anima model.",
            "field_kind": "input",
            "input": "direct",
            "orig_default": null,
            "orig_required": false,
            "title": "Qwen3.5 Encoder",
            "ui_model_type": ["qwen3_5_encoder"]
          },
          "type": {
            "const": "anima_model_loader",
            "default": "anima_model_loader",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["model", "vae_model", "qwen3_encoder_model", "type", "id"],
        "tags": ["model", "anima"],
        "title": "Main Model - Anima",
        "type": "object",
        "version": "1.5.0",
        "output": {
          "$ref": "#/components/schemas/AnimaModelLoaderOutput"
        }
      },
      "AnimaModelLoaderOutput": {
        "class": "output",
        "description": "Anima model loader output.",
        "properties": {
          "transformer": {
            "$ref": "#/components/schemas/TransformerField",
            "description": "Transformer",
            "field_kind": "output",
            "title": "Transformer",
            "ui_hidden": false
          },
          "qwen3_encoder": {
            "$ref": "#/components/schemas/Qwen3EncoderField",
            "description": "Qwen3 tokenizer and text encoder",
            "field_kind": "output",
            "title": "Qwen3 Encoder",
            "ui_hidden": false
          },
          "qwen3_5_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Qwen35EncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Qwen3.5 tokenizer and text encoder. Set only for an Anima-3.8B model.",
            "field_kind": "output",
            "title": "Qwen3.5 Encoder",
            "ui_hidden": false
          },
          "vae": {
            "$ref": "#/components/schemas/VAEField",
            "description": "VAE",
            "field_kind": "output",
            "title": "VAE",
            "ui_hidden": false
          },
          "type": {
            "const": "anima_model_loader_output",
            "default": "anima_model_loader_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "transformer", "qwen3_encoder", "qwen3_5_encoder", "vae", "type", "type"],
        "title": "AnimaModelLoaderOutput",
        "type": "object"
      },
      "AnimaTextEncoderInvocation": {
        "category": "conditioning",
        "class": "invocation",
        "classification": "prototype",
        "description": "Encodes and preps a prompt for an Anima image.\n\nUses Qwen3 0.6B for hidden state extraction and a bundled T5-XXL tokenizer for\ntoken IDs (no T5 model weights needed). Both are combined by the\nLLM Adapter inside the Anima transformer during denoising.",
        "node_pack": "invokeai",
        "properties": {
          "id": {
            "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
            "field_kind": "node_attribute",
            "title": "Id",
            "type": "string"
          },
          "is_intermediate": {
            "default": false,
            "description": "Whether or not this is an intermediate invocation.",
            "field_kind": "node_attribute",
            "input": "direct",
            "orig_required": true,
            "title": "Is Intermediate",
            "type": "boolean",
            "ui_hidden": false,
            "ui_type": "IsIntermediate"
          },
          "use_cache": {
            "default": true,
            "description": "Whether or not to use the cache",
            "field_kind": "node_attribute",
            "title": "Use Cache",
            "type": "boolean"
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text prompt to encode.",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "title": "Prompt",
            "ui_component": "textarea"
          },
          "qwen3_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Qwen3EncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Qwen3 tokenizer and text encoder",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true,
            "title": "Qwen3 Encoder"
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TensorField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A mask defining the region that this conditioning prompt applies to.",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false
          },
          "qwen3_5_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Qwen35EncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Qwen3.5 tokenizer and text encoder. Connect it for Anima-3.8B, which reads both encoders.",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "Qwen3.5 Encoder"
          },
          "type": {
            "const": "anima_text_encoder",
            "default": "anima_text_encoder",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["prompt", "conditioning", "anima"],
        "title": "Prompt - Anima",
        "type": "object",
        "version": "1.5.0",
        "output": {
          "$ref": "#/components/schemas/AnimaConditioningOutput"
        }
      },
      "AnimaVariantType": {
        "type": "string",
        "enum": ["anima_qwen3", "anima_qwen35"],
        "title": "AnimaVariantType",
        "description": "Anima model variants, by how the transformer is conditioned.\n\nThe depth of the DiT (28 blocks for the official release, 40 for Anima-2.9B, 52 for Anima-3.8B)\nis not a variant: the loader reads it from the checkpoint and nothing else depends on it."
      },
      "AnyModelConfig": {
        "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_QwenImage21_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_Wan_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_ZImage_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_ErnieImage_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_Ideogram4_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_Krea2_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_Flux3_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_MiniMaxH3_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_LTX2_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Diffusers_MossImage_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_QwenImage21_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_Wan_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_ZImage_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_ErnieImage_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_Ideogram4_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_Krea2_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_Flux3_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_Anima_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_MiniMaxH3_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_LTX2_Config"
          },
          {
            "$ref": "#/components/schemas/Main_Checkpoint_MossImage_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_QwenImage21_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_Wan_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_ZImage_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_Krea2_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_Flux3_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_Ideogram4_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_ErnieImage_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_LTX2_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_MossImage_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_Anima_Config"
          },
          {
            "$ref": "#/components/schemas/Main_GGUF_SD3_Config"
          },
          {
            "$ref": "#/components/schemas/Main_SDNQ_Diffusers_Flux2_Config"
          },
          {
            "$ref": "#/components/schemas/Main_SDNQ_Diffusers_FLUX_Config"
          },
          {
            "$ref": "#/components/schemas/Main_SDNQ_Diffusers_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_SD3_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Checkpoint_Flux2_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Checkpoint_Wan_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Checkpoint_Anima_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Checkpoint_QwenImage21_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Diffusers_SD1_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Diffusers_SDXL_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Diffusers_FLUX_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Diffusers_SD3_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Diffusers_Flux2_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Diffusers_Wan_Config"
          },
          {
            "$ref": "#/components/schemas/VAE_Diffusers_QwenImage21_Config"
          },
          {
            "$ref": "#/components/schemas/PiDDecoder_Checkpoint_FLUX_Config"
          },
          {
            "$ref": "#/components/schemas/PiDDecoder_Checkpoint_Flux2_Config"
          },
          {
            "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SD3_Config"
          },
          {
            "$ref": "#/components/schemas/PiDDecoder_Checkpoint_SDXL_Config"
          },
          {
            "$ref": "#/components/schemas/PiDDecoder_Checkpoint_QwenImage_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD1_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SDXL_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_SD3_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_FLUX_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Flux2_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_QwenImage21_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_Wan_Config"
          },
          {
            "$ref": "#/components/schemas/TinyAutoencoder_Checkpoint_LTX2_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_Checkpoint_QwenImage_Config"
          },
          {
            "$ref": "#/components/schemas/ControlNet_Checkpoint_Flux2_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_Krea2_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_QwenImage21_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_Flux3_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_LTX2_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_MiniMaxH3_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_MossImage_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_ErnieImage_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_Ideogram4_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_SD3_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_LyCORIS_Wan_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_SD3_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_Diffusers_Flux2_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_Diffusers_FLUX_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_Diffusers_Flux3_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_Diffusers_MossImage_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_Diffusers_Ideogram4_Config"
          },
          {
            "$ref": "#/components/schemas/LoRA_Diffusers_ZImage_Config"
          },
          {
            "$ref": "#/components/schemas/ControlLoRA_LyCORIS_FLUX_Config"
          },
          {
            "$ref": "#/components/schemas/ControlLoRA_LyCORIS_Krea2_Config"
          },
          {
            "$ref": "#/components/schemas/T5Encoder_T5Encoder_Config"
          },
          {
            "$ref": "#/components/schemas/T5Encoder_BnBLLMint8_Config"
          },
          {
            "$ref": "#/components/schemas/T5Encoder_SDNQ_Config"
          },
          {
            "$ref": "#/components/schemas/T5Encoder_GGUF_Config"
          },
          {
            "$ref": "#/components/schemas/T5Encoder_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_MiniMaxH3_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3VLEncoder_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3VLEncoder_GGUF_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3VLEncoder_Qwen3VLEncoder_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3VLVisionTower_GGUF_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen35Encoder_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3Encoder_Qwen3Encoder_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3Encoder_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3Encoder_GGUF_Config"
          },
          {
            "$ref": "#/components/schemas/Qwen3Encoder_SDNQ_Folder_Config"
          },
          {
            "$ref": "#/components/schemas/MistralEncoder_Diffusers_Config"
          },
          {
            "$ref": "#/components/schemas/MistralEncoder_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/MistralEncoder_GGUF_Config"
          },
          {
            "$ref": "#/components/schemas/Gemma2Encoder_Gemma2Encoder_Config"
          },
          {
            "$ref": "#/components/schemas/Gemma4Encoder_Gemma4Encoder_LTX2_Config"
          },
          {
            "$ref": "#/components/schemas/Gemma4Encoder_GGUF_LTX2_Config"
          },
          {
            "$ref": "#/components/schemas/Gemma2Encoder_GGUF_Config"
          },
          {
            "$ref": "#/components/schemas/QwenVLEncoder_Diffusers_Config"
          },
          {
            "$ref": "#/components/schemas/QwenVLEncoder_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/QwenVLEncoder_GGUF_Config"
          },
          {
            "$ref": "#/components/schemas/WanT5Encoder_WanT5Encoder_Config"
          },
          {
            "$ref": "#/components/schemas/WanT5Encoder_GGUF_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/IPAdapter_Checkpoint_Anima_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/CLIPEmbed_Checkpoint_G_Config"
          },
          {
            "$ref": "#/components/schemas/CLIPEmbed_Checkpoint_L_Config"
          },
          {
            "$ref": "#/components/schemas/CLIPVision_Diffusers_Config"
          },
          {
            "$ref": "#/components/schemas/SigLIP_Diffusers_Config"
          },
          {
            "$ref": "#/components/schemas/FLUXRedux_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/LTX2DurationHead_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/LlavaOnevision_Diffusers_Config"
          },
          {
            "$ref": "#/components/schemas/TextLLM_Diffusers_Config"
          },
          {
            "$ref": "#/components/schemas/TextLLM_Checkpoint_Config"
          },
          {
            "$ref": "#/components/schemas/ExternalApiModelConfig"
          },
          {
            "$ref": "#/components/schemas/Unknown_Config"
          }
        ]
      },
      "AppVersion": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version",
            "description": "App version"
          }
        },
        "type": "object",
        "required": ["version"],
        "title": "AppVersion",
        "description": "App Version Response"
      },
      "ApplyMaskTensorToImageInvocation": {
        "category": "mask",
        "class": "invocation",
        "classification": "stable",
        "description": "Applies a tensor mask to an image.\n\nThe image is converted to RGBA and the mask is applied to the alpha channel.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TensorField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The mask tensor to apply.",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to apply the mask to.",
            "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": "apply_tensor_mask_to_image",
            "default": "apply_tensor_mask_to_image",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["mask"],
        "title": "Apply Tensor Mask to Image",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "ApplyMaskToImageInvocation": {
        "category": "mask",
        "class": "invocation",
        "classification": "stable",
        "description": "Extracts a region from a generated image using a mask and blends it seamlessly onto a source image.\nThe mask uses black to indicate areas to keep from the generated image and white for areas to discard.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image from which to extract the masked region",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The mask defining the region (black=keep, white=discard)",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "invert_mask": {
            "default": false,
            "description": "Whether to invert the mask before applying it",
            "field_kind": "input",
            "input": "any",
            "orig_default": false,
            "orig_required": false,
            "title": "Invert Mask",
            "type": "boolean"
          },
          "type": {
            "const": "apply_mask_to_image",
            "default": "apply_mask_to_image",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "mask", "blend"],
        "title": "Apply Mask to Image",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "ArchitectureCapabilities": {
        "properties": {
          "base": {
            "$ref": "#/components/schemas/BaseModelType"
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Variant",
            "description": "Null for the architecture's own row. A variant row overrides it."
          },
          "features": {
            "$ref": "#/components/schemas/ArchitectureFeatures"
          },
          "defaults": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MainModelDefaultSettings"
              },
              {
                "type": "null"
              }
            ],
            "description": "Recommended generation parameters, if the architecture has any."
          },
          "vae": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ArchitectureVae"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null where the architecture declares no VAE compatibility beyond its own base."
          }
        },
        "type": "object",
        "required": ["base", "features"],
        "title": "ArchitectureCapabilities",
        "description": "One row of the table."
      },
      "ArchitectureFeatures": {
        "properties": {
          "negative_prompt": {
            "$ref": "#/components/schemas/NegativePromptPolicy"
          },
          "dimension_grid": {
            "type": "integer",
            "title": "Dimension Grid",
            "description": "Width and height must be a multiple of this. A variant row may carry its own."
          },
          "guidance_label": {
            "type": "string",
            "title": "Guidance Label",
            "description": "What to call the guidance slider: 'CFG' or 'Guidance'."
          },
          "guidance_min": {
            "type": "number",
            "title": "Guidance Min",
            "description": "Lowest guidance value the slider offers: 1.0, which is no guidance, or the denoise node's own floor where that is higher."
          },
          "guidance_max": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Guidance Max",
            "description": "Highest guidance value the denoise node accepts; null means it enforces no ceiling."
          },
          "scheduler_set": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["standard", "flow", "flow-no-lcm", "anima"]
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduler Set",
            "description": "Which scheduler family to offer; null means no choice."
          },
          "scheduler_applies_to_graph": {
            "type": "boolean",
            "title": "Scheduler Applies To Graph",
            "default": false
          },
          "control_kinds": {
            "items": {
              "type": "string",
              "enum": [
                "controlnet",
                "t2i_adapter",
                "control_lora",
                "z_image_control",
                "anima_lllite",
                "qwen_image_control",
                "flux2_control"
              ]
            },
            "type": "array",
            "title": "Control Kinds",
            "description": "Sorted."
          },
          "max_reference_images": {
            "type": "integer",
            "title": "Max Reference Images",
            "default": 0
          },
          "reference_images_require_variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reference Images Require Variant",
            "description": "If set, reference images are only accepted for models of this variant."
          },
          "reference_images_require_vision_tower": {
            "type": "boolean",
            "title": "Reference Images Require Vision Tower",
            "description": "If true, reference images are read by the Qwen3-VL vision tower: the effective encoder (the model's own or a standalone one) must carry one.",
            "default": false
          },
          "supports_regional_guidance": {
            "type": "boolean",
            "title": "Supports Regional Guidance",
            "default": false
          },
          "regional_negative": {
            "type": "boolean",
            "title": "Regional Negative",
            "description": "Whether a region's negative prompt is masked, rather than applied globally.",
            "default": false
          },
          "clip_skip_max": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Clip Skip Max"
          },
          "supports_seamless": {
            "type": "boolean",
            "title": "Supports Seamless",
            "default": false
          },
          "supports_cfg_rescale": {
            "type": "boolean",
            "title": "Supports Cfg Rescale",
            "default": false
          },
          "sd_vae_override": {
            "type": "boolean",
            "title": "Sd Vae Override",
            "default": false
          },
          "color_compensation": {
            "type": "boolean",
            "title": "Color Compensation",
            "default": false
          },
          "vae_precision": {
            "type": "boolean",
            "title": "Vae Precision",
            "default": false
          }
        },
        "type": "object",
        "required": ["negative_prompt", "dimension_grid", "guidance_label", "guidance_min"],
        "title": "ArchitectureFeatures",
        "description": "What a UI may offer for this architecture."
      },
      "ArchitectureVae": {
        "properties": {
          "accepted": {
            "items": {
              "$ref": "#/components/schemas/VaeAcceptance"
            },
            "type": "array",
            "title": "Accepted"
          }
        },
        "type": "object",
        "required": ["accepted"],
        "title": "ArchitectureVae",
        "description": "Which VAEs an architecture's decode accepts, beyond its own base.\n\nServed because the clients keep their own copy of this and it drifts: widening a backend list\nwithout the picker leaves a VAE that loads but cannot be chosen. A variant row carries its own\nlist where its decoder differs -- Wan TI2V-5B takes the 48-channel VAE, A14B the 16-channel one."
      },
      "AtlasCloudImageGenerationInvocation": {
        "category": "image",
        "class": "invocation",
        "classification": "stable",
        "description": "Generate images through the Atlas Cloud asynchronous media API.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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": ["atlascloud"],
            "ui_model_type": ["external_image_generator"]
          },
          "mode": {
            "default": "txt2img",
            "description": "Generation mode.",
            "enum": ["txt2img", "img2img", "inpaint"],
            "field_kind": "input",
            "input": "any",
            "orig_default": "txt2img",
            "orig_required": false,
            "title": "Mode",
            "type": "string",
            "ui_hidden": true
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Prompt",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "title": "Prompt"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "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"
          },
          "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"
          },
          "image_size": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "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"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Init image for img2img/inpaint",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false,
            "ui_hidden": true
          },
          "mask_image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Mask image for inpaint",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false,
            "ui_hidden": true
          },
          "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",
            "ui_hidden": true
          },
          "type": {
            "const": "atlascloud_image_generation",
            "default": "atlascloud_image_generation",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["external", "generation", "atlascloud"],
        "title": "Atlas Cloud Image Generation",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageCollectionOutput"
        }
      },
      "BaseMetadata": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "model's name"
          },
          "type": {
            "type": "string",
            "const": "basemetadata",
            "title": "Type",
            "default": "basemetadata"
          }
        },
        "type": "object",
        "required": ["name"],
        "title": "BaseMetadata",
        "description": "Adds typing data for discriminated union."
      },
      "BaseModelType": {
        "type": "string",
        "enum": [
          "any",
          "sd-1",
          "sd-2",
          "sd-3",
          "sdxl",
          "sdxl-refiner",
          "flux",
          "flux2",
          "flux3",
          "cogview4",
          "z-image",
          "ernie-image",
          "ideogram-4",
          "external",
          "qwen-image",
          "anima",
          "qwen-image-2-1",
          "krea-2",
          "wan",
          "minimax-h3",
          "ltx-2",
          "moss-image",
          "unknown"
        ],
        "title": "BaseModelType",
        "description": "An enumeration of base model architectures. For example, Stable Diffusion 1.x, Stable Diffusion 2.x, FLUX, etc.\n\nEvery model config must have a base architecture type.\n\nNot all models are associated with a base architecture. For example, CLIP models are their own thing, not related\nto any particular model architecture. To simplify internal APIs and make it easier to work with models, we use a\nfallback/null value `BaseModelType.Any` for these models, instead of making the model base optional."
      },
      "Batch": {
        "properties": {
          "batch_id": {
            "type": "string",
            "maxLength": 255,
            "title": "Batch Id",
            "description": "The ID of the batch"
          },
          "idempotency_key": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Idempotency Key",
            "description": "A caller-owned retry key. Reusing it with a different payload is rejected."
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id",
            "description": "The authoritative project that owns this submission, when applicable."
          },
          "origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin",
            "description": "The origin of this queue item. This data is used by the frontend to determine how to handle results."
          },
          "destination": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destination",
            "description": "The origin of this queue item. This data is used by the frontend to determine how to handle results"
          },
          "data": {
            "anyOf": [
              {
                "items": {
                  "items": {
                    "$ref": "#/components/schemas/BatchDatum"
                  },
                  "type": "array"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data",
            "description": "The batch data collection."
          },
          "graph": {
            "$ref": "#/components/schemas/Graph",
            "description": "The graph to initialize the session with"
          },
          "workflow": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkflowWithoutID"
              },
              {
                "type": "null"
              }
            ],
            "description": "The workflow to initialize the session with"
          },
          "runs": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Runs",
            "description": "Int stating how many times to iterate through all possible batch indices",
            "default": 1
          }
        },
        "type": "object",
        "required": ["graph", "runs"],
        "title": "Batch"
      },
      "BatchDatum": {
        "properties": {
          "node_path": {
            "type": "string",
            "title": "Node Path",
            "description": "The node into which this batch data collection will be substituted."
          },
          "field_name": {
            "type": "string",
            "title": "Field Name",
            "description": "The field into which this batch data collection will be substituted."
          },
          "items": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                },
                {
                  "type": "integer"
                },
                {
                  "$ref": "#/components/schemas/ImageField"
                },
                {
                  "$ref": "#/components/schemas/VideoField"
                },
                {
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "integer"
                      },
                      {
                        "$ref": "#/components/schemas/ImageField"
                      },
                      {
                        "$ref": "#/components/schemas/VideoField"
                      }
                    ]
                  },
                  "type": "array"
                }
              ]
            },
            "type": "array",
            "title": "Items",
            "description": "The list of items to substitute into the node/field."
          }
        },
        "type": "object",
        "required": ["node_path", "field_name"],
        "title": "BatchDatum"
      },
      "BatchEnqueuedEvent": {
        "description": "Event model for batch_enqueued",
        "properties": {
          "timestamp": {
            "description": "The timestamp of the event",
            "title": "Timestamp",
            "type": "integer"
          },
          "queue_id": {
            "description": "The ID of the queue",
            "title": "Queue Id",
            "type": "string"
          },
          "batch_id": {
            "description": "The ID of the batch",
            "title": "Batch Id",
            "type": "string"
          },
          "enqueued": {
            "description": "The number of invocations enqueued",
            "title": "Enqueued",
            "type": "integer"
          },
          "requested": {
            "description": "The number of invocations initially requested to be enqueued (may be less than enqueued if queue was full)",
            "title": "Requested",
            "type": "integer"
          },
          "priority": {
            "description": "The priority of the batch",
            "title": "Priority",
            "type": "integer"
          },
          "origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The origin of the batch",
            "title": "Origin"
          },
          "user_id": {
            "default": "system",
            "description": "The ID of the user who enqueued the batch",
            "title": "User Id",
            "type": "string"
          }
        },
        "required": ["timestamp", "queue_id", "batch_id", "enqueued", "requested", "priority", "origin", "user_id"],
        "title": "BatchEnqueuedEvent",
        "type": "object"
      },
      "BatchStatus": {
        "properties": {
          "queue_id": {
            "type": "string",
            "title": "Queue Id",
            "description": "The ID of the queue"
          },
          "batch_id": {
            "type": "string",
            "title": "Batch Id",
            "description": "The ID of the batch"
          },
          "origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Origin",
            "description": "The origin of the batch"
          },
          "destination": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destination",
            "description": "The destination of the batch"
          },
          "pending": {
            "type": "integer",
            "title": "Pending",
            "description": "Number of queue items with status 'pending'"
          },
          "in_progress": {
            "type": "integer",
            "title": "In Progress",
            "description": "Number of queue items with status 'in_progress'"
          },
          "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'"
          },
          "total": {
            "type": "integer",
            "title": "Total",
            "description": "Total number of queue items"
          }
        },
        "type": "object",
        "required": [
          "queue_id",
          "batch_id",
          "origin",
          "destination",
          "pending",
          "in_progress",
          "waiting",
          "completed",
          "failed",
          "canceled",
          "total"
        ],
        "title": "BatchStatus"
      },
      "BlankImageInvocation": {
        "category": "image",
        "class": "invocation",
        "classification": "stable",
        "description": "Creates a blank image and forwards it to the pipeline",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "width": {
            "default": 512,
            "description": "The width of the image",
            "field_kind": "input",
            "input": "any",
            "orig_default": 512,
            "orig_required": false,
            "title": "Width",
            "type": "integer"
          },
          "height": {
            "default": 512,
            "description": "The height of the image",
            "field_kind": "input",
            "input": "any",
            "orig_default": 512,
            "orig_required": false,
            "title": "Height",
            "type": "integer"
          },
          "mode": {
            "default": "RGB",
            "description": "The mode of the image",
            "enum": ["RGB", "RGBA"],
            "field_kind": "input",
            "input": "any",
            "orig_default": "RGB",
            "orig_required": false,
            "title": "Mode",
            "type": "string"
          },
          "color": {
            "$ref": "#/components/schemas/ColorField",
            "default": {
              "r": 0,
              "g": 0,
              "b": 0,
              "a": 255
            },
            "description": "The color of the image",
            "field_kind": "input",
            "input": "any",
            "orig_default": {
              "a": 255,
              "b": 0,
              "g": 0,
              "r": 0
            },
            "orig_required": false
          },
          "type": {
            "const": "blank_image",
            "default": "blank_image",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image"],
        "title": "Blank Image",
        "type": "object",
        "version": "1.2.2",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "BlendLatentsInvocation": {
        "category": "latents",
        "class": "invocation",
        "classification": "stable",
        "description": "Blend two latents using a given alpha. If a mask is provided, the second latents will be masked before blending.\nLatents must have same size. Masking functionality added by @dwringer.",
        "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_a": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LatentsField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Latents tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "latents_b": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LatentsField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Latents tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Mask for blending in latents B",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false
          },
          "alpha": {
            "default": 0.5,
            "description": "Blending factor. 0.0 = use input A only, 1.0 = use input B only, 0.5 = 50% mix of input A and input B.",
            "field_kind": "input",
            "input": "any",
            "minimum": 0,
            "orig_default": 0.5,
            "orig_required": false,
            "title": "Alpha",
            "type": "number"
          },
          "type": {
            "const": "lblend",
            "default": "lblend",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["latents", "blend", "mask"],
        "title": "Blend Latents",
        "type": "object",
        "version": "1.1.1",
        "output": {
          "$ref": "#/components/schemas/LatentsOutput"
        }
      },
      "BoardAction": {
        "type": "string",
        "enum": [
          "read",
          "add_media",
          "manage_items",
          "rename",
          "set_cover",
          "archive",
          "set_general_access",
          "move",
          "delete"
        ],
        "title": "BoardAction",
        "description": "What a caller can do to a board as a whole."
      },
      "BoardChanges": {
        "properties": {
          "board_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ],
            "title": "Board Name",
            "description": "The board's new name."
          },
          "cover_image_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image Name",
            "description": "The name of the board's new cover image."
          },
          "archived": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived",
            "description": "Whether or not the board is archived"
          },
          "general_access": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GeneralAccess"
              },
              {
                "type": "null"
              }
            ],
            "description": "The role every other account gets on the board. Only its owner may change it."
          },
          "board_visibility": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardVisibility"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated, to be removed in 8.0: general access under its old name. Send `general_access`.",
            "deprecated": true
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id",
            "description": "Move the board into one of the owner's projects, or to the Library with an explicit null. Omit the field to leave the board where it is."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "BoardChanges"
      },
      "BoardDTO": {
        "properties": {
          "board_id": {
            "type": "string",
            "title": "Board Id",
            "description": "The unique ID of the board."
          },
          "board_name": {
            "type": "string",
            "title": "Board Name",
            "description": "The name of the board."
          },
          "user_id": {
            "type": "string",
            "title": "User Id",
            "description": "The user ID of the board owner."
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ],
            "title": "Created At",
            "description": "The created timestamp of the board."
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              }
            ],
            "title": "Updated At",
            "description": "The updated timestamp of the board."
          },
          "deleted_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Deleted At",
            "description": "The deleted timestamp of the board."
          },
          "cover_image_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image Name",
            "description": "The name of the board's cover image."
          },
          "archived": {
            "type": "boolean",
            "title": "Archived",
            "description": "Whether or not the board is archived."
          },
          "general_access": {
            "$ref": "#/components/schemas/GeneralAccess",
            "description": "The role every other account gets on the board: none (restricted), viewer or contributor.",
            "default": "restricted"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id",
            "description": "The id of the owner's project this board belongs to; absent for a Library board."
          },
          "cover_video_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Video Name",
            "description": "The name of the board's cover video, when the most recent item is a video."
          },
          "image_count": {
            "type": "integer",
            "title": "Image Count",
            "description": "The number of images in the board."
          },
          "video_count": {
            "type": "integer",
            "title": "Video Count",
            "description": "The number of videos in the board that the gallery's Media or Uploads view lists.",
            "default": 0
          },
          "asset_count": {
            "type": "integer",
            "title": "Asset Count",
            "description": "The number of assets in the board."
          },
          "asset_video_count": {
            "type": "integer",
            "title": "Asset Video Count",
            "description": "The number of asset-category videos in the board, which the Uploads view lists.",
            "default": 0
          },
          "owner_username": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Owner Username",
            "description": "The board owner's display name. Admins get the email of an owner without one; other callers get 'Unknown user'. Null when the owner's account no longer exists."
          },
          "board_visibility": {
            "$ref": "#/components/schemas/BoardVisibility",
            "description": "Deprecated, to be removed in 8.0: `general_access` under its old name.",
            "default": "private",
            "deprecated": true
          },
          "my_role": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardRole"
              },
              {
                "type": "null"
              }
            ],
            "description": "The caller's own role on the board; null when only admin rights give access."
          },
          "allowed_actions": {
            "items": {
              "$ref": "#/components/schemas/BoardAction"
            },
            "type": "array",
            "title": "Allowed Actions",
            "description": "The board actions the caller may take. Gate interfaces on these."
          },
          "admin_override": {
            "type": "boolean",
            "title": "Admin Override",
            "description": "Whether admin rights give the caller more than `my_role` does.",
            "default": false
          },
          "is_inbox": {
            "type": "boolean",
            "title": "Is Inbox",
            "description": "Whether this board is its project's inbox, which only the project APIs may change.",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "board_id",
          "board_name",
          "user_id",
          "created_at",
          "updated_at",
          "cover_image_name",
          "archived",
          "image_count",
          "asset_count"
        ],
        "title": "BoardDTO",
        "description": "Deserialized board record with cover image URL and image count."
      },
      "BoardField": {
        "description": "A board primitive field",
        "properties": {
          "board_id": {
            "description": "The id of the board",
            "title": "Board Id",
            "type": "string"
          }
        },
        "required": ["board_id"],
        "title": "BoardField",
        "type": "object"
      },
      "BoardRecordOrderBy": {
        "type": "string",
        "enum": ["created_at", "board_name"],
        "title": "BoardRecordOrderBy",
        "description": "The order by options for board records"
      },
      "BoardRole": {
        "type": "string",
        "enum": ["viewer", "contributor", "editor", "owner"],
        "title": "BoardRole",
        "description": "A caller's role on a board. Each role allows everything the roles before it allow."
      },
      "BoardVisibility": {
        "type": "string",
        "enum": ["private", "shared", "public"],
        "title": "BoardVisibility",
        "description": "Deprecated: a board's general access under its pre-7.0 name. Kept until 8.0 for older clients."
      },
      "Body_acknowledge_enqueue_batch": {
        "properties": {
          "idempotency_key": {
            "type": "string",
            "maxLength": 255,
            "minLength": 1,
            "title": "Idempotency Key",
            "description": "The acknowledged enqueue retry key"
          }
        },
        "type": "object",
        "required": ["idempotency_key"],
        "title": "Body_acknowledge_enqueue_batch"
      },
      "Body_add_image_to_board": {
        "properties": {
          "board_id": {
            "type": "string",
            "title": "Board Id",
            "description": "The id of the board to add to"
          },
          "image_name": {
            "type": "string",
            "title": "Image Name",
            "description": "The name of the image to add"
          }
        },
        "type": "object",
        "required": ["board_id", "image_name"],
        "title": "Body_add_image_to_board"
      },
      "Body_add_images_to_board": {
        "properties": {
          "board_id": {
            "type": "string",
            "title": "Board Id",
            "description": "The id of the board to add to"
          },
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "The names of the images to add"
          }
        },
        "type": "object",
        "required": ["board_id", "image_names"],
        "title": "Body_add_images_to_board"
      },
      "Body_cancel_by_batch_ids": {
        "properties": {
          "batch_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Batch Ids",
            "description": "The list of batch_ids to cancel all queue items for"
          }
        },
        "type": "object",
        "required": ["batch_ids"],
        "title": "Body_cancel_by_batch_ids"
      },
      "Body_copy_images_to_board": {
        "properties": {
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "The names of the images to copy"
          },
          "board_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Board Id",
            "description": "The board to put the copies on, if any"
          }
        },
        "type": "object",
        "required": ["image_names"],
        "title": "Body_copy_images_to_board"
      },
      "Body_copy_videos_to_board": {
        "properties": {
          "video_names": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Video Names",
            "description": "The names of the videos to copy"
          },
          "board_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Board Id",
            "description": "The board to put the copies on, if any"
          }
        },
        "type": "object",
        "required": ["video_names"],
        "title": "Body_copy_videos_to_board"
      },
      "Body_create_image_upload_entry": {
        "properties": {
          "width": {
            "type": "integer",
            "title": "Width",
            "description": "The width of the image"
          },
          "height": {
            "type": "integer",
            "title": "Height",
            "description": "The height of the image"
          },
          "board_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Board Id",
            "description": "The board to add this image to, if any"
          }
        },
        "type": "object",
        "required": ["width", "height"],
        "title": "Body_create_image_upload_entry"
      },
      "Body_create_style_preset": {
        "properties": {
          "image": {
            "anyOf": [
              {
                "type": "string",
                "contentMediaType": "application/octet-stream"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image",
            "description": "The image file to upload"
          },
          "data": {
            "type": "string",
            "title": "Data",
            "description": "The data of the style preset to create"
          }
        },
        "type": "object",
        "required": ["data"],
        "title": "Body_create_style_preset"
      },
      "Body_create_workflow": {
        "properties": {
          "workflow": {
            "$ref": "#/components/schemas/WorkflowWithoutID",
            "description": "The workflow to create"
          },
          "workflow_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Id",
            "description": "A client-reserved UUID for the new record. Retrying the same creation with the same id returns the record already created for it; another owner's record or different content under that id is a 409."
          }
        },
        "type": "object",
        "required": ["workflow"],
        "title": "Body_create_workflow"
      },
      "Body_delete_images_from_list": {
        "properties": {
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "The list of names of images to delete"
          }
        },
        "type": "object",
        "required": ["image_names"],
        "title": "Body_delete_images_from_list"
      },
      "Body_delete_wildcards": {
        "properties": {
          "wildcard_ids": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "minItems": 1,
            "title": "Wildcard Ids",
            "description": "The ids of the wildcards to delete"
          }
        },
        "type": "object",
        "required": ["wildcard_ids"],
        "title": "Body_delete_wildcards"
      },
      "Body_do_hf_login": {
        "properties": {
          "token": {
            "type": "string",
            "title": "Token",
            "description": "Hugging Face token to use for login"
          }
        },
        "type": "object",
        "required": ["token"],
        "title": "Body_do_hf_login"
      },
      "Body_download_images_from_list": {
        "properties": {
          "image_names": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 255
                },
                "type": "array",
                "maxItems": 1000
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Names",
            "description": "The list of names of images to download"
          },
          "board_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Board Id",
            "description": "The board from which image should be downloaded"
          }
        },
        "type": "object",
        "title": "Body_download_images_from_list"
      },
      "Body_enqueue_batch": {
        "properties": {
          "batch": {
            "$ref": "#/components/schemas/Batch",
            "description": "Batch to process"
          },
          "prepend": {
            "type": "boolean",
            "title": "Prepend",
            "description": "Whether or not to prepend this batch in the queue",
            "default": false
          }
        },
        "type": "object",
        "required": ["batch"],
        "title": "Body_enqueue_batch"
      },
      "Body_get_gone_images": {
        "properties": {
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "The names of images to check"
          }
        },
        "type": "object",
        "required": ["image_names"],
        "title": "Body_get_gone_images"
      },
      "Body_get_images_by_names": {
        "properties": {
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "Object containing list of image names to fetch DTOs for"
          }
        },
        "type": "object",
        "required": ["image_names"],
        "title": "Body_get_images_by_names"
      },
      "Body_get_queue_item_summaries_by_ids": {
        "properties": {
          "item_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Item Ids",
            "description": "Object containing list of queue item ids to fetch summaries for"
          }
        },
        "type": "object",
        "required": ["item_ids"],
        "title": "Body_get_queue_item_summaries_by_ids"
      },
      "Body_get_queue_items_by_item_ids": {
        "properties": {
          "item_ids": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Item Ids",
            "description": "Object containing list of queue item ids to fetch queue items for"
          }
        },
        "type": "object",
        "required": ["item_ids"],
        "title": "Body_get_queue_items_by_item_ids"
      },
      "Body_import_style_presets": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "description": "The file to import"
          }
        },
        "type": "object",
        "required": ["file"],
        "title": "Body_import_style_presets"
      },
      "Body_parse_dynamicprompts": {
        "properties": {
          "prompt": {
            "type": "string",
            "title": "Prompt",
            "description": "The prompt to parse with dynamicprompts"
          },
          "max_prompts": {
            "type": "integer",
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Max Prompts",
            "description": "The max number of prompts to generate",
            "default": 1000
          },
          "combinatorial": {
            "type": "boolean",
            "title": "Combinatorial",
            "description": "Whether to use the combinatorial generator",
            "default": true
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Seed",
            "description": "The seed to use for random generation. Only used if not combinatorial"
          }
        },
        "type": "object",
        "required": ["prompt"],
        "title": "Body_parse_dynamicprompts"
      },
      "Body_remove_image_from_board": {
        "properties": {
          "image_name": {
            "type": "string",
            "title": "Image Name",
            "description": "The name of the image to remove"
          }
        },
        "type": "object",
        "required": ["image_name"],
        "title": "Body_remove_image_from_board"
      },
      "Body_remove_images_from_board": {
        "properties": {
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "The names of the images to remove"
          }
        },
        "type": "object",
        "required": ["image_names"],
        "title": "Body_remove_images_from_board"
      },
      "Body_remove_video_from_board": {
        "properties": {
          "video_name": {
            "type": "string",
            "title": "Video Name",
            "description": "The name of the video to remove from its board"
          }
        },
        "type": "object",
        "required": ["video_name"],
        "title": "Body_remove_video_from_board"
      },
      "Body_search_image_map_by_image": {
        "properties": {
          "image": {
            "anyOf": [
              {
                "type": "string",
                "contentMediaType": "application/octet-stream"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image",
            "description": "Reference image file"
          }
        },
        "type": "object",
        "title": "Body_search_image_map_by_image"
      },
      "Body_set_workflow_thumbnail": {
        "properties": {
          "image": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "Image",
            "description": "The image file to upload"
          }
        },
        "type": "object",
        "required": ["image"],
        "title": "Body_set_workflow_thumbnail"
      },
      "Body_star_images_in_list": {
        "properties": {
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "The list of names of images to star"
          }
        },
        "type": "object",
        "required": ["image_names"],
        "title": "Body_star_images_in_list"
      },
      "Body_unstar_images_in_list": {
        "properties": {
          "image_names": {
            "items": {
              "type": "string",
              "maxLength": 255
            },
            "type": "array",
            "maxItems": 1000,
            "title": "Image Names",
            "description": "The list of names of images to unstar"
          }
        },
        "type": "object",
        "required": ["image_names"],
        "title": "Body_unstar_images_in_list"
      },
      "Body_update_model_image": {
        "properties": {
          "image": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "Image"
          }
        },
        "type": "object",
        "required": ["image"],
        "title": "Body_update_model_image"
      },
      "Body_update_style_preset": {
        "properties": {
          "image": {
            "anyOf": [
              {
                "type": "string",
                "contentMediaType": "application/octet-stream"
              },
              {
                "type": "null"
              }
            ],
            "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"
          },
          "expected_revision": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Revision",
            "description": "The content revision the client last observed; when set, a different stored revision refuses the write with 409 instead of overwriting newer content."
          }
        },
        "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_file": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          }
        },
        "type": "object",
        "required": ["file"],
        "title": "Body_upload_file"
      },
      "Body_upload_font": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "description": "The font file to upload"
          },
          "scope": {
            "type": "string",
            "title": "Scope",
            "default": "private"
          }
        },
        "type": "object",
        "required": ["file"],
        "title": "Body_upload_font"
      },
      "Body_upload_image": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File"
          },
          "resize_to": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resize To",
            "description": "Dimensions to resize the image to, as a stringified JSON object with positive integer width and height. Max total pixel count: 16777216",
            "examples": ["{\"width\": 1024, \"height\": 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_validate_font": {
        "properties": {
          "file": {
            "type": "string",
            "contentMediaType": "application/octet-stream",
            "title": "File",
            "description": "The font file to validate"
          }
        },
        "type": "object",
        "required": ["file"],
        "title": "Body_validate_font"
      },
      "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",
            "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"
          },
          "collection": {
            "default": [],
            "description": "The collection of boolean values",
            "field_kind": "input",
            "input": "any",
            "items": {
              "type": "boolean"
            },
            "orig_default": [],
            "orig_required": false,
            "title": "Collection",
            "type": "array"
          },
          "type": {
            "const": "boolean_collection",
            "default": "boolean_collection",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["primitives", "boolean", "collection"],
        "title": "Boolean Collection Primitive",
        "type": "object",
        "version": "1.0.2",
        "output": {
          "$ref": "#/components/schemas/BooleanCollectionOutput"
        }
      },
      "BooleanCollectionOutput": {
        "class": "output",
        "description": "Base class for nodes that output a collection of booleans",
        "properties": {
          "collection": {
            "description": "The output boolean collection",
            "field_kind": "output",
            "items": {
              "type": "boolean"
            },
            "title": "Collection",
            "type": "array",
            "ui_hidden": false
          },
          "type": {
            "const": "boolean_collection_output",
            "default": "boolean_collection_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "BooleanCollectionOutput",
        "type": "object"
      },
      "BooleanInvocation": {
        "category": "primitives",
        "class": "invocation",
        "classification": "stable",
        "description": "A boolean primitive value",
        "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"
          },
          "value": {
            "default": false,
            "description": "The boolean value",
            "field_kind": "input",
            "input": "any",
            "orig_default": false,
            "orig_required": false,
            "title": "Value",
            "type": "boolean"
          },
          "type": {
            "const": "boolean",
            "default": "boolean",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["primitives", "boolean"],
        "title": "Boolean Primitive",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/BooleanOutput"
        }
      },
      "BooleanLogicInvocation": {
        "category": "math",
        "class": "invocation",
        "classification": "stable",
        "description": "Performs Boolean AND, OR, XOR, NOT, NAND, NOR, or XNOR operations. NOT uses only A.",
        "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"
          },
          "operation": {
            "default": "AND",
            "description": "The logical operation to perform",
            "enum": ["AND", "OR", "XOR", "NAND", "NOR", "XNOR", "NOT"],
            "field_kind": "input",
            "input": "any",
            "orig_default": "AND",
            "orig_required": false,
            "title": "Operation",
            "type": "string",
            "ui_choice_labels": {
              "AND": "A AND B",
              "NAND": "A NAND B",
              "NOR": "A NOR B",
              "NOT": "NOT A",
              "OR": "A OR B",
              "XNOR": "A XNOR B",
              "XOR": "A XOR B"
            }
          },
          "a": {
            "default": false,
            "description": "First Boolean input",
            "field_kind": "input",
            "input": "any",
            "orig_default": false,
            "orig_required": false,
            "title": "A",
            "type": "boolean"
          },
          "b": {
            "default": false,
            "description": "Second Boolean input (ignored for NOT)",
            "field_kind": "input",
            "input": "any",
            "orig_default": false,
            "orig_required": false,
            "title": "B",
            "type": "boolean"
          },
          "type": {
            "const": "boolean_logic",
            "default": "boolean_logic",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["logic", "boolean"],
        "title": "Boolean Logic",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/BooleanOutput"
        }
      },
      "BooleanOutput": {
        "class": "output",
        "description": "Base class for nodes that output a single boolean",
        "properties": {
          "value": {
            "description": "The output boolean",
            "field_kind": "output",
            "title": "Value",
            "type": "boolean",
            "ui_hidden": false
          },
          "type": {
            "const": "boolean_output",
            "default": "boolean_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "value", "type", "type"],
        "title": "BooleanOutput",
        "type": "object"
      },
      "BoundingBoxCollectionOutput": {
        "class": "output",
        "description": "Base class for nodes that output a collection of bounding boxes",
        "properties": {
          "collection": {
            "description": "The output bounding boxes.",
            "field_kind": "output",
            "items": {
              "$ref": "#/components/schemas/BoundingBoxField"
            },
            "title": "Bounding Boxes",
            "type": "array",
            "ui_hidden": false
          },
          "type": {
            "const": "bounding_box_collection_output",
            "default": "bounding_box_collection_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "BoundingBoxCollectionOutput",
        "type": "object"
      },
      "BoundingBoxField": {
        "description": "A bounding box primitive value.",
        "properties": {
          "x_min": {
            "description": "The minimum x-coordinate of the bounding box (inclusive).",
            "title": "X Min",
            "type": "integer"
          },
          "x_max": {
            "description": "The maximum x-coordinate of the bounding box (exclusive).",
            "title": "X Max",
            "type": "integer"
          },
          "y_min": {
            "description": "The minimum y-coordinate of the bounding box (inclusive).",
            "title": "Y Min",
            "type": "integer"
          },
          "y_max": {
            "description": "The maximum y-coordinate of the bounding box (exclusive).",
            "title": "Y Max",
            "type": "integer"
          },
          "score": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The score associated with the bounding box. In the range [0, 1]. This value is typically set when the bounding box was produced by a detector and has an associated confidence score.",
            "title": "Score"
          }
        },
        "required": ["x_min", "x_max", "y_min", "y_max"],
        "title": "BoundingBoxField",
        "type": "object"
      },
      "BoundingBoxInvocation": {
        "category": "primitives",
        "class": "invocation",
        "classification": "stable",
        "description": "Create a bounding box manually by supplying box coordinates",
        "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"
          },
          "x_min": {
            "default": 0,
            "description": "x-coordinate of the bounding box's top left vertex",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "X Min",
            "type": "integer"
          },
          "y_min": {
            "default": 0,
            "description": "y-coordinate of the bounding box's top left vertex",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "Y Min",
            "type": "integer"
          },
          "x_max": {
            "default": 0,
            "description": "x-coordinate of the bounding box's bottom right vertex",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "X Max",
            "type": "integer"
          },
          "y_max": {
            "default": 0,
            "description": "y-coordinate of the bounding box's bottom right vertex",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "Y Max",
            "type": "integer"
          },
          "type": {
            "const": "bounding_box",
            "default": "bounding_box",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["primitives", "segmentation", "collection", "bounding box"],
        "title": "Bounding Box",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/BoundingBoxOutput"
        }
      },
      "BoundingBoxOutput": {
        "class": "output",
        "description": "Base class for nodes that output a single bounding box",
        "properties": {
          "bounding_box": {
            "$ref": "#/components/schemas/BoundingBoxField",
            "description": "The output bounding box.",
            "field_kind": "output",
            "ui_hidden": false
          },
          "type": {
            "const": "bounding_box_output",
            "default": "bounding_box_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "bounding_box", "type", "type"],
        "title": "BoundingBoxOutput",
        "type": "object"
      },
      "BulkDeleteModelsRequest": {
        "properties": {
          "keys": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Keys",
            "description": "List of model keys to delete"
          }
        },
        "type": "object",
        "required": ["keys"],
        "title": "BulkDeleteModelsRequest",
        "description": "Request body for bulk model deletion."
      },
      "BulkDeleteModelsResponse": {
        "properties": {
          "deleted": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Deleted",
            "description": "List of successfully deleted model keys"
          },
          "failed": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Failed",
            "description": "List of failed deletions with error messages"
          }
        },
        "type": "object",
        "required": ["deleted", "failed"],
        "title": "BulkDeleteModelsResponse",
        "description": "Response body for bulk model deletion."
      },
      "BulkDownloadCompleteEvent": {
        "description": "Event model for bulk_download_complete",
        "properties": {
          "timestamp": {
            "description": "The timestamp of the event",
            "title": "Timestamp",
            "type": "integer"
          },
          "bulk_download_id": {
            "description": "The ID of the bulk image download",
            "title": "Bulk Download Id",
            "type": "string"
          },
          "bulk_download_item_id": {
            "description": "The ID of the bulk image download item",
            "title": "Bulk Download Item Id",
            "type": "string"
          },
          "bulk_download_item_name": {
            "description": "The name of the bulk image download item",
            "title": "Bulk Download Item Name",
            "type": "string"
          },
          "user_id": {
            "default": "system",
            "description": "The ID of the user who initiated the download",
            "title": "User Id",
            "type": "string"
          }
        },
        "required": ["timestamp", "bulk_download_id", "bulk_download_item_id", "bulk_download_item_name", "user_id"],
        "title": "BulkDownloadCompleteEvent",
        "type": "object"
      },
      "BulkDownloadErrorEvent": {
        "description": "Event model for bulk_download_error",
        "properties": {
          "timestamp": {
            "description": "The timestamp of the event",
            "title": "Timestamp",
            "type": "integer"
          },
          "bulk_download_id": {
            "description": "The ID of the bulk image download",
            "title": "Bulk Download Id",
            "type": "string"
          },
          "bulk_download_item_id": {
            "description": "The ID of the bulk image download item",
            "title": "Bulk Download Item Id",
            "type": "string"
          },
          "bulk_download_item_name": {
            "description": "The name of the bulk image download item",
            "title": "Bulk Download Item Name",
            "type": "string"
          },
          "user_id": {
            "default": "system",
            "description": "The ID of the user who initiated the download",
            "title": "User Id",
            "type": "string"
          },
          "error": {
            "description": "The error message",
            "title": "Error",
            "type": "string"
          }
        },
        "required": [
          "timestamp",
          "bulk_download_id",
          "bulk_download_item_id",
          "bulk_download_item_name",
          "user_id",
          "error"
        ],
        "title": "BulkDownloadErrorEvent",
        "type": "object"
      },
      "BulkDownloadStartedEvent": {
        "description": "Event model for bulk_download_started",
        "properties": {
          "timestamp": {
            "description": "The timestamp of the event",
            "title": "Timestamp",
            "type": "integer"
          },
          "bulk_download_id": {
            "description": "The ID of the bulk image download",
            "title": "Bulk Download Id",
            "type": "string"
          },
          "bulk_download_item_id": {
            "description": "The ID of the bulk image download item",
            "title": "Bulk Download Item Id",
            "type": "string"
          },
          "bulk_download_item_name": {
            "description": "The name of the bulk image download item",
            "title": "Bulk Download Item Name",
            "type": "string"
          },
          "user_id": {
            "default": "system",
            "description": "The ID of the user who initiated the download",
            "title": "User Id",
            "type": "string"
          }
        },
        "required": ["timestamp", "bulk_download_id", "bulk_download_item_id", "bulk_download_item_name", "user_id"],
        "title": "BulkDownloadStartedEvent",
        "type": "object"
      },
      "BulkReidentifyModelsRequest": {
        "properties": {
          "keys": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Keys",
            "description": "List of model keys to reidentify"
          }
        },
        "type": "object",
        "required": ["keys"],
        "title": "BulkReidentifyModelsRequest",
        "description": "Request body for bulk model reidentification."
      },
      "BulkReidentifyModelsResponse": {
        "properties": {
          "succeeded": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Succeeded",
            "description": "List of successfully reidentified model keys"
          },
          "failed": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Failed",
            "description": "List of failed reidentifications with error messages"
          }
        },
        "type": "object",
        "required": ["succeeded", "failed"],
        "title": "BulkReidentifyModelsResponse",
        "description": "Response body for bulk model reidentification."
      },
      "CLIPEmbed_Checkpoint_G_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "base": {
            "type": "string",
            "const": "any",
            "title": "Base",
            "default": "any"
          },
          "type": {
            "type": "string",
            "const": "clip_embed",
            "title": "Type",
            "default": "clip_embed"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "cpu_only": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu Only",
            "description": "Whether this model should run on CPU only"
          },
          "variant": {
            "type": "string",
            "const": "gigantic",
            "title": "Variant",
            "default": "gigantic"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "base",
          "type",
          "format",
          "cpu_only",
          "variant"
        ],
        "title": "CLIPEmbed_Checkpoint_G_Config"
      },
      "CLIPEmbed_Checkpoint_L_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "base": {
            "type": "string",
            "const": "any",
            "title": "Base",
            "default": "any"
          },
          "type": {
            "type": "string",
            "const": "clip_embed",
            "title": "Type",
            "default": "clip_embed"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "cpu_only": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu Only",
            "description": "Whether this model should run on CPU only"
          },
          "variant": {
            "type": "string",
            "const": "large",
            "title": "Variant",
            "default": "large"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "base",
          "type",
          "format",
          "cpu_only",
          "variant"
        ],
        "title": "CLIPEmbed_Checkpoint_L_Config"
      },
      "CLIPEmbed_Diffusers_G_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "format": {
            "type": "string",
            "const": "diffusers",
            "title": "Format",
            "default": "diffusers"
          },
          "repo_variant": {
            "$ref": "#/components/schemas/ModelRepoVariant",
            "default": ""
          },
          "base": {
            "type": "string",
            "const": "any",
            "title": "Base",
            "default": "any"
          },
          "type": {
            "type": "string",
            "const": "clip_embed",
            "title": "Type",
            "default": "clip_embed"
          },
          "cpu_only": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu Only",
            "description": "Whether this model should run on CPU only"
          },
          "variant": {
            "type": "string",
            "const": "gigantic",
            "title": "Variant",
            "default": "gigantic"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "format",
          "repo_variant",
          "base",
          "type",
          "cpu_only",
          "variant"
        ],
        "title": "CLIPEmbed_Diffusers_G_Config"
      },
      "CLIPEmbed_Diffusers_L_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "format": {
            "type": "string",
            "const": "diffusers",
            "title": "Format",
            "default": "diffusers"
          },
          "repo_variant": {
            "$ref": "#/components/schemas/ModelRepoVariant",
            "default": ""
          },
          "base": {
            "type": "string",
            "const": "any",
            "title": "Base",
            "default": "any"
          },
          "type": {
            "type": "string",
            "const": "clip_embed",
            "title": "Type",
            "default": "clip_embed"
          },
          "cpu_only": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu Only",
            "description": "Whether this model should run on CPU only"
          },
          "variant": {
            "type": "string",
            "const": "large",
            "title": "Variant",
            "default": "large"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "format",
          "repo_variant",
          "base",
          "type",
          "cpu_only",
          "variant"
        ],
        "title": "CLIPEmbed_Diffusers_L_Config"
      },
      "CLIPField": {
        "properties": {
          "tokenizer": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "Info to load tokenizer submodel"
          },
          "text_encoder": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "Info to load text_encoder submodel"
          },
          "skipped_layers": {
            "description": "Number of skipped layers in text_encoder",
            "title": "Skipped Layers",
            "type": "integer"
          },
          "loras": {
            "description": "LoRAs to apply on model loading",
            "items": {
              "$ref": "#/components/schemas/LoRAField"
            },
            "title": "Loras",
            "type": "array"
          }
        },
        "required": ["tokenizer", "text_encoder", "skipped_layers", "loras"],
        "title": "CLIPField",
        "type": "object"
      },
      "CLIPOutput": {
        "class": "output",
        "description": "Base class for invocations that output a CLIP field",
        "properties": {
          "clip": {
            "$ref": "#/components/schemas/CLIPField",
            "description": "CLIP (tokenizer, text encoder, LoRAs) and skipped layer count",
            "field_kind": "output",
            "title": "CLIP",
            "ui_hidden": false
          },
          "type": {
            "const": "clip_output",
            "default": "clip_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "clip", "type", "type"],
        "title": "CLIPOutput",
        "type": "object"
      },
      "CLIPSkipInvocation": {
        "category": "prompt",
        "class": "invocation",
        "classification": "stable",
        "description": "Skip layers in clip text_encoder model.",
        "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"
          },
          "clip": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CLIPField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "CLIP (tokenizer, text encoder, LoRAs) and skipped layer count",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true,
            "title": "CLIP"
          },
          "skipped_layers": {
            "default": 0,
            "description": "Number of layers to skip in text encoder",
            "field_kind": "input",
            "input": "any",
            "minimum": 0,
            "orig_default": 0,
            "orig_required": false,
            "title": "Skipped Layers",
            "type": "integer"
          },
          "type": {
            "const": "clip_skip",
            "default": "clip_skip",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["clipskip", "clip", "skip"],
        "title": "Apply CLIP Skip - SD1.5, SDXL",
        "type": "object",
        "version": "1.1.1",
        "output": {
          "$ref": "#/components/schemas/CLIPSkipInvocationOutput"
        }
      },
      "CLIPSkipInvocationOutput": {
        "class": "output",
        "description": "CLIP skip node output",
        "properties": {
          "clip": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CLIPField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "CLIP (tokenizer, text encoder, LoRAs) and skipped layer count",
            "field_kind": "output",
            "title": "CLIP",
            "ui_hidden": false
          },
          "type": {
            "const": "clip_skip_output",
            "default": "clip_skip_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "clip", "type", "type"],
        "title": "CLIPSkipInvocationOutput",
        "type": "object"
      },
      "CLIPVision_Diffusers_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "format": {
            "type": "string",
            "const": "diffusers",
            "title": "Format",
            "default": "diffusers"
          },
          "repo_variant": {
            "$ref": "#/components/schemas/ModelRepoVariant",
            "default": ""
          },
          "base": {
            "type": "string",
            "const": "any",
            "title": "Base",
            "default": "any"
          },
          "type": {
            "type": "string",
            "const": "clip_vision",
            "title": "Type",
            "default": "clip_vision"
          },
          "cpu_only": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cpu Only",
            "description": "Whether this model should run on CPU only"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "format",
          "repo_variant",
          "base",
          "type",
          "cpu_only"
        ],
        "title": "CLIPVision_Diffusers_Config",
        "description": "Model config for CLIPVision."
      },
      "CV2InfillInvocation": {
        "category": "inpaint",
        "class": "invocation",
        "classification": "stable",
        "description": "Infills transparent areas of an image using OpenCV Inpainting",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to process",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "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",
            "minimum": 1,
            "orig_default": 1024,
            "orig_required": false,
            "title": "Image Width",
            "type": "integer"
          },
          "image_height": {
            "default": 1024,
            "description": "The image height, in pixels, to calculate tiles for.",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 1024,
            "orig_required": false,
            "title": "Image Height",
            "type": "integer"
          },
          "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,
            "multipleOf": 8,
            "orig_default": 128,
            "orig_required": false,
            "title": "Overlap",
            "type": "integer"
          },
          "type": {
            "const": "calculate_image_tiles_even_split",
            "default": "calculate_image_tiles_even_split",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["tiles"],
        "title": "Calculate Image Tiles Even Split",
        "type": "object",
        "version": "1.1.1",
        "output": {
          "$ref": "#/components/schemas/CalculateImageTilesOutput"
        }
      },
      "CalculateImageTilesInvocation": {
        "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",
            "minimum": 1,
            "orig_default": 1024,
            "orig_required": false,
            "title": "Image Width",
            "type": "integer"
          },
          "image_height": {
            "default": 1024,
            "description": "The image height, in pixels, to calculate tiles for.",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 1024,
            "orig_required": false,
            "title": "Image Height",
            "type": "integer"
          },
          "tile_width": {
            "default": 576,
            "description": "The tile width, in pixels.",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 576,
            "orig_required": false,
            "title": "Tile Width",
            "type": "integer"
          },
          "tile_height": {
            "default": 576,
            "description": "The tile height, in pixels.",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 576,
            "orig_required": false,
            "title": "Tile Height",
            "type": "integer"
          },
          "overlap": {
            "default": 128,
            "description": "The target overlap, in pixels, between adjacent tiles. Adjacent tiles will overlap by at least this amount",
            "field_kind": "input",
            "input": "any",
            "minimum": 0,
            "orig_default": 128,
            "orig_required": false,
            "title": "Overlap",
            "type": "integer"
          },
          "type": {
            "const": "calculate_image_tiles",
            "default": "calculate_image_tiles",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["tiles"],
        "title": "Calculate Image Tiles",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/CalculateImageTilesOutput"
        }
      },
      "CalculateImageTilesMinimumOverlapInvocation": {
        "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",
            "minimum": 1,
            "orig_default": 1024,
            "orig_required": false,
            "title": "Image Width",
            "type": "integer"
          },
          "image_height": {
            "default": 1024,
            "description": "The image height, in pixels, to calculate tiles for.",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 1024,
            "orig_required": false,
            "title": "Image Height",
            "type": "integer"
          },
          "tile_width": {
            "default": 576,
            "description": "The tile width, in pixels.",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 576,
            "orig_required": false,
            "title": "Tile Width",
            "type": "integer"
          },
          "tile_height": {
            "default": 576,
            "description": "The tile height, in pixels.",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 576,
            "orig_required": false,
            "title": "Tile Height",
            "type": "integer"
          },
          "min_overlap": {
            "default": 128,
            "description": "Minimum overlap between adjacent tiles, in pixels.",
            "field_kind": "input",
            "input": "any",
            "minimum": 0,
            "orig_default": 128,
            "orig_required": false,
            "title": "Min Overlap",
            "type": "integer"
          },
          "type": {
            "const": "calculate_image_tiles_min_overlap",
            "default": "calculate_image_tiles_min_overlap",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["tiles"],
        "title": "Calculate Image Tiles Minimum Overlap",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/CalculateImageTilesOutput"
        }
      },
      "CalculateImageTilesOutput": {
        "class": "output",
        "properties": {
          "tiles": {
            "description": "The tiles coordinates that cover a particular image shape.",
            "field_kind": "output",
            "items": {
              "$ref": "#/components/schemas/Tile"
            },
            "title": "Tiles",
            "type": "array",
            "ui_hidden": false
          },
          "type": {
            "const": "calculate_image_tiles_output",
            "default": "calculate_image_tiles_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "tiles", "type", "type"],
        "title": "CalculateImageTilesOutput",
        "type": "object"
      },
      "CalibrationCompiledModel": {
        "properties": {
          "base": {
            "type": "string",
            "title": "Base"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "format": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Format",
            "description": "The model's format; null for a record without one"
          },
          "variant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Variant",
            "description": "The model's variant; null for a record without one"
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The model's hash, as the graph's identifier names it"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": ["base", "type", "format", "variant", "hash"],
        "title": "CalibrationCompiledModel",
        "description": "A model a calibration request's graph names, as the record the client compiled the graph against has it. Every\nfact is required: format and variant are null for a record without one, the rest is never null."
      },
      "CalibrationDeviceClass": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "A short stable hash of the other fields"
          },
          "vendor": {
            "type": "string",
            "title": "Vendor"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "total_mib": {
            "type": "integer",
            "title": "Total Mib"
          },
          "backend": {
            "type": "string",
            "enum": ["cuda", "hip", "mps", "xpu"],
            "title": "Backend"
          },
          "arch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Arch"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": ["id", "vendor", "name", "total_mib", "backend", "arch"],
        "title": "CalibrationDeviceClass",
        "description": "A `fingerprint.DeviceClass` with its id as a plain field, as it is stored and returned."
      },
      "CallSavedWorkflowInvocation": {
        "category": "workflow",
        "class": "invocation",
        "classification": "beta",
        "description": "Displays and later executes against a selected saved workflow.",
        "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": false,
            "description": "Whether or not to use the cache",
            "field_kind": "node_attribute",
            "title": "Use Cache",
            "type": "boolean"
          },
          "workflow_id": {
            "default": "",
            "description": "The selected saved workflow ID, managed by the workflow editor UI.",
            "field_kind": "input",
            "input": "any",
            "orig_default": "",
            "orig_required": false,
            "title": "Workflow Id",
            "type": "string",
            "ui_type": "SavedWorkflowField"
          },
          "workflow_inputs": {
            "additionalProperties": true,
            "default": {},
            "description": "Literal values for the selected workflow's exposed inputs, managed by the workflow editor UI.",
            "field_kind": "input",
            "input": "any",
            "orig_default": {},
            "orig_required": false,
            "title": "Workflow Inputs",
            "type": "object",
            "ui_hidden": true
          },
          "type": {
            "const": "call_saved_workflow",
            "default": "call_saved_workflow",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["workflow", "saved", "library"],
        "title": "Call Saved Workflow",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/WorkflowReturnOutput"
        }
      },
      "CancelAllExceptCurrentResult": {
        "properties": {
          "canceled": {
            "type": "integer",
            "title": "Canceled",
            "description": "Number of queue items canceled"
          }
        },
        "type": "object",
        "required": ["canceled"],
        "title": "CancelAllExceptCurrentResult",
        "description": "Result of canceling all except current"
      },
      "CancelByBatchIDsResult": {
        "properties": {
          "canceled": {
            "type": "integer",
            "title": "Canceled",
            "description": "Number of queue items canceled"
          }
        },
        "type": "object",
        "required": ["canceled"],
        "title": "CancelByBatchIDsResult",
        "description": "Result of canceling by list of batch ids"
      },
      "CancelByDestinationResult": {
        "properties": {
          "canceled": {
            "type": "integer",
            "title": "Canceled",
            "description": "Number of queue items canceled"
          }
        },
        "type": "object",
        "required": ["canceled"],
        "title": "CancelByDestinationResult",
        "description": "Result of canceling by a destination"
      },
      "CancelByQueueIDResult": {
        "properties": {
          "canceled": {
            "type": "integer",
            "title": "Canceled",
            "description": "Number of queue items canceled"
          }
        },
        "type": "object",
        "required": ["canceled"],
        "title": "CancelByQueueIDResult",
        "description": "Result of canceling by queue id"
      },
      "CannyEdgeDetectionInvocation": {
        "category": "controlnet_preprocessors",
        "class": "invocation",
        "classification": "stable",
        "description": "Geneartes an edge map using a cv2's Canny algorithm.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to process",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "low_threshold": {
            "default": 100,
            "description": "The low threshold of the Canny pixel gradient (0-255)",
            "field_kind": "input",
            "input": "any",
            "maximum": 255,
            "minimum": 0,
            "orig_default": 100,
            "orig_required": false,
            "title": "Low Threshold",
            "type": "integer"
          },
          "high_threshold": {
            "default": 200,
            "description": "The high threshold of the Canny pixel gradient (0-255)",
            "field_kind": "input",
            "input": "any",
            "maximum": 255,
            "minimum": 0,
            "orig_default": 200,
            "orig_required": false,
            "title": "High Threshold",
            "type": "integer"
          },
          "type": {
            "const": "canny_edge_detection",
            "default": "canny_edge_detection",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["controlnet", "canny"],
        "title": "Canny Edge Detection",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "CanvasOutputInvocation": {
        "category": "canvas",
        "class": "invocation",
        "classification": "stable",
        "description": "Outputs an image to the canvas staging area.\n\nUse this node in workflows intended for canvas workflow integration.\nConnect the final image of your workflow to this node to send it\nto the canvas staging area when run via 'Run Workflow on Canvas'.",
        "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": false,
            "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"
              }
            ],
            "default": null,
            "description": "The image to process",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "type": {
            "const": "canvas_output",
            "default": "canvas_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["canvas", "output", "image"],
        "title": "Canvas Output",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "CanvasPasteBackInvocation": {
        "category": "canvas",
        "class": "invocation",
        "classification": "stable",
        "description": "Combines two images by using the mask provided. Intended for use on the Unified Canvas.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "source_image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The source image",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "target_image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The target image",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The mask to use when pasting",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "mask_blur": {
            "default": 0,
            "description": "The amount to blur the mask by",
            "field_kind": "input",
            "input": "any",
            "minimum": 0,
            "orig_default": 0,
            "orig_required": false,
            "title": "Mask Blur",
            "type": "integer"
          },
          "type": {
            "const": "canvas_paste_back",
            "default": "canvas_paste_back",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "combine"],
        "title": "Canvas Paste Back",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "CanvasV2MaskAndCropInvocation": {
        "category": "canvas",
        "class": "invocation",
        "classification": "deprecated",
        "description": "Handles Canvas V2 image output masking and cropping",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "source_image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The source image onto which the masked generated image is pasted. If omitted, the masked generated image is returned with transparency.",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false
          },
          "generated_image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to apply the mask to",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The mask to apply",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "mask_blur": {
            "default": 0,
            "description": "The amount to blur the mask by",
            "field_kind": "input",
            "input": "any",
            "minimum": 0,
            "orig_default": 0,
            "orig_required": false,
            "title": "Mask Blur",
            "type": "integer"
          },
          "type": {
            "const": "canvas_v2_mask_and_crop",
            "default": "canvas_v2_mask_and_crop",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "mask", "id"],
        "title": "Canvas V2 Mask and Crop",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "CenterPadCropInvocation": {
        "category": "image",
        "class": "invocation",
        "classification": "stable",
        "description": "Pad or crop an image's sides from the center by specified pixels. Positive values are outside of the image.",
        "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"
              }
            ],
            "default": null,
            "description": "The image to crop",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "left": {
            "default": 0,
            "description": "Number of pixels to pad/crop from the left (negative values crop inwards, positive values pad outwards)",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "Left",
            "type": "integer"
          },
          "right": {
            "default": 0,
            "description": "Number of pixels to pad/crop from the right (negative values crop inwards, positive values pad outwards)",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "Right",
            "type": "integer"
          },
          "top": {
            "default": 0,
            "description": "Number of pixels to pad/crop from the top (negative values crop inwards, positive values pad outwards)",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "Top",
            "type": "integer"
          },
          "bottom": {
            "default": 0,
            "description": "Number of pixels to pad/crop from the bottom (negative values crop inwards, positive values pad outwards)",
            "field_kind": "input",
            "input": "any",
            "orig_default": 0,
            "orig_required": false,
            "title": "Bottom",
            "type": "integer"
          },
          "type": {
            "const": "img_pad_crop",
            "default": "img_pad_crop",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "pad", "crop"],
        "title": "Center Pad or Crop Image",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "ClarityInvocation": {
        "category": "image",
        "class": "invocation",
        "classification": "stable",
        "description": "Adjust local midtone detail in an image.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to process",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "amount": {
            "default": 0,
            "description": "Strength of the clarity adjustment",
            "field_kind": "input",
            "input": "any",
            "maximum": 200,
            "minimum": -200,
            "orig_default": 0,
            "orig_required": false,
            "title": "Amount",
            "type": "number"
          },
          "size": {
            "default": 40,
            "description": "Scale of the detail adjustment",
            "field_kind": "input",
            "input": "any",
            "maximum": 1000,
            "minimum": 4,
            "orig_default": 40,
            "orig_required": false,
            "title": "Size",
            "type": "number"
          },
          "type": {
            "const": "clarity",
            "default": "clarity",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "detail", "clarity", "enhance"],
        "title": "Clarity",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "Classification": {
        "description": "The classification of an Invocation.\n- `Stable`: The invocation, including its inputs/outputs and internal logic, is stable. You may build workflows with it, having confidence that they will not break because of a change in this invocation.\n- `Beta`: The invocation is not yet stable, but is planned to be stable in the future. Workflows built around this invocation may break, but we are committed to supporting this invocation long-term.\n- `Prototype`: The invocation is not yet stable and may be removed from the application at any time. Workflows built around this invocation may break, and we are *not* committed to supporting this invocation.\n- `Deprecated`: The invocation is deprecated and may be removed in a future version.\n- `Internal`: The invocation is not intended for use by end-users. It may be changed or removed at any time, but is exposed for users to play with.\n- `Special`: The invocation is a special case and does not fit into any of the other classifications.",
        "enum": ["stable", "beta", "prototype", "deprecated", "internal", "special"],
        "title": "Classification",
        "type": "string"
      },
      "ClearResult": {
        "properties": {
          "deleted": {
            "type": "integer",
            "title": "Deleted",
            "description": "Number of queue items deleted"
          }
        },
        "type": "object",
        "required": ["deleted"],
        "title": "ClearResult",
        "description": "Result of clearing the session queue"
      },
      "ClipVariantType": {
        "type": "string",
        "enum": ["large", "gigantic"],
        "title": "ClipVariantType",
        "description": "Variant type."
      },
      "CogView4ConditioningField": {
        "description": "A conditioning tensor primitive value",
        "properties": {
          "conditioning_name": {
            "description": "The name of conditioning tensor",
            "title": "Conditioning Name",
            "type": "string"
          }
        },
        "required": ["conditioning_name"],
        "title": "CogView4ConditioningField",
        "type": "object"
      },
      "CogView4ConditioningOutput": {
        "class": "output",
        "description": "Base class for nodes that output a CogView text conditioning tensor.",
        "properties": {
          "conditioning": {
            "$ref": "#/components/schemas/CogView4ConditioningField",
            "description": "Conditioning tensor",
            "field_kind": "output",
            "ui_hidden": false
          },
          "type": {
            "const": "cogview4_conditioning_output",
            "default": "cogview4_conditioning_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "conditioning", "type", "type"],
        "title": "CogView4ConditioningOutput",
        "type": "object"
      },
      "CogView4DenoiseInvocation": {
        "category": "latents",
        "class": "invocation",
        "classification": "prototype",
        "description": "Run the denoising process with a CogView4 model.",
        "node_pack": "invokeai",
        "properties": {
          "metadata": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MetadataField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "default": null,
            "description": "Latents tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false
          },
          "noise": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LatentsField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "transformer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TransformerField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "CogView4 model (Transformer) to load",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true,
            "title": "Transformer"
          },
          "positive_conditioning": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CogView4ConditioningField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Positive conditioning tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "negative_conditioning": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CogView4ConditioningField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Negative conditioning tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "cfg_scale": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              }
            ],
            "default": 3.5,
            "description": "Classifier-Free Guidance scale",
            "field_kind": "input",
            "input": "any",
            "orig_default": 3.5,
            "orig_required": false,
            "title": "CFG Scale"
          },
          "width": {
            "default": 1024,
            "description": "Width of the generated image.",
            "field_kind": "input",
            "input": "any",
            "multipleOf": 32,
            "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": 32,
            "orig_default": 1024,
            "orig_required": false,
            "title": "Height",
            "type": "integer"
          },
          "steps": {
            "default": 25,
            "description": "Number of steps to run",
            "exclusiveMinimum": 0,
            "field_kind": "input",
            "input": "any",
            "orig_default": 25,
            "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": "cogview4_denoise",
            "default": "cogview4_denoise",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "cogview4"],
        "title": "Denoise - CogView4",
        "type": "object",
        "version": "1.2.0",
        "output": {
          "$ref": "#/components/schemas/LatentsMetaOutput"
        }
      },
      "CogView4ImageToLatentsInvocation": {
        "category": "latents",
        "class": "invocation",
        "classification": "prototype",
        "description": "Generates latents from an image.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to encode.",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "vae": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VAEField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "VAE",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "type": {
            "const": "cogview4_i2l",
            "default": "cogview4_i2l",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "latents", "vae", "i2l", "cogview4"],
        "title": "Image to Latents - CogView4",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/LatentsOutput"
        }
      },
      "CogView4LatentsToImageInvocation": {
        "category": "latents",
        "class": "invocation",
        "classification": "prototype",
        "description": "Generates an image from latents.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
              }
            ],
            "default": null,
            "description": "Latents tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "vae": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/VAEField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "VAE",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "type": {
            "const": "cogview4_l2i",
            "default": "cogview4_l2i",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["latents", "image", "vae", "l2i", "cogview4"],
        "title": "Latents to Image - CogView4",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "CogView4ModelLoaderInvocation": {
        "category": "model",
        "class": "invocation",
        "classification": "prototype",
        "description": "Loads a CogView4 base model, outputting its submodels.",
        "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"
          },
          "model": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "CogView4 model (Transformer) to load",
            "field_kind": "input",
            "input": "direct",
            "orig_required": true,
            "ui_model_base": ["cogview4"],
            "ui_model_type": ["main"]
          },
          "type": {
            "const": "cogview4_model_loader",
            "default": "cogview4_model_loader",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["model", "type", "id"],
        "tags": ["model", "cogview4"],
        "title": "Main Model - CogView4",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/CogView4ModelLoaderOutput"
        }
      },
      "CogView4ModelLoaderOutput": {
        "class": "output",
        "description": "CogView4 base model loader output.",
        "properties": {
          "transformer": {
            "$ref": "#/components/schemas/TransformerField",
            "description": "Transformer",
            "field_kind": "output",
            "title": "Transformer",
            "ui_hidden": false
          },
          "glm_encoder": {
            "$ref": "#/components/schemas/GlmEncoderField",
            "description": "GLM (THUDM) tokenizer and text encoder",
            "field_kind": "output",
            "title": "GLM Encoder",
            "ui_hidden": false
          },
          "vae": {
            "$ref": "#/components/schemas/VAEField",
            "description": "VAE",
            "field_kind": "output",
            "title": "VAE",
            "ui_hidden": false
          },
          "type": {
            "const": "cogview4_model_loader_output",
            "default": "cogview4_model_loader_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "transformer", "glm_encoder", "vae", "type", "type"],
        "title": "CogView4ModelLoaderOutput",
        "type": "object"
      },
      "CogView4TextEncoderInvocation": {
        "category": "prompt",
        "class": "invocation",
        "classification": "prototype",
        "description": "Encodes and preps a prompt for a cogview4 image.",
        "node_pack": "invokeai",
        "properties": {
          "id": {
            "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
            "field_kind": "node_attribute",
            "title": "Id",
            "type": "string"
          },
          "is_intermediate": {
            "default": false,
            "description": "Whether or not this is an intermediate invocation.",
            "field_kind": "node_attribute",
            "input": "direct",
            "orig_required": true,
            "title": "Is Intermediate",
            "type": "boolean",
            "ui_hidden": false,
            "ui_type": "IsIntermediate"
          },
          "use_cache": {
            "default": true,
            "description": "Whether or not to use the cache",
            "field_kind": "node_attribute",
            "title": "Use Cache",
            "type": "boolean"
          },
          "prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Text prompt to encode.",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "title": "Prompt",
            "ui_component": "textarea"
          },
          "glm_encoder": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GlmEncoderField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "GLM (THUDM) tokenizer and text encoder",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true,
            "title": "GLM Encoder"
          },
          "type": {
            "const": "cogview4_text_encoder",
            "default": "cogview4_text_encoder",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["prompt", "conditioning", "cogview4"],
        "title": "Prompt - CogView4",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/CogView4ConditioningOutput"
        }
      },
      "CollectInvocation": {
        "class": "invocation",
        "classification": "stable",
        "description": "Collects values into a collection",
        "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": false,
            "description": "Whether or not to use the cache",
            "field_kind": "node_attribute",
            "title": "Use Cache",
            "type": "boolean"
          },
          "item": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The item to collect (all inputs must be of the same type)",
            "field_kind": "input",
            "input": "connection",
            "orig_default": null,
            "orig_required": false,
            "title": "Collection Item",
            "ui_type": "CollectionItemField"
          },
          "collection": {
            "default": [],
            "description": "An optional collection to append to",
            "field_kind": "input",
            "input": "connection",
            "items": {},
            "orig_default": [],
            "orig_required": false,
            "title": "Collection",
            "type": "array",
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collect",
            "default": "collect",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "title": "CollectInvocation",
        "type": "object",
        "version": "1.1.0",
        "output": {
          "$ref": "#/components/schemas/CollectInvocationOutput"
        }
      },
      "CollectInvocationOutput": {
        "class": "output",
        "properties": {
          "collection": {
            "description": "The collection of input items",
            "field_kind": "output",
            "items": {},
            "title": "Collection",
            "type": "array",
            "ui_hidden": false,
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collect_output",
            "default": "collect_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "CollectInvocationOutput",
        "type": "object"
      },
      "CollectionCartesianInvocation": {
        "category": "batch",
        "class": "invocation",
        "classification": "stable",
        "description": "Emits every pair formed by one item from each collection, up to 100,000 pairs.",
        "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"
          },
          "first": {
            "default": [],
            "description": "The first collection",
            "field_kind": "input",
            "input": "any",
            "items": {},
            "orig_default": [],
            "orig_required": false,
            "title": "First",
            "type": "array",
            "ui_type": "CollectionField"
          },
          "second": {
            "default": [],
            "description": "The second collection",
            "field_kind": "input",
            "input": "any",
            "items": {},
            "orig_default": [],
            "orig_required": false,
            "title": "Second",
            "type": "array",
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collection_cartesian",
            "default": "collection_cartesian",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["collection", "cartesian", "product"],
        "title": "Cartesian Product of Collections",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/CollectionCartesianInvocationOutput"
        }
      },
      "CollectionCartesianInvocationOutput": {
        "class": "output",
        "properties": {
          "collection": {
            "description": "The Cartesian product pairs",
            "field_kind": "output",
            "items": {},
            "title": "Collection",
            "type": "array",
            "ui_hidden": false,
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collection_cartesian_output",
            "default": "collection_cartesian_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "CollectionCartesianInvocationOutput",
        "type": "object"
      },
      "CollectionConcatInvocation": {
        "category": "batch",
        "class": "invocation",
        "classification": "stable",
        "description": "Concatenates two collections in left-to-right order.",
        "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"
          },
          "first": {
            "default": [],
            "description": "The first collection",
            "field_kind": "input",
            "input": "any",
            "items": {},
            "orig_default": [],
            "orig_required": false,
            "title": "First",
            "type": "array",
            "ui_type": "CollectionField"
          },
          "second": {
            "default": [],
            "description": "The second collection",
            "field_kind": "input",
            "input": "any",
            "items": {},
            "orig_default": [],
            "orig_required": false,
            "title": "Second",
            "type": "array",
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collection_concat",
            "default": "collection_concat",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["collection", "concat", "sequential"],
        "title": "Concatenate Collections",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/CollectionConcatInvocationOutput"
        }
      },
      "CollectionConcatInvocationOutput": {
        "class": "output",
        "properties": {
          "collection": {
            "description": "The concatenated collection",
            "field_kind": "output",
            "items": {},
            "title": "Collection",
            "type": "array",
            "ui_hidden": false,
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collection_concat_output",
            "default": "collection_concat_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "CollectionConcatInvocationOutput",
        "type": "object"
      },
      "CollectionZipInvocation": {
        "category": "batch",
        "class": "invocation",
        "classification": "stable",
        "description": "Pairs items at matching positions from two equally sized collections.",
        "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"
          },
          "first": {
            "default": [],
            "description": "The first collection",
            "field_kind": "input",
            "input": "any",
            "items": {},
            "orig_default": [],
            "orig_required": false,
            "title": "First",
            "type": "array",
            "ui_type": "CollectionField"
          },
          "second": {
            "default": [],
            "description": "The second collection",
            "field_kind": "input",
            "input": "any",
            "items": {},
            "orig_default": [],
            "orig_required": false,
            "title": "Second",
            "type": "array",
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collection_zip",
            "default": "collection_zip",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["collection", "zip", "pair"],
        "title": "Zip Collections",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/CollectionZipInvocationOutput"
        }
      },
      "CollectionZipInvocationOutput": {
        "class": "output",
        "properties": {
          "collection": {
            "description": "The positional pairs",
            "field_kind": "output",
            "items": {},
            "title": "Collection",
            "type": "array",
            "ui_hidden": false,
            "ui_type": "CollectionField"
          },
          "type": {
            "const": "collection_zip_output",
            "default": "collection_zip_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "CollectionZipInvocationOutput",
        "type": "object"
      },
      "ColorCollectionOutput": {
        "class": "output",
        "description": "Base class for nodes that output a collection of colors",
        "properties": {
          "collection": {
            "description": "The output colors",
            "field_kind": "output",
            "items": {
              "$ref": "#/components/schemas/ColorField"
            },
            "title": "Collection",
            "type": "array",
            "ui_hidden": false
          },
          "type": {
            "const": "color_collection_output",
            "default": "color_collection_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "ColorCollectionOutput",
        "type": "object"
      },
      "ColorCorrectInvocation": {
        "category": "image",
        "class": "invocation",
        "classification": "stable",
        "description": "Matches the color histogram of a base image to a reference image, optionally\nusing a mask to only color-correct certain regions of the base image.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "base_image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to color-correct",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "color_reference": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Reference image for color-correction",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Optional mask to limit color correction area",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false
          },
          "colorspace": {
            "default": "RGB",
            "description": "Colorspace in which to apply histogram matching",
            "enum": ["RGB", "YCbCr", "YCbCr-Chroma", "YCbCr-Luma"],
            "field_kind": "input",
            "input": "any",
            "orig_default": "RGB",
            "orig_required": false,
            "title": "Color Space",
            "type": "string"
          },
          "type": {
            "const": "color_correct",
            "default": "color_correct",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "color"],
        "title": "Color Correct",
        "type": "object",
        "version": "2.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "ColorField": {
        "description": "A color primitive field",
        "properties": {
          "r": {
            "description": "The red component",
            "maximum": 255,
            "minimum": 0,
            "title": "R",
            "type": "integer"
          },
          "g": {
            "description": "The green component",
            "maximum": 255,
            "minimum": 0,
            "title": "G",
            "type": "integer"
          },
          "b": {
            "description": "The blue component",
            "maximum": 255,
            "minimum": 0,
            "title": "B",
            "type": "integer"
          },
          "a": {
            "description": "The alpha component",
            "maximum": 255,
            "minimum": 0,
            "title": "A",
            "type": "integer"
          }
        },
        "required": ["r", "g", "b", "a"],
        "title": "ColorField",
        "type": "object"
      },
      "ColorInvocation": {
        "category": "primitives",
        "class": "invocation",
        "classification": "stable",
        "description": "A color primitive value",
        "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"
          },
          "color": {
            "$ref": "#/components/schemas/ColorField",
            "default": {
              "r": 0,
              "g": 0,
              "b": 0,
              "a": 255
            },
            "description": "The color value",
            "field_kind": "input",
            "input": "any",
            "orig_default": {
              "a": 255,
              "b": 0,
              "g": 0,
              "r": 0
            },
            "orig_required": false
          },
          "type": {
            "const": "color",
            "default": "color",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["primitives", "color"],
        "title": "Color Primitive",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/ColorOutput"
        }
      },
      "ColorMapInvocation": {
        "category": "controlnet_preprocessors",
        "class": "invocation",
        "classification": "stable",
        "description": "Generates a color map from the provided image.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to process",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "tile_size": {
            "default": 64,
            "description": "Tile size",
            "field_kind": "input",
            "input": "any",
            "minimum": 1,
            "orig_default": 64,
            "orig_required": false,
            "title": "Tile Size",
            "type": "integer"
          },
          "type": {
            "const": "color_map",
            "default": "color_map",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["controlnet"],
        "title": "Color Map",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "ColorOutput": {
        "class": "output",
        "description": "Base class for nodes that output a single color",
        "properties": {
          "color": {
            "$ref": "#/components/schemas/ColorField",
            "description": "The output color",
            "field_kind": "output",
            "ui_hidden": false
          },
          "type": {
            "const": "color_output",
            "default": "color_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "color", "type", "type"],
        "title": "ColorOutput",
        "type": "object"
      },
      "CompelInvocation": {
        "category": "prompt",
        "class": "invocation",
        "classification": "stable",
        "description": "Parse prompt using compel package to conditioning.",
        "node_pack": "invokeai",
        "properties": {
          "id": {
            "description": "The id of this instance of an invocation. Must be unique among all instances of invocations.",
            "field_kind": "node_attribute",
            "title": "Id",
            "type": "string"
          },
          "is_intermediate": {
            "default": false,
            "description": "Whether or not this is an intermediate invocation.",
            "field_kind": "node_attribute",
            "input": "direct",
            "orig_required": true,
            "title": "Is Intermediate",
            "type": "boolean",
            "ui_hidden": false,
            "ui_type": "IsIntermediate"
          },
          "use_cache": {
            "default": true,
            "description": "Whether or not to use the cache",
            "field_kind": "node_attribute",
            "title": "Use Cache",
            "type": "boolean"
          },
          "prompt": {
            "default": "",
            "description": "Prompt to be parsed by Compel to create a conditioning tensor",
            "field_kind": "input",
            "input": "any",
            "orig_default": "",
            "orig_required": false,
            "title": "Prompt",
            "type": "string",
            "ui_component": "textarea"
          },
          "clip": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CLIPField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "CLIP (tokenizer, text encoder, LoRAs) and skipped layer count",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "title": "CLIP"
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TensorField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "A mask defining the region that this conditioning prompt applies to.",
            "field_kind": "input",
            "input": "any",
            "orig_default": null,
            "orig_required": false
          },
          "type": {
            "const": "compel",
            "default": "compel",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["prompt", "compel"],
        "title": "Prompt - SD1.5",
        "type": "object",
        "version": "1.2.1",
        "output": {
          "$ref": "#/components/schemas/ConditioningOutput"
        }
      },
      "ConditioningCollectionInvocation": {
        "category": "primitives",
        "class": "invocation",
        "classification": "stable",
        "description": "A collection of conditioning tensor 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",
            "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"
          },
          "collection": {
            "default": [],
            "description": "The collection of conditioning tensors",
            "field_kind": "input",
            "input": "any",
            "items": {
              "$ref": "#/components/schemas/ConditioningField"
            },
            "orig_default": [],
            "orig_required": false,
            "title": "Collection",
            "type": "array"
          },
          "type": {
            "const": "conditioning_collection",
            "default": "conditioning_collection",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["primitives", "conditioning", "collection"],
        "title": "Conditioning Collection Primitive",
        "type": "object",
        "version": "1.0.2",
        "output": {
          "$ref": "#/components/schemas/ConditioningCollectionOutput"
        }
      },
      "ConditioningCollectionOutput": {
        "class": "output",
        "description": "Base class for nodes that output a collection of conditioning tensors",
        "properties": {
          "collection": {
            "description": "The output conditioning tensors",
            "field_kind": "output",
            "items": {
              "$ref": "#/components/schemas/ConditioningField"
            },
            "title": "Collection",
            "type": "array",
            "ui_hidden": false
          },
          "type": {
            "const": "conditioning_collection_output",
            "default": "conditioning_collection_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "collection", "type", "type"],
        "title": "ConditioningCollectionOutput",
        "type": "object"
      },
      "ConditioningField": {
        "description": "A conditioning tensor primitive value",
        "properties": {
          "conditioning_name": {
            "description": "The name of conditioning tensor",
            "title": "Conditioning Name",
            "type": "string"
          },
          "mask": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TensorField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The mask associated with this conditioning tensor. Excluded regions should be set to False, included regions should be set to True."
          }
        },
        "required": ["conditioning_name"],
        "title": "ConditioningField",
        "type": "object"
      },
      "ConditioningInvocation": {
        "category": "primitives",
        "class": "invocation",
        "classification": "stable",
        "description": "A conditioning tensor primitive value",
        "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"
          },
          "conditioning": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConditioningField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Conditioning tensor",
            "field_kind": "input",
            "input": "connection",
            "orig_required": true
          },
          "type": {
            "const": "conditioning",
            "default": "conditioning",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["primitives", "conditioning"],
        "title": "Conditioning Primitive",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/ConditioningOutput"
        }
      },
      "ConditioningOutput": {
        "class": "output",
        "description": "Base class for nodes that output a single conditioning tensor",
        "properties": {
          "conditioning": {
            "$ref": "#/components/schemas/ConditioningField",
            "description": "Conditioning tensor",
            "field_kind": "output",
            "ui_hidden": false
          },
          "type": {
            "const": "conditioning_output",
            "default": "conditioning_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "conditioning", "type", "type"],
        "title": "ConditioningOutput",
        "type": "object"
      },
      "ContentShuffleInvocation": {
        "category": "controlnet_preprocessors",
        "class": "invocation",
        "classification": "stable",
        "description": "Shuffles the image, similar to a 'liquify' filter.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to process",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "scale_factor": {
            "default": 256,
            "description": "The scale factor used for the shuffle",
            "field_kind": "input",
            "input": "any",
            "minimum": 0,
            "orig_default": 256,
            "orig_required": false,
            "title": "Scale Factor",
            "type": "integer"
          },
          "type": {
            "const": "content_shuffle",
            "default": "content_shuffle",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["controlnet", "normal"],
        "title": "Content Shuffle",
        "type": "object",
        "version": "1.0.0",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "ContrastDehazeInvocation": {
        "category": "image",
        "class": "invocation",
        "classification": "stable",
        "description": "Adjust broad-scale contrast and chroma as an aesthetic dehazing approximation.",
        "node_pack": "invokeai",
        "properties": {
          "board": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardField"
              },
              {
                "type": "null"
              }
            ],
            "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"
              }
            ],
            "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"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The image to process",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "amount": {
            "default": 0,
            "description": "Strength of the contrast and dehaze adjustment",
            "field_kind": "input",
            "input": "any",
            "maximum": 200,
            "minimum": -200,
            "orig_default": 0,
            "orig_required": false,
            "title": "Amount",
            "type": "number"
          },
          "type": {
            "const": "contrast_dehaze",
            "default": "contrast_dehaze",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["image", "contrast", "dehaze", "enhance"],
        "title": "Contrast Dehaze (approximation)",
        "type": "object",
        "version": "1.0.1",
        "output": {
          "$ref": "#/components/schemas/ImageOutput"
        }
      },
      "ControlAdapterDefaultSettings": {
        "properties": {
          "preprocessor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Preprocessor"
          },
          "fp8_storage": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fp8 Storage",
            "description": "Store weights in FP8 to reduce VRAM usage (~50% savings). Weights are cast to compute dtype during inference."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": ["preprocessor"],
        "title": "ControlAdapterDefaultSettings"
      },
      "ControlField": {
        "properties": {
          "image": {
            "$ref": "#/components/schemas/ImageField",
            "description": "The control image"
          },
          "control_model": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "The ControlNet model to use"
          },
          "control_weight": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              }
            ],
            "default": 1,
            "description": "The weight given to the ControlNet",
            "title": "Control Weight"
          },
          "begin_step_percent": {
            "default": 0,
            "description": "When the ControlNet is first applied (% of total steps)",
            "maximum": 1,
            "minimum": 0,
            "title": "Begin Step Percent",
            "type": "number"
          },
          "end_step_percent": {
            "default": 1,
            "description": "When the ControlNet is last applied (% of total steps)",
            "maximum": 1,
            "minimum": 0,
            "title": "End Step Percent",
            "type": "number"
          },
          "control_mode": {
            "default": "balanced",
            "description": "The control mode to use",
            "enum": ["balanced", "more_prompt", "more_control", "unbalanced"],
            "title": "Control Mode",
            "type": "string"
          },
          "resize_mode": {
            "default": "just_resize",
            "description": "The resize mode to use",
            "enum": ["just_resize", "crop_resize", "fill_resize", "just_resize_simple"],
            "title": "Resize Mode",
            "type": "string"
          }
        },
        "required": ["image", "control_model"],
        "title": "ControlField",
        "type": "object"
      },
      "ControlLoRAField": {
        "properties": {
          "lora": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "Info to load lora model"
          },
          "weight": {
            "description": "Weight to apply to lora model",
            "title": "Weight",
            "type": "number"
          },
          "img": {
            "$ref": "#/components/schemas/ImageField",
            "description": "Image to use in structural conditioning"
          }
        },
        "required": ["lora", "weight", "img"],
        "title": "ControlLoRAField",
        "type": "object"
      },
      "ControlLoRA_LyCORIS_FLUX_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "flux",
            "title": "Base",
            "default": "flux"
          },
          "type": {
            "type": "string",
            "const": "control_lora",
            "title": "Type",
            "default": "control_lora"
          },
          "format": {
            "type": "string",
            "const": "lycoris",
            "title": "Format",
            "default": "lycoris"
          },
          "trigger_phrases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "uniqueItems": true
              },
              {
                "type": "null"
              }
            ],
            "title": "Trigger Phrases"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "default_settings",
          "base",
          "type",
          "format",
          "trigger_phrases"
        ],
        "title": "ControlLoRA_LyCORIS_FLUX_Config",
        "description": "Model config for Control LoRA models."
      },
      "ControlLoRA_LyCORIS_Krea2_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "krea-2",
            "title": "Base",
            "default": "krea-2"
          },
          "type": {
            "type": "string",
            "const": "control_lora",
            "title": "Type",
            "default": "control_lora"
          },
          "format": {
            "type": "string",
            "const": "lycoris",
            "title": "Format",
            "default": "lycoris"
          },
          "trigger_phrases": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "uniqueItems": true
              },
              {
                "type": "null"
              }
            ],
            "title": "Trigger Phrases"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "default_settings",
          "base",
          "type",
          "format",
          "trigger_phrases"
        ],
        "title": "ControlLoRA_LyCORIS_Krea2_Config",
        "description": "Model config for Krea-2 Control LoRAs: native block LoRAs (`.A`/`.B`) and a widened `first` projection."
      },
      "ControlNetInvocation": {
        "category": "conditioning",
        "class": "invocation",
        "classification": "stable",
        "description": "Collects ControlNet info to pass to other nodes",
        "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"
              }
            ],
            "default": null,
            "description": "The control image",
            "field_kind": "input",
            "input": "any",
            "orig_required": true
          },
          "control_model": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelIdentifierField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ControlNet model to load",
            "field_kind": "input",
            "input": "any",
            "orig_required": true,
            "ui_model_base": ["sd-1", "sd-2", "sdxl"],
            "ui_model_type": ["controlnet"]
          },
          "control_weight": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              }
            ],
            "default": 1.0,
            "description": "The weight given to the ControlNet",
            "field_kind": "input",
            "ge": -1,
            "input": "any",
            "le": 2,
            "orig_default": 1.0,
            "orig_required": false,
            "title": "Control Weight"
          },
          "begin_step_percent": {
            "default": 0,
            "description": "When the ControlNet is first applied (% of total steps)",
            "field_kind": "input",
            "input": "any",
            "maximum": 1,
            "minimum": 0,
            "orig_default": 0,
            "orig_required": false,
            "title": "Begin Step Percent",
            "type": "number"
          },
          "end_step_percent": {
            "default": 1,
            "description": "When the ControlNet is last applied (% of total steps)",
            "field_kind": "input",
            "input": "any",
            "maximum": 1,
            "minimum": 0,
            "orig_default": 1,
            "orig_required": false,
            "title": "End Step Percent",
            "type": "number"
          },
          "control_mode": {
            "default": "balanced",
            "description": "The control mode used",
            "enum": ["balanced", "more_prompt", "more_control", "unbalanced"],
            "field_kind": "input",
            "input": "any",
            "orig_default": "balanced",
            "orig_required": false,
            "title": "Control Mode",
            "type": "string"
          },
          "resize_mode": {
            "default": "just_resize",
            "description": "The resize mode used",
            "enum": ["just_resize", "crop_resize", "fill_resize", "just_resize_simple"],
            "field_kind": "input",
            "input": "any",
            "orig_default": "just_resize",
            "orig_required": false,
            "title": "Resize Mode",
            "type": "string"
          },
          "type": {
            "const": "controlnet",
            "default": "controlnet",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["type", "id"],
        "tags": ["controlnet"],
        "title": "ControlNet - SD1.5, SD2, SDXL",
        "type": "object",
        "version": "1.1.3",
        "output": {
          "$ref": "#/components/schemas/ControlOutput"
        }
      },
      "ControlNetMetadataField": {
        "properties": {
          "image": {
            "$ref": "#/components/schemas/ImageField",
            "description": "The control image"
          },
          "processed_image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImageField"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "The control image, after processing."
          },
          "control_model": {
            "$ref": "#/components/schemas/ModelIdentifierField",
            "description": "The ControlNet model to use"
          },
          "control_weight": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              }
            ],
            "default": 1,
            "description": "The weight given to the ControlNet",
            "title": "Control Weight"
          },
          "begin_step_percent": {
            "default": 0,
            "description": "When the ControlNet is first applied (% of total steps)",
            "maximum": 1,
            "minimum": 0,
            "title": "Begin Step Percent",
            "type": "number"
          },
          "end_step_percent": {
            "default": 1,
            "description": "When the ControlNet is last applied (% of total steps)",
            "maximum": 1,
            "minimum": 0,
            "title": "End Step Percent",
            "type": "number"
          },
          "control_mode": {
            "default": "balanced",
            "description": "The control mode to use",
            "enum": ["balanced", "more_prompt", "more_control", "unbalanced"],
            "title": "Control Mode",
            "type": "string"
          },
          "resize_mode": {
            "default": "just_resize",
            "description": "The resize mode to use",
            "enum": ["just_resize", "crop_resize", "fill_resize", "just_resize_simple"],
            "title": "Resize Mode",
            "type": "string"
          }
        },
        "required": ["image", "control_model"],
        "title": "ControlNetMetadataField",
        "type": "object"
      },
      "ControlNetRecallParameter": {
        "properties": {
          "model_name": {
            "type": "string",
            "title": "Model Name",
            "description": "The name of the ControlNet/T2I Adapter/Control LoRA model"
          },
          "image_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Name",
            "description": "The filename of the control image in outputs/images"
          },
          "weight": {
            "type": "number",
            "maximum": 2.0,
            "minimum": -1.0,
            "title": "Weight",
            "description": "The weight for the control adapter",
            "default": 1.0
          },
          "begin_step_percent": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Begin Step Percent",
            "description": "When the control adapter is first applied (% of total steps)"
          },
          "end_step_percent": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "End Step Percent",
            "description": "When the control adapter is last applied (% of total steps)"
          },
          "control_mode": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["balanced", "more_prompt", "more_control"]
              },
              {
                "type": "null"
              }
            ],
            "title": "Control Mode",
            "description": "The control mode (ControlNet only)"
          }
        },
        "type": "object",
        "required": ["model_name"],
        "title": "ControlNetRecallParameter",
        "description": "ControlNet configuration for recall"
      },
      "ControlNet_Checkpoint_Anima_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "base": {
            "type": "string",
            "const": "anima",
            "title": "Base",
            "default": "anima"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "cond_in_channels": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cond In Channels",
            "description": "Number of conditioning image channels (3 = RGB control image, 4 = RGB + inpaint mask). None for models installed before this field was recorded."
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "base",
          "default_settings",
          "cond_in_channels"
        ],
        "title": "ControlNet_Checkpoint_Anima_Config",
        "description": "Model config for Anima ControlNet-LLLite adapter models (Safetensors checkpoint).\n\nAnima LLLite adapters are standalone adapters consisting of a shared conditioning trunk\n(lllite_conditioning1) that encodes a conditioning image, plus tiny per-Linear modules\n(lllite_dit_blocks_*) that perturb the inputs of target Linears in the Anima DiT."
      },
      "ControlNet_Checkpoint_FLUX_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "flux",
            "title": "Base",
            "default": "flux"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Checkpoint_FLUX_Config"
      },
      "ControlNet_Checkpoint_Flux2_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "base": {
            "type": "string",
            "const": "flux2",
            "title": "Base",
            "default": "flux2"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "base",
          "default_settings"
        ],
        "title": "ControlNet_Checkpoint_Flux2_Config",
        "description": "Model config for FLUX.2 [dev] Fun-ControlNet adapter models (Safetensors checkpoint).\n\nFLUX.2 Fun-ControlNets are standalone adapters containing only the control branch\n(control_img_in, control_transformer_blocks) that extends the FLUX.2 [dev] transformer with\nspatial conditioning capabilities. Klein transformers are narrower and cannot take it.\n\nSupports: Canny, HED, Depth, Pose, MLSD, Scribble, Gray, inpainting.\nRecommended control_context_scale: 0.65-0.80."
      },
      "ControlNet_Checkpoint_QwenImage_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "base": {
            "type": "string",
            "const": "qwen-image",
            "title": "Base",
            "default": "qwen-image"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "control_architecture": {
            "type": "string",
            "enum": ["fun_union", "instantx_union"],
            "title": "Control Architecture",
            "description": "Which Qwen-Image ControlNet design the file holds: 'fun_union' (alibaba-pai Fun-ControlNet-Union, control and inpainting) or 'instantx_union' (InstantX ControlNet-Union, control only). Records written before the field existed are Fun-ControlNets.",
            "default": "fun_union"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "base",
          "default_settings",
          "control_architecture"
        ],
        "title": "ControlNet_Checkpoint_QwenImage_Config",
        "description": "Model config for Qwen-Image ControlNet models (Safetensors checkpoint), in either of two designs.\n\nalibaba-pai's Fun-ControlNet-Union is a control branch (control_img_in, control_blocks) hooked into the base\nQwen-Image transformer. Supports Canny, HED, Depth, Pose, MLSD, Scribble, Gray and inpainting; recommended\ncontrol_context_scale 0.70-0.95.\n\nInstantX's ControlNet-Union is a five-block copy of the transformer (controlnet_x_embedder, transformer_blocks,\ncontrolnet_blocks) whose block outputs are added to the base image stream. Supports Canny, Soft Edge, Depth and\nPose; recommended control_context_scale 0.80-1.00 on the original Qwen Image it was trained on, about 1.5-2.0 on\nQwen Image 2512. It takes no inpainting condition."
      },
      "ControlNet_Checkpoint_SD1_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "sd-1",
            "title": "Base",
            "default": "sd-1"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Checkpoint_SD1_Config"
      },
      "ControlNet_Checkpoint_SD2_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "sd-2",
            "title": "Base",
            "default": "sd-2"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Checkpoint_SD2_Config"
      },
      "ControlNet_Checkpoint_SDXL_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "sdxl",
            "title": "Base",
            "default": "sdxl"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Checkpoint_SDXL_Config"
      },
      "ControlNet_Checkpoint_ZImage_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "config_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config Path",
            "description": "Path to the config for this model, if any."
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "format": {
            "type": "string",
            "const": "checkpoint",
            "title": "Format",
            "default": "checkpoint"
          },
          "base": {
            "type": "string",
            "const": "z-image",
            "title": "Base",
            "default": "z-image"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "config_path",
          "type",
          "format",
          "base",
          "default_settings"
        ],
        "title": "ControlNet_Checkpoint_ZImage_Config",
        "description": "Model config for Z-Image Control adapter models (Safetensors checkpoint).\n\nZ-Image Control models are standalone adapters containing only the control layers\n(control_layers, control_all_x_embedder, control_noise_refiner) that extend\nthe base Z-Image transformer with spatial conditioning capabilities.\n\nSupports: Canny, HED, Depth, Pose, MLSD.\nRecommended control_context_scale: 0.65-0.80."
      },
      "ControlNet_Diffusers_FLUX_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "format": {
            "type": "string",
            "const": "diffusers",
            "title": "Format",
            "default": "diffusers"
          },
          "repo_variant": {
            "$ref": "#/components/schemas/ModelRepoVariant",
            "default": ""
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "flux",
            "title": "Base",
            "default": "flux"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "format",
          "repo_variant",
          "type",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Diffusers_FLUX_Config"
      },
      "ControlNet_Diffusers_SD1_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "format": {
            "type": "string",
            "const": "diffusers",
            "title": "Format",
            "default": "diffusers"
          },
          "repo_variant": {
            "$ref": "#/components/schemas/ModelRepoVariant",
            "default": ""
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "sd-1",
            "title": "Base",
            "default": "sd-1"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "format",
          "repo_variant",
          "type",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Diffusers_SD1_Config"
      },
      "ControlNet_Diffusers_SD2_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "format": {
            "type": "string",
            "const": "diffusers",
            "title": "Format",
            "default": "diffusers"
          },
          "repo_variant": {
            "$ref": "#/components/schemas/ModelRepoVariant",
            "default": ""
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "sd-2",
            "title": "Base",
            "default": "sd-2"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "format",
          "repo_variant",
          "type",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Diffusers_SD2_Config"
      },
      "ControlNet_Diffusers_SDXL_Config": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key",
            "description": "A unique key for this model."
          },
          "hash": {
            "type": "string",
            "title": "Hash",
            "description": "The hash of the model file(s)."
          },
          "path": {
            "type": "string",
            "title": "Path",
            "description": "Path to the model on the filesystem. Relative paths are relative to the Invoke root directory."
          },
          "file_size": {
            "type": "integer",
            "title": "File Size",
            "description": "The size of the model in bytes."
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the model."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Model description"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "The original source of the model (path, URL or repo_id)."
          },
          "source_type": {
            "$ref": "#/components/schemas/ModelSourceType",
            "description": "The type of source"
          },
          "source_api_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Api Response",
            "description": "The original API response from the source, as stringified JSON."
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url",
            "description": "User-editable URL for the model (e.g. download page or model page)."
          },
          "source_urls": {
            "items": {
              "type": "string",
              "pattern": "^https?://[^\\s/?#]+(?:[/?#][^\\s]*)?$"
            },
            "type": "array",
            "title": "Source Urls",
            "description": "Web pages about the model, set by starters and installs. Users edit source_url instead."
          },
          "cover_image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cover Image",
            "description": "Url for image to preview model"
          },
          "roles": {
            "items": {
              "$ref": "#/components/schemas/ModelRole"
            },
            "type": "array",
            "title": "Roles",
            "description": "Other model types this model serves as, besides `type`. Derived from its files at identification; re-identify to refresh."
          },
          "format": {
            "type": "string",
            "const": "diffusers",
            "title": "Format",
            "default": "diffusers"
          },
          "repo_variant": {
            "$ref": "#/components/schemas/ModelRepoVariant",
            "default": ""
          },
          "type": {
            "type": "string",
            "const": "controlnet",
            "title": "Type",
            "default": "controlnet"
          },
          "default_settings": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ControlAdapterDefaultSettings"
              },
              {
                "type": "null"
              }
            ]
          },
          "base": {
            "type": "string",
            "const": "sdxl",
            "title": "Base",
            "default": "sdxl"
          }
        },
        "type": "object",
        "required": [
          "key",
          "hash",
          "path",
          "file_size",
          "name",
          "description",
          "source",
          "source_type",
          "source_api_response",
          "source_url",
          "source_urls",
          "cover_image",
          "roles",
          "format",
          "repo_variant",
          "type",
          "default_settings",
          "base"
        ],
        "title": "ControlNet_Diffusers_SDXL_Config"
      },
      "ControlOutput": {
        "class": "output",
        "description": "node output for ControlNet info",
        "properties": {
          "control": {
            "$ref": "#/components/schemas/ControlField",
            "description": "ControlNet(s) to apply",
            "field_kind": "output",
            "ui_hidden": false
          },
          "type": {
            "const": "control_output",
            "default": "control_output",
            "field_kind": "node_attribute",
            "title": "type",
            "type": "string"
          }
        },
        "required": ["output_meta", "control", "type", "type"],
        "title": "ControlOutput",
        "type": "object"
      },
      "CopiedImage": {
        "properties": {
          "source_image_name": {
            "type": "string",
            "title": "Source Image Name",
            "description": "The image that was copied"
          },
          "image_name": {
            "type": "string",
            "title": "Image Name",
            "description": "The name assigned to the copy"
          }
        },
        "type": "object",
        "required": ["source_image_name", "image_name"],
        "title": "CopiedImage"
      },
      "CopiedVideo": {
        "properties": {
          "source_video_name": {
            "type": "string",
            "title": "Source Video Name",
            "description": "The video that was copied"
          },
          "video_name": {
            "type": "string",
            "title": "Video Name",
            "description": "The name assigned to the copy"
          }
        },
        "type": "object",
        "required": ["source_video_name", "video_name"],
        "title": "CopiedVideo"
      },
      "CopyImagesResult": {
        "properties": {
          "copied": {
            "items": {
              "$ref": "#/components/schemas/CopiedImage"
            },
            "type": "array",
            "title": "Copied",
            "description": "The copies that were made, in request order"
          },
          "failed": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Failed",
            "description": "The source image names that could not be copied"
          }
        },
        "type": "object",
        "required": ["copied", "failed"],
        "title": "CopyImagesResult"
      },
      "CopyVideosResult": {
        "properties": {
          "copied": {
            "items": {
              "$ref": "#/components/schemas/CopiedVideo"
            },
            "type": "array",
            "title": "Copied",
            "description": "The copies that were made, in request order"
          },
          "failed": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Failed",
            "description": "The source video names that could not be copied"
          }
        },
        "type":

File truncated at 1 MB.