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

# Hunyuan 3D 3.6

> Hunyuan 3D 3.6 API 可以根据文本提示词、一张正面图，或正面图加最多 7 个额外视角生成高精度 3D 模型，面数最高 2,000,000，贴图支持 2K/4K/8K，可生成 PBR 材质，输出 GLB 文件，带贴图的模型另附 OBJ 压缩包。

> [!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)接口获取结果。

Hunyuan 3D 3.6 是腾讯混元面向专业 3D 资产的生成模型，重点提升高模和 PBR 贴图，护甲层次、装备组件和配饰的部件边界更清晰，面部和衣褶细节更细。适合为游戏、动画、电商和 3D 打印预览制作角色、生物、服装和复杂道具。

## 模型

* **hunyuan-3d/v3.6/text-to-3d** - 根据文本提示词生成 3D 模型
* **hunyuan-3d/v3.6/image-to-3d** - 根据一张正面图生成 3D 模型，可另加最多 7 个视角

## 功能

* 网格最高 2,000,000 面，目标面数最低 1,000，可开启严格面数模式
* 贴图分辨率 2K、4K 或 8K，格式 PNG、JPEG 或 WEBP
* PBR 材质贴图：金属度、粗糙度和法线
* 可生成带贴图的模型或无贴图的白模
* 文生 3D 提供 5 种贴图风格：青花瓷、中国风、雕塑、卡通和赛博朋克
* 图生 3D 支持多视角输入：背面、左侧、右侧、顶部、底部、左前方和右前方
* 默认输出无光照的 Albedo 贴图，也可以保留输入图片的光照
* 每个结果都包含 GLB 模型和预览图，带贴图的模型另附包含 MTL 和贴图的 OBJ 压缩包

## 输入模式

* **文生 3D**：使用 `hunyuan-3d/v3.6/text-to-3d`，在 `prompt` 里描述物体。
* **图生 3D**：使用 `hunyuan-3d/v3.6/image-to-3d`，在 `image_urls` 里传一张正面图。
* **多视角图生 3D**：使用 `hunyuan-3d/v3.6/image-to-3d`，正面图放在 `image_urls`，再传 7 个视角字段中的一个或多个。额外视角为模型补充物体被遮挡的那几面。

## 必填参数

* `prompt` (string)：`hunyuan-3d/v3.6/text-to-3d`。物体描述，最多 1024 个字符。
* `image_urls` (string\[])：`hunyuan-3d/v3.6/image-to-3d`。恰好一张正面图：JPG、PNG 或 WEBP，每边 128-5000 像素，小于 10 MB。

## 可选参数

* `generate_type` (string)：`Normal`（默认）生成带贴图的模型，`Geometry` 生成无贴图的白模。
* `face_count` (integer)：目标面数，范围 `1000` 到 `2000000`，默认 `2000000`。
* `face_strict_mode` (boolean)：`true` 时严格按 `face_count` 输出；`false`（默认）时由模型根据物体细节确定最终面数。
* `enable_pbr` (boolean)：`true` 时加上金属度、粗糙度和法线贴图，默认 `false`。
* `texture_resolution` (string)：`2k`、`4k`（默认）或 `8k`。
* `texture_format` (string)：`png`、`jpeg`（默认）、`jpg` 或 `webp`。
* `seamless_texture` (boolean)：`true` 时优先减少贴图接缝，贴图细节相应减少，默认 `false`。
* `style` (string)：`hunyuan-3d/v3.6/text-to-3d`。可选 `qinghuaci`、`china_style`、`sculpture`、`cartoon` 或 `cyberpunk`。
* `back_image_url`、`left_image_url`、`right_image_url`、`top_image_url`、`bottom_image_url`、`left_front_image_url`、`right_front_image_url` (string)：`hunyuan-3d/v3.6/image-to-3d`。同一物体每个视角一张图：JPG 或 PNG，每边 128-5000 像素。
* `bake_lighting` (boolean)：`hunyuan-3d/v3.6/image-to-3d`。`true` 时把输入图片的光照和阴影保留在贴图中；`false`（默认）时输出无光照的 Albedo 贴图。
* `ao_strength` (number)：`hunyuan-3d/v3.6/image-to-3d` 多视角任务。环境光遮蔽强度，范围 `0`（默认）到 `1`。

## 输出

任务完成后，`files` 按以下顺序返回文件：

* GLB 格式的 3D 模型（`file_type`：`3d`，`.glb`）
* `Normal` 任务：包含 OBJ 模型、MTL 文件和贴图的 ZIP 压缩包（`file_type`：`3d`，`.zip`）
* 模型的 PNG 预览图（`file_type`：`image`，`.png`）

每个文件项包含 `file_url` 和 `file_type`。

## 示例

* **文生 3D**：只传 `prompt`，得到 2,000,000 面、4K 贴图的带贴图模型，例如身穿锁子甲、铆钉护肩、编着辫子胡须的矮人铁匠。
* **带风格的文生 3D**：加上 `style: "qinghuaci"` 和 `enable_pbr`，得到带 PBR 材质的青花瓷茶壶。
* **图生 3D**：在 `image_urls` 里传一张蒸汽朋克猫头鹰的正面图，并开启 `enable_pbr`，得到带 PBR 贴图的模型。
* **多视角图生 3D**：在 `image_urls` 之外传同一只猫头鹰的 `back_image_url` 和 `left_image_url`，再设置 `ao_strength: 0.5` 增加环境光遮蔽。
* **白模**：设置 `generate_type: "Geometry"`、`face_count: 300000` 和 `face_strict_mode: true`，得到精确面数的无贴图网格。

## 注意事项

* 贴图相关选项（`enable_pbr`、`texture_resolution`、`texture_format`、`seamless_texture`、`bake_lighting`、`ao_strength`）作用于 `Normal` 任务。`Geometry` 任务输出无贴图网格的 GLB 文件和预览图。
* PoYo 实测：默认 2,000,000 面加 4K 贴图的带贴图任务用时 6-9 分钟，GLB 约 65-75 MB，OBJ 压缩包约 40-47 MB；300,000 面的 `Geometry` 任务约 2.5 分钟完成，GLB 为 5.4 MB。调低 `face_count` 可以得到更小的文件、下载更快。
* 图生 3D 建议使用物体完整入镜、背景干净的正面图。额外视角须为同一物体。


## OpenAPI

````yaml zh/api-manual/3d-series/hunyuan-3d-3-6.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: PoYo AI - Hunyuan 3D 3.6 API
  description: >-
    Hunyuan 3D 3.6 API 可以根据文本提示词、一张正面图，或正面图加最多 7 个额外视角生成高精度 3D 模型，面数最高
    2,000,000，贴图支持 2K/4K/8K，可生成 PBR 材质，输出 GLB 文件，带贴图的模型另附 OBJ 压缩包。
  version: 1.0.0
servers:
  - url: https://api.poyo.ai
    description: 生产环境
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Hunyuan 3D 3.6
      summary: 提交 Hunyuan 3D 3.6 任务
      description: 使用 Hunyuan 3D 3.6 根据文本、单张图片或多视角图片生成 3D 模型。
      operationId: submitHunyuan3D36Task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              text-to-3d:
                summary: 文生 3D
                value:
                  model: hunyuan-3d/v3.6/text-to-3d
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      A battle-worn dwarf blacksmith in a layered leather apron
                      over chainmail, riveted steel pauldrons, a braided beard
                      with iron rings, holding a forging hammer in one hand
              text-to-3d-style-pbr:
                summary: 文生 3D：风格预设与 PBR
                value:
                  model: hunyuan-3d/v3.6/text-to-3d
                  input:
                    prompt: >-
                      A round teapot with a dragon-shaped spout, a curled handle
                      and a lid knob shaped like a lotus bud
                    style: qinghuaci
                    enable_pbr: true
                    texture_format: png
              text-to-3d-geometry:
                summary: 文生 3D 白模
                value:
                  model: hunyuan-3d/v3.6/text-to-3d
                  input:
                    prompt: >-
                      A carved wooden chess knight with a flowing mane, flared
                      nostrils and a ringed round base
                    generate_type: Geometry
                    face_count: 300000
                    face_strict_mode: true
              image-to-3d:
                summary: 图生 3D
                value:
                  model: hunyuan-3d/v3.6/image-to-3d
                  input:
                    image_urls:
                      - >-
                        https://storage.poyo.ai/models/hunyuan-3d-3-6/examples/input-steampunk-owl-front-8ab04096913b.png
                    enable_pbr: true
              image-to-3d-multi-view:
                summary: 图生 3D：加额外视角
                value:
                  model: hunyuan-3d/v3.6/image-to-3d
                  input:
                    image_urls:
                      - >-
                        https://storage.poyo.ai/models/hunyuan-3d-3-6/examples/input-steampunk-owl-front-8ab04096913b.png
                    back_image_url: >-
                      https://storage.poyo.ai/models/hunyuan-3d-3-6/examples/input-steampunk-owl-back-c1f6179c539a.png
                    left_image_url: >-
                      https://storage.poyo.ai/models/hunyuan-3d-3-6/examples/input-steampunk-owl-left-109d9c980a1b.png
                    ao_strength: 0.5
              image-to-3d-geometry:
                summary: 图生 3D 白模并指定面数
                value:
                  model: hunyuan-3d/v3.6/image-to-3d
                  input:
                    image_urls:
                      - >-
                        https://storage.poyo.ai/models/hunyuan-3d-3-6/examples/input-steampunk-owl-front-8ab04096913b.png
                    generate_type: Geometry
                    face_count: 300000
                    face_strict_mode: true
      responses:
        '200':
          description: 任务提交成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 未授权：API Key 无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          enum:
            - hunyuan-3d/v3.6/text-to-3d
            - hunyuan-3d/v3.6/image-to-3d
          description: 对外模型标识。
        callback_url:
          type: string
          format: uri
          description: 任务完成或失败时接收通知的 Webhook 地址。
        input:
          type: object
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 1024
              description: >-
                `hunyuan-3d/v3.6/text-to-3d` 必填。描述要生成的物体：主体、形状、部件、材质和颜色。最多 1024
                个字符，且须包含非空白文字。
            style:
              type: string
              enum:
                - qinghuaci
                - china_style
                - sculpture
                - cartoon
                - cyberpunk
              description: >-
                仅用于
                `hunyuan-3d/v3.6/text-to-3d`。贴图风格：`qinghuaci`（青花瓷）、`china_style`（中国风）、`sculpture`（雕塑）、`cartoon`（卡通）或
                `cyberpunk`（赛博朋克）。留空时按提示词描述的风格生成。
            image_urls:
              type: array
              minItems: 1
              maxItems: 1
              items:
                type: string
                format: uri
              description: >-
                `hunyuan-3d/v3.6/image-to-3d` 必填。恰好一张物体正面图：JPG、PNG 或 WEBP，每边
                128-5000 像素，小于 10 MB。须为可公开访问的 HTTP 或 HTTPS 地址。
            back_image_url:
              type: string
              format: uri
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。同一物体从背面拍摄的图片：JPG 或 PNG，每边
                128-5000 像素。须为可公开访问的 HTTP 或 HTTPS 地址。传入任意一个视角后，任务按多视角方式生成。
            left_image_url:
              type: string
              format: uri
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。同一物体从左侧拍摄的图片：JPG 或 PNG，每边
                128-5000 像素。须为可公开访问的 HTTP 或 HTTPS 地址。传入任意一个视角后，任务按多视角方式生成。
            right_image_url:
              type: string
              format: uri
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。同一物体从右侧拍摄的图片：JPG 或 PNG，每边
                128-5000 像素。须为可公开访问的 HTTP 或 HTTPS 地址。传入任意一个视角后，任务按多视角方式生成。
            top_image_url:
              type: string
              format: uri
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。同一物体从顶部拍摄的图片：JPG 或 PNG，每边
                128-5000 像素。须为可公开访问的 HTTP 或 HTTPS 地址。传入任意一个视角后，任务按多视角方式生成。
            bottom_image_url:
              type: string
              format: uri
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。同一物体从底部拍摄的图片：JPG 或 PNG，每边
                128-5000 像素。须为可公开访问的 HTTP 或 HTTPS 地址。传入任意一个视角后，任务按多视角方式生成。
            left_front_image_url:
              type: string
              format: uri
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。同一物体从左前方拍摄的图片：JPG 或 PNG，每边
                128-5000 像素。须为可公开访问的 HTTP 或 HTTPS 地址。传入任意一个视角后，任务按多视角方式生成。
            right_front_image_url:
              type: string
              format: uri
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。同一物体从右前方拍摄的图片：JPG 或 PNG，每边
                128-5000 像素。须为可公开访问的 HTTP 或 HTTPS 地址。传入任意一个视角后，任务按多视角方式生成。
            generate_type:
              type: string
              enum:
                - Normal
                - Geometry
              default: Normal
              description: '`Normal` 生成带贴图的模型。`Geometry` 生成无贴图的白模，贴图相关选项作用于 `Normal` 任务。'
            face_count:
              type: integer
              minimum: 1000
              maximum: 2000000
              default: 2000000
              description: 网格的目标面数，范围 1000 到 2000000。
            face_strict_mode:
              type: boolean
              default: false
              description: 设为 `true` 时严格按 `face_count` 输出面数。设为 `false` 时，模型根据物体的几何细节确定最终面数。
            enable_pbr:
              type: boolean
              default: false
              description: 设为 `true` 时为 `Normal` 模型加上 PBR 材质贴图（金属度、粗糙度和法线）。
            texture_resolution:
              type: string
              enum:
                - 2k
                - 4k
                - 8k
              default: 4k
              description: '`Normal` 任务的贴图分辨率。'
            texture_format:
              type: string
              enum:
                - png
                - jpeg
                - jpg
                - webp
              default: jpeg
              description: '`Normal` 任务的贴图图片格式。'
            seamless_texture:
              type: boolean
              default: false
              description: 设为 `true` 时，`Normal` 任务优先减少贴图接缝，贴图细节相应减少。
            bake_lighting:
              type: boolean
              default: false
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。设为 `true`
                时把输入图片里的光照和阴影保留在贴图中；设为 `false` 时输出无光照的 Albedo 贴图。作用于 `Normal`
                任务。
            ao_strength:
              type: number
              minimum: 0
              maximum: 1
              default: 0
              description: >-
                仅用于 `hunyuan-3d/v3.6/image-to-3d`。`Normal` 多视角任务的环境光遮蔽强度，范围 0 到
                1。
      description: >-
        请求体。`hunyuan-3d/v3.6/text-to-3d` 传
        `prompt`，`hunyuan-3d/v3.6/image-to-3d` 传 `image_urls`。
      x-poyo-model-requests:
        $ref: '#/components/schemas/ModelRequests'
    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
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
            status:
              type: string
              enum:
                - not_started
                - running
                - finished
                - failed
              example: not_started
              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
    ErrorResponse:
      type: object
      required:
        - code
        - error
      properties:
        code:
          type: integer
          example: 400
          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)。
        error:
          type: object
          required:
            - message
            - type
          properties:
            message:
              type: string
              example: Invalid request parameters
            type:
              type: string
              example: invalid_request_error
  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.