> ## Documentation Index
> Fetch the complete documentation index at: https://ppio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 图像擦除

基于 AI 的图像擦除服务，支持通过遮罩图像和文本提示智能移除图像中的对象，提供高质量的图像处理能力：开箱即用的 REST 推理 API，最佳性能，无冷启动，价格实惠。

<Tip>
  这是一个**异步**API，只会返回异步任务的 task\_id。您应该使用该 task\_id 请求 [查询任务结果 API](/models/reference-get-async-task-result) 来检索视频生成结果。
</Tip>

## 请求头

<ParamField header="Content-Type" type="string" required={true}>
  枚举值: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer 身份验证格式，例如：Bearer \{\{API 密钥}}。
</ParamField>

## 请求体

<ParamField body="mask" type="string">
  遮罩图像，用于指示要擦除的区域。要擦除的区域应为白色，要保留的区域应为黑色。
</ParamField>

<ParamField body="image" type="string" required={true}>
  要生成图像的原始图像。
</ParamField>

<ParamField body="prompt" type="string">
  用于指定要从图像中移除的对象或区域的文本提示。例如：'dog' 或 'hat'。
</ParamField>

<ParamField body="output_format" type="string" default="jpeg">
  输出图像的格式。

  可选值：`jpeg`, `png`, `webp`
</ParamField>

## 响应

<ResponseField name="task_id" type="string" required={true}>
  异步任务的 task\_id。您应该使用该 task\_id 请求 [查询任务结果 API](/models/reference-get-async-task-result) 以获取生成结果
</ResponseField>
