ApiframeApiframe Docs
Image Editing

851-labs — Background Remove

Cheap, fast background removal for high volume.

Use in Apiframe Studio

POST /v2/images/background-removemodel: "851-bg-remove"

851-labs' transparent-background is a sub-cent, fast-path background remover. Use this when you're processing a large batch and don't need the cleanest possible alpha edge. Switch to Bria Background Remove for production-quality cut-outs.

See Image Editing overview for common request fields, response format, and error codes.

Model-specific parameters

ParameterTypeDescription
lab851BgRemoveParams.imagestringSource image URL.
lab851BgRemoveParams.formatstringOutput container. Values: "png" (alpha-preserving), "jpg".
lab851BgRemoveParams.thresholdnumberMask threshold (0–1). Higher = more aggressive cutout.
lab851BgRemoveParams.reversebooleanInvert the cutout. When true, the foreground is removed instead of the background — the subject is cut out and the original background is kept.
lab851BgRemoveParams.background_typestringBackground style. Values: "rgba" (transparent), "map" (greyscale mask), "green", "white", "blur", "overlay".

Credit cost

2 credits per generation.

Code examples

curl -X POST https://api.apiframe.ai/v2/images/background-remove \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "851-bg-remove",
    "lab851BgRemoveParams": {
      "image": "https://example.com/product.jpg",
      "format": "png",
      "background_type": "rgba"
    }
  }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/images/background-remove",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "model": "851-bg-remove",
        "lab851BgRemoveParams": {
            "image": "https://example.com/product.jpg",
            "format": "png",
            "background_type": "rgba",
        },
    },
)
print(response.json())
const response = await fetch(
  "https://api.apiframe.ai/v2/images/background-remove",
  {
    method: "POST",
    headers: {
      "X-API-Key": "afk_your_api_key_here",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      model: "851-bg-remove",
      lab851BgRemoveParams: {
        image: "https://example.com/product.jpg",
        format: "png",
        background_type: "rgba",
      },
    }),
  },
);
console.log(await response.json());

Try it

POST/v2/images/background-removeTry it

On this page