Remove Background AI

Upload a photo and instantly get a clean, transparent cutout. Perfect for any product that needs a precise background removal.

POST /v2/generate

Parameters

Name
Type
Description

model

string

Required

Value must be removebg for Remove Backrounds with AI. Browse other Generators.

image

string

Required

URL of the input image. Encode your image url if url have special characters.

pid

integer

Optional

Persona ID to use if you want to use Persona Slots for images.

processing_url

string

Optional

Get process results with same endpoint, alternative to /results endpoint usage.

webhook

string

Optional

Get process results with real-time webhooks, alternative to /results endpoint usage.

Curl Example

curl -X POST https://api.luw.ai/v2/generate \
  -H "Authorization: Bearer LUW_API_TOKEN" \
  -d "model=removebg" \
  -d "image=https://example.com/room.jpg"

Response Example

{
  "status": true,
  "progress": {
    "started_at": "2024-01-04T12:00:00Z",
    "state": "processing",
    "percent": 45
  },
  "processing": true,
  "processing_url": "abc_123..."
}

✨ Get results using the /results endpoint.

Alternative legacy method: Add &processing_url={url} to your request.

Last updated