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. Clients that cannot send _meta may pass payment_method ('points' or 'onchain'), invoice_id, signature and (for on-chain) tx_hash as arguments instead. 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 | |
| tx_hash | No | Base mainnet USDC transfer hash for on-chain settlement. | |
| rem_mode | No | Background removal model engine | RMBG-1.4 |
| signature | No | EIP-191 signature over challengeToSign by payer_address. | |
| invoice_id | No | invoiceId from the payment-required response. | |
| payer_address | Yes | Payer wallet for invoice creation and redemption | |
| add_background | No | Optional background replacement color ('none' for transparent PNG) | none |
| payment_method | No | Settlement rail. 'points' spends membership points; 'onchain' verifies tx_hash. |