All models
Remove Background
bria/remove-background
Quick start
# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
-H "content-type: application/json" \
-d '{
"model": "bria/remove-background",
"image": "https://example.com/input.jpg"
}'
# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
-J '{"model": "bria/remove-background", "image": "https://example.com/input.jpg"}'Parameters
Input
image string required
JPEG or PNG image (RGB, RGBA, or CMYK), a public URL or base64-encoded image data (a `data:` URI prefix is accepted). Pass a public URL; to use a local file, upload it (free) via POST /v1/media (≤40MB) and pass the returned url.
preserve_alpha boolean optional
Keep partial transparency from the input alpha channel. When false, every foreground pixel is fully opaque. Default true.
visual_input_content_moderation boolean optional
Reject the request if the input image fails content moderation. Default false.
visual_output_content_moderation boolean optional
Fail the request if the result fails content moderation. Default false.
Output