RMBG-2.0 API — Background Removal for Product & Portraits
RMBG-2.0 (BRIA) is KeyoAPI’s background-removal API for product photos, portraits, and design assets that must ship with clean alpha.
Overview
RMBG-2.0 (BRIA) is KeyoAPI’s background-removal API for product photos, portraits, and design assets that must ship with clean alpha. Unlike consumer remove-background websites, this is a developer-metered image matting API on an AI API relay.
E-commerce feeds, creator tools, and print-on-demand flows need reliable cutouts without Photoshop macros. RMBG-2.0 focuses on high-accuracy mattes that survive zoom and marketplace compression. About $0.0068 per request—often cheaper than legacy SaaS background APIs that charge five to twenty cents an image. See /compare for a high-level price comparison row. Teams use it for SKU studio automation, avatar builders, thumbnail pipelines, and design editors; combine with sam3 when you need open-vocabulary masks beyond subject/background.
Call Keyo matting endpoints with model=RMBG-2.0 on POST /v1/images/mattings (multipart image upload), not chat completions. Try it from /pricing/RMBG-2.0. Accept PNG/JPEG, return alpha, soft-fail on tiny images, and offer a preview URL for merchant QA.
Cutout quality in commerce is a reliability problem: hair edges, transparent packaging, and white-on-white SKUs. Build a QA loop that flags leftover background, re-run or escalate to sam3 masks, store alpha PNGs with SKU ids, and curate a regression set of fifty SKUs after every model upgrade.
Quick start
Base URL: https://www.keyoapi.xyz/v1
Endpoint: POST /v1/images/mattings
Model: model=RMBG-2.0
curl https://www.keyoapi.xyz/v1/images/mattings \
-H "Authorization: Bearer YOUR_API_KEY" \
-F model=RMBG-2.0 \
-F image=@./photo.png
Auth uses the same Bearer API key as chat. Full notes: Keyo docs.
FAQ
How does this compare to consumer remove-bg tools?
Those tools optimize for humans clicking a website. RMBG-2.0 is an API for automated catalogs, DAM pipelines, and apps at ~$0.0068/request.
Can I upscale after cutout?
Yes—pipe the alpha cutout through Real-ESRGAN or AnimeSharp depending on content type.
Authentication?
Same KeyoAPI Bearer token as chat models; see /pricing/RMBG-2.0.