meshy-openclaw

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Meshy 3D — Generation + Printing

Meshy 3D — 生成与打印

Directly communicate with the Meshy AI API to generate and print 3D assets. Covers the complete lifecycle: API key setup, task creation, exponential backoff polling, downloading, multi-step pipelines, and 3D print preparation with slicer integration.

直接与Meshy AI API交互,生成并打印3D资产。覆盖完整生命周期:API密钥设置、任务创建、指数退避轮询、文件下载、多步骤流程,以及集成切片器的3D打印准备。

SECURITY MANIFEST

安全声明

Environment variables accessed:
  • MESHY_API_KEY
    — API authentication token sent in HTTP
    Authorization: Bearer
    header only. Never logged, never written to any file except
    .env
    in the current working directory when explicitly requested by the user.
External network endpoints:
  • https://api.meshy.ai
    — Meshy AI API (task creation, status polling, model/image downloads)
File system access:
  • Read:
    .env
    /
    .env.local
    in the current working directory only (API key lookup)
  • Write:
    .env
    in the current working directory only (API key storage, only on user request)
  • Write:
    ./meshy_output/
    in the current working directory (downloaded model files, metadata)
  • Read: files explicitly provided by the user (e.g., local images passed for image-to-3D conversion), accessed only at the exact path the user specifies
  • No access to home directories, shell profiles, or any path outside the above
Data leaving this machine:
  • API requests to
    api.meshy.ai
    include the
    MESHY_API_KEY
    in the Authorization header and user-provided text prompts or image URLs. No other local data is transmitted. Downloaded model files are saved locally only.

All paths below are relative to this skill's own directory (the directory containing this SKILL.md). Resolve them before running.
ResourceWhen to use
scripts/meshy_task.py
Bundled CLI for every Meshy API call (create / poll / download / record / …)
scripts/slicers.py
Detect installed slicers; open a model file in a slicer
scripts/fix_obj.py
Fix OBJ coordinate system, scale, and origin for slicers
reference.mdFull API reference: every parameter, response schema, error code
references/setup.mdAPI key setup — read when Step 0 finds no key
references/pipelines.mdGeneration recipes: exact payloads + script calls per endpoint
references/printing.mdPrint pipeline walkthroughs: slicer detection, analyze/repair, white model, multicolor, Creative Lab
references/troubleshooting.mdError recovery trees and task failure messages

访问的环境变量:
  • MESHY_API_KEY
    — API认证令牌,仅在HTTP
    Authorization: Bearer
    头中发送。绝不会被记录,仅当用户明确请求时,才会写入当前工作目录下的
    .env
    文件。
外部网络端点:
  • https://api.meshy.ai
    — Meshy AI API(任务创建、状态轮询、模型/图像下载)
文件系统访问权限:
  • 读取:仅当前工作目录下的
    .env
    /
    .env.local
    文件(用于查找API密钥)
  • 写入:仅当前工作目录下的
    .env
    文件(仅在用户请求时存储API密钥)
  • 写入:当前工作目录下的
    ./meshy_output/
    文件夹(用于保存下载的模型文件和元数据)
  • 读取:用户明确提供的文件(例如用于图像转3D转换的本地图像),仅访问用户指定的精确路径
  • 无权访问主目录、shell配置文件或上述路径以外的任何位置
离开本地机器的数据:
  • 发送至
    api.meshy.ai
    的API请求会在Authorization头中包含
    MESHY_API_KEY
    ,以及用户提供的文本提示或图像URL。不会传输其他本地数据。下载的模型文件仅保存在本地。

以下所有路径均相对于本技能的目录(包含此SKILL.md的目录)。运行前请先解析路径。
资源使用场景
scripts/meshy_task.py
用于所有Meshy API调用的捆绑CLI(创建/轮询/下载/记录/…)
scripts/slicers.py
检测已安装的切片器;在切片器中打开模型文件
scripts/fix_obj.py
修复OBJ坐标系、缩放比例和原点,适配切片器
reference.md完整API参考:所有参数、响应 schema、错误代码
references/setup.mdAPI密钥设置 — 当步骤0未找到密钥时阅读
references/pipelines.md生成方案:每个端点的精确负载+脚本调用方式
references/printing.md打印流程指南:切片器检测、分析/修复、单色模型、多色模型、创意实验室
references/troubleshooting.md错误恢复流程和任务失败提示信息

IMPORTANT: First-Use Session Notice

重要提示:首次使用会话通知

When this skill is first activated in a session, inform the user:
All generated files will be saved to
meshy_output/
in the current working directory. Each project gets its own folder (
{YYYYMMDD_HHmmss}_{prompt}_{id}/
) with model files, textures, thumbnails, and metadata. History is tracked in
meshy_output/history.json
.
This only needs to be said once per session.

当本技能在会话中首次激活时,需告知用户:
所有生成的文件将保存至当前工作目录下的
meshy_output/
文件夹。每个项目会有独立的文件夹(
{YYYYMMDD_HHmmss}_{prompt}_{id}/
),包含模型文件、纹理、缩略图和元数据。历史记录保存在
meshy_output/history.json
中。
此提示每个会话只需告知一次

IMPORTANT: File Organization

重要提示:文件组织规则

All downloaded files MUST go into a structured
meshy_output/
directory in the current working directory. Do NOT scatter files randomly.
  • Each project:
    meshy_output/{YYYYMMDD_HHmmss}_{prompt_slug}_{task_id_prefix}/
  • Chained tasks (preview → refine → rig) reuse the same
    project_dir
  • Track tasks in
    metadata.json
    per project, and global
    history.json
  • Auto-download thumbnails alongside models
The bundled CLI implements this:
project-dir
,
record
, and
thumbnail
subcommands.

所有下载的文件必须存入当前工作目录下结构化的
meshy_output/
目录。请勿随意分散文件
  • 每个项目路径:
    meshy_output/{YYYYMMDD_HHmmss}_{prompt_slug}_{task_id_prefix}/
  • 链式任务(预览→优化→绑定骨骼)复用同一个
    project_dir
  • 在每个项目的
    metadata.json
    和全局
    history.json
    中跟踪任务
  • 自动下载模型对应的缩略图
捆绑CLI已实现此逻辑:包含
project-dir
record
thumbnail
子命令。

IMPORTANT: Shell Command Rules

重要提示:Shell命令规则

Use only standard POSIX tools. Do NOT use
rg
,
fd
,
bat
,
exa
/
eza
.

仅使用标准POSIX工具。禁止使用
rg
fd
bat
exa
/
eza

IMPORTANT: Run Long Tasks Properly

重要提示:正确运行长时任务

Meshy generation takes 1–5 minutes. Run each
poll
as a single Bash call and let it finish — the bundled CLI prints unbuffered progress in real time. Tasks sitting at 99% for 30–120s is normal finalization — do NOT interrupt. Pass a larger
--timeout
for heavy tasks instead of retrying.

Meshy生成任务耗时1-5分钟。将每个
poll
作为单个Bash命令运行并等待完成 — 捆绑CLI会实时输出无缓冲的进度信息。任务停留在99%达30-120秒属于正常的最终处理阶段 — 请勿中断。对于重型任务,应设置更大的
--timeout
参数而非重试。

IMPORTANT: Never Rebuild Bundled Scripts

重要提示:切勿重构捆绑脚本

scripts/meshy_task.py
is the single source of truth for
create_task
/
poll_task
/
download
/
get_project_dir
/
record_task
/
save_thumbnail
. Never retype, paraphrase, or "reconstruct" these helpers from memory — not even partially. Compose CLI calls in bash, or write a small Python script that does
sys.path.insert(0, "<this skill's scripts dir>")
and
from meshy_task import ...
.

scripts/meshy_task.py
create_task
/
poll_task
/
download
/
get_project_dir
/
record_task
/
save_thumbnail
等功能的唯一可信实现。切勿凭记忆重新编写、改写或“重构”这些辅助函数 — 哪怕是部分内容。请通过Bash组合CLI调用,或编写小型Python脚本,通过
sys.path.insert(0, "<本技能的scripts目录>")
from meshy_task import ...
来导入使用。

Step 0: API Key Detection (ALWAYS RUN FIRST)

步骤0:API密钥检测(必须首先执行)

Only the current session environment and
.env
/
.env.local
in the current working directory are checked. Never scan home directories or shell profile files.
bash
python3 scripts/meshy_task.py check-env
仅检查当前会话环境和当前工作目录下的
.env
/
.env.local
文件。绝不扫描主目录或shell配置文件。
bash
python3 scripts/meshy_task.py check-env

Decision After Detection

检测后的决策

  • READY: key=...
    → Proceed to Step 1.
  • READY: NO_KEY_FOUND
    → Go to Step 0a.
  • PYTHON_REQUESTS: MISSING
    → Run
    pip install requests
    .

  • READY: key=...
    → 进入步骤1。
  • READY: NO_KEY_FOUND
    → 进入步骤0a。
  • PYTHON_REQUESTS: MISSING
    → 运行
    pip install requests

Step 0a: API Key Setup (Only If No Key Found)

步骤0a:API密钥设置(仅当未找到密钥时执行)

Follow references/setup.md: create a key at https://www.meshy.ai/settings/api (Pro plan required), verify it against
GET /openapi/v1/balance
, and optionally persist it to
.env
in the current project (auto-added to
.gitignore
).

遵循references/setup.md:在https://www.meshy.ai/settings/api创建密钥(需Pro计划),通过`GET /openapi/v1/balance
验证密钥,可选择将其持久化到当前项目的
.env
文件(会自动添加到
.gitignore`)。

Step 1: Confirm Plan With User Before Spending Credits

步骤1:消耗积分前与用户确认方案

CRITICAL: Before creating any task, present the user with a cost summary and wait for confirmation:
I'll generate a 3D model of "<prompt>" using the following plan:

  1. Preview (mesh generation) — 20 credits
  2. Refine (texturing with PBR) — 10 credits
  3. Download as .glb

  Total cost: 30 credits
  Current balance: <N> credits

  Shall I proceed?
For multi-step pipelines (text-to-3d → rig → animate), show the FULL pipeline cost upfront.
Note: Rigging automatically includes walking + running animations at no extra cost. Only add
Animate
(3 credits) for custom animations beyond those.
关键:创建任何任务前,需向用户展示成本摘要并等待确认:
我将按照以下方案生成“<prompt>”的3D模型:

  1. 预览(网格生成) — 20积分
  2. 优化(添加PBR纹理) — 10积分
  3. 下载为.glb格式

  总成本:30积分
  当前余额:<N>积分

  是否继续?
对于多步骤流程(文本转3D→绑定骨骼→制作动画),需提前展示完整流程的成本。
注意:绑定骨骼会自动包含行走+跑步动画,无需额外付费。仅当需要自定义动画时,才需添加
Animate
(3积分)。

Intent → API Mapping

用户需求→API映射

User wants to...APIEndpointCredits
3D model from textText to 3D
POST /openapi/v2/text-to-3d
5–20 (preview) + 10 (refine)
3D model from one imageImage to 3D
POST /openapi/v1/image-to-3d
5–30
3D model from multiple imagesMulti-Image to 3D
POST /openapi/v1/multi-image-to-3d
5–30
New textures on existing modelRetexture
POST /openapi/v1/retexture
10
Change mesh format/topologyRemesh
POST /openapi/v1/remesh
5
Convert a model to other formats (no remesh)Convert
POST /openapi/v1/convert
1
Rescale a model to real-world sizeResize
POST /openapi/v1/resize
1
Generate fresh UVs (GLB, ≤40k faces) before external texturingUV Unwrap
POST /openapi/v1/uv-unwrap
5
Add skeleton to character (textured humanoid only)Auto-Rigging
POST /openapi/v1/rigging
5
Animate a rigged characterAnimation
POST /openapi/v1/animations
3
Browse animations to pick an
action_id
Animation Library (public, no API key)
GET https://api.meshy.ai/web/public/animations/resources
0
2D image from text (recommended pre-step before image-to-3d)Text to Image
POST /openapi/v1/text-to-image
3 / 6 / 9 / 9
Optimize/edit a 2D image (recommended pre-step before image-to-3d)Image to Image
POST /openapi/v1/image-to-image
3 / 6 / 9 / 12
Photo → styled physical product (figure/lamp/keychain/fridge-magnet)Creative Lab
POST /openapi/creative-lab/{product}/v1/prototype
then
.../build
6 + 30
Check FDM printabilityAnalyze Printability
POST /openapi/v1/print/analyze
0 (free)
Repair non-manifold/degenerate-face/hole topologyRepair Printability
POST /openapi/v1/print/repair
10
Multi-color 3D printMulti-Color Print
POST /openapi/v1/print/multi-color
10 (+ generation)
3D print a model (white)→ See 3D Printing Workflow section20
Check credit balanceBalance
GET /openapi/v1/balance
0

用户需求API类型端点积分
从文本生成3D模型文本转3D
POST /openapi/v2/text-to-3d
5–20(预览)+10(优化)
从单张图像生成3D模型图像转3D
POST /openapi/v1/image-to-3d
5–30
从多张图像生成3D模型多图像转3D
POST /openapi/v1/multi-image-to-3d
5–30
为现有模型添加新纹理重新纹理
POST /openapi/v1/retexture
10
更改网格格式/拓扑结构重新网格化
POST /openapi/v1/remesh
5
将模型转换为其他格式(不重新网格化)格式转换
POST /openapi/v1/convert
1
将模型缩放至真实世界尺寸调整大小
POST /openapi/v1/resize
1
在外部纹理处理前生成新UV(GLB格式,面数≤40k)UV展开
POST /openapi/v1/uv-unwrap
5
为角色添加骨骼(仅带纹理的人形角色)自动绑定骨骼
POST /openapi/v1/rigging
5
为绑定骨骼的角色制作动画动画生成
POST /openapi/v1/animations
3
浏览动画以选择
action_id
动画库(公开,无需API密钥)
GET https://api.meshy.ai/web/public/animations/resources
0
从文本生成2D图像(图像转3D前推荐的前置步骤)文本转图像
POST /openapi/v1/text-to-image
3/6/9/9
优化/编辑2D图像(图像转3D前推荐的前置步骤)图像转图像
POST /openapi/v1/image-to-image
3/6/9/12
照片→风格化实体产品(手办/灯具/钥匙扣/冰箱贴)创意实验室
POST /openapi/creative-lab/{product}/v1/prototype
后接
.../build
6+30
检查FDM打印可行性打印可行性分析
POST /openapi/v1/print/analyze
0(免费)
修复非流形/退化面/孔洞拓扑结构打印修复
POST /openapi/v1/print/repair
10
多色3D打印多色打印
POST /openapi/v1/print/multi-color
10(+生成成本)
3D打印模型(单色)→ 查看3D打印工作流章节20
检查积分余额余额查询
GET /openapi/v1/balance
0

Step 2: Execute the Workflow

步骤2:执行工作流

All generation endpoints return
{"result": "<task_id>"}
, NOT the model — you MUST poll. NEVER read
model_urls
from the POST response.
Every workflow is a sequence of calls to the bundled CLI
scripts/meshy_task.py
— do not write your own API code:
SubcommandPurpose
check-env
Step 0 environment report
balance
Current credit balance
create --endpoint E (--payload JSON | --payload-file F)
Create a task; prints the new task ID
poll --endpoint E --task-id ID [--timeout 300] [--project-dir D]
Poll to completion; saves the task JSON into the project dir
get --endpoint E --task-id ID [--save F]
One-shot status / progress / face_count check
download (--url U | --task-json F [--format FMT]) --output PATH
Stream-download a model file
project-dir --task-id ID [--prompt P]
Create + print the project folder path
record --project-dir D --task-id ID --task-type T --stage S [--files "a,b"]
Update
metadata.json
+
history.json
thumbnail --project-dir D (--url U | --task-json F)
Save the project thumbnail
check-faces --endpoint E --task-id ID [--max-faces 300000]
Pre-rigging polycount gate
Follow the matching recipe in references/pipelines.md: Text to 3D (preview → refine), Image to 3D, Multi-Image to 3D, Retexture, Remesh, Convert / Resize / UV Unwrap, Auto-Rigging + Animation (textured humanoid + t-pose + face-count gate; look
action_id
up in the public catalog), Text/Image to Image.
2D Optimization Pre-Step (strongly recommended): prefer the image-to-3d route over direct text-to-3d — for a text-only request, first make a design image via
/openapi/v1/text-to-image
(
nano-banana-pro
; characters:
generate_multi_view: true
+
pose_mode
), then 3D-ify. For low-quality reference images, clean up first via
/openapi/v1/image-to-image
. 3–9 extra credits typically buy a noticeable quality bump. Skip when the user provides a clean studio shot, and always skip for Creative Lab products (they stylize internally).

所有生成端点返回
{"result": "<task_id>"}
,而非模型 — 必须进行轮询。绝不要从POST响应中读取
model_urls
所有工作流均通过调用捆绑CLI
scripts/meshy_task.py
的子命令序列实现 — 请勿自行编写API代码:
子命令用途
check-env
步骤0的环境报告
balance
查询当前积分余额
`create --endpoint E (--payload JSON \--payload-file F)`
poll --endpoint E --task-id ID [--timeout 300] [--project-dir D]
轮询至任务完成;将任务JSON保存到项目目录
get --endpoint E --task-id ID [--save F]
单次查询状态/进度/面数
`download (--url U \--task-json F [--format FMT]) --output PATH`
project-dir --task-id ID [--prompt P]
创建并输出项目文件夹路径
record --project-dir D --task-id ID --task-type T --stage S [--files "a,b"]
更新
metadata.json
+
history.json
`thumbnail --project-dir D (--url U \--task-json F)`
check-faces --endpoint E --task-id ID [--max-faces 300000]
绑定骨骼前的多边形数量检查
遵循references/pipelines.md中的对应方案:文本转3D(预览→优化)、图像转3D多图像转3D重新纹理重新网格化转换/调整大小/UV展开自动绑定骨骼+动画(带纹理的人形角色+T姿势+面数检查;从公开目录中查找
action_id
)、文本/图像转图像
推荐的2D优化前置步骤:优先选择图像转3D路线而非直接文本转3D — 对于纯文本请求,先通过
/openapi/v1/text-to-image
生成设计图(使用
nano-banana-pro
;角色类设置
generate_multi_view: true
+
pose_mode
),再转换为3D。对于低质量参考图像,先通过
/openapi/v1/image-to-image
清理。额外花费3-9积分通常能显著提升质量。当用户提供清晰的工作室照片时可跳过此步骤,创意实验室产品则始终跳过(内部已做风格化处理)。

3D Printing Workflow

3D打印工作流

IMPORTANT: When the user's request involves 3D printing, use this section for the ENTIRE workflow — including model generation. Do NOT run the generation workflows above and then come here. This section controls
target_formats
and other print-specific parameters from the start.
Trigger when the user mentions: print, 3d print, slicer, slice, bambu, orca, prusa, cura, multicolor, multi-color, 3mf, figurine, miniature, statue, physical model, desk toy, phone stand.
重要提示:当用户请求涉及3D打印时,全程遵循本节流程 — 包括模型生成。 请勿先运行上述生成工作流再转到本节。本节从一开始就控制
target_formats
和其他打印特定参数。
当用户提及以下关键词时触发:print、3d print、slicer、slice、bambu、orca、prusa、cura、multicolor、multi-color、3mf、figurine、miniature、statue、physical model、desk toy、phone stand。

Decision: White Model vs Multicolor

决策:单色模型 vs 多色模型

  1. Detect installed slicers first:
    python3 scripts/slicers.py detect
  2. Ask the user: "White model (single-color) or multicolor?"
  3. If multicolor: check for multicolor-capable slicer (OrcaSlicer, Bambu Studio, Creality Print, Elegoo Slicer, Anycubic Slicer Next), ask max_colors (1-16, default 4) and max_depth (3-6, default 4), confirm cost: 40 credits (+10 if repair is needed)
  4. (Recommended) After generation, run a printability analysis (
    POST /openapi/v1/print/analyze
    , FREE). Run
    POST /openapi/v1/print/repair
    (10 credits) only if status = error.
Then follow the full walkthroughs in references/printing.md:
  • White Model Pipeline (20 credits): generate untextured (
    target_formats: ["obj"]
    ) → download OBJ →
    scripts/fix_obj.py
    (Y-up→Z-up, scale to mm, center, bottom at Z=0) → open in slicer
  • Multicolor Pipeline (40 credits): generate + texture (refine/retexture REQUIRED) → multi-color API → download 3MF → open in multicolor slicer. The multi-color API outputs 3MF directly — no coordinate conversion, no
    target_formats
    needed at generation.
  • Creative Lab (36 credits): photo →
    prototype
    (6) →
    build
    (30) → textured GLB, ready to print; multicolor via
    model_url
    .
  • Print-quality checklist (wall thickness, overhangs, base stability, …) is in references/printing.md.
Key rules: always detect slicer first and report; always run the FREE analyze for production/functional prints; repair only on
error
(or
warning
when quality matters); repair does NOT preserve textures (repair → re-texture → multicolor); if OBJ is unavailable, download GLB and import manually; after opening in a slicer, remind the user to check print settings (layer height, infill, supports).

  1. 首先检测已安装的切片器
    python3 scripts/slicers.py detect
  2. 询问用户:“单色模型(单颜色)还是多色模型?”
  3. 若选择多色:检查是否支持多色的切片器(OrcaSlicer、Bambu Studio、Creality Print、Elegoo Slicer、Anycubic Slicer Next),询问最大颜色数(1-16,默认4)和最大深度(3-6,默认4),确认成本:40积分(如需修复额外+10积分)
  4. (推荐) 生成后运行打印可行性分析
    POST /openapi/v1/print/analyze
    ,免费)。仅当状态为error时运行**
    POST /openapi/v1/print/repair
    **(10积分)。
然后遵循references/printing.md中的完整指南:
  • 单色模型流程(20积分):生成无纹理模型(
    target_formats: ["obj"]
    )→下载OBJ→运行
    scripts/fix_obj.py
    (Y轴向上转Z轴向上、缩放至毫米单位、居中、底部对齐Z=0)→在切片器中打开
  • 多色模型流程(40积分):生成+纹理(必须优化/重新纹理)→调用多色API→下载3MF→在多色切片器中打开。多色API直接输出3MF格式 — 无需坐标转换,生成时无需设置
    target_formats
  • 创意实验室流程(36积分):照片→
    prototype
    (6积分)→
    build
    (30积分)→带纹理的GLB,可直接打印;通过
    model_url
    实现多色打印。
  • 打印质量检查清单(壁厚、悬垂、底座稳定性等)见references/printing.md
核心规则:始终先检测切片器并报告;对于量产/功能型打印,始终运行免费的分析;仅在
error
时修复(或对质量有要求时在
warning
时修复);修复不会保留纹理(修复→重新纹理→多色);若无法获取OBJ,下载GLB并手动导入;在切片器中打开后,提醒用户检查打印设置(层高、填充率、支撑等)。

Step 3: Report Results

步骤3:报告结果

After task succeeds:
  1. Downloaded file paths and sizes
  2. Task IDs (for follow-up: refine, rig, retexture)
  3. Available formats (list
    model_urls
    keys)
  4. Credits consumed + current balance (task JSON has
    consumed_credits
    ; run
    balance
    )
  5. Suggested next steps:
    • Preview done → "Want to refine (add textures)?"
    • Model done → "Want to rig this character?"
    • Rigged → "Want to apply a custom animation?"
    • Any textured model → "Want to 3D print this? Multicolor printing is available!"
    • Any model → "Want to 3D print this?"

任务成功后:
  1. 下载文件的路径和大小
  2. 任务ID(用于后续操作:优化、绑定骨骼、重新纹理)
  3. 可用格式(列出
    model_urls
    的键)
  4. 消耗的积分+当前余额(任务JSON包含
    consumed_credits
    ;运行
    balance
    查询)
  5. 建议后续操作:
    • 预览完成 → “是否需要优化(添加纹理)?”
    • 模型完成 → “是否需要为该角色绑定骨骼?”
    • 绑定骨骼完成 → “是否需要应用自定义动画?”
    • 任何带纹理的模型 → “是否需要3D打印此模型?支持多色打印!”
    • 任何模型 → “是否需要3D打印此模型?”

Error Recovery

错误恢复

On any failure, follow references/troubleshooting.md: HTTP status handling (401/402/422/429/5xx), retry policy, and known task
FAILED
messages. The bundled CLI auto-reports the current balance on 402 and exits non-zero with the server's error message on failure.

遇到任何失败时,遵循references/troubleshooting.md:HTTP状态处理(401/402/422/429/5xx)、重试策略,以及已知的任务
FAILED
提示信息。捆绑CLI会在402状态时自动报告当前余额,并在失败时以非零状态码退出并输出服务器的错误信息。

Known Behaviors & Constraints

已知行为与限制

  • 99% stall: Normal finalization (30–120s). Do NOT interrupt.
  • Asset retention: Files deleted after 3 days (non-Enterprise). Download immediately.
  • PBR maps: Must set
    enable_pbr: true
    explicitly.
  • Refine: Works with
    meshy-5
    ,
    meshy-6
    , or
    latest
    — pick the same family as your preview for consistency. 10 credits regardless of model. (
    meshy-4
    is retired → 400.)
  • Deprecated params:
    symmetry_mode
    no longer affects output;
    art_style
    is ignored by Meshy-6; use
    pose_mode
    instead of the old
    is_a_t_pose
    flag; use
    texture_resolution
    (
    "2k"
    /
    "4k"
    /
    "8k"
    ) instead of
    hd_texture
    ; on image-to-3d use
    model_type: "smart-topology"
    (with
    ai_model: "meshy-t2"
    ) instead of the deprecated
    "lowpoly"
    . Smart Topology is image-to-3d only — Text to 3D and Multi-Image to 3D don't have it.
  • Rigging needs textures: rig the textured task (text-to-3d refine, or image-to-3d with
    should_texture: true
    ) — untextured meshes are unsupported, so a mesh-only preview fails. Also: bipedal humanoid only, ≤300k faces via
    input_task_id
    , and a
    model_url
    model must face +Z.
  • Inspect before downloading: pass
    multi_view_thumbnails: true
    on image-to-3d / multi-image-to-3d and read
    thumbnail_urls
    (front/right/back/left, 512×512 PNG) instead of pulling a 50–200 MB GLB just to check the result. ~3s extra latency.
  • Never hardcode
    action_id
    : fetch
    GET https://api.meshy.ai/web/public/animations/resources
    (public, no key,
    ?category=
    to narrow) and match the user's intent against
    name
    /
    category
    . IDs are not
    1..N
    — the catalog includes
    -2
    ,
    -1
    ,
    0
    .
  • consumed_credits
    : Every task GET response includes
    consumed_credits
    — read it to report the real credits spent rather than estimating. A
    FAILED
    task reports
    0
    (credits are refunded), so a transient failure can be retried without re-approving the spend.
  • Rigging: Humanoid bipedal only, polycount ≤ 300,000 (enforced by
    check-faces
    ).
  • Printing formats: White model → OBJ with
    scripts/fix_obj.py
    . Multicolor → 3MF from Multi-Color Print API. Always detect slicer first.
  • Download format: Ask the user which format they need before downloading. GLB (viewing), OBJ (printing), 3MF (multicolor), FBX (games), USDZ (AR). Do NOT download all formats.
  • 3MF for multicolor: Multi-Color Print API outputs 3MF directly — no need to request 3MF from generate/refine. For non-print use cases needing 3MF, pass
    "3mf"
    in
    target_formats
    .
  • Timestamps: All API timestamps are Unix epoch milliseconds.

  • 停留在99%:属于正常的最终处理阶段(30-120秒)。请勿中断。
  • 资产保留期限:文件在3天后删除(非企业版)。请立即下载。
  • PBR贴图:必须显式设置
    enable_pbr: true
  • 优化:适用于
    meshy-5
    meshy-6
    latest
    — 为保持一致性,请选择与预览相同的系列。无论模型如何,均需10积分。(
    meshy-4
    已停用→返回400错误。)
  • 已弃用参数
    symmetry_mode
    不再影响输出;
    art_style
    被Meshy-6忽略;使用
    pose_mode
    替代旧的
    is_a_t_pose
    标志;使用
    texture_resolution
    "2k"
    /
    "4k"
    /
    "8k"
    )替代
    hd_texture
    ;图像转3D时使用
    model_type: "smart-topology"
    (搭配
    ai_model: "meshy-t2"
    )替代已弃用的
    "lowpoly"
    。Smart Topology仅适用于图像转3D — 文本转3D和多图像转3D不支持此参数。
  • 绑定骨骼要求:需为带纹理的任务(文本转3D的优化结果,或设置
    should_texture: true
    的图像转3D结果)绑定骨骼 — 无纹理网格不被支持,因此仅含网格的预览任务会失败。此外:仅支持双足人形角色,通过
    input_task_id
    传入的模型面数≤300k,且
    model_url
    对应的模型必须朝向+Z轴。
  • 下载前预览:在图像转3D/多图像转3D时设置
    multi_view_thumbnails: true
    ,读取
    thumbnail_urls
    (前/右/后/左视图,512×512 PNG),无需下载50-200MB的GLB即可查看结果。仅增加约3秒延迟。
  • 切勿硬编码
    action_id
    :调用
    GET https://api.meshy.ai/web/public/animations/resources
    (公开,无需密钥,可通过
    ?category=
    筛选),根据用户需求匹配
    name
    /
    category
    。ID并非
    1..N
    — 目录包含
    -2
    -1
    0
    等值。
  • consumed_credits
    :每个任务的GET响应均包含
    consumed_credits
    — 读取此值以报告实际消耗的积分,而非估算。失败任务的
    consumed_credits
    0
    (积分已退还),因此临时失败的任务可重试,无需重新确认花费。
  • 绑定骨骼限制:仅支持双足人形角色,多边形数量≤300,000(由
    check-faces
    强制执行)。
  • 打印格式:单色模型→通过
    scripts/fix_obj.py
    处理后的OBJ。多色模型→多色打印API输出的3MF。始终先检测切片器。
  • 下载格式:下载前询问用户所需格式。GLB(查看用)、OBJ(打印用)、3MF(多色打印用)、FBX(游戏用)、USDZ(AR用)。请勿下载所有格式。
  • 多色打印用3MF:多色打印API直接输出3MF — 无需从生成/优化请求中获取3MF。对于非打印场景需要3MF格式的,在
    target_formats
    中传入
    "3mf"
  • 时间戳:所有API时间戳均为Unix时间戳(毫秒)。

Execution Checklist

执行检查清单

  • Ran API key detection (
    check-env
    , Step 0) — checked env var and
    .env
    /
    .env.local
    only
  • API key verified (never printed in full)
  • Presented cost summary and got user confirmation
  • Composed the workflow from bundled script calls (never retyped the helpers)
  • Followed the matching recipe in references/pipelines.md or references/printing.md
  • Reported file paths, formats, task IDs, and balance
  • Suggested next steps

  • 已执行API密钥检测(
    check-env
    ,步骤0)— 仅检查环境变量和
    .env
    /
    .env.local
    文件
  • API密钥已验证(从未完整打印)
  • 已展示成本摘要并获得用户确认
  • 通过捆绑脚本调用组合工作流(从未重新编写辅助函数)
  • 遵循了references/pipelines.md或references/printing.md中的对应方案
  • 已报告文件路径、格式、任务ID和余额
  • 已建议后续操作

Additional Resources

额外资源

For the complete API endpoint reference including all parameters, response schemas, and error codes, read reference.md.
如需包含所有参数、响应schema和错误代码的完整API端点参考,请阅读reference.md。",