remove.ac Official SDKs, CLI & MCP Server (Node.js · Python · MCP · Drop-in remove.bg Migration)
Zero-dependency official developer SDKs, hot-folder CLI, and Model Context Protocol (MCP) server for remove.ac — the dual-mode background removal platform pairing a free on-device WebAssembly studio with a remove.bg-compatible Cloud GPU REST API (POST https://remove.ac/v1.0/removebg).
- Live Web Workbench (Free On-Device WASM + Batch 50 ZIP): https://remove.ac
- 1-Line
remove.bgAPI Migration Guide (Dec 1, 2026 Shutdown): https://remove.ac/guides/remove-bg-api-migration - Interactive API Sandbox & Docs: https://remove.ac/api-info
- Figma, Photoshop UXP, GIMP, Sketch & Make/n8n Integrations: https://remove.ac/plugins
- Open Inference & Pricing Dataset (
CC BY 4.0): https://remove.ac/benchmarks
Key Capabilities
- 1:1
remove.bgv1.0 Field Compatibility: Swaphttps://api.remove.bg/v1.0/removebgtohttps://remove.ac/v1.0/removebgusing standardX-Api-Key: rac_live_...headers and form fields (image_file,image_file_b64,image_url,size,format,channels,type,roi,crop,crop_margin,scale,position,bg_color,bg_image_url,add_shadow,shadow_type,shadow_opacity,semitransparency). - Up to 25 MB / 40 MP Zero-Disk Direct GPU Streaming: Payloads above 4 MB automatically negotiate a short-lived HMAC ticket (
POST /v1.0/removebg/ticket) and stream directly to ephemeral GPU RAM without disk or database blob persistence. - Atomic Credit Holds (
Idempotency-Key): Upstream timeouts or errors automatically release held credits with zero charge. Every verified account starts with 1 free credit; pay-as-you-go credit packs never expire. - Zero External Runtime Dependencies: The Node.js 18+ SDK, CLI, MCP stdio server, and Python 3.8+ SDK run purely on standard library primitives (
fetch/cryptoin Node,urllibin Python).
1. Quick curl Migration
curl -X POST https://remove.ac/v1.0/removebg \
-H "X-Api-Key: rac_live_your_key_here" \
-F "image_file=@photo.jpg" \
-F "size=full" \
-o cutout.png
2. Node.js / TypeScript SDK (Node 18+)
Install via npm or GitHub
npm install remove-ac
# or directly from GitHub:
npm install github:szp2005/remove-ac-sdk
Usage
import fs from "node:fs";
import { RemoveAcClient } from "remove-ac";
const client = new RemoveAcClient({
apiKey: process.env.REMOVE_AC_API_KEY, // rac_live_...
});
// Files > 4 MB (up to 25 MB) automatically use /v1.0/removebg/ticket zero-disk GPU streaming
const result = await client.removeBackground("./studio-shot-18mb.png", {
size: "full",
format: "png",
shadowType: "contact",
});
fs.writeFileSync("./studio-shot-cutout.png", result.buffer);
console.log(`Saved ${result.width}x${result.height} (${result.creditsCharged} credit)`);
3. CLI & --watch Hot-Folder Batch Tool
Run directly with npx or after installing:
export REMOVE_AC_API_KEY="rac_live_..."
# Process an entire folder with 4 parallel workers
npx github:szp2005/remove-ac-sdk ./input-photos ./output-pngs --concurrency=4 --size=full
# Watch a hot folder continuously and output transparent WebP cutouts
npx github:szp2005/remove-ac-sdk ./incoming ./cutouts --watch --format=webp --crop
4. Python SDK (Python 3.8+, Zero External Dependencies)
Install directly via GitHub
pip install git+https://github.com/szp2005/remove-ac-sdk.git
Native Client
from remove_ac import RemoveAcClient
client = RemoveAcClient() # reads REMOVE_AC_API_KEY
png_bytes = client.remove_background(
"product.jpg",
size="full",
shadow_type="contact",
)
with open("product-nobg.png", "wb") as fh:
fh.write(png_bytes)
1:1 removebg Drop-In Replacement Shim
Existing scripts written for from removebg import RemoveBg work without rewriting call sites:
from removebg import RemoveBg
rmbg = RemoveBg("rac_live_your_key_here")
rmbg.remove_background_from_img_file("car.jpg", size="full", new_file_name="car-cutout.png")
5. MCP Server (Claude Desktop · Cursor · Windsurf · Cline)
remove-ac includes a zero-dependency Model Context Protocol (MCP) stdio server (remove-ac-mcp) exposing three tools to AI coding and design agents:
remove_background_file— remove background from any local.png/.jpg/.webpup to25 MB / 40 MP(auto-streams>4 MBvia/v1.0/removebg/ticket)remove_background_url— remove background from a publichttps://image URL and save locallyget_account_balance— inspect remainingremove.acAPI credits
Claude Desktop / Cursor Configuration
{
"mcpServers": {
"remove-ac": {
"command": "npx",
"args": ["-y", "-p", "remove-ac", "remove-ac-mcp"],
"env": {
"REMOVE_AC_API_KEY": "rac_live_your_key_here"
}
}
}
}
License
MIT © remove.ac
Metadata
Release files for remove-ac 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remove_ac-1.1.1.tar.gz | 9.9 kB | Without provenance | Details for remove_ac-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| remove_ac-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for remove_ac-1.1.1-py3-none-any.whl |
Total release size: 19.0 kB
Release files / remove_ac-1.1.1.tar.gz
| Download URL | remove_ac-1.1.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3afc87cfb1e8b079241f86bcb2d1485cc3bd574c41575fdd81fc1f19137428a
|
|
BLAKE2b-256 checksum How to use checksums |
64052b0c2422eacaef8006ef78a39c9996d6bf596e75b3152fcf9ad2e92804b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / remove_ac-1.1.1-py3-none-any.whl
| Download URL | remove_ac-1.1.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3eaf59f308a7e477190856ebe20098b5bce34047b53fda6a9f6a46edb5399c4
|
|
BLAKE2b-256 checksum How to use checksums |
553692a56cb402cb9320dee23eb44b1475ddcbd93d68ae4ff1e285badc3ba1d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for remove-ac 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.