EraseBG.AI
EraseBG API v1.0

Integrate powerful background removal into your stack.

Drop in our RESTful API. Built for scale, it handles up to 500 requests per second with sub-second average response times.

Secure Auth

Generate and cycle API keys directly from your developer dashboard.

Beautiful Docs

JSON responses built for modern TS/JS, Python, and Go applications.

Edge Velocity

Requests are instantly routed to the closest GPU cluster for minimum latency.

remove-background.js

const response = await fetch('https://api.erasebg.ai/v1/remove', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    image_url: 'https://example.com/product.jpg',
    format: 'webp',
    shadow: true
  })
});

const result = await response.json();
console.log(result.data.output_url);