post-img2img-ip-adapter-inferences
Generate new images by combining an initial image with reference images using IP Adapter models for style or character adaptation.
Instructions
Trigger a new image generation in Img2Img + IpAdapter mode. The first image is used to initialize the generation, and the second reference image is used as an IPAdapter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| originalAssets | No | If set to true, returns the original asset without transformation | |
| dryRun | No | ||
| ipAdapterImageIds | No | ||
| seed | No | Used to reproduce previous results. Default: randomly generated number. | |
| strength | No | Controls the noise intensity introduced to the input image, where a value of 1.0 completely erases the original image's details. Available for img2img and inpainting. (within [0.01, 1.0], default: 0.75) | |
| modelId | Yes | The model id to use for the inference | |
| ipAdapterType | No | The type of IP Adapter model to use. Must be one of [`style`, `character`], default to `style`` | |
| ipAdapterImage | No | Deprecated for type txt2img-ip-adapter and img2img-ip-adapter, use `ipAdapterImages` instead. The IpAdapter image as a data url. Will be ignored if the `ipAdapterImages` parameter is provided. | |
| scheduler | No | The scheduler to use to override the default configured for the model. See detailed documentation for more details. | |
| ipAdapterImages | No | ||
| imageParentId | No | Specifies the parent asset Id for the image when provided as a dataurl. | |
| baseModelId | No | The base model to use for the inference. Only Flux LoRA models can use this parameter. Allowed values are available in the model's attribute: `compliantModelIds` | |
| height | No | The height of the generated images, must be a 8 multiple (within [64, 2048], default: 512) If model.type is `sd-xl`, `sd-xl-lora`, `sd-xl-composition` the height must be within [512, 2048] If model.type is `sd-1_5`, the height must be within [64, 1024] If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio parameter instead | |
| imageHide | No | Toggles the hidden status of the image when provided as a dataurl. | |
| mask | No | The mask as a data URL, used to determine the area of change. The mask is a binary mask made out of white and black pixels. The white area is the one that will be replaced. (example: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAABiVBMVEUAAADw8PDCwsLExMT5+fn19fX8/Pz////+/v79/f2hoaH6+vrc3NxnZ2dDQ0P4+PhkZGTs7OzOzs6Ojo709PRiYmLd3d1paWkoKCji4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0ejLbuufXYwtvvd9EwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPfwHLuRXafg0SKQAAAAASUVORK5CYII=") | |
| image | No | The input image as a data URL (example: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=") or the asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw") | |
| imageId | No | Deprecated: The input image as an AssetId. Prefer to use image with the asset ID instead. | |
| ipAdapterImageId | No | Deprecated for type txt2img-ip-adapter and img2img-ip-adapter, use `ipAdapterImageIds` instead. The IpAdapter image as an AssetId. Cannot be set if `ipAdapterImage` is provided. Will be ignored if the `ipAdapterImageIds` parameter is provided. | |
| ipAdapterScale | No | Deprecated for type txt2img-ip-adapter and img2img-ip-adapter, use `ipAdapterScales` instead. IpAdapter scale factor (within [0.0, 1.0], default: 0.9). Will be ignored if the `ipAdapterScales` parameter is provided | |
| modelEpoch | No | The epoch of the model to use for the inference. Only available for Flux Lora Trained models. | |
| hideResults | No | If set, generated assets will be hidden and not returned in the list of images of the inference or when listing assets (default: false) | |
| ipAdapterScales | No | ||
| maskId | No | The mask as an AssetId. Will be ignored if the `image` parameter is provided | |
| negativePrompt | No | The prompt not to guide the image generation, ignored when guidance < 1 (example: "((ugly face))") For Flux based model (not Fast-Flux): requires negativePromptStrength > 0 and active only for inference types txt2img / img2img / controlnet. | |
| intermediateImages | No | Enable or disable the intermediate images generation (default: false) | |
| concepts | No | ||
| guidance | No | Controls how closely the generated image follows the prompt. Higher values result in stronger adherence to the prompt. Default and allowed values depend on the model type: - For Flux dev models, the default is 3.5 and allowed values are within [0, 10] - For Flux pro models, the default is 3 and allowed values are within [2, 5] - For SDXL models, the default is 6 and allowed values are within [0, 20] - For SD1.5 models, the default is 7.5 and allowed values are within [0, 20] | |
| numInferenceSteps | No | The number of denoising steps for each image generation (within [1, 150], default: 30) | |
| numSamples | No | The number of images to generate (within [1, 128], default: 4) | |
| width | No | The width of the generated images, must be a 8 multiple (within [64, 2048], default: 512) If model.type is `sd-xl`, `sd-xl-lora`, `sd-xl-composition` the width must be within [512, 2048] If model.type is `sd-1_5`, the width must be within [64, 1024] If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio parameter instead | |
| negativePromptStrength | No | Only applicable for flux-dev based models for `txt2img`, `img2img`, and `controlnet` inference types. Controls the influence of the negative prompt. Default 0 means the negative prompt has no effect. Higher values increase negative prompt influence. Must be > 0 if negativePrompt is provided. | |
| prompt | Yes | Full text prompt including the model placeholder. (example: "an illustration of phoenix in a fantasy world, flying over a mountain, 8k, bokeh effect") |