Background removal API
2 endpoints on fal.ai, from $0.018 per call, some tools free.
Versions
Inputs
- Image URL
- URL of the image to remove background from
- Output format
- The format of the output image (webp, png or gif). Optional
- Refine foreground
- Whether to refine the foreground using the estimated mask. Optional
- Output mask
- Whether to output the mask used to remove the background. Optional
- Mask only
- Whether to return only the segmentation mask without applying it to the image. Optional
- Operating resolution
- The resolution to operate on (1024x1024, 2048x2048 or 2304x2304). Optional
- Model
- Model to use for background removal (General Use (Light), General Use (Light 2K), General Use (Heavy), Matting, Portrait or General Use (Dynamic)). Optional
Other image generation models
- Nano Banana6 tools$0.08/image
- GPT Image8 toolsUsage based
- Seedream8 tools$0.027/image
- FLUX.26 tools$0.03
- Ideogram36 tools$0.01
- Recraft (vector)3 tools$0.01
- Reve2 tools$0.25/image
- Qwen Image2 tools$0.04/image
- Grok Imagine Image2 toolsUsage based
- Luma Uni2 tools$0.102
- HunyuanImage1 tool$0.095/image
- Image upscaling3 tools$0.03/unit
Questions
Which Background removal versions can my agent run?
BiRefNet v2 background removal and Bria RMBG 2.0 background removal.
How is it billed?
Per call, at the provider's price with no markup, from $0.018 per call. Some of these tools are free. Your agent sees the price before it runs a tool.
Connect your agent to 2,400+ tools for free
Sign in with Google or GitHub. No card required.