$ man remove-bg
/remove-bg(1)
PRICE / CALL
$0.08
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
synthforgeCATEGORY
ai
STATUS
● live
NAME
remove-bg — ai background remover / background eraser / cutout tool
SYNOPSIS
POST https://x402.org/v1/remove-bg
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
AI background remover / background eraser / cutout tool. Returns transparent PNG. Optional crop_to_bbox. fal.ai imageutils/rembg.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| image_url | string | Source image URL to remove the background from; returns a transparent PNG cutout of the foreground subject. | required |
| crop_to_bbox | boolean | Default false. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| image_url | string | URL of the resulting transparent PNG with the background removed. |
| width | number | Width of the output PNG in pixels. |
| height | number | Height of the output PNG in pixels. |
| file_size_bytes | number | Size of the returned PNG file in bytes. |
| content_type | string | MIME type of the returned image, typically image/png. |
| crop_to_bbox | boolean | Whether the output was cropped to the subject's bounding box rather than keeping original canvas dimensions. |
| source_url | string | Echo of the input image_url that was processed. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/remove-bg \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the remove-bg tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- backgroundrembgimageremovetransparent
- env
- FAL_KEY
- methods
- POST
- cluster
- synthforge
- price
- $0.08 USDC per call
ADJACENT — other endpoints in synthforge
| endpoint | description | price |
|---|---|---|
| image-generate-pro | Image generate (pro) / premium text-to-image / Flux 2 Pro / Recraft / Seedream / Qwen Image 2 Pro / xAI Grok Imagine. | $0.10 |
| music-generate | Music generation / text-to-music / AI music / generative song / instrumental and vocal music. | $0.05 |
| text-to-speech | Text to speech / TTS / voice generator. | $0.05 |
| voice | Text-to-speech / TTS / voice synthesis. | $0.05 |
| image-edit | Image edit / instruction-based image edit / text-driven photo edit / nano-banana image editor / GPT-image-2 edit. | $0.02 |
| image-inpaint | Image inpainting / mask-based image edit / fill in masked region / object replacement / face swap (mask-driven) / generative fill. | $0.02 |
| image-expand | AI image outpainting / image expansion. | $0.15 |
| image-generate | Image generate (fast/cheap) / text-to-image / AI art. | $0.01 |
SEE ALSO