# Edit images with AI

> Select an image and click its AI button to open the image AI bar: describe a change and click Apply edit, or use Edit area, Erase, Remove background, Resize, or Upscale; each tool shows its credit cost before you use it.

Category: AI and integrations
Web page: https://www.pactto.com/help/edit-images-with-ai
All guides: https://www.pactto.com/help.md

## Open the image AI bar

1. Click an image on the canvas to select it.
2. In the title bar above the image, click the AI button (**AI actions for this image**). The image AI bar opens under the image.

The bar has a text field for changes to the whole image and a row of tools: **Edit area**, **Erase**, **Remove background**, **Resize**, and **Upscale**. Hover over a tool to see what it does and what it costs in credits. On a phone the same options open in a sheet from the bottom of the screen.

You need **Can edit** access (or be the room owner). The bar closes when you click the AI button again, press **Esc**, select something else, or enter Focus Mode.

## Change the whole image

1. In the field **Describe a change to this image…**, type what should change, for example "make it golden hour". You can also click **Dictate** and speak (room transcription must be on).
2. Click **Apply edit** or press **Enter**.
3. While it works, the bar shows **Editing the image** with **Stop**.

The new version replaces the image in place, keeping its size, position, and crop. The message **Image updated.** has **Undo** to bring back the previous version.

## Change or erase part of an image

1. Click **Edit area** (to change something) or **Erase** (to remove something).
2. Paint over the area with the **Brush**. Use **Eraser** to take paint off, **Size** to change the brush, and **Undo**, **Redo**, or **Clear selection** as needed. **Cmd+Z** and **Shift+Cmd+Z** (Ctrl on Windows) undo and redo your painting while this mode is open.
3. For **Edit area**, describe the change, for example "add a hot air balloon", and click **Generate**. For **Erase**, click **Erase**.
4. Only the painted area changes; the rest of the image stays exactly as it was. Erase also removes the object's shadow and reflection.

The message **Image updated. Only the painted area changed.** (or **Object removed.**) offers **Undo**. Click **Stop** while it works to cancel; your painting and text stay. **Close** or **Esc** leaves the mode. These two tools are not available for rotated images.

## Remove the background

Click **Remove background**. It runs right away: the subject stays and everything else becomes transparent, in the same frame. The result is saved as a PNG, and **Background removed.** offers **Undo**.

If the image has no clear subject, you see **Couldn't find a subject to keep. Try again.** and the image does not change.

## Resize to other formats

**Resize** makes new versions of the image in other aspect ratios. AI extends the scene to fill the new shape, so nothing of the original is cropped. The original stays as it is, and the new images appear beside it.

1. Click **Resize**.
2. Tick one or more sizes. **Standard** has **Square** 1:1, **Portrait** 3:4, **Story** 9:16, **Landscape** 4:3, and **Widescreen** 16:9. Below it are platform sizes for Instagram, Facebook, TikTok, YouTube, LinkedIn, Pinterest, Snap, and X. **Select all** ticks a whole group, and a size marked **Current** already matches the image.
3. Click **Generate**. Sizes with the same ratio are generated once (**Matching ratios are generated once.**), and up to 4 images run at a time.

You can also type a request such as "all Instagram sizes" in the bar's text field. The Resize list opens with those sizes ticked so you can check them before you generate.

## Upscale

**Upscale** makes a higher-resolution copy of the image. It redraws the image, so check the result.

1. Click **Upscale**.
2. Under **Resolution**, pick the size you want.
3. Click **Upscale to** and the resolution (for example **Upscale to 2K**).

The copy appears beside the original, and a before-and-after view lets you drag to compare. If the image has transparency, the result does not keep it. Higher resolutions may need the Pro plan (**Upgrade to Pro to upscale this image.**).

## Good to know

- Each tool's cost in credits shows when you hover over it, and on the **Generate** and **Apply edit** buttons. See [Plans, upgrading and plan limits](https://www.pactto.com/help/plans-and-limits.md).
- While you edit an image with AI, other people in the room see that it is being edited and cannot replace or delete it until you finish.
- GIF and SVG images can be edited, but the result is a still, flat image.
- To swap an image for a different file instead, use [Replace an image on the canvas](https://www.pactto.com/help/replace-image.md).

## If something goes wrong

- **Couldn't edit the image. Try again.**, **Couldn't resize the image. Try again.**, or **Couldn't upscale the image. Try again.**: click **Retry**. Nothing changed.
- **Someone else is editing this image.**: wait until they finish.
- **AI is still working on this image.**: one AI edit runs per image at a time.
- **The image changed while you were editing. Try again.**: someone replaced the image during your edit.

## Related guides

- [Use the AI assistant in a room](https://www.pactto.com/help/ai-assistant.md): Click the AI Assistant button (sparkle icon, bottom right of the room), then type, dictate, or pick a skill with /; the assistant answers from the room's content, asks follow-up questions when it needs to, and can create docs, images, notes, comments, and more on the canvas.
- [Replace an image on the canvas](https://www.pactto.com/help/replace-image.md): Select the image, click Replace image in its title bar, and choose a new image from your computer, Google Drive, or Frame.io; the frame keeps its size and position.
- [Plans, upgrading and plan limits](https://www.pactto.com/help/plans-and-limits.md): Pactto has a Free plan and a Pro plan; when you hit a plan limit (rooms, storage, editors per room) Pactto tells you which one and whose plan sets it, and you can upgrade from Billing & subscription.
- [Select, move, resize, duplicate and delete items on the canvas](https://www.pactto.com/help/select-move-resize.md): Use the Select tool (V) to click an item, then drag it to move, drag its corners to resize, and use the right-click menu or shortcuts to copy, duplicate, group, lock, reorder or delete it.
- [Undo or redo a change on the canvas](https://www.pactto.com/help/undo-redo.md): Press Cmd/Ctrl + Z to undo your last change on the canvas and Cmd/Ctrl + Shift + Z to redo it.
