# AI Image Beautifier & Object remover 🎨 (`powerful_bachelor/ai-image-beautifier-object-remover`) Actor

🎯 AI-Powered Image Object Remover - Seamlessly eliminate unwanted objects from photos with advanced ML! 📸✨ Features natural background reconstruction & intelligent color matching. Perfect for e-commerce, photography & marketing. 🚀 Simply describe what to remove and let AI do the magic!

- **URL**: https://apify.com/powerful\_bachelor/ai-image-beautifier-object-remover.md
- **Developed by:** [Powerful Bachelor](https://apify.com/powerful_bachelor) (community)
- **Categories:** AI, E-commerce, Other
- **Stats:** 17 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 ai image processings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## ✨ AI Image Beautifier and Object Remover - Pay Per Event

### 🚀 Overview

AI Image Beautifier and Object Remover is a powerful AI-driven tool that seamlessly beautifies images and removes unwanted objects using advanced machine learning algorithms. This sophisticated **pay-per-event actor** leverages AI's cutting-edge image processing capabilities to intelligently enhance images and eliminate specific objects while maintaining natural appearance and quality.

**💰 Pay Only for What You Use**: With transparent pay-per-event pricing at just $0.004 per successful processing, you only pay when the AI successfully processes your image - no subscription fees, no hidden costs, no charges for failures.

Perfect for photographers, content creators, e-commerce businesses, and digital marketers, it streamlines the process of image editing and beautification with professional-quality results.

### 🛠 Key Features

- **AI-Powered Image Beautification & Object Removal**: Utilizes advanced machine learning models to intelligently enhance images and remove objects while preserving image quality and natural appearance.
- **💰 Transparent Pay-Per-Event Pricing**: Only pay $0.004 per successful AI processing event - no hidden fees, no subscription costs, no charges for failures.
- **Flexible Input Options**: Support for both:
  - **Public Image URLs**: Process images directly from web URLs
  - **Local File Upload**: Upload images from your device to apify temparory store.
- **High-Quality Processing**: Advanced AI algorithms ensure:
  - **Natural Background Reconstruction**: Intelligently fills removed areas with contextually appropriate content
  - **Edge Preservation**: Maintains clean edges and natural transitions
  - **Color Matching**: Seamlessly blends reconstructed areas with surrounding pixels
- **Customizable Instructions**: Enhance processing with:
  - **Object Descriptions**: Specify exactly what to remove or beautify with natural language
  - **Additional Notes**: Provide extra context like background color changes, beautification preferences, or specific requirements
- **Automated Cloud Storage**: All processed images are automatically stored in Apify's key-value store for easy access and sharing.

### 🎯 Use Cases

Perfect for numerous applications:

- **E-commerce**: Remove unwanted objects from product photos

  - Object to remove: Scarf
  - Additional Notes: Change Background

  | Input                                                                                                     | Output                                                                                                      |
  | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
  | ![Input](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/input%201.jpg) | ![Output](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/output%201.png) |

- **Real Estate**: Clean up property images by removing temporary objects

  - Object to remove: Items covered with white cloth
  - Additional Notes: Clean up the mess

  | Input                                                                                                     | Output                                                                                                      |
  | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
  | ![Input](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/input%202.jpg) | ![Output](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/output%202.png) |

- **Photography**: Professional photo editing and retouching

  - Object to remove: Spoon and Human
  - Additional Notes: Blur the Background

  | Input                                                                                                     | Output                                                                                                      |
  | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
  | ![Input](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/input%203.jpg) | ![Output](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/output%203.png) |

- **Digital Marketing**: Create clean, professional visuals for campaigns

  - Object to remove: plant
  - Additional Notes: place a desktop next to the laptop with an HDMI wire connected

  | Input                                                                                                     | Output                                                                                                      |
  | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
  | ![Input](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/input%204.jpg) | ![Output](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/output%204.png) |

- **Personal Use**: Remove photobombers or unwanted elements from photos
  - Object to remove: Ladder
    | Input | Output |
    | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
    | ![Input](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/input%205.jpg) | ![Output](https://raw.githubusercontent.com/powerful-bachelor/AI-image-processing-urls/main/output%205.png) |

### 📋 Easy to Start

Getting started with AI Image Beautifier and Object Remover is straightforward:

1. Provide the image URL or upload an image file.
2. Describe what you want to beautify or the object you want to remove.
3. Add any additional processing notes (optional).
4. Run the actor and retrieve your processed image.

#### Input Example

Provide the input in JSON format to configure your image beautification and object removal task:

```json
{
    "imageUrl": "https://example.com/your-image.jpg",
    "objectToRemove": "person in red shirt",
    "additionalNotes": "Change the background color to blue and enhance overall image quality"
}
```

### 💰 Pricing

This actor uses transparent pay-per-event pricing:

- **AI Processing Event**: $0.004 per successful image processing
- **No charges for failures or errors**
- **No subscription fees or hidden costs**

### Output Example

After successful processing, the actor generates a comprehensive result:

```json
{
    "timestamp": "2023-12-15T14:22:33.456Z",
    "originalImageUrl": "https://example.com/original-image.jpg",
    "objectToRemove": "person in red shirt",
    "additionalNotes": "Change the background color to blue and enhance overall image quality",
    "processedImageUrl": "https://api.apify.com/v2/key-value-stores/your-store-id/records/processed_image_2023-12-15T14-22-33-456Z.png",
    "processingTime": "3.45",
    "success": true
}
```

### 🌟 Conclusion

AI Image Beautifier and Object Remover transforms how you edit and enhance images with AI-powered precision. By automating complex image beautification and object removal tasks, it delivers professional results with minimal effort and transparent pricing. The pay-per-event model ensures you only pay for successful processing, making it cost-effective for both individual users and businesses.

Whether for professional photography, e-commerce, or personal projects, this tool provides an efficient solution for creating clean, polished, and beautiful images. Try it today and experience the power of AI-driven image editing and beautification! 🎉

# Actor input Schema

## `imageUrl` (type: `string`):

URL of the image to process. Must be publicly accessible.

## `objectToRemove` (type: `string`):

Description of the object you want to remove from the image

## `additionalNotes` (type: `string`):

Additional notes for the image processing

## Actor input object example

```json
{
  "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR93g-53xhzHxAtC-8DkEZph0usZNSRyq9iuiFQUAngfzhiZc8-tEPfZtlKVFVql0y6xVY&usqp=CAU",
  "objectToRemove": "girl",
  "additionalNotes": "Change the color of the background to blue"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR93g-53xhzHxAtC-8DkEZph0usZNSRyq9iuiFQUAngfzhiZc8-tEPfZtlKVFVql0y6xVY&usqp=CAU",
    "objectToRemove": "girl",
    "additionalNotes": "Change the color of the background to blue"
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerful_bachelor/ai-image-beautifier-object-remover").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR93g-53xhzHxAtC-8DkEZph0usZNSRyq9iuiFQUAngfzhiZc8-tEPfZtlKVFVql0y6xVY&usqp=CAU",
    "objectToRemove": "girl",
    "additionalNotes": "Change the color of the background to blue",
}

# Run the Actor and wait for it to finish
run = client.actor("powerful_bachelor/ai-image-beautifier-object-remover").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR93g-53xhzHxAtC-8DkEZph0usZNSRyq9iuiFQUAngfzhiZc8-tEPfZtlKVFVql0y6xVY&usqp=CAU",
  "objectToRemove": "girl",
  "additionalNotes": "Change the color of the background to blue"
}' |
apify call powerful_bachelor/ai-image-beautifier-object-remover --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=powerful_bachelor/ai-image-beautifier-object-remover",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BgBqUdeZDP02tg0eR/builds/IMxgWcbHrmvH7pnmg/openapi.json
