# Clipdrop

> Generate and edit images, remove backgrounds or text, and upscale images with Clipdrop.

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/clipdrop

## Actions

### Clean up image

Remove an object or region defined by a black and white mask.

**Inputs**

- Image (`image_file`, text, required): Upload an image or use a file from an earlier step.
- Mask (`mask_file`, text, required): Upload a black and white PNG with the same dimensions as the image.

**Outputs**

- `data` (object): The response from Clipdrop.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Generate image

Create an image from a text prompt.

**Inputs**

- Prompt (`prompt`, text, required): Describe the image to generate.

**Outputs**

- `data` (object): The response from Clipdrop.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Remove background

Remove the image background and return the edited image.

**Inputs**

- Image (`image_file`, text, required): Upload an image or use a file from an earlier step.
- Transparency handling (`transparency_handling`, text): Transparency handling. One of: `return_input_if_non_opaque` (Return input if non opaque), `discard_alpha_layer` (Discard alpha layer).

**Outputs**

- `data` (object): The response from Clipdrop.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Remove text

Remove detected text from an image.

**Inputs**

- Image (`image_file`, text, required): Upload an image or use a file from an earlier step.

**Outputs**

- `data` (object): The response from Clipdrop.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Replace background

Replace the background of an image using a prompt.

**Inputs**

- Image (`image_file`, text, required): Upload an image or use a file from an earlier step.
- Prompt (`prompt`, text): Describe the image to generate.

**Outputs**

- `data` (object): The response from Clipdrop.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Uncrop image

Extend or crop the image edges using the specified pixel amounts.

**Inputs**

- Image (`image_file`, text, required): Upload an image or use a file from an earlier step.
- Extend left (`extend_left`, number): Extend left. From -2000 to 2000.
- Extend right (`extend_right`, number): Extend right. From -2000 to 2000.
- Extend up (`extend_up`, number): Extend up. From -2000 to 2000.
- Extend down (`extend_down`, number): Extend down. From -2000 to 2000.
- Seed (`seed`, number): Seed. From 0 to 100000.

**Outputs**

- `data` (object): The response from Clipdrop.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Upscale image

Resize and enhance an image to the selected dimensions.

**Inputs**

- Image (`image_file`, text, required): Upload an image or use a file from an earlier step.
- Target width (`target_width`, number, required): Target width in pixels. From 1 to 4096.
- Target height (`target_height`, number, required): Target height in pixels. From 1 to 4096.

**Outputs**

- `data` (object): The response from Clipdrop.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```
