> ## 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.

# Qwen-Image 图像编辑

Qwen-Image 图像编辑 — 一个用于下一代图像编辑生成的20B MMDiT模型。基于20B Qwen-Image，它在保留风格的同时，提供精确的双语文本编辑（中文和英文），并支持语义和外观级别的编辑。

<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="prompt" type="string" required={true}>
  用于生成图像的提示。
</ParamField>

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

<ParamField body="seed" type="integer" required={false}>
  用于生成的随机种子。-1 表示将使用随机种子。范围：-1 \~ 2147483647。默认值为 -1。
</ParamField>

<ParamField body="output_format" type="string" required={false}>
  输出图像的格式。默认是 jpeg。<br />
  枚举值: `jpeg`, `png`, `webp`
</ParamField>

<ParamField body="watermark" type="boolean" required={false} default={false}>
  为生成的图像添加水印。

  * `false`：不添加水印。
  * `true`：在图像添加文字的水印，标识由人工智能生成合成。
</ParamField>

## 响应参数

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