# Image to Image

### Image resize

* **Purpose**: This node crops an image to focus on a specific area, removing unwanted sections.
* **Model**: `image-crop`
* **Key Inputs**:
  * **Image**: The image to be cropped.
  * **Left, Top, Width, Height**: Define the cropping boundaries.

### Erase&#x20;

* **Purpose**: This node is used to erase or remove specific parts of an image.
* **Model**: `stability-erase`
* **Key Inputs**:
  * **Image**: The image where erasing will be applied.
  * **Mask**: Specify the part of the image to erase via a mask.

***

### Inpaint

* **Purpose**: This node is used to fill in missing or unwanted parts of an image, often referred to as "inpainting."
* **Model**: `stability-inpaint`
* **Key Inputs**:
  * **Image**: The base image to be inpainted.
  * **Mask**: An optional mask defining the areas to be inpainted.
  * **Prompt**: Instructions for what should replace the masked region.

***

### Outpaint

* **Purpose**: This node extends the image beyond its original borders, commonly referred to as "outpainting."
* **Model**: `stability-outpaint`
* **Key Inputs**:
  * **Image**: The original image.
  * **Left, Right, Up, Down**: Define how much to extend the image in each direction.

***

### Search and recolor

* **Purpose**: This node searches for specific elements in an image and changes their color.
* **Model**: `stability-search-and-recolor`
* **Key Inputs**:
  * **Image**: The base image.
  * **Prompt**: Specify the element to recolor.
  * **Select Prompt**: Define the new color or pattern.

***

### Search and replace

* **Purpose**: This node allows you to search for specific elements within an image and replace them with new ones.
* **Model**: `stability-search-and-replace`
* **Key Inputs**:
  * **Image**: The image where the search-and-replace function will be applied.
  * **Search Prompt**: Define what you are searching for in the image.
  * **Prompt**: Define what should replace the found element.

***

### Sketch

* **Purpose**: This node turns an image into a sketch or line drawing, emphasizing outlines.
* **Model**: `stability-sketch`
* **Key Inputs**:
  * **Image**: The image that will be converted to a sketch.
  * **Prompt**: You can guide the style of the sketch through the prompt.

***

### Upscale

* **Purpose**: This node enhances the resolution of an image while preserving its original quality, making it sharper and more detailed.
* **Model**: `stability-conservative-upscale`
* **Key Inputs**:
  * **Image**: Upload or link the image you wish to upscale.
  * **Prompt**: Optionally, provide instructions or context for further image processing.

***

### Structure

* **Purpose**: This node is used to adjust the structural components of an image, allowing for more intricate modifications.
* **Model**: `stability-structure`
* **Key Inputs**:
  * **Image**: Upload or link the image whose structure will be modified.
  * **Prompt**: Provide detailed instructions for how to adjust or transform the structure of the image.

***

We’d love to hear from you! Reach out to **<documentation@integrail.ai>**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.integrail.ai/agent-studio/editor/image-to-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
