fail2ban自动上报
自动上报封禁IP到A
该技能通过Meshy.ai REST API实现文本转2D图像、图片转3D模型的自动化流程,支持异步任务轮询并将结果文件保存至本地磁盘。
1. 环境配置
export MESHY_API_KEY=msy-...
# 可选:自定义API地址
export MESHY_BASE_URL=https://api.meshy.ai
2. 安装依赖
确保Python环境已安装requests等HTTP库,脚本路径位于skills/public/meshy-ai/scripts/。
3. 文本生成2D图像
python3 skills/public/meshy-ai/scripts/text_to_image.py \
--prompt "a cute robot mascot, flat vector style" \
--out-dir ./meshy-out
输出目录:./meshy-out/text-to-image_<taskId>_<slug>/
4. 图片生成3D模型
本地图片:
python3 skills/public/meshy-ai/scripts/image_to_3d_obj.py \
--image ./input.png \
--out-dir ./meshy-out
网络图片:
python3 skills/public/meshy-ai/scripts/image_to_3d_obj.py \
--image-url "https://.../input.png" \
--out-dir ./meshy-out
输出目录:./meshy-out/image-to-3d_<taskId>_<slug>/(含model.obj及model.mtl)
见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | 文本提示词、本地图片路径、网络图片URL、输出目录参数、MESHY_API_KEY环境变量 |
| 输出 | 2D图像文件、3D OBJ模型、MTL材质文件、任务执行日志 |
| 适用人群 | 游戏开发者、3D设计师、原型制作人员、自动化工作流搭建者 |
| 不包含 | 账号管理、模型编辑、多格式导出、图形化界面 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/sabatesduran/clawdbot-meshyai-skill/SKILL.md
来源类型:GitHub仓库