Skip to main content

Stable Image - Background Remover

Remove backgrounds from images using Stability AI's advanced background removal technology. Automatically detect and remove backgrounds while preserving subject details with precision edge detection and intelligent transparency handling.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be BACKGROUND_REMOVER
modelstringYesAI model identifier. Must be stable-image
promptObjectobjectYesConfiguration object containing all background removal parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesPath to the image for background removal-
output_formatstringNoOutput format for the processed imagepng

Supported Output Formats

FormatDescriptionBest For
pngHigh quality with transparency supportProfessional use, precise cutouts, web graphics
jpegSmaller file size with solid backgroundQuick processing, web optimization
webpModern format with transparencyWeb applications, modern browsers

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "BACKGROUND_REMOVER",
"model": "stable-image",
"promptObject": {
"imageUrl": "development/images/2025_02_16_14_21_09_329_images.jpeg",
"output_format": "png"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Path to the image file for background removal
Format of the output image with removed background

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "BACKGROUND_REMOVER",
"model": "stable-image",
"promptObject": {
"imageUrl": "development/images/2025_02_16_14_21_09_329_images.jpeg",
"output_format": "png"
}
}'

Response Format

{
"aiRecord": {
"uuid": "b1g2r3m4-v5e6-7890-abcd-ef1234567890",
"userId": "user-12345",
"teamId": "team-67890",
"teamUser": {
"teamId": "team-67890",
"userId": "user-12345",
"userName": "John Doe",
"userAvatar": "https://example.com/avatar.jpg",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 20000,
"createdAt": "2025-01-01T00:00:00.000Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-01-15T14:00:00.000Z",
"updatedBy": "SYSTEM"
},
"model": "stable-image",
"type": "BACKGROUND_REMOVER",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-01-15T14:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_02_16_14_21_09_329_images.jpeg",
"output_format": "png"
},
"resultObject": [
"development/images/2025_01_15_14_00_30_001_background_removed.png"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_14_00_30_001_background_removed.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=EXAMPLE_CREDENTIAL&X-Amz-Date=20250115T140000Z&X-Amz-Expires=604800&X-Amz-Signature=example_signature&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}

Use Cases

E-commerce & Product Photography

  • Product Catalogs: Create clean product images with transparent backgrounds
  • Inventory Management: Standardize product photos for consistent presentation
  • Marketplace Listings: Prepare products for Amazon, eBay, and other platforms
  • Print Materials: Generate product images for brochures and catalogs
  • Website Integration: Create uniform product displays for e-commerce sites

Professional Photography & Portraits

  • Portrait Photography: Remove distracting backgrounds from headshots
  • Event Photography: Isolate subjects from busy event environments
  • Corporate Headshots: Create professional portraits with clean backgrounds
  • Wedding Photography: Extract key moments for album design
  • Fashion Photography: Focus on clothing and models without background distractions

Marketing & Design

  • Advertising Materials: Create clean subject cutouts for advertisements
  • Social Media Content: Prepare images for various platform requirements
  • Graphic Design: Extract elements for composite designs and layouts
  • Brand Assets: Create logo cutouts and brand element extractions
  • Presentation Graphics: Professional images for business presentations

Creative & Artistic Applications

  • Digital Art: Extract subjects for artistic compositions and collages
  • Photo Manipulation: Prepare elements for creative photo montages
  • Content Creation: Generate assets for creative projects and campaigns
  • Educational Materials: Create clear subject images for learning content
  • Portfolio Work: Professional subject isolation for portfolio presentations

Tips for Best Results

  1. Image Quality: Use high-quality, well-lit source images

    • Higher resolution inputs produce cleaner cutouts
    • Good lighting helps AI distinguish subject from background
    • Avoid heavily compressed or blurry images
  2. Subject Contrast: Ensure good contrast between subject and background

    • Clear separation improves accuracy
    • Avoid subjects that blend into backgrounds
    • Consider lighting to enhance subject definition
  3. Format Selection: Choose output format based on intended use

    • PNG: Essential for transparent backgrounds and professional use
    • JPEG: Suitable when transparency isn't needed (adds white background)
    • WebP: Modern format with transparency for web applications
  4. Subject Types: Optimal performance with certain subjects

    • People: Excellent results with portraits and full-body shots
    • Products: Perfect for e-commerce and catalog photography
    • Objects: Great for clear, well-defined items
    • Animals: Good results, especially with pets and wildlife
  5. Background Considerations: Some backgrounds work better than others

    • Simple backgrounds: Clean, uncluttered backgrounds yield best results
    • High contrast: Strong contrast between subject and background
    • Avoid complex patterns: Busy backgrounds may affect edge detection

Notes

  • Stable Image Background Remover uses advanced AI algorithms specifically trained for subject detection and background removal
  • Results may vary based on subject complexity, background type, and image quality
  • The model excels at human subjects, products, and well-defined objects
  • PNG format is recommended for professional use requiring transparency
  • Processing times vary based on image resolution and subject complexity
  • For best results, ensure good lighting and clear subject-background separation