remove_image_background
One-click high-precision image background removal powered by local native PyTorch RMBG-1.4 model. Outputs clean transparent RGBA PNG (Base64). Completely standalone, zero ComfyUI dependency. Charges 0.01 USDC via x402 on Base Mainnet or eligible points. Supply payer_address. For redemption pass invoice_id and signature in _meta.x402/payment, with tx_hash for on-chain payment or method=points where supported. Settlement errors set isError and _meta.x402/payment-error.status_code; 503 indicates admission unavailable, while a 409 uncertain outcome must not be automatically retried.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image": "<image>",
"payer_address": "<payer_address>"
},
"name": "remove_image_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image data as Base64 string (data:image/png;base64,...) or public HTTP/HTTPS image URL | |
| rem_mode | No | Background removal model engine | RMBG-1.4 |
| payer_address | Yes | Payer wallet for invoice creation and redemption | |
| add_background | No | Optional background replacement color ('none' for transparent PNG) | none |