跳转至内容
规模化 AI 背景移除

背景移除 API

一次 API 调用,不到一秒即可移除背景,每张图片仅需 0.02 美元。发送 PNG、JPEG、WEBP 或 HEIC 文件,即可获得干净利落的抠图结果,轻松用于包含数千张图片的产品目录。
深受知名企业信赖

背景移除 API 的行业应用成果

只需移除一次背景,就能将干净的抠图重复用于外卖菜单、商品页面、广告和社交媒体帖子。
Cheeseburger with lettuce, tomato, and cheese on a bun, placed on a napkin on a wooden table in a kitchen setting.
A cheeseburger with lettuce, tomato, and a beef patty topped with melted cheese, served on a toasted bun.
Cheeseburger with lettuce and tomato on a wooden table, set against a scenic beach backdrop with blue skies and ocean.
Cheeseburger with lettuce and tomato on a bun displayed against a red background. Text above reads: "$7.99 Burger Menu Offer."
A cheeseburger with lettuce, tomato, and melted cheese on a bun, placed on a marble surface.
A stainless steel electric kettle sits on a wooden countertop in a cozy kitchen with wall shelves holding various appliances.
Stainless steel electric kettle with a black handle and base.
Stainless steel electric kettle with a black handle, placed on a wooden countertop, surrounded by white cloths, in a cozy kitchen setting.
Stainless steel electric kettle with black handle on a blue background. "Sale 20%" text in lower left corner.
A stainless steel electric kettle with a black handle, placed on a wooden surface, with a blurred green background.
A blue pump bottle on a bathroom sink surrounded by various toiletries, with a vase of white tulips and a blurred reflection of a person in the mirror.
A dark blue pump bottle with a black dispenser, against a plain white background.
Dark blue pump bottle with a "20% OFF" sign, set against a blurred, sparkling background.
A dark blue pump bottle surrounded by colorful flowers, with the word "PURE" in bold white letters above.
Blue pump bottle on a bathroom countertop with blurred plants and sink in the background.
Silver Mercedes-Benz SUV parked on gravel in an urban area with historical buildings and bare trees in the background.
White Mercedes-Benz SUV with black wheels, viewed from the front-left angle, isolated on a white background.
Silver Mercedes SUV parked on a scenic road with mountains and a vibrant sunset in the background.
Silver Mercedes-Benz SUV with special deal price of $23,000 displayed in bold lettering against a dark blue background.
White SUV displayed on a smartphone screen with "New Offer" text above and "Get In Now" below, against a road and forest backdrop.
A young woman with curly hair and a white tee smiles on a city street, with a blurred background of buildings and parked cars.
A young woman with wavy dark hair smiles, wearing a white and green t-shirt and jeans, isolated on a white background.
A smiling person with long hair, wearing a white and green shirt, is surrounded by a pink starburst with "Barbie" text overlaid.
Poster of a smiling young woman with curly hair wearing a white shirt. Text reads "Anna is Awful" and "Coming Soon | Streamberry" under Netflix logo.
Smiling woman standing on a cobblestone street with cherry blossoms and the Eiffel Tower in the background.

不止是抠图?一个 API 支持 20 多种编辑功能

升级到图像编辑 API,在同一次调用中添加 AI 背景、阴影、重新布光、虚拟模特等功能。一个密钥,一次集成,覆盖所有产品视觉需求。

Photoroom MCP

将 Photoroom MCP 连接到你使用的 LLM,自动化制作商品展示图片。

一键移除背景

AI 背景移除 API 能识别复杂边缘,处理透明区域,并批量输出干净的抠图,非常适合产品目录和电商平台商品上架。

虚拟模特

将服装和配饰一键穿搭到符合你品牌风格的AI生成模特上。通过Virtual Model API实现上身展示,无需选角、无需影棚、无需等待制作周期。

平铺拍摄

大规模生成一致、具备编辑水准的平铺产品摄影。通过 Flat Lay API,在成千上万个SKU中保持视觉风格统一。

隐形模特

通过 AI 驱动的 Ghost Mannequin API 端点,生成保持服装完美版型的隐形模特图像。无需影棚,即可大规模制作隐形模特摄影。

产品场景生成

将你的产品置于真实生活场景中,无论是手持、穿戴还是展示,均呈现高端摄影棚的自然光线与构图效果。

AI 智能编辑

用简单的话描述你想要的修改,AI 就能帮你实现——比如更换颜色、移除或添加物体、重构场景,或调整相机角度。

产品美化

使用Beautifier API,自动提升低质量的产品和食品图片,无需修图师,无需影棚。我们的AI可恢复细节、校正颜色,并大规模提升整体画质。

添加阴影

添加逼真的阴影到图片主体上,并可全面控制阴影的柔和度、强度和位置。

AI生成逼真背景

通过我们的顶级生成式AI,动态创建新背景,让其与原图主体完美匹配。

重新照明

自动修复曝光不佳的照片。我们的 AI 可智能平衡过曝和欠曝图片,并提供保持产品色彩准确或优化人像的模式。

移除文字

自动移除水印、标签和现实世界标识,让你自由选择保留或去除的内容。

扩展

将任意图片调整为任意格式,无需裁切。我们的 AI 会生成额外的背景,与原图无缝衔接,填满每一个空白像素。

智能扩图

恢复被画面裁切的主体。我们的 AI 会根据可见部分,自动重建缺失部分。

熨烫

让每件衣服都像刚熨好一样平整。我们的 AI 可自动消除服装照片中的褶皱,无需熨烫,无需重拍。

生成任意图片

根据文本描述生成图像,无需原始照片。描述场景,选择格式,即可获得原创内容。

不确定性评分

了解何时抠图结果需要再次检查。每次响应都会返回一个置信度分数(范围为0到1),方便你自动标记不确定的图片,批量审核。

透视校正

矫正倾斜拍摄的卡片、书籍、游戏等平面矩形产品,让其呈现干净、正面的视角。不使用生成式 AI,杜绝虚假内容。

定位

精确控制主体在图片中的位置,包括缩放、对齐、内边距和外边距,让产品目录中的每张图片都能保持一致的构图。

智能裁切

自动围绕主体重新构图,可通过提示聚焦特定元素,或裁切人脸以满足平台合规要求。

放大

将小尺寸、低分辨率图片一键变清晰,分辨率提升至4倍。支持快速模式批量处理,或慢速模式获得最佳画质。

Photoroom API

Photoroom 与 Remove.bg、Clipdrop 和 Azure 相比如何

我们用每个背景移除 API 处理了同一批产品照片。并排看看抠图效果:哪些能保留精细的边缘,哪些还会残留背景。

Gold bee-shaped napkin ring on a folded white napkin, displayed from different angles.

团队大规模编辑产品目录的成果

4倍

更快实现市场上线

89%

降低图像处理成本

56%

商品页转化率更高

236%

平均客单价提升

仅限 Enterprise 套餐

不止于抠图:逐一质检、品质保障,规模化处理

干净利落的抠图只是第一步。Enterprise 套餐还包含 Visual Agents,负责运行完整工作流;Visual QA 为每张图片评分;并且只对通过质检的图片收费。此外,还支持产品视频,正常运行时间达 99.9%。
Collage of a beige duffel bag with green straps, showing its exterior, spacious interior with pockets, and a hand holding it.
Visual Agents
Visual Agents 为你的用例执行最优工作流程。它会分析每个输入,生成并编辑内容,对输出进行评分,并反复尝试直到通过。每个视觉内容都遵循相同流程,只有通过的才会进入你的产品目录。
Three images of a woman in a yellow blazer, each with a completion score: 83%, 92%, and 100% labeled as "Best fidelity."
视觉质检
即使是最先进的AI模型也会出错,视觉质检会为每个结果打分,发现遗漏并在交付给客户前修正细节。
Collage of a woman in a white halter dress, a bowl of vibrant poke, and a woman holding a mustard handbag with hoop earrings.
企业级保障
只为通过审核的结果付费。提前设定商品还原度标准。我们的专有还原度模型会根据你的要求逐一检查每个结果。任何不符合要求的结果都会在交付给团队前重新生成。
Four fashion items with play icons: a brown handbag, sage green mule, person in a gray shirt and cardigan, and white sneakers with orange accents.
图像转视频 API
Image to Video API 可自动将静态产品照片转化为短视频。你只需提交产品图片,即可获得带有自然镜头运动、动画或自定义特效的精美视频。
Photoroom API

今天就开始移除背景

几分钟内获取 API 密钥,无需信用卡。免费测试,扩大使用规模后,每张图片只需支付 0.02 美元。

Plate with two sunny-side-up eggs, toast, and bacon, in a diner setting with counter stools in the background.

常见问题

背景移除 API 适合谁使用?

适合只需要干净利落抠图的开发者和团队:电商平台、零售商、外卖应用,以及需要大规模处理图片的图像工具。如果你还需要在同一次调用中生成 AI 背景、添加阴影、重新打光或进行其他编辑,请改用 Image Editing API。

背景移除 API 的费用是多少?

Basic 套餐每张图片收费 0.02 美元。你只需为成功的调用付费。用量较大时,Enterprise 套餐提供定制定价。详情请查看我们的定价页面。

支持哪些图片格式?

输入:PNG、JPEG、WEBP 或 HEIC,最大 50 MB,最长边不超过 6,000 像素。输出:PNG(默认格式,带透明背景)、JPEG 或 WEBP。

如何集成背景移除 API?

获取你的 API 密钥,在 x-api-key 请求头中发送该密钥,然后将图片 POST 到此端点:

curl --request POST \
  --url https://sdk.photoroom.com/v1/segment \
  --header 'x-api-key: YOUR_API_KEY' \
  --form image_file=@/path/to/your/image.jpg \
  --output photoroom-result.png

JavaScript、Python、Node.js 和 iOS 的现成代码可在文档中找到。

我可以使用图片 URL,而不上传文件吗?

不能通过此 API 实现。它接受上传的文件或 Base64 编码的图像。要通过 URL 处理图像,请使用 图像编辑 API,它接受 imageUrl 参数。

如果你在使用 API 时需要帮助,该怎么办?

API遇到问题?加入我们的API社区,向工程师寻求帮助,或查看故障排查页面获取常见问题的解决方法。

如有任何账单相关或涉及敏感信息的问题,请在社区内直接私信 Photoroom。我们随时乐意为你提供帮助。

速率限制是多少?

默认每分钟可处理 60 张图片。超过此限制时,API 会返回 429 错误,请稍等片刻后重试。对于大批量产品目录,Enterprise 套餐可以提高此限制。

我可以设置哪些输出选项?

  • 输出格式:PNG、JPEG 或 WEBP。

  • 背景:透明,或任意颜色。

  • 尺寸:预览、中等、HD 或全分辨率。

  • 裁切:将结果裁剪至主体边缘。

  • 绿幕清理:去除主体边缘残留的绿色。

每个回复还会包含一个不确定性评分,用于标记值得人工检查的图像。

这个 API 和图像编辑 API 有什么区别?

此 API 仅移除背景,每张图片收费 0.02 美元。图像编辑 API 一次调用即可完成 20 多种编辑,例如 AI 背景、阴影、重新打光和提升分辨率。一次图像编辑调用的费用相当于五次移除背景调用。

我在使用 Remove.bg 的 API,如何切换?

Remove.bg 的 API 将于 12 月 1 日停止服务。我们的迁移指南会将你现有的 API 调用映射到 Photoroom,让你无需重建集成即可切换。

我可以用 Claude 移除背景吗?

可以。将 Photoroom MCP 连接到 Claude,然后用普通英语提出请求,例如:“移除这些产品照片的背景。”Claude 会选择合适的工具并运行,然后返回抠图结果。付费版 Claude 套餐支持在 Claude(桌面端和网页端)、Cowork 和 Claude Code 中使用。

让你的产品一眼吸引买家,立即开始销售

几秒钟内即可获得适合上架的产品视觉。