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

# Meshy 6 3D

> Meshy 6 3D API 从文本、单张图像或同一物体的 1–4 张图像生成 3D 网格。可请求纹理、PBR 贴图、人形骨骼绑定和预设动画，文档列出的输出格式包括 GLB、FBX、OBJ、USDZ 和 STL。

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

Meshy 6 3D 通过三个公开 model ID 支持文生 3D、单图生 3D 和多图生 3D。

## 模型

* **meshy-6-text-to-3d** - 从提示词生成 3D 模型
* **meshy-6-image-to-3d** - 从一张图像生成 3D 模型
* **meshy-6-multi-image-to-3d** - 从 1-4 张图像生成 3D 模型

## 必填参数

* **model**：`meshy-6-text-to-3d`、`meshy-6-image-to-3d` 或 `meshy-6-multi-image-to-3d`
* **input.prompt**：`meshy-6-text-to-3d` 必填
* **input.image\_urls**：图像模型必填。`meshy-6-image-to-3d` 只能传 1 张图像，`meshy-6-multi-image-to-3d` 传 1-4 张图像

## 可选参数

* **mode**：仅文生 3D。`preview` 或 `full`。默认 `full`
* **seed**：仅文生 3D。用于复现结果的整数种子
* **topology**：`quad` 或 `triangle`。默认 `triangle`
* **target\_polycount**：目标多边形数量。默认 `30000`
* **should\_remesh**：是否启用重新网格化阶段。默认 `true`
* **symmetry\_mode**：`off`、`auto` 或 `on`。默认 `auto`
* **should\_texture**：仅图像模型。是否生成纹理。默认 `true`
* **enable\_pbr**：生成金属度、粗糙度、法线等 PBR 贴图
* **pose\_mode**：`a-pose`、`t-pose`，或空字符串表示不指定姿势
* **enable\_prompt\_expansion**：仅文生 3D。是否自动扩写提示词
* **texture\_prompt**：用于引导纹理的文本提示词
* **texture\_image\_url**：用于引导纹理的图像 URL
* **enable\_rigging**：是否为人形角色绑定骨骼
* **rigging\_height\_meters**：启用骨骼绑定时使用的角色身高。默认 `1.7`
* **enable\_animation**：是否应用动画预设。需要启用骨骼绑定
* **animation\_action\_id**：Meshy 动画预设 ID。默认 `1001`
* **enable\_safety\_checker**：是否启用输入安全检查。默认 `true`
* **callback\_url**：可选，任务完成通知的 Webhook URL

## 输出

任务结果可能包括：

* `model_glb`
* `thumbnail`
* `model_urls`：可用时包括 `glb`、`fbx`、`obj`、`usdz`、`blend` 和 `stl`
* `texture_urls`：基础色及可选的 PBR 纹理文件
* 启用动画时包括 `animation_glb` 和 `animation_fbx`
* 启用骨骼绑定时包括 `rigged_character_glb` 和 `rigged_character_fbx`
* 启用骨骼绑定时包括 `basic_animations`

每个文件条目在可用时包括 `label`、`file_url`、`file_type`、`format`、`content_type`、`file_name` 和 `file_size`。

## 注意事项

* `meshy-6-image-to-3d` 在 `image_urls` 中只接受一张图像。
* `meshy-6-multi-image-to-3d` 接受 1-4 张图像。这些图像应从不同角度展示同一物体。
* API 返回异步任务状态。请轮询统一的任务状态接口，或使用 `callback_url`。


## OpenAPI

````yaml zh/api-manual/3d-series/meshy-6-3d.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: PoYo AI - Meshy 6 3D API
  description: >-
    Meshy 6 3D API 根据文本、一张图片或同一物体的 1–4 张图片生成 3D 网格。可请求纹理、PBR
    贴图、人形骨骼绑定和预设动画，文档列出的输出格式包括 GLB、FBX、OBJ、USDZ 和 STL。
  version: 1.0.0
servers:
  - url: https://api.poyo.ai
    description: 生产环境
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Meshy 6 3D
      summary: 提交 Meshy 6 3D 任务
      description: 根据文本、一张图片或多张图片生成 3D 模型。
      operationId: submitMeshy6ThreeDTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              text-to-3d:
                summary: 文本生成 3D
                value:
                  model: meshy-6-text-to-3d
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      A worn leather explorer backpack with brass buckles,
                      canvas straps, realistic stitching, game-ready asset
                    mode: full
                    topology: triangle
                    target_polycount: 30000
                    should_remesh: true
                    symmetry_mode: auto
                    enable_pbr: true
                    pose_mode: ''
                    enable_prompt_expansion: true
                    enable_safety_checker: true
              image-to-3d:
                summary: 图片生成 3D
                value:
                  model: meshy-6-image-to-3d
                  input:
                    image_urls:
                      - https://example.com/object-front.png
                    topology: triangle
                    target_polycount: 30000
                    symmetry_mode: auto
                    should_remesh: true
                    should_texture: true
                    enable_pbr: true
                    enable_safety_checker: true
              multi-image-to-3d:
                summary: 多图生 3D
                value:
                  model: meshy-6-multi-image-to-3d
                  input:
                    image_urls:
                      - https://example.com/object-front.png
                      - https://example.com/object-side.png
                      - https://example.com/object-back.png
                    topology: triangle
                    target_polycount: 30000
                    symmetry_mode: auto
                    should_remesh: true
                    should_texture: true
                    enable_pbr: true
                    enable_safety_checker: 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
      properties:
        model:
          type: string
          enum:
            - meshy-6-text-to-3d
            - meshy-6-image-to-3d
            - meshy-6-multi-image-to-3d
        callback_url:
          type: string
          format: uri
        input:
          $ref: '#/components/schemas/Meshy6Input'
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
          description: >-
            业务状态码。`200` 表示成功，其他值都表示请求失败。请务必检查这个字段：部分参数校验错误会以 HTTP 200 返回，响应体里的
            `code` 为 `400`。


            - `200`：成功

            - `400`：请求参数无效

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

            - `402`：积分不足

            - `403`：没有权限

            - `404`：资源不存在

            - `408`：请求超时

            - `429`：请求频率超限

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

            - `502`：上游服务错误

            - `503`：服务暂不可用


            详见[错误码](/zh/api-manual/error-codes)。
          enum:
            - 200
            - 400
            - 401
            - 402
            - 403
            - 404
            - 408
            - 429
            - 500
            - 502
            - 503
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              description: 任务唯一标识，用于查询任务状态
            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
              description: 任务创建时间，ISO 8601 格式
    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
    Meshy6Input:
      type: object
      properties:
        prompt:
          type: string
          maxLength: 600
          description: meshy-6-text-to-3d 必填。
        image_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 4
          description: >-
            图像模型必填。meshy-6-image-to-3d 恰好传 1 项，meshy-6-multi-image-to-3d 传 1-4
            项。
        mode:
          type: string
          enum:
            - preview
            - full
          default: full
          description: 仅用于文生 3D。
        seed:
          type: integer
          description: 仅用于文生 3D。
        topology:
          type: string
          enum:
            - quad
            - triangle
          default: triangle
        target_polycount:
          type: integer
          default: 30000
        should_remesh:
          type: boolean
          default: true
        symmetry_mode:
          type: string
          enum:
            - 'off'
            - auto
            - 'on'
          default: auto
        should_texture:
          type: boolean
          default: true
          description: 仅用于图像模型。
        enable_pbr:
          type: boolean
        pose_mode:
          type: string
          enum:
            - a-pose
            - t-pose
            - ''
          default: ''
        enable_prompt_expansion:
          type: boolean
          description: 仅用于文生 3D。
        texture_prompt:
          type: string
        texture_image_url:
          type: string
          format: uri
        enable_rigging:
          type: boolean
        rigging_height_meters:
          type: number
          default: 1.7
        enable_animation:
          type: boolean
        animation_action_id:
          type: integer
          default: 1001
        enable_safety_checker:
          type: boolean
          default: true
  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.