> ## Documentation Index
> Fetch the complete documentation index at: https://pitchprint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Smart Replace

> Let customers search for an element inside an image and swap it for AI-generated content that blends into the original.

<Frame>
  <img src="https://s3.amazonaws.com/helpscout.net/docs/assets/58f1ec6d2c7d3a52b42f8254/images/672c7cf652600a4bb338e4f9/file-p2ilEL1qo4.png" alt="AI Smart Replace module banner" />
</Frame>

This module allows your customers to easily find and replace specific parts of an image using AI. Unlike simple "find and replace" tools, this advanced feature lets users search for visual elements within an image and swap them with new content. The AI ensures that the new content fits naturally into the rest of the image, either based on user input or automatically.

<Frame>
  <img src="https://s3.amazonaws.com/helpscout.net/docs/assets/58f1ec6d2c7d3a52b42f8254/images/6718dedf91230b767524b504/file-ekfMeFDdoe.png" alt="An image before and after AI has found an element and replaced it with new content" />
</Frame>

Here’s how the **search and replace** function works:

<Steps>
  <Step title="Search (finding the target)">
    Identifying Elements: The AI starts by detecting specific elements in the image, like objects, colors, or textures.

    User Input: Customers can Describe the element they want to change (e.g., “find all the flowers”).

    The AI finds everything matching the search criteria.
  </Step>

  <Step title="Context analysis">
    Once the target is found, the AI checks the size, shape, colors, and textures of the object to ensure that the replacement will fit perfectly with the image.
  </Step>

  <Step title="Replace (adding new content)">
    User Input: Customers can describe what they want the AI to replace the element with, like “replace the tree with a fountain,” or let the AI generate its own content.

    AI Generation: The AI generates the new content and places it into the image, matching lighting, shadows, and perspective to make it look natural.
  </Step>

  <Step title="Blending and refinement">
    The AI seamlessly blends the new content with the original image so there are no visible edges or mismatches.
  </Step>
</Steps>

**How to use Upscale:**

<Steps>
  <Step title="Add your image to the canvas">
    Start by uploading your image into the PitchPrint editor, and inserting it on the canvas.
  </Step>

  <Step title="Open Edit Picture">
    Once the image is on the canvas, click on the 'Edit Picture' button

    <Frame>
      <img src="https://s3.amazonaws.com/helpscout.net/docs/assets/58f1ec6d2c7d3a52b42f8254/images/671a0d90ca07c36a6a1710c0/file-AgUtTkxGN7.png" alt="Selected image on the canvas with the Edit Picture button available" />
    </Frame>
  </Step>

  <Step title="Choose Smart Replace">
    In the side panel you will find the AI Image enhancement tools, Click on 'Smart Replace'

    <Frame>
      <img src="https://s3.amazonaws.com/helpscout.net/docs/assets/58f1ec6d2c7d3a52b42f8254/images/671a0dbfc8770a0e6b658315/file-iz4rJzkvJK.png" alt="AI image enhancement tools in the side panel, including Smart Replace" />
    </Frame>
  </Step>

  <Step title="Enter your prompt">
    Now you will have to add your prompt: For this example I will change the pineapples into snowmen

    <Frame>
      <img src="https://s3.amazonaws.com/helpscout.net/docs/assets/58f1ec6d2c7d3a52b42f8254/images/671a0deff539bb6e3c7c6b84/file-Hcd4mZyXg6.png" alt="Smart Replace prompt field asking to change the pineapples into snowmen" />
    </Frame>
  </Step>

  <Step title="Review the result">
    AI will then go and identify the Pineapples and change them into Snowmen:

    <Frame>
      <img src="https://s3.amazonaws.com/helpscout.net/docs/assets/58f1ec6d2c7d3a52b42f8254/images/671a0e343a0b506883e52962/file-MoXuZvsQH5.png" alt="The same image with the pineapples replaced by snowmen" />
    </Frame>
  </Step>
</Steps>

It can also be used in design layouts:

<Frame>
  <img src="https://s3.amazonaws.com/helpscout.net/docs/assets/58f1ec6d2c7d3a52b42f8254/images/671a48854d8d375180ed111e/file-3psTlmGFMu.png" alt="Smart Replace used on an image inside a design layout" />
</Frame>

**Applications:**

\- **Object Substitution:** Swap objects in an image (e.g., replace a car with a boat).

\- **Color and Texture Changes:** Change colors or textures (e.g., turning red objects blue).

\- **Creative Edits:** Make artistic changes (e.g., replacing trees with sculptures).

\- **Photo Restoration:** Repair damaged areas of images by replacing them with AI-generated content.

In short, this module gives your customers a powerful tool to find and replace elements in images in a smooth and creative way using AI.

Please note that this feature is still in **BETA mode** and we will continue to add functionality. Please reach out to us via [support@pitchprint.com](mailto:support@pitchprint.com) with any suggestions or questions.

*\*Additional charges apply*

## Related articles

<CardGroup cols={2}>
  <Card title="AI Outpainting" icon="expand" href="/docs/tutorial/ai-outpainting">
    Expand images beyond their original borders with AI.
  </Card>

  <Card title="AI Upscale" icon="wand-magic-sparkles" href="/docs/tutorial/ai-upscale">
    Increase image resolution and quality with AI without losing detail.
  </Card>

  <Card title="AI Structure" icon="crop" href="/docs/tutorial/ai-structure">
    Refine images while preserving layout, proportions, and composition.
  </Card>

  <Card title="AI Sketch to Image" icon="pen-nib" href="/docs/tutorial/ai-sketch-to-image">
    Convert rough sketches into fully detailed images.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.