freeapis

Remove.bg

图片背景移除

认证方式
API Key
HTTPS
Yes
CORS
Unknown
分类
摄影

简介

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 "image_file=@photo.jpg" \
  -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_urlimage_file(multipart)和 image_base64 输入。

常见问题

Remove.bg 免费吗? 免费层:50 积分/月;更多需要付费。

为什么 GET 返回 404? 端点是仅 POST——GET 未实现(已实测)。

返回什么? 主体的透明背景 PNG。

摄影 分类更多

APIAuthHTTPSCORS
Bruzu

Image generation with query string

API KeyYesYes
CheetahO

Photo optimization and resize

API KeyYesUnknown
Dagpi

Image manipulation and processing

API KeyYesUnknown
Duply

Generate, Edit, Scale and Manage Images and Videos Smarter & Faster

API KeyYesYes
DynaPictures

Generate Hundreds of Personalized Images in Minutes

API KeyYesYes