Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
paymentIdYesValid payment ID (must be paid)
imageBase64YesBase64-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",
    ];
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It details the underlying model (BiRefNet, state-of-the-art), capabilities (handles complex edges), endpoint stability, pricing (5 sats per image), and payment method (Bitcoin Lightning, no API key). This is highly transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (5 sentences) and well-structured: first line states purpose, then technology, capabilities, then pricing and prerequisite. Every sentence adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description adequately states the return type ('transparent PNG'). It covers payment flow, image formats, and model details. Minor omissions like size limits or timeouts do not detract significantly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers both parameters with descriptions. The description adds context beyond the schema: it explains that paymentId requires a prior call to create_payment with toolName='remove_background', and imageBase64 supports data URI. This adds meaningful value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Remove background from any image, returning transparent PNG.' It specifies the action (remove background) and resource (image), and is distinct from sibling tools like edit_image or colorize_image.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for usage, including the requirement to call create_payment beforehand. It does not explicitly state when not to use this tool or mention alternatives, but the context is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cnghockey/sats4ai-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server