diff --git a/fern/apis/image-gen-util/openapi/openapi-overrides.yml b/fern/apis/image-gen-util/openapi/openapi-overrides.yml index d000958..af985b2 100644 --- a/fern/apis/image-gen-util/openapi/openapi-overrides.yml +++ b/fern/apis/image-gen-util/openapi/openapi-overrides.yml @@ -45,3 +45,4 @@ components: x-fern-type-name: UpscalingRequest ValidationError: x-fern-type-name: ValidationError + \ No newline at end of file diff --git a/fern/apis/image-gen/openapi/openapi-overrides.yml b/fern/apis/image-gen/openapi/openapi-overrides.yml index de0ae50..d3c8db2 100644 --- a/fern/apis/image-gen/openapi/openapi-overrides.yml +++ b/fern/apis/image-gen/openapi/openapi-overrides.yml @@ -44,6 +44,13 @@ paths: servers: - url: https://image.octoai.run x-name: ImageGen + /generate/ip-adapter-sdxl: + post: + summary: "IP Adapter" + x-fern-sdk-method-name: ip_adapter + servers: + - url: https://image.octoai.run + x-name: ImageGen # Hide healthcheck /healthcheck: get: diff --git a/fern/apis/image-gen/openapi/openapi.json b/fern/apis/image-gen/openapi/openapi.json index 124a209..50b700d 100644 --- a/fern/apis/image-gen/openapi/openapi.json +++ b/fern/apis/image-gen/openapi/openapi.json @@ -16,6 +16,22 @@ "title": "HTTPValidationError", "type": "object" }, + "IPAdapterMethod": { + "description": "The ip adapter method for image generation response.", + "enum": [ + "full", + "style", + "composition" + ], + "title": "IPAdapterMethod", + "type": "string" + }, + "IPAdapterMode": { + "const": "base", + "description": "The ip adapter mode for image generation response.", + "title": "IPAdapterMode", + "type": "string" + }, "ImageEncoding": { "description": "The image encoding types available for image generation response.", "enum": [ @@ -128,7 +144,7 @@ "type": "null" } ], - "description": "[Not supported on SD3] ControlNet to be used during image generation.", + "description": "[Not supported on SD3 or IPAdapter] ControlNet to be used during image generation.", "examples": [ "canny" ], @@ -136,7 +152,7 @@ }, "controlnet_conditioning_scale": { "default": 1.0, - "description": "[Not supported on SD3] How strong the effect of the controlnet should be.", + "description": "[Not supported on SD3 or IPAdapter] How strong the effect of the controlnet should be.", "examples": [ 1.0 ], @@ -155,7 +171,7 @@ "type": "null" } ], - "description": "[Not supported on SD3] If provided, indicates fraction of steps at which to stop applying controlnet. This can be used to sometimes generate better outputs.", + "description": "[Not supported on SD3 or IPAdapter] If provided, indicates fraction of steps at which to stop applying controlnet. This can be used to sometimes generate better outputs.", "examples": [ 0.5 ], @@ -170,12 +186,12 @@ "type": "null" } ], - "description": "[Not supported on SD3] Controlnet image encoded in b64 string for guiding image generation. Required for controlnet engines.", + "description": "[Not supported on SD3 or IPAdapter] Controlnet image encoded in b64 string for guiding image generation. Required for controlnet engines.", "title": "ControlNet Image" }, "controlnet_preprocess": { "default": true, - "description": "[Not supported on SD3] Whether to apply automatic ControlNet preprocessing.", + "description": "[Not supported on SD3 or IPAdapter] Whether to apply automatic ControlNet preprocessing.", "examples": [ true ], @@ -233,6 +249,61 @@ "description": "Starting point image encoded in b64 string for Image to Image generation mode.", "title": "Initial Image" }, + "ip_adapter_image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "IP Adapter image encoded in b64 string for guiding image generation. Required for ip adapter engines.", + "title": "IP Adapter Image" + }, + "ip_adapter_mask_image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "b64 encoded mask image for ip adapter. White area should indicate where to paint.", + "title": "IP Adapter Mask Image" + }, + "ip_adapter_method": { + "allOf": [ + { + "$ref": "#/components/schemas/IPAdapterMethod" + } + ], + "default": "full", + "description": "Define which ip adapter method should be applied during the image generation. Supported modes: full, style, and composition", + "example": "full", + "title": "IP Adapter Method" + }, + "ip_adapter_mode": { + "allOf": [ + { + "$ref": "#/components/schemas/IPAdapterMode" + } + ], + "default": "base", + "description": "Define which ip adapter mode should be applied during the image generation. Supported modes: base", + "example": "base", + "title": "IP Adapter Mode" + }, + "ip_adapter_scale": { + "default": 1.0, + "description": "How strong the effect of the ip adapter should be.", + "example": 1.0, + "maximum": 1.0, + "minimum": 0.0, + "title": "IP Adapter Scale", + "type": "number" + }, "loras": { "anyOf": [ { @@ -983,6 +1054,45 @@ "summary": "Generate Images" } }, + "/generate/ip-adapter-sdxl": { + "post": { + "description": "Generate images in response to the given request.", + "operationId": "generate_images_generate_ip_adapter_sdxl_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageGenerationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImageGenerationResponse" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Generate Images" + } + }, "/generate/sd": { "post": { "description": "Generate images in response to the given request.", diff --git a/fern/docs.yml b/fern/docs.yml index 1786cf5..f18b739 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -283,6 +283,9 @@ navigation: - endpoint: POST /generate/svd title: Generate SVD slug: svd + - endpoint: POST /generate/ip-adapter-sdxl + title: IP Adapter + slug: ip-adapter - fine-tuning: title: Fine Tuning API - asset-library: @@ -295,6 +298,8 @@ navigation: slug: adetailer - endpoint: POST /upscaling slug: upscaling + - endpoint: POST /ip-adapter-sdxl + slug: ip-adapter - tab: integrations layout: - section: Integrations diff --git a/fern/docs/api-reference/media-utils/ip-adapter.mdx b/fern/docs/api-reference/media-utils/ip-adapter.mdx new file mode 100644 index 0000000..4b1f0bd --- /dev/null +++ b/fern/docs/api-reference/media-utils/ip-adapter.mdx @@ -0,0 +1,5 @@ +--- +title: IP Adapter +subtitle: +slug: api-reference/media-utils/ipadapter +---