Developer API

Integrate professional-grade background removal into your workflow with our simple REST API.

Authentication

To use the API, you need an API Key. You can generate one in your dashboard after upgrading to the Pro or Enterprise plan.

Authorization: Bearer YOUR_API_KEY

Endpoints

POST/v1/remove-bg

Removes the background from an image. Supports URL or base64 input.

Parameters

  • image_url: string (required)
  • format: "png" | "webp" (default: "png")
  • shadow: boolean (default: true)
cURL Example
curl -X POST https://api.batchcut.com/v1/remove-bg \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/product.jpg",
    "format": "png",
    "shadow": true
  }'

"The API response will return a direct link to the processed image or a base64 string depending on your request."