Skip to main content
This API is currently in beta. Features and endpoints may change as we continue to improve the service.

AI Background Removal

Automatically remove backgrounds from images using AI-powered segmentation. Get clean cutouts with transparent backgrounds in seconds.
Remove Background is an AI-powered background removal API that instantly separates subjects from their backgrounds. Upload any JPG or PNG image via URL and receive a transparent PNG with the background removed. The API supports images up to 20 MB and outputs high-resolution results up to 25 megapixels. This is a synchronous API that returns results immediately without polling.

Key capabilities

  • Instant processing: Synchronous API returns results immediately without task polling
  • High resolution output: Full resolution up to 25 megapixels, preview up to 0.25 megapixels
  • Transparent PNG output: Clean cutouts with alpha channel transparency
  • Multiple output URLs: Get original, high-resolution, and preview versions in one response
  • Large file support: Accepts images up to 20 MB in size
  • Format support: Works with JPG and PNG input images
  • URL-based input: Submit images via public URL for easy integration
  • Temporary URLs: Response URLs valid for 5 minutes for secure access

Use cases

  • E-commerce product photos: Remove backgrounds for consistent product catalogs and marketplace listings
  • Graphic design workflows: Create transparent assets for compositions and marketing materials
  • Social media content: Isolate subjects for custom backgrounds and branded visuals
  • Photo editing apps: Integrate background removal into mobile and web editing tools
  • Print-on-demand services: Prepare artwork for merchandise and custom products
  • Real estate photography: Isolate property elements for virtual staging

Remove background from images

Submit an image URL to remove its background. The API returns multiple URLs for different resolution outputs.

Parameters

ParameterTypeRequiredDefaultDescription
image_urlstringYes-URL of the image whose background needs to be removed (JPG or PNG, up to 20 MB)

Response

FieldTypeDescription
originalstringURL of the original input image
high_resolutionstringURL of the high-resolution image with background removed (up to 25 MP)
previewstringURL of the preview version (up to 0.25 MP)
urlstringDirect download URL for the high-resolution result
Response URLs are temporary and expire after 5 minutes. Download or process the images promptly after receiving the response.

Frequently Asked Questions

The Remove Background API is an AI-powered service that automatically detects and removes backgrounds from images. You submit an image URL, and the API uses advanced segmentation models to separate the subject from the background, returning a transparent PNG. Unlike async APIs, this endpoint processes requests synchronously and returns results immediately.
The API accepts JPG and PNG images up to 20 MB in file size. Output is always a PNG with transparency. The high-resolution output supports images up to 25 megapixels, while the preview output is limited to 0.25 megapixels.
All URLs in the response (original, high_resolution, preview, url) are temporary and valid for 5 minutes only. Make sure to download or process the images immediately after receiving the response.
The Remove Background API is synchronous. Unlike other AI endpoints that return task IDs for polling, this API processes your request and returns the result immediately in the response. No task polling or webhooks are needed.
Rate limits depend on your subscription tier. Visit the Rate Limits page for details on request limits and quotas.
Pricing varies by subscription plan. Check the Pricing page for current rates and available plans.
The beta designation indicates the API is production-ready but may receive updates to improve accuracy, performance, or add new features. We recommend monitoring the changelog for any changes that might affect your integration.

Best practices

  • Image quality: Use high-resolution input images for best cutout quality
  • Clear subjects: Images with well-defined subjects produce cleaner results
  • Contrast: Higher contrast between subject and background improves accuracy
  • Download promptly: Save results immediately as URLs expire in 5 minutes
  • Error handling: Implement retry logic with exponential backoff for 5xx errors
  • URL validation: Ensure image URLs are publicly accessible before submission