Remove.bg
图片背景移除
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 摄影
- 文档 / URL
- https://www.remove.bg/api
简介
Remove.bg 用 AI 去除图片背景——一次带图片的 POST 返回透明背景 PNG。需要免费 API 密钥(实测:GET 返回 404,无效密钥的 POST 返回 403 “API Key invalid”)。
快速开始
从图片 URL 去背景(替换 YOUR_KEY):
curl -X POST "https://api.remove.bg/v1.0/removebg" \
-H "X-Api-Key: YOUR_KEY" \
-d "image_url=https://example.com/photo.jpg&size=auto" \
-o output.png
从本地文件:
curl -X POST "https://api.remove.bg/v1.0/removebg" \
-H "X-Api-Key: YOUR_KEY" \
-F "[email protected]" \
-o output.png
认证方式
- 在 remove.bg 注册 → 免费 API 密钥(在控制台)。
- 通过
X-Api-Key请求头携带(无效密钥 → 403 “API Key invalid”,已实测)。 - 端点是 仅 POST(GET 返回 404,已实测)。
速率限制与注意事项
- 免费层:50 积分/月(1 积分 = 1 张图)——额度较小;付费档可扩展。
size=auto自动选最佳分辨率;也支持size=regular|medium|hd|full。- 直接返回处理后的 PNG 二进制(用
-o file.png保存)。 - 支持
image_url、image_file(multipart)和image_base64输入。
常见问题
Remove.bg 免费吗? 免费层:50 积分/月;更多需要付费。
为什么 GET 返回 404? 端点是仅 POST——GET 未实现(已实测)。
返回什么? 主体的透明背景 PNG。
摄影 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Bruzu Image generation with query string | API Key | Yes | Yes | ↗ |
| CheetahO Photo optimization and resize | API Key | Yes | Unknown | ↗ |
| Dagpi Image manipulation and processing | API Key | Yes | Unknown | ↗ |
| Duply Generate, Edit, Scale and Manage Images and Videos Smarter & Faster | API Key | Yes | Yes | ↗ |
| DynaPictures Generate Hundreds of Personalized Images in Minutes | API Key | Yes | Yes | ↗ |