SuperAPI AI 工具集

background-removal

设计与创作

查看项目

更新于 10-15 22:37

技能介绍

用途:通过 inference.sh 命令行工具(infsh)调用 BiRefNet 模型,对图像做高精度背景移除,用于产品图、人像、营销素材、社交媒体头像与设计素材等场景。

主要能力:核心是 infsh/birefnet 应用执行背景移除;另可借助 falai/reve 做背景编辑,如移除背景变透明或直接更换背景;也可先用 falai/flux-dev-lora 生成图像再编辑。输出为带透明背景的 PNG。

使用方式:需先安装并登录 inference.sh CLI(infsh)。背景移除命令: infsh app run infsh/birefnet --input '{"image_url": "https://your-photo.jpg"}' 用 Reve 移除背景: infsh app run falai/reve --input '{ "prompt": "remove the background, make it transparent", "image_url": "https://portrait.jpg" }' 更换背景: infsh app run falai/reve --input '{ "prompt": "change the background to a beach", "image_url": "https://product-photo.jpg" }' 生成加编辑工作流:先生成图像,再将上一步的 URL 传入 Reve 提示移除背景变透明。

适用场景:电商干净产品图、专业人像头图、营销设计素材、社交头像、设计元素。

限制:依赖 inference.sh CLI(infsh)且需登录,需提供可访问的 image_url;未提供费用、速率、图片格式与尺寸等细节,暂未提供。