freeapis

Remove.bg

图片背景移除

认证方式
API Key
HTTPS
Yes
CORS
Unknown
分类
摄影
数据来源
public-apis + marcelscruz

简介

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。

摄影 分类更多

APIAuthHTTPSCORS
APITemplate.io

Dynamically generate images and PDFs from templates with a simple API

API KeyYesUnknown↗
Bruzu

Image generation with query string

API KeyYesYes↗
Change Image Background API

This API helps you change the background of any image

API KeyYesUnknown↗
CheetahO

Photo optimization and resize

API KeyYesUnknown↗
Convert Images to PDF API

Convert any image to a PDF without losing quality with one API call

API KeyYesUnknown↗