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

# Qwen Image 3

> Qwen Image 3 API 根据文本或一到三张参考图生成图像，包括 Qwen Image 3 Pro。两者都支持 1K 和 2K 输出、反向提示词和自然语言编辑。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.poyo.ai/zh/api-manual/task-management/status.md)接口获取结果。

Qwen Image 3 支持文生图和多参考图生成，适用于海报、产品视觉、文字排版和自然语言图像编辑。

## 模型

* **qwen-image-3** - 标准图像生成，支持 1K 和 2K 输出
* **qwen-image-3-pro** - 更高质量的图像生成，支持 1K 和 2K 输出

两个模型使用统一接口。文生图时省略 `image_urls`，图生图时提供 1–3 张参考图。

## 必填参数

* `prompt` 必填，最多支持 5,000 个字符。

## 可选参数

* `size` 支持 `1:1`、`3:2`、`2:3`、`4:3`、`3:4`、`16:9`、`9:16` 和 `21:9`。
* `resolution` 支持 `1K` 和 `2K`。
* `output_format` 支持 `png` 和 `jpeg`。
* `prompt_extend` 控制自动提示词增强。
* `negative_prompt` 描述不应出现在输出中的内容。
* `seed` 接受 0 到 2,147,483,647 之间的值。
* `enable_safety_checker` 控制内容安全检查。

## 示例

### Pro 文生图示例

```json theme={"dark"}
{
  "model": "qwen-image-3-pro",
  "callback_url": "https://your-domain.com/callback",
  "input": {
    "prompt": "Create a refined bilingual technology conference poster with the headline Future Vision, elegant grid layout, blue and silver palette, realistic print texture",
    "size": "3:4",
    "resolution": "1K",
    "output_format": "png",
    "negative_prompt": "blurry, distorted typography, watermark",
    "seed": 314159
  }
}
```

### 标准版参考图示例

```json theme={"dark"}
{
  "model": "qwen-image-3",
  "input": {
    "prompt": "Transform this logo into a polished metallic badge with realistic studio lighting while preserving its recognizable shape and colors",
    "image_urls": ["https://storage.poyo.ai/logo.webp"],
    "size": "4:3",
    "resolution": "2K",
    "output_format": "jpeg",
    "prompt_extend": false
  }
}
```

### Pro 2K 参考图示例

```json theme={"dark"}
{
  "model": "qwen-image-3-pro",
  "input": {
    "prompt": "Transform this logo into a premium glass and brushed-metal app icon, preserve the original geometry and colors, dark blue studio background",
    "image_urls": ["https://storage.poyo.ai/logo.webp"],
    "size": "16:9",
    "resolution": "2K",
    "output_format": "png"
  }
}
```

### Pro 多参考图示例

```json theme={"dark"}
{
  "model": "qwen-image-3-pro",
  "input": {
    "prompt": "Combine the original logo geometry from the first reference with the brushed-metal material and lighting from the second reference, centered premium brand emblem",
    "image_urls": [
      "https://storage.poyo.ai/logo.webp",
      "https://storage.poyo.ai/qwen-image-3-pro/reference-material.jpg"
    ],
    "size": "1:1",
    "resolution": "1K",
    "output_format": "png"
  }
}
```


## OpenAPI

````yaml zh/api-manual/image-series/qwen-image-3.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: PoYo AI - Qwen Image 3 API
  description: >-
    Qwen Image 3 API（含 Qwen Image 3 Pro）根据文本或一到三张参考图像生成图像。两者均支持 1K 和 2K
    输出、负向提示词以及自然语言编辑。
  version: 1.0.0
servers:
  - url: https://api.poyo.ai
    description: 生产环境
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Qwen Image 3
      summary: 提交 Qwen Image 3 任务
      operationId: submitQwenImage3Task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              standard:
                summary: 标准版参考图生成
                value:
                  model: qwen-image-3
                  input:
                    prompt: >-
                      Transform this logo into a polished metallic badge with
                      realistic studio lighting while preserving its
                      recognizable shape and colors
                    image_urls:
                      - https://storage.poyo.ai/logo.webp
                    size: '4:3'
                    resolution: 2K
                    output_format: jpeg
                    prompt_extend: false
              pro-2k:
                summary: Pro 文生图
                value:
                  model: qwen-image-3-pro
                  input:
                    prompt: >-
                      Create a refined bilingual technology conference poster
                      with the headline Future Vision, elegant grid layout, blue
                      and silver palette, realistic print texture
                    size: '3:4'
                    resolution: 1K
                    output_format: png
                    negative_prompt: blurry, distorted typography, watermark
                    seed: 314159
              reference-image:
                summary: Pro 2K 参考图生成
                value:
                  model: qwen-image-3-pro
                  input:
                    prompt: >-
                      Transform this logo into a premium glass and brushed-metal
                      app icon, preserve the original geometry and colors, dark
                      blue studio background
                    image_urls:
                      - https://storage.poyo.ai/logo.webp
                    size: '16:9'
                    resolution: 2K
                    output_format: png
              multi-reference:
                summary: Pro 多参考图生成
                value:
                  model: qwen-image-3-pro
                  input:
                    prompt: >-
                      Combine the original logo geometry from the first
                      reference with the brushed-metal material and lighting
                      from the second reference, centered premium brand emblem
                    image_urls:
                      - https://storage.poyo.ai/logo.webp
                      - >-
                        https://storage.poyo.ai/qwen-image-3-pro/reference-material.jpg
                    size: '1:1'
                    resolution: 1K
                    output_format: png
      responses:
        '200':
          description: 任务提交成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
        '401':
          description: 未授权
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          enum:
            - qwen-image-3
            - qwen-image-3-pro
        callback_url:
          type: string
          format: uri
        input:
          type: object
          required:
            - prompt
          additionalProperties: false
          properties:
            prompt:
              type: string
              maxLength: 5000
            image_urls:
              type: array
              minItems: 1
              maxItems: 3
              items:
                type: string
                format: uri
            size:
              type: string
              enum:
                - '1:1'
                - '3:2'
                - '2:3'
                - '4:3'
                - '3:4'
                - '16:9'
                - '9:16'
                - '21:9'
            resolution:
              type: string
              enum:
                - 1K
                - 2K
              default: 1K
            output_format:
              type: string
              enum:
                - png
                - jpeg
              default: png
            prompt_extend:
              type: boolean
              default: true
            negative_prompt:
              type: string
              maxLength: 5000
            seed:
              type: integer
              minimum: 0
              maximum: 2147483647
            enable_safety_checker:
              type: boolean
              default: true
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
          enum:
            - 200
            - 400
            - 401
            - 402
            - 403
            - 404
            - 408
            - 429
            - 500
            - 502
            - 503
          description: >-
            业务状态码。`200` 表示成功，其他值都表示请求失败。请务必检查这个字段：部分参数校验错误会以 HTTP 200 返回，响应体里的
            `code` 为 `400`。


            - `200`：成功

            - `400`：请求参数无效

            - `401`：API Key 缺失或无效

            - `402`：积分不足

            - `403`：没有权限

            - `404`：资源不存在

            - `408`：请求超时

            - `429`：请求频率超限

            - `500`：服务器内部错误

            - `502`：上游服务错误

            - `503`：服务暂不可用


            详见[错误码](/zh/api-manual/error-codes)。
        data:
          type: object
          properties:
            task_id:
              type: string
            status:
              type: string
              example: not_started
              enum:
                - not_started
                - running
                - finished
                - failed
              description: >-
                任务状态。提交后立即返回时始终为
                `not_started`。后续状态请通过[查询任务状态](/zh/api-manual/task-management/status)接口或
                `callback_url` 获取。


                - `not_started`：排队中，等待处理

                - `running`：生成中

                - `finished`：已完成，结果在 `files` 或 `output` 中

                - `failed`：失败，详情见 `error_message`
            created_time:
              type: string
              format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        所有 API 接口都需要 Bearer Token 认证。


        创建 API Key：登录 PoYo，进入 **仪表盘 → API
        密钥**（[poyo.ai/zh/dashboard/api-key](https://poyo.ai/zh/dashboard/api-key)），点击创建
        Key。


        在请求头中添加：


        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.