How to Remove Objects from Photos with AI
Learn how to seamlessly remove unwanted objects, people, and distractions from your photos using AI inpainting. Step-by-step tutorial with before-and-after examples.

You took the perfect photo, except for that trash can in the background, the stranger walking through your shot, or the power line cutting across an otherwise pristine landscape. Before AI, removing these distractions required advanced Photoshop skills and significant time. Now, AI inpainting makes it possible to remove unwanted objects from photos in seconds, with results that look completely natural.
This tutorial covers everything you need to know about using AI to clean up your photos, from simple object removal to complex scene reconstruction.
What Is AI Inpainting?
AI inpainting is a technique where an AI model fills in a selected area of an image with new content that blends seamlessly with the surrounding pixels. Unlike traditional clone stamp or content-aware fill tools, AI inpainting understands the context of the entire image. It knows that if you remove a person standing on a beach, the area behind them should show sand, water, and sky that match the rest of the scene.
The results are often indistinguishable from photos where the object was never present. The AI handles perspective, lighting, texture, and color matching automatically.
Try AI object removal
Remove unwanted objects from your photos with 50 free credits. No card required.
Remove Objects Now5 generări gratuite · Fără card de credit
Step-by-Step: Removing Objects from Photos
Step 1: Choose Your Image
Navigate to the inpainting tool on Arteza. Upload the photo you want to edit. For best results, use:
- A high-resolution image (higher resolution gives the AI more context to work with)
- An image in PNG or TIFF format (avoid heavily compressed JPEGs, which can introduce artifacts)
- A photo where the area behind the unwanted object has a relatively predictable pattern (sky, grass, wall, floor)
Step 2: Select the Object to Remove
Use the masking tool to paint over the object you want to remove. The mask tells the AI which part of the image to regenerate.
Masking tips:
- Cover the entire object: Make sure your mask fully covers the unwanted element, including its shadow and any reflections.
- Add a small buffer: Extend your mask slightly beyond the edges of the object. This gives the AI room to blend the new content smoothly with the existing image.
- Include shadows: One of the most common mistakes is removing an object but leaving its shadow. Always mask the shadow as well.
- Mask reflections: If the object is near a reflective surface (water, glass, polished floor), include any visible reflections in your mask.
Step 3: Write a Fill Prompt (Optional)
Some inpainting tools allow you to provide a text prompt describing what should replace the removed object. This is optional but can improve results in certain situations.
When to use a fill prompt:
- When the area behind the object is complex or ambiguous
- When you want something specific to appear in the filled area
- When the default fill does not look right
Example fill prompts:
- "Clean sandy beach, natural lighting, matching the surrounding area"
- "Brick wall with consistent texture and mortar pattern"
- "Clear blue sky with a few wispy clouds"
When to skip the fill prompt:
- For simple backgrounds like sky, grass, or solid walls
- When the surrounding context makes the fill obvious
- When the masked area is small relative to the image
Step 4: Generate and Review
Click generate and wait for the AI to process your image. Once complete, examine the result carefully:
- Zoom in on the filled area: Look for any inconsistencies in texture, color, or pattern.
- Check the edges: The transition between the original image and the filled area should be invisible.
- Look at the overall composition: Does the image look natural without the removed object?
- Verify lighting consistency: The lighting in the filled area should match the rest of the scene.
Step 5: Iterate if Needed
If the result is not perfect on the first try, you have several options:
- Regenerate: Run the same mask again. AI generation is not deterministic, so each attempt produces a slightly different result. Sometimes the second or third generation nails it.
- Adjust the mask: If the edges look wrong, try making the mask slightly larger or smaller.
- Add a fill prompt: If you did not use one initially, adding a description of the expected background can help.
- Remove in stages: For complex scenes, remove objects one at a time rather than masking everything at once.
Common Use Cases
Removing Strangers from Travel Photos
You finally visited that iconic landmark, but your photos are filled with other tourists. AI inpainting can remove them, giving you a clean shot that looks like you had the place to yourself.
Tips: Start with the people furthest from camera and work forward. Remove one person at a time for best results. Pay attention to shadows on the ground.
Cleaning Up Real Estate Photos
Real estate listings look more professional when photos are free of personal items, clutter, and distracting elements. Remove temporary objects like moving boxes, personal photographs, or clutter that detracts from the property.
Tips: Be careful not to remove permanent fixtures that buyers need to see. Focus on temporary distractions and personal items.
Perfecting Product Photography
Remove stray props, unwanted reflections, or background distractions from product photos. This is especially useful when you are repurposing lifestyle photos for clean product listing images.
Tips: If removing objects near the product, ensure the product edges remain sharp and unaffected.
Removing Power Lines and Signs
Landscape and architectural photography often suffer from power lines, signage, or other urban elements that detract from the composition.
Tips: For thin objects like power lines, use a narrow mask that follows the line closely. For signs, mask generously and include any mounting hardware or posts.
Advanced Techniques
Object Replacement
Inpainting is not just for removal. You can also replace objects by masking them and providing a prompt describing what should appear instead.
Examples:
- Mask a plain wall and prompt "bookshelf filled with colorful books" to add visual interest
- Mask a cloudy sky and prompt "dramatic sunset with orange and purple clouds"
- Mask a bare table and prompt "fresh flower arrangement in a glass vase"
Background Swapping
To change the entire background of a photo, mask everything except the main subject. Then use a prompt to describe the new background. This effectively gives you the power to place your subject in any environment.
Selective Enhancement
Use inpainting on specific areas to improve them rather than remove them. For example, mask a patchy lawn and prompt "lush green grass, well-maintained" to upgrade a landscape photo.
Tips for Professional Results
1. Work at Full Resolution
Always work with the highest resolution version of your image. AI inpainting produces better results with more pixel data to analyze. Avoid upscaling a low-resolution image before inpainting, as this can introduce artifacts.
2. Use Natural Lighting as Your Guide
The AI is remarkably good at matching lighting, but you can help by ensuring your mask does not cut through areas with strong lighting gradients. If possible, position your mask boundaries in areas with consistent lighting.
3. Save Intermediate Results
If you are removing multiple objects, save the result after each removal. This way, if a later edit goes wrong, you do not have to redo all previous removals.
4. Compare Carefully
Always compare the edited image to the original at multiple zoom levels. What looks perfect at full view might show subtle issues when zoomed in. Conversely, small artifacts visible at 400% zoom may be completely invisible at normal viewing size.
Ethical Considerations
AI object removal is a powerful tool that should be used responsibly:
- Journalism: Do not alter photos that will be presented as documentary evidence
- Real estate: Do not remove permanent defects or structural issues from property photos
- Personal photos: Respect others' wishes about how shared photos are modified
- Attribution: If removing watermarks from others' work, you are violating copyright. Only edit images you own or have permission to modify.
Next Steps
Start with a simple removal. Pick a photo with a clear, unwanted element against a straightforward background, like a trash can on a beach or a car in a scenic landscape. This type of removal typically produces excellent results on the first try, giving you confidence to tackle more complex edits.
As you gain experience, you will develop an intuition for what the AI handles easily versus what requires more careful masking and prompting. Within a few sessions, you will be removing objects from photos with the confidence and speed that used to require years of Photoshop expertise.
Try Seedance 2.0— Right Now
5 free generations · No credit card needed