|
|
|
@ -75,25 +75,37 @@ export type paths = {
|
|
|
|
|
* @description Gets a list of models
|
|
|
|
|
*/
|
|
|
|
|
get: operations["list_models"];
|
|
|
|
|
/**
|
|
|
|
|
* Update Model
|
|
|
|
|
* @description Add Model
|
|
|
|
|
*/
|
|
|
|
|
post: operations["update_model"];
|
|
|
|
|
};
|
|
|
|
|
"/api/v1/models/import": {
|
|
|
|
|
/**
|
|
|
|
|
* Import Model
|
|
|
|
|
* @description Add a model using its local path, repo_id, or remote URL
|
|
|
|
|
*/
|
|
|
|
|
post: operations["import_model"];
|
|
|
|
|
};
|
|
|
|
|
"/api/v1/models/{model_name}": {
|
|
|
|
|
"/api/v1/models/{base_model}/{model_type}/{model_name}": {
|
|
|
|
|
/**
|
|
|
|
|
* Delete Model
|
|
|
|
|
* @description Delete Model
|
|
|
|
|
*/
|
|
|
|
|
delete: operations["del_model"];
|
|
|
|
|
/**
|
|
|
|
|
* Update Model
|
|
|
|
|
* @description Add Model
|
|
|
|
|
*/
|
|
|
|
|
patch: operations["update_model"];
|
|
|
|
|
};
|
|
|
|
|
"/api/v1/models/convert/{base_model}/{model_type}/{model_name}": {
|
|
|
|
|
/**
|
|
|
|
|
* Convert Model
|
|
|
|
|
* @description Convert a checkpoint model into a diffusers model
|
|
|
|
|
*/
|
|
|
|
|
put: operations["convert_model"];
|
|
|
|
|
};
|
|
|
|
|
"/api/v1/models/merge/{base_model}": {
|
|
|
|
|
/**
|
|
|
|
|
* Merge Models
|
|
|
|
|
* @description Convert a checkpoint model into a diffusers model
|
|
|
|
|
*/
|
|
|
|
|
put: operations["merge_models"];
|
|
|
|
|
};
|
|
|
|
|
"/api/v1/images/": {
|
|
|
|
|
/**
|
|
|
|
@ -234,23 +246,6 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
b?: number;
|
|
|
|
|
};
|
|
|
|
|
/** AddModelResult */
|
|
|
|
|
AddModelResult: {
|
|
|
|
|
/**
|
|
|
|
|
* Name
|
|
|
|
|
* @description The name of the model after import
|
|
|
|
|
*/
|
|
|
|
|
name: string;
|
|
|
|
|
/** @description The type of model */
|
|
|
|
|
model_type: components["schemas"]["ModelType"];
|
|
|
|
|
/** @description The base model */
|
|
|
|
|
base_model: components["schemas"]["BaseModelType"];
|
|
|
|
|
/**
|
|
|
|
|
* Config
|
|
|
|
|
* @description The configuration of the model
|
|
|
|
|
*/
|
|
|
|
|
config: components["schemas"]["ModelConfigBase"];
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* BaseModelType
|
|
|
|
|
* @description An enumeration.
|
|
|
|
@ -324,6 +319,48 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
image_name: string;
|
|
|
|
|
};
|
|
|
|
|
/** Body_import_model */
|
|
|
|
|
Body_import_model: {
|
|
|
|
|
/**
|
|
|
|
|
* Location
|
|
|
|
|
* @description A model path, repo_id or URL to import
|
|
|
|
|
*/
|
|
|
|
|
location: string;
|
|
|
|
|
/**
|
|
|
|
|
* Prediction Type
|
|
|
|
|
* @description Prediction type for SDv2 checkpoint files
|
|
|
|
|
* @default v_prediction
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
prediction_type?: "v_prediction" | "epsilon" | "sample";
|
|
|
|
|
};
|
|
|
|
|
/** Body_merge_models */
|
|
|
|
|
Body_merge_models: {
|
|
|
|
|
/**
|
|
|
|
|
* Model Names
|
|
|
|
|
* @description model name
|
|
|
|
|
*/
|
|
|
|
|
model_names: (string)[];
|
|
|
|
|
/**
|
|
|
|
|
* Merged Model Name
|
|
|
|
|
* @description Name of destination model
|
|
|
|
|
*/
|
|
|
|
|
merged_model_name: string;
|
|
|
|
|
/**
|
|
|
|
|
* Alpha
|
|
|
|
|
* @description Alpha weighting strength to apply to 2d and 3d models
|
|
|
|
|
* @default 0.5
|
|
|
|
|
*/
|
|
|
|
|
alpha?: number;
|
|
|
|
|
/** @description Interpolation method */
|
|
|
|
|
interp: components["schemas"]["MergeInterpolationMethod"];
|
|
|
|
|
/**
|
|
|
|
|
* Force
|
|
|
|
|
* @description Force merging of models created with different versions of diffusers
|
|
|
|
|
* @default false
|
|
|
|
|
*/
|
|
|
|
|
force?: boolean;
|
|
|
|
|
};
|
|
|
|
|
/** Body_remove_board_image */
|
|
|
|
|
Body_remove_board_image: {
|
|
|
|
|
/**
|
|
|
|
@ -343,7 +380,7 @@ export type components = {
|
|
|
|
|
* File
|
|
|
|
|
* Format: binary
|
|
|
|
|
*/
|
|
|
|
|
file: string;
|
|
|
|
|
file: Blob;
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* CannyImageProcessorInvocation
|
|
|
|
@ -385,55 +422,6 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
high_threshold?: number;
|
|
|
|
|
};
|
|
|
|
|
/** CkptModelInfo */
|
|
|
|
|
CkptModelInfo: {
|
|
|
|
|
/**
|
|
|
|
|
* Description
|
|
|
|
|
* @description A description of the model
|
|
|
|
|
*/
|
|
|
|
|
description?: string;
|
|
|
|
|
/**
|
|
|
|
|
* Model Name
|
|
|
|
|
* @description The name of the model
|
|
|
|
|
*/
|
|
|
|
|
model_name: string;
|
|
|
|
|
/**
|
|
|
|
|
* Model Type
|
|
|
|
|
* @description The type of the model
|
|
|
|
|
*/
|
|
|
|
|
model_type: string;
|
|
|
|
|
/**
|
|
|
|
|
* Format
|
|
|
|
|
* @default ckpt
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
format?: "ckpt";
|
|
|
|
|
/**
|
|
|
|
|
* Config
|
|
|
|
|
* @description The path to the model config
|
|
|
|
|
*/
|
|
|
|
|
config: string;
|
|
|
|
|
/**
|
|
|
|
|
* Weights
|
|
|
|
|
* @description The path to the model weights
|
|
|
|
|
*/
|
|
|
|
|
weights: string;
|
|
|
|
|
/**
|
|
|
|
|
* Vae
|
|
|
|
|
* @description The path to the model VAE
|
|
|
|
|
*/
|
|
|
|
|
vae: string;
|
|
|
|
|
/**
|
|
|
|
|
* Width
|
|
|
|
|
* @description The width of the model
|
|
|
|
|
*/
|
|
|
|
|
width?: number;
|
|
|
|
|
/**
|
|
|
|
|
* Height
|
|
|
|
|
* @description The height of the model
|
|
|
|
|
*/
|
|
|
|
|
height?: number;
|
|
|
|
|
};
|
|
|
|
|
/** ClipField */
|
|
|
|
|
ClipField: {
|
|
|
|
|
/**
|
|
|
|
@ -836,19 +824,6 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
control?: components["schemas"]["ControlField"];
|
|
|
|
|
};
|
|
|
|
|
/** CreateModelRequest */
|
|
|
|
|
CreateModelRequest: {
|
|
|
|
|
/**
|
|
|
|
|
* Name
|
|
|
|
|
* @description The name of the model
|
|
|
|
|
*/
|
|
|
|
|
name: string;
|
|
|
|
|
/**
|
|
|
|
|
* Info
|
|
|
|
|
* @description The model info
|
|
|
|
|
*/
|
|
|
|
|
info: components["schemas"]["CkptModelInfo"] | components["schemas"]["DiffusersModelInfo"];
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* CvInpaintInvocation
|
|
|
|
|
* @description Simple inpaint using opencv.
|
|
|
|
@ -882,45 +857,6 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
mask?: components["schemas"]["ImageField"];
|
|
|
|
|
};
|
|
|
|
|
/** DiffusersModelInfo */
|
|
|
|
|
DiffusersModelInfo: {
|
|
|
|
|
/**
|
|
|
|
|
* Description
|
|
|
|
|
* @description A description of the model
|
|
|
|
|
*/
|
|
|
|
|
description?: string;
|
|
|
|
|
/**
|
|
|
|
|
* Model Name
|
|
|
|
|
* @description The name of the model
|
|
|
|
|
*/
|
|
|
|
|
model_name: string;
|
|
|
|
|
/**
|
|
|
|
|
* Model Type
|
|
|
|
|
* @description The type of the model
|
|
|
|
|
*/
|
|
|
|
|
model_type: string;
|
|
|
|
|
/**
|
|
|
|
|
* Format
|
|
|
|
|
* @default folder
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
format?: "folder";
|
|
|
|
|
/**
|
|
|
|
|
* Vae
|
|
|
|
|
* @description The VAE repo to use for this model
|
|
|
|
|
*/
|
|
|
|
|
vae?: components["schemas"]["VaeRepo"];
|
|
|
|
|
/**
|
|
|
|
|
* Repo Id
|
|
|
|
|
* @description The repo ID to use for this model
|
|
|
|
|
*/
|
|
|
|
|
repo_id?: string;
|
|
|
|
|
/**
|
|
|
|
|
* Path
|
|
|
|
|
* @description The path to the model
|
|
|
|
|
*/
|
|
|
|
|
path?: string;
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* DivideInvocation
|
|
|
|
|
* @description Divides two numbers
|
|
|
|
@ -1110,7 +1046,7 @@ export type components = {
|
|
|
|
|
* @description The nodes in this graph
|
|
|
|
|
*/
|
|
|
|
|
nodes?: {
|
|
|
|
|
[key: string]: (components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["LoadImageInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageProcessorInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["TextToLatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["InpaintInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["ParamIntInvocation"] | components["schemas"]["ParamFloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["RestoreFaceInvocation"] | components["schemas"]["UpscaleInvocation"] | components["schemas"]["GraphInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["LatentsToLatentsInvocation"]) | undefined;
|
|
|
|
|
[key: string]: (components["schemas"]["LoadImageInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageProcessorInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["ParamIntInvocation"] | components["schemas"]["ParamFloatInvocation"] | components["schemas"]["TextToLatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["UpscaleInvocation"] | components["schemas"]["RestoreFaceInvocation"] | components["schemas"]["InpaintInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["GraphInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["LatentsToLatentsInvocation"]) | undefined;
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* Edges
|
|
|
|
@ -1153,7 +1089,7 @@ export type components = {
|
|
|
|
|
* @description The results of node executions
|
|
|
|
|
*/
|
|
|
|
|
results: {
|
|
|
|
|
[key: string]: (components["schemas"]["IntCollectionOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["LoraLoaderOutput"] | components["schemas"]["VaeLoaderOutput"] | components["schemas"]["CompelOutput"] | components["schemas"]["ClipSkipInvocationOutput"] | components["schemas"]["ImageOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["IntOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["PromptOutput"] | components["schemas"]["PromptCollectionOutput"] | components["schemas"]["GraphInvocationOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["CollectInvocationOutput"]) | undefined;
|
|
|
|
|
[key: string]: (components["schemas"]["ImageOutput"] | components["schemas"]["MaskOutput"] | components["schemas"]["ControlOutput"] | components["schemas"]["ModelLoaderOutput"] | components["schemas"]["LoraLoaderOutput"] | components["schemas"]["VaeLoaderOutput"] | components["schemas"]["PromptOutput"] | components["schemas"]["PromptCollectionOutput"] | components["schemas"]["CompelOutput"] | components["schemas"]["ClipSkipInvocationOutput"] | components["schemas"]["IntOutput"] | components["schemas"]["FloatOutput"] | components["schemas"]["LatentsOutput"] | components["schemas"]["IntCollectionOutput"] | components["schemas"]["FloatCollectionOutput"] | components["schemas"]["ImageCollectionOutput"] | components["schemas"]["NoiseOutput"] | components["schemas"]["GraphInvocationOutput"] | components["schemas"]["IterateInvocationOutput"] | components["schemas"]["CollectInvocationOutput"]) | undefined;
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* Errors
|
|
|
|
@ -2055,24 +1991,6 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
thumbnail_url: string;
|
|
|
|
|
};
|
|
|
|
|
/** ImportModelResponse */
|
|
|
|
|
ImportModelResponse: {
|
|
|
|
|
/**
|
|
|
|
|
* Name
|
|
|
|
|
* @description The name of the imported model
|
|
|
|
|
*/
|
|
|
|
|
name: string;
|
|
|
|
|
/**
|
|
|
|
|
* Info
|
|
|
|
|
* @description The model info
|
|
|
|
|
*/
|
|
|
|
|
info: components["schemas"]["AddModelResult"];
|
|
|
|
|
/**
|
|
|
|
|
* Status
|
|
|
|
|
* @description The status of the API response
|
|
|
|
|
*/
|
|
|
|
|
status: string;
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* InfillColorInvocation
|
|
|
|
|
* @description Infills transparent areas of an image with a solid color
|
|
|
|
@ -3020,6 +2938,12 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
min_confidence?: number;
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* MergeInterpolationMethod
|
|
|
|
|
* @description An enumeration.
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
MergeInterpolationMethod: "weighted_sum" | "sigmoid" | "inv_sigmoid" | "add_difference";
|
|
|
|
|
/**
|
|
|
|
|
* MidasDepthImageProcessorInvocation
|
|
|
|
|
* @description Applies Midas depth processing to image
|
|
|
|
@ -3112,16 +3036,6 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
thr_d?: number;
|
|
|
|
|
};
|
|
|
|
|
/** ModelConfigBase */
|
|
|
|
|
ModelConfigBase: {
|
|
|
|
|
/** Path */
|
|
|
|
|
path: string;
|
|
|
|
|
/** Description */
|
|
|
|
|
description?: string;
|
|
|
|
|
/** Model Format */
|
|
|
|
|
model_format?: string;
|
|
|
|
|
error?: components["schemas"]["ModelError"];
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* ModelError
|
|
|
|
|
* @description An enumeration.
|
|
|
|
@ -3184,7 +3098,7 @@ export type components = {
|
|
|
|
|
/** ModelsList */
|
|
|
|
|
ModelsList: {
|
|
|
|
|
/** Models */
|
|
|
|
|
models: (components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"])[];
|
|
|
|
|
models: (components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"])[];
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* MultiplyInvocation
|
|
|
|
@ -4462,24 +4376,6 @@ export type components = {
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
VaeModelFormat: "checkpoint" | "diffusers";
|
|
|
|
|
/** VaeRepo */
|
|
|
|
|
VaeRepo: {
|
|
|
|
|
/**
|
|
|
|
|
* Repo Id
|
|
|
|
|
* @description The repo ID to use for this VAE
|
|
|
|
|
*/
|
|
|
|
|
repo_id: string;
|
|
|
|
|
/**
|
|
|
|
|
* Path
|
|
|
|
|
* @description The path to the VAE
|
|
|
|
|
*/
|
|
|
|
|
path?: string;
|
|
|
|
|
/**
|
|
|
|
|
* Subfolder
|
|
|
|
|
* @description The subfolder to use for this VAE
|
|
|
|
|
*/
|
|
|
|
|
subfolder?: string;
|
|
|
|
|
};
|
|
|
|
|
/** ValidationError */
|
|
|
|
|
ValidationError: {
|
|
|
|
|
/** Location */
|
|
|
|
@ -4517,18 +4413,18 @@ export type components = {
|
|
|
|
|
*/
|
|
|
|
|
image?: components["schemas"]["ImageField"];
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* StableDiffusion1ModelFormat
|
|
|
|
|
* @description An enumeration.
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
StableDiffusion1ModelFormat: "checkpoint" | "diffusers";
|
|
|
|
|
/**
|
|
|
|
|
* StableDiffusion2ModelFormat
|
|
|
|
|
* @description An enumeration.
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
StableDiffusion2ModelFormat: "checkpoint" | "diffusers";
|
|
|
|
|
/**
|
|
|
|
|
* StableDiffusion1ModelFormat
|
|
|
|
|
* @description An enumeration.
|
|
|
|
|
* @enum {string}
|
|
|
|
|
*/
|
|
|
|
|
StableDiffusion1ModelFormat: "checkpoint" | "diffusers";
|
|
|
|
|
};
|
|
|
|
|
responses: never;
|
|
|
|
|
parameters: never;
|
|
|
|
@ -4639,7 +4535,7 @@ export type operations = {
|
|
|
|
|
};
|
|
|
|
|
requestBody: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["LoadImageInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageProcessorInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["TextToLatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["InpaintInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["ParamIntInvocation"] | components["schemas"]["ParamFloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["RestoreFaceInvocation"] | components["schemas"]["UpscaleInvocation"] | components["schemas"]["GraphInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["LatentsToLatentsInvocation"];
|
|
|
|
|
"application/json": components["schemas"]["LoadImageInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageProcessorInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["ParamIntInvocation"] | components["schemas"]["ParamFloatInvocation"] | components["schemas"]["TextToLatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["UpscaleInvocation"] | components["schemas"]["RestoreFaceInvocation"] | components["schemas"]["InpaintInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["GraphInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["LatentsToLatentsInvocation"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
responses: {
|
|
|
|
@ -4676,7 +4572,7 @@ export type operations = {
|
|
|
|
|
};
|
|
|
|
|
requestBody: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["LoadImageInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageProcessorInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["TextToLatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["InpaintInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["ParamIntInvocation"] | components["schemas"]["ParamFloatInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["RestoreFaceInvocation"] | components["schemas"]["UpscaleInvocation"] | components["schemas"]["GraphInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["LatentsToLatentsInvocation"];
|
|
|
|
|
"application/json": components["schemas"]["LoadImageInvocation"] | components["schemas"]["ShowImageInvocation"] | components["schemas"]["ImageCropInvocation"] | components["schemas"]["ImagePasteInvocation"] | components["schemas"]["MaskFromAlphaInvocation"] | components["schemas"]["ImageMultiplyInvocation"] | components["schemas"]["ImageChannelInvocation"] | components["schemas"]["ImageConvertInvocation"] | components["schemas"]["ImageBlurInvocation"] | components["schemas"]["ImageResizeInvocation"] | components["schemas"]["ImageScaleInvocation"] | components["schemas"]["ImageLerpInvocation"] | components["schemas"]["ImageInverseLerpInvocation"] | components["schemas"]["ControlNetInvocation"] | components["schemas"]["ImageProcessorInvocation"] | components["schemas"]["MainModelLoaderInvocation"] | components["schemas"]["LoraLoaderInvocation"] | components["schemas"]["VaeLoaderInvocation"] | components["schemas"]["DynamicPromptInvocation"] | components["schemas"]["CompelInvocation"] | components["schemas"]["ClipSkipInvocation"] | components["schemas"]["AddInvocation"] | components["schemas"]["SubtractInvocation"] | components["schemas"]["MultiplyInvocation"] | components["schemas"]["DivideInvocation"] | components["schemas"]["RandomIntInvocation"] | components["schemas"]["ParamIntInvocation"] | components["schemas"]["ParamFloatInvocation"] | components["schemas"]["TextToLatentsInvocation"] | components["schemas"]["LatentsToImageInvocation"] | components["schemas"]["ResizeLatentsInvocation"] | components["schemas"]["ScaleLatentsInvocation"] | components["schemas"]["ImageToLatentsInvocation"] | components["schemas"]["CvInpaintInvocation"] | components["schemas"]["RangeInvocation"] | components["schemas"]["RangeOfSizeInvocation"] | components["schemas"]["RandomRangeInvocation"] | components["schemas"]["ImageCollectionInvocation"] | components["schemas"]["FloatLinearRangeInvocation"] | components["schemas"]["StepParamEasingInvocation"] | components["schemas"]["NoiseInvocation"] | components["schemas"]["UpscaleInvocation"] | components["schemas"]["RestoreFaceInvocation"] | components["schemas"]["InpaintInvocation"] | components["schemas"]["InfillColorInvocation"] | components["schemas"]["InfillTileInvocation"] | components["schemas"]["InfillPatchMatchInvocation"] | components["schemas"]["GraphInvocation"] | components["schemas"]["IterateInvocation"] | components["schemas"]["CollectInvocation"] | components["schemas"]["CannyImageProcessorInvocation"] | components["schemas"]["HedImageProcessorInvocation"] | components["schemas"]["LineartImageProcessorInvocation"] | components["schemas"]["LineartAnimeImageProcessorInvocation"] | components["schemas"]["OpenposeImageProcessorInvocation"] | components["schemas"]["MidasDepthImageProcessorInvocation"] | components["schemas"]["NormalbaeImageProcessorInvocation"] | components["schemas"]["MlsdImageProcessorInvocation"] | components["schemas"]["PidiImageProcessorInvocation"] | components["schemas"]["ContentShuffleImageProcessorInvocation"] | components["schemas"]["ZoeDepthImageProcessorInvocation"] | components["schemas"]["MediapipeFaceProcessorInvocation"] | components["schemas"]["LeresImageProcessorInvocation"] | components["schemas"]["TileResamplerProcessorInvocation"] | components["schemas"]["SegmentAnythingProcessorInvocation"] | components["schemas"]["LatentsToLatentsInvocation"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
responses: {
|
|
|
|
@ -4895,59 +4791,35 @@ export type operations = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* Update Model
|
|
|
|
|
* @description Add Model
|
|
|
|
|
*/
|
|
|
|
|
update_model: {
|
|
|
|
|
requestBody: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["CreateModelRequest"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
responses: {
|
|
|
|
|
/** @description Successful Response */
|
|
|
|
|
200: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": unknown;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/** @description Validation Error */
|
|
|
|
|
422: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* Import Model
|
|
|
|
|
* @description Add a model using its local path, repo_id, or remote URL
|
|
|
|
|
*/
|
|
|
|
|
import_model: {
|
|
|
|
|
parameters: {
|
|
|
|
|
query: {
|
|
|
|
|
/** @description A model path, repo_id or URL to import */
|
|
|
|
|
name: string;
|
|
|
|
|
/** @description Prediction type for SDv2 checkpoint files */
|
|
|
|
|
prediction_type?: "v_prediction" | "epsilon" | "sample";
|
|
|
|
|
requestBody: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["Body_import_model"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
responses: {
|
|
|
|
|
/** @description The model imported successfully */
|
|
|
|
|
201: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["ImportModelResponse"];
|
|
|
|
|
"application/json": components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/** @description The model could not be found */
|
|
|
|
|
404: never;
|
|
|
|
|
/** @description There is already a model corresponding to this path or repo_id */
|
|
|
|
|
409: never;
|
|
|
|
|
/** @description Validation Error */
|
|
|
|
|
422: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/** @description The model appeared to import successfully, but could not be found in the model manager */
|
|
|
|
|
424: never;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
@ -4957,6 +4829,11 @@ export type operations = {
|
|
|
|
|
del_model: {
|
|
|
|
|
parameters: {
|
|
|
|
|
path: {
|
|
|
|
|
/** @description Base model */
|
|
|
|
|
base_model: components["schemas"]["BaseModelType"];
|
|
|
|
|
/** @description The type of model */
|
|
|
|
|
model_type: components["schemas"]["ModelType"];
|
|
|
|
|
/** @description model name */
|
|
|
|
|
model_name: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
@ -4979,6 +4856,114 @@ export type operations = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* Update Model
|
|
|
|
|
* @description Add Model
|
|
|
|
|
*/
|
|
|
|
|
update_model: {
|
|
|
|
|
parameters: {
|
|
|
|
|
path: {
|
|
|
|
|
/** @description Base model */
|
|
|
|
|
base_model: components["schemas"]["BaseModelType"];
|
|
|
|
|
/** @description The type of model */
|
|
|
|
|
model_type: components["schemas"]["ModelType"];
|
|
|
|
|
/** @description model name */
|
|
|
|
|
model_name: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
requestBody: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
responses: {
|
|
|
|
|
/** @description The model was updated successfully */
|
|
|
|
|
200: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/** @description Bad request */
|
|
|
|
|
400: never;
|
|
|
|
|
/** @description The model could not be found */
|
|
|
|
|
404: never;
|
|
|
|
|
/** @description Validation Error */
|
|
|
|
|
422: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* Convert Model
|
|
|
|
|
* @description Convert a checkpoint model into a diffusers model
|
|
|
|
|
*/
|
|
|
|
|
convert_model: {
|
|
|
|
|
parameters: {
|
|
|
|
|
path: {
|
|
|
|
|
/** @description Base model */
|
|
|
|
|
base_model: components["schemas"]["BaseModelType"];
|
|
|
|
|
/** @description The type of model */
|
|
|
|
|
model_type: components["schemas"]["ModelType"];
|
|
|
|
|
/** @description model name */
|
|
|
|
|
model_name: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
responses: {
|
|
|
|
|
/** @description Model converted successfully */
|
|
|
|
|
200: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/** @description Bad request */
|
|
|
|
|
400: never;
|
|
|
|
|
/** @description Model not found */
|
|
|
|
|
404: never;
|
|
|
|
|
/** @description Validation Error */
|
|
|
|
|
422: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* Merge Models
|
|
|
|
|
* @description Convert a checkpoint model into a diffusers model
|
|
|
|
|
*/
|
|
|
|
|
merge_models: {
|
|
|
|
|
parameters: {
|
|
|
|
|
path: {
|
|
|
|
|
/** @description Base model */
|
|
|
|
|
base_model: components["schemas"]["BaseModelType"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
requestBody: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["Body_merge_models"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
responses: {
|
|
|
|
|
/** @description Model converted successfully */
|
|
|
|
|
200: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["StableDiffusion1ModelDiffusersConfig"] | components["schemas"]["StableDiffusion1ModelCheckpointConfig"] | components["schemas"]["VaeModelConfig"] | components["schemas"]["LoRAModelConfig"] | components["schemas"]["ControlNetModelConfig"] | components["schemas"]["TextualInversionModelConfig"] | components["schemas"]["StableDiffusion2ModelCheckpointConfig"] | components["schemas"]["StableDiffusion2ModelDiffusersConfig"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/** @description Incompatible models */
|
|
|
|
|
400: never;
|
|
|
|
|
/** @description One or more models not found */
|
|
|
|
|
404: never;
|
|
|
|
|
/** @description Validation Error */
|
|
|
|
|
422: {
|
|
|
|
|
content: {
|
|
|
|
|
"application/json": components["schemas"]["HTTPValidationError"];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* List Images With Metadata
|
|
|
|
|
* @description Gets a list of images
|
|
|
|
|