# Picsart

> Remove and replace backgrounds, enhance, edit and generate images with Picsart's AI tools.

App · 8 actions. Web page: https://docs.lodol.com/docs/integrations/picsart

## Actions

### Apply makeup

Add virtual makeup to a portrait: lipstick, eye looks, blush or a full styled look. Picsart charges for each image.

**Inputs**

- Image URL (`image_url`, text, required): A public link to the photo, such as one from an earlier step. Picsart downloads it, so it must open without signing in.
- Prompt (`prompt`, text, required): The look to apply, such as 'soft pink lipstick and light blush'.
- Avoid (`avoid`, text): What to keep out of the result, such as text, watermarks or blur.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```

### Change background

Keep the subject of a photo and replace what is behind it with a scene you describe. Picsart charges for each image.

**Inputs**

- Image URL (`image_url`, text, required): A public link to the photo, such as one from an earlier step. Picsart downloads it, so it must open without signing in.
- Prompt (`prompt`, text, required): The new background, such as 'a sunny beach at noon'.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```

### Edit image

Change a photo by describing the edit: swap an object, fix a flaw or change the style. Picsart charges for each image.

**Inputs**

- Image URLs (`image_urls`, list, required): Public links to the photo to edit, then up to two more photos it can draw on. Picsart downloads them, so they must open without signing in.
- Prompt (`prompt`, text, required): The edit to make, such as 'replace the red car with a blue bicycle'.
- Avoid (`avoid`, text): What to keep out of the result, such as text, watermarks or blur.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```

### Enhance image

Sharpen and upscale a photo, restoring faces and correcting colour. Picsart charges for each image.

**Inputs**

- Image URL (`image_url`, text, required): A public link to the photo, such as one from an earlier step. Picsart downloads it, so it must open without signing in.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```

### Generate image

Make a new image from a description with Picsart's fast SANA-Sprint model. Picsart charges for each image.

**Inputs**

- Prompt (`prompt`, text, required): What to draw: the subject, style and composition.
- Aspect ratio (`aspect_ratio`, text): The image's shape as width to height. Square when left empty. One of: `1:1`, `4:3`, `3:4`, `3:2`, `2:3`, `16:9`, `9:16`, `2:1`, `1:2`. Default: `1:1`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```

### Generate image from references

Make a new image from a description, guided by up to three photos of a subject, style or layout. Uses Picsart's Flux 2 Klein model. Picsart charges for each image.

**Inputs**

- Prompt (`prompt`, text, required): What to draw: the subject, style and composition.
- Reference image URLs (`reference_urls`, list): Public links to up to three photos to take the subject, style or layout from.
- Aspect ratio (`aspect_ratio`, text): The image's shape as width to height. Square when left empty. One of: `1:1`, `5:3`, `3:5`, `4:3`, `3:4`. Default: `1:1`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```

### Get job result

Check a Picsart job by its ID and get its images once it has finished. Use it when an image step ran out of time waiting.

**Inputs**

- Job ID (`job_id`, text, required): The job ID from an earlier Picsart step or error message.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```

### Remove background

Cut the subject out of a photo and return it on a transparent background. Picsart charges for each image.

**Inputs**

- Image URL (`image_url`, text, required): A public link to the photo, such as one from an earlier step. Picsart downloads it, so it must open without signing in.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "credits": 1,
    "image_url": "example",
    "image_urls": [
      "example"
    ],
    "job_id": "example",
    "status": "example"
  }
}
```
