remove_background
Remove background from any image and return a transparent PNG. Handles hair, fur, glass, and complex edges.
Instructions
Remove background from any image, returning transparent PNG. Uses BiRefNet (state-of-the-art, Papers with Code — Sm 0.901 on DIS5K). Handles hair, fur, glass, transparency, and complex edges. Stable endpoint — model upgrades automatically as SOTA evolves. 5 sats per image, pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='remove_background'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| imageBase64 | Yes | Base64-encoded image (PNG, JPEG, WEBP) or data URI |
Implementation Reference
- index.js:14-45 (registration)"remove_background" is registered as a tool name in the TOOLS array (line 37). This is a remote MCP server (URL: https://sats4ai.com/api/mcp) where the actual handler logic is implemented server-side. No local handler, schema, or helper code exists in this repository.
const TOOLS = [ "image", "video", "video_from_image", "text", "vision", "music", "tts", "transcription", "3d", "ocr", "file_convert", "email", "sms", "call", "voice_clone", "image_edit", "pdf_merge", "epub_to_audiobook", "convert_html_to_pdf", "translate_text", "extract_receipt", "ai_call", "remove_background", "upscale_image", "restore_face", "detect_nsfw", "detect_objects", "remove_object", "colorize_image", "deblur_image", ];