跳转到主要内容
POST
https://api.ppinfra.com
/
v3
/
async
/
image-remove-background
图像背景移除
curl --request POST \
  --url https://api.ppinfra.com/v3/async/image-remove-background \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image": "<string>"
}
'
{
  "task_id": "<string>"
}
基于 AI 的图像背景移除服务,支持智能识别并移除图像背景,提供高质量的图像处理能力:开箱即用的 REST 推理 API,最佳性能,无冷启动,价格实惠。
这是一个异步API,只会返回异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 来检索视频生成结果。

请求头

Content-Type
string
必填
枚举值: application/json
Authorization
string
必填
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

请求体

image
string
必填
要擦除背景的图像的URL。

响应

task_id
string
必填
异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 以获取生成结果