Skip to main content

How to Edit an Image with AI In-painter

The AI In-painter is a powerful tool that allows you to selectively edit parts of an image using AI. By creating masks and providing text prompts, you can replace or modify specific areas while maintaining the overall composition and context of the image.

Getting Started

Upload Your Image

  1. Click the "File Upload" button in the top toolbar
  2. Select an image from your device (for this guide, we'll use an example of a dog sitting on a bench)
  3. Wait for the image to load in the editor canvas
Original image showing a dog sitting on a bench

Creating a Mask

  1. Select the brush tool from the toolbar on the bottom left
  2. Adjust the brush size if needed
  3. Paint over the area you want to edit (in our example, paint over the dog)
  4. Use the eraser tool to refine the mask if necessary
  5. The masked area will be highlighted with an overlay
Masked image showing a mask overlaying the dog

Entering a Prompt

  1. Look for the prompt input field on the right side of the screen
  2. Enter a descriptive prompt for what you want in the masked area
    • Example prompt: "an orange cat sitting on a bench"
  3. Press Enter or click the "Run" button
  4. Wait for the AI to process your request and generate the edited image
In-painted image showing a cat sitting on a bench

Additional Tools and Features

In-paint Non-masked Area Toggle

  • The "In-paint Non-masked Area" toggle button is located in the bottom left toolbar
  • When activated, the AI will edit everything except the masked area
  • Useful for editing backgrounds while preserving the main subject
  • Example use case: Change the environment around a portrait while keeping the person unchanged

Replace Original Button

  • The "Replace Original" button allows you to use the edited version as your new base image
  • It enables continuous editing and refinement and is particularly useful for making multiple edits to different parts of the image
  • Each replacement becomes the new starting point for further edits
  • Zoom Controls
    • Use the "Zoom In" and "Zoom Out" buttons to adjust view
    • Click "Zoom Reset" button to reset the view
  • Download Options
    • Click the "Download" button to save your edited image in PNG format
    • Original image dimensions are preserved

Tips for Best Results

  1. Be Patient

    • In-painting can take several seconds to complete
    • Processing time may vary based on image size and complexity
  2. Experiment with Prompts

    • Try different variations of your prompt
    • Be specific about details you want to maintain
    • Include style descriptions if needed (e.g., "photorealistic," "natural lighting")
  3. Mask Precision

    • Create clean, precise masks for better results
    • Use the eraser tool to refine mask edges
    • Consider using a smaller brush size for detailed areas
  4. Multiple Attempts

    • Don't hesitate to try multiple generations
    • Each attempt may produce slightly different results
    • Save versions you like before making further edits

Notes

  • For optimal results, ensure your image is clear and well-lit
  • The AI works best with masks that have clear boundaries
  • Complex edits may require multiple steps or attempts
  • Consider breaking down complex edits into smaller, manageable changes
  • Keep original image backed up before starting major edits