返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

meshy-ai

使用Meshy.ai REST API生成资源:(1) 文本到2D(Meshy文本转图像)和(2) 图像到3D,然后将输出本地下载。当用户想要Meshy生成的内容、需要轮询异步任务时,特别是当他们希望将最终的OBJ文件保存到磁盘上时使用。需要在环境中设置MESHY_API_KEY。

person作者: jakexiaohubgithub

Meshy.ai

Generate Meshy assets via API and save outputs locally.

Setup

  • Add env var: MESHY_API_KEY=msy-...
  • Optional: MESHY_BASE_URL (defaults to https://api.meshy.ai)

Text → 2D (Text to Image)

Use scripts/text_to_image.py.

python3 skills/public/meshy-ai/scripts/text_to_image.py \
  --prompt "a cute robot mascot, flat vector style" \
  --out-dir ./meshy-out
  • Downloads one or more images (if multi-view) into ./meshy-out/text-to-image_<taskId>_<slug>/.

Image → 3D (always save OBJ)

Use scripts/image_to_3d_obj.py.

Local image

python3 skills/public/meshy-ai/scripts/image_to_3d_obj.py \
  --image ./input.png \
  --out-dir ./meshy-out

Public URL

python3 skills/public/meshy-ai/scripts/image_to_3d_obj.py \
  --image-url "https://.../input.png" \
  --out-dir ./meshy-out
  • Always downloads model.obj (and model.mtl if provided by Meshy) into ./meshy-out/image-to-3d_<taskId>_<slug>/.

Notes

  • Meshy tasks are async: create → poll until status=SUCCEEDED → download URLs.
  • API reference for this skill: references/api-notes.md.