background remover avatar
background remover

Pricing

from $7.00 / 1,000 results

Go to Apify Store
background remover

background remover

Ai powered background remover, fast with high quality

Pricing

from $7.00 / 1,000 results

Rating

0.0

(0)

Developer

Elmehdi felaouss

Elmehdi felaouss

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

0

Monthly active users

15 days ago

Last modified

Share

Background Removal

AI-powered background removal tool that automatically removes backgrounds from images and allows you to apply custom backgrounds. Built with the high-quality BriaAI model for professional results.

Why use Background Removal?

  • Professional Quality: Uses AI for precise, clean background removal
  • Custom Backgrounds: Add solid colors or upload custom background images
  • Multiple Formats: Output in PNG, JPG, JPEG, or WebP formats
  • Batch Processing: Handle multiple images efficiently
  • No Technical Skills Required: Simple upload and process workflow
  • API Integration: Easy integration into your existing workflows

How it works

  1. This actor accepts image uploads or URLs from the input
  2. Uses advanced AI model to precisely identify and remove backgrounds
  3. Optionally applies custom background colors or images
  4. Processes the image according to your format and quality preferences
  5. Stores the result for immediate download or API access

Input Parameters

Required

  • Image: Upload an image file or provide a URL to process

Background Options

  • Background Color: Apply solid colors using hex (#FFFFFF), RGB (rgb(255,255,255)), or color names (white, black, red, etc.)
  • Background Image: Upload a custom background image to composite behind your subject

Output Settings

  • Output Format: Choose PNG, JPG, JPEG, or WebP
  • Maximum Resolution: Control output size (512-4096 pixels)
  • Compression Options: Adjust quality and compression settings
  • Preserve Transparency: Keep original transparency from PNG images

Sample Output

Here is sample output showing the transformation:

Input: Product photo with cluttered background
Output: Clean product image with white background, perfect for e-commerce

{
"processedImage": "image url",
"processingMetadata": "metadata url"
}

When verbose output is enabled, you get detailed processing information:

{
"originalSize": 2048576,
"processedSize": 1536432,
"format": "png",
"width": 1920,
"height": 1080,
"processingTimeMs": 3250,
"url": "image url"
}

Use Cases

  • E-commerce: Product photos with clean white backgrounds
  • Social Media: Profile pictures and content creation
  • Marketing: Professional headshots and promotional materials
  • Design: Logo extraction and graphic workflows
  • Real Estate: Property photos with custom backgrounds
  • Fashion: Model photography and clothing catalogs

Supported Input Formats

  • Image Types: JPG, JPEG, PNG, WebP, GIF, BMP, TIFF
  • Input Sources: File upload, HTTP/HTTPS URLs, Base64 encoded data
  • Resolution: Up to 4096×4096 pixels

Example Configurations

Basic Background Removal

{
"Image": "https://example.com/product.jpg",
"outputFormat": "png"
}

White Background for E-commerce

{
"Image": "https://example.com/product.jpg",
"backgroundColor": "white",
"outputFormat": "jpg",
"compressionOptions": {
"quality": 95
}
}

Custom Background Image

{
"Image": "https://example.com/portrait.jpg",
"backgroundImage": "https://example.com/studio-background.jpg",
"outputFormat": "webp",
"verboseOutput": true
}

API Integration

Using Apify Client

const ApifyClient = require('apify-client');
const client = new ApifyClient({ token: 'your-token' });
const run = await client.actor('ainz/background-remover').call({
Image: 'https://example.com/image.jpg',
backgroundColor: '#FFFFFF',
outputFormat: 'jpg'
});
// Get the processed image
const kvStore = await client.keyValueStore(run.defaultKeyValueStoreId);
const imageBuffer = await kvStore.getRecord('OUTPUT');