
Game Assets
- 491 installs
- 30 repo stars
- Updated August 4, 2026
- meowa-ai/meowa-skills
Helps with ai & agent building tasks.
About
game-assets is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.
- game-assets
- AI & Agent Building
- AI-coding skill
Game Assets by the numbers
- 491 all-time installs (skills.sh)
- +61 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #1,791 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/meowa-ai/meowa-skills --skill game-assetsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 491 |
|---|---|
| repo stars | ★ 30 |
| Last updated | August 4, 2026 |
| Repository | meowa-ai/meowa-skills ↗ |
What it does
Helps with ai & agent building tasks.
Files
Meowa Game Assets
This skill is a stable loader for the current Meowa game-assets guide.
Required First Step
Before choosing any Meowa command or workflow, fetch the latest guide:
python3 meowart_api.py skill-doc --task "<brief user request>"If you are already in the skills/game-assets/ directory, use:
python3 ./meowart_api.py skill-doc --task "<brief user request>"If you are calling the script from the skill repository root, use:
python3 skills/game-assets/meowart_api.py skill-doc --task "<brief user request>"Follow the returned Markdown for command selection, API details, templates, output directories, and validation steps. The command automatically falls back to bundled meowart_api.md if the remote guide is unavailable.
Diagnostics
Use these commands when the dynamic guide or runner version needs inspection:
python3 meowart_api.py skill-doc-status --check
python3 meowart_api.py bootstrap-status --checkmeowart_api.py also has a bootstrap wrapper. Normal command runs silently check the remote runner manifest, download a newer checksummed runner when available, and execute that cached runner. This updates the CLI runner only. Changes to this loader file still require reinstalling/updating the skill and restarting Codex.
Fixed Rules
- Do not expose API keys, developer keys, signed URLs, or other secrets in chat.
- Prefer environment variables or a local
.envfor credentials. - Do not call bare
/generateor/api/generate; use the current guide for the correct Meowa endpoint. - For pixel assets, previews and manual resizing must use nearest-neighbor sampling.
- Do not manually shrink pixel art for display; if a smaller final asset is needed, use the workflow or post-processing path specified by the current guide.
- Generated outputs should be placed in an explicit task directory so the files are easy to inspect and reuse.
{
"version": "2026.06.14.1",
"min_bootstrap_version": 1,
"runner_url": "https://raw.githubusercontent.com/Meowa-AI/meowa-skills/main/skills/game-assets/meowart_api.py",
"sha256": "3165f01d6911b1f7077f678fff934060a5b9849503dfe90bdaeed01c893d5308"
}
Meowa API 简明文档
常用脚本:
skills/meowart_api.py
这个文档只保留最常用的调用方式,作为快速入口。 需要确认完整 CLI 参数时,可以查看脚本的 --help。
重要 endpoint 规则:
- 不存在
POST /generate或POST /api/generate。 - 像素资产生成固定使用
POST /api/pixel-gen,再用GET /api/pixel-gen/jobs?id=<api_job_id>轮询。 - 高清资产生成固定使用
POST /api/hd-gen,再用GET /api/hd-gen/jobs?id=<api_job_id>轮询。 - 通用 Gemini 代理使用
POST /api/gemini/...或封装命令gemini-generate-content。 - 如果调用方收到 404 且路径是
/generate,先修正 endpoint,不要把它解释为 API key 无效。
可用能力概览:
credits-balance:查询当前账号剩余 credit,适合在批量生成前先确认额度是否充足。pixel-gen-run:像素资产默认入口。基于模板生成像素图片,适合角色、怪物、物件、道具、icon、UI 小图标、通用大尺寸像素角色和多比例像素资产;命令会自动提交、轮询并保存结果。某些模板支持批量生成 N 个 Sprite,但是费用不变。hd-gen-run:高清非像素资产入口。基于 HD 模板生成透明 PNG 角色、图标、物品包等;命令会自动提交、轮询并保存结果。character-multi-view-run:从一张已有角色参考图生成角色八向图,输出 8 张透明方向图和一个 3x3 预览图;支持pixel和hd模式。gemini-generate-content:通用生成入口(nano banana),适合非像素概念图、高清/插画资产、大幅完整背景概念稿、UI 整体视觉稿。不要把它作为像素 sprite、像素角色、像素道具、像素 icon 的默认入口;像素资产只有没有合适模板或用户明确不用模板时才 fallback 到这里。self-loop-run:基于现有图片生成 self-loop 无缝循环图。目前支持横向或纵向无缝拼接,适合用于横版卷轴背景、纵向场景和可重复平铺的纹理。texture-gen-run:生成单张像素纹理 texture,适合水面、石块、墙面、木板、岩浆等可平铺地表或材质;默认追加四方连续后处理。tileset-gen-run:生成 dual-grid 15 地形过渡 tileset,适合草地/水面、石地/岩浆等前景和背景 terrain 过渡。map-reference-search/map-reference-download:搜索并下载 Meowa 内置地图 preset 图片。地图类需求必须先查这里;如果已有合适图片,直接用 preset,不要再生成。isometric-gen-run:生成像素等角地图块,后端 workflow 为pixel_isometric_gen。hex-isometric-gen-run:生成像素六角等角地图块,后端 workflow 为pixel_hex_isometric_gen。hd-isometric-gen-run:生成高清等角地图块,后端 workflow 为hd_isometric_gen。hd-hex-isometric-gen-run:生成高清六角等角地图块,后端 workflow 为hd_hex_isometric_gen。remove-background-run:对现有图片做去背景处理- 像素图片使用
pixel模式,只支持去白色背景。支持任意尺寸输入,最好提前做过 pixelate,且不需要提前缩放到 nano banana尺寸。 - 普通图片使用
hd,支持任意背景色 pixelate-run:把较大的图片重新收敛成更干净的像素风输出,适合在 AI 先生成大图后,将其变为完美像素的 Sprite。animate-run:基于单张角色图生成动作动画,适合做角色待机、跑步、跳跃、弹跳这类短循环动画。sound-run/sfx-run:生成短音效,适合 UI 点击、攻击、拾取、爆炸、技能、环境短音;支持单条、音效包、同音效多版本。music-run:生成结构化音乐描述,可选继续生成音乐音频;适合游戏 BGM、主题曲、场景音乐方向测试。
0. 命令选择
- 明确要像素图、pixel art、sprite、角色、怪物、道具、物品、icon、UI 小图标时:先执行
pixel-gen-template-info,再用合适模板执行pixel-gen-run。 - 明确要通用像素角色、大尺寸像素角色、非 1:1 比例像素角色/物件、或没有命中特定内容模板的像素资产时:优先选择
workflow_id为pixel_gen_general的模板,例如large_3_4、large_9_16、large_16_9、xlarge_1_2,仍然使用pixel-gen-run,不要改走gemini-generate-content。 - 明确要高清非像素角色、透明 PNG、高清 icon 或物品包时:先执行
hd-gen-template-info,再用hd-gen-run。 - 明确要“角色八向图 / 8-direction character / 多方向角色图”,且已有一张角色参考图时:执行
character-multi-view-run,不要用普通 direction 模板逐张生成。 - 明确要可平铺 texture / material tile / 地表纹理时:执行
texture-gen-run。 - 明确要 terrain tileset / dual-grid 地形过渡图时:执行
tileset-gen-run。 - 明确要地图块、isometric tile、hex tile、HD isometric map、地图 preset 时:先执行
map-reference-search。命中合适结果时执行map-reference-download或map-reference-search --download,直接交付 preset;只有没有合适 preset 时才执行对应的*-isometric-gen-run生成。 - 明确要 SFX、音效、UI click、攻击、拾取、爆炸、技能音时:执行
sound-run或sfx-run。 - 不要因为需求写了“人物”“背景”“场景”就直接使用
gemini-generate-content。如果最终要求是像素资产,pixel-gen-run优先。 - 只有非像素概念图、高清插画、完整大背景概念稿、UI 整体视觉稿,或明确没有合适 pixel template 时,才使用
gemini-generate-content。 - 像素资产 fallback 到
gemini-generate-content后不能直接交付:继续跑pixelate-run,需要透明图时再跑remove-background-run --method pixel,并检查尺寸和透明通道。
1. 鉴权
在使用 Meowa API 前,先登录 https://meowa.ai/#/api-keys,然后点击左侧的 Create API Key 按钮,创建一个 token。
默认使用真实用户 API key:
Authorization: Bearer ma_live_xxxxxxxxxxxxxxxxxxxx环境变量里只放 ma_live_... 本身,不要把 authenticate: 这类标签一起复制进去。
项目调试或后端自部署环境也支持开发者鉴权:
X-Dev-Key: xxxxxxxxxxxxxxxxxxxx推荐先设置环境变量:
export MEOWART_API_KEY="ma_live_xxxxxxxxxxxxxxxxxxxx"skills/meowart_api.py 在未显式传入 --api-key 时,会自动读取这个环境变量。 如果传入 --dev-key,或设置 MEOWART_DEV_KEY / DEV_API_KEY,脚本会改用 X-Dev-Key 调用后端。读取顺序优先级是:
1. --dev-key 2. MEOWART_DEV_KEY 或 DEV_API_KEY 3. .env 里的 MEOWART_DEV_KEY 或 DEV_API_KEY 4. --api-key 5. MEOWART_API_KEY 6. .env 里的 MEOWART_API_KEY
也可以写入当前目录、skills/ 目录或项目根目录的 .env:
MEOWART_API_KEY="ma_live_xxxxxxxxxxxxxxxxxxxx"
MEOWART_DEV_KEY="xxxxxxxxxxxxxxxxxxxx"推荐优先使用环境变量或 .env,尽量不要在每次调用 API 时都显式传入 --api-key,因为这样不够安全,容易出现在 shell 历史、日志或截图里。
如果运行时找不到 MEOWART_API_KEY,应先提醒用户配置 key;需要时也可以直接帮用户打开 API key 页面:
open "https://meowa.ai/#/api-keys"这样用户可以立刻前往创建或查看自己的 API key。
2. 安装
pip install requests
python3 skills/meowart_api.py --help2.1 Bootstrap 自动更新
meowart_api.py 自带 bootstrap wrapper。正常执行命令时,它会先检查远端 meowart_api.bootstrap.json,如果发现更高版本的 CLI runner,会下载新的 meowart_api.py 到本机缓存,校验 SHA-256 后再执行缓存 runner。检查或下载失败 不会中断当前任务,会自动回退到 skill 内置脚本。
常用命令:
python3 skills/meowart_api.py bootstrap-status
python3 skills/meowart_api.py bootstrap-status --check
python3 skills/meowart_api.py --no-bootstrap credits-balance
python3 skills/meowart_api.py --bootstrap-force credits-balance常用环境变量:
MEOWART_BOOTSTRAP=0:关闭本次/当前环境的 bootstrap 检查。MEOWART_BOOTSTRAP_MANIFEST_URL=...:改用自定义 manifest 地址。MEOWART_BOOTSTRAP_CACHE_DIR=...:改用自定义缓存目录。MEOWART_BOOTSTRAP_VERBOSE=1:打印 bootstrap 诊断信息。MEOWART_BOOTSTRAP_TIMEOUT=2:设置 manifest/runner 下载超时时间,单位秒。
这个机制更新的是 CLI runner。SKILL.md 的触发描述和路由说明仍然是 Codex 启动时加载的内容;如果这些说明发生变化,仍需要执行 skills update 或重新安装 skill,并重启 Codex。
2.2 动态 Skill 指南
SKILL.md 是稳定 loader。真正会频繁变化的命令选择策略、API 说明、模板建议 通过动态指南获取:
python3 skills/meowart_api.py skill-doc --task "生成 64x64 像素道具"
python3 skills/meowart_api.py skill-doc --topic pixel-gen
python3 skills/meowart_api.py skill-doc-status --checkskill-doc 默认请求 Meowa 后端的公开只读文档接口,并缓存到 ~/.cache/meowa-skills/game-assets/docs/。如果网络不可用、接口异常或校验失败, 会自动回退到当前 bundled meowart_api.md。
3. Credits
python3 skills/meowart_api.py credits-balance4. General Image Generation
For non-pixel concepts, high-resolution illustration, full-scene background concepts, and broad UI mockups, use generateContent:
python3 skills/meowart_api.py \
gemini-generate-content \
--text "Write a one-line description of a cream sofa"Reference images can be passed as inline Gemini image parts. --image-file can be repeated; --reference-image and --reference-file are aliases:
python3 skills/meowart_api.py \
gemini-generate-content \
--text "Generate a matching 16:9 background concept using this character's palette." \
--image-file ./reference_character.png \
--generation-config '{"responseModalities":["TEXT","IMAGE"],"imageConfig":{"aspectRatio":"16:9","imageSize":"2K"}}'If you need to customize the path or request body, check the gemini-* subcommands in skills/meowart_api.py.
5. 像素 Sprite / 角色 / 道具 / Icon 生成
pixel-gen 是像素资产的默认入口。最常用的命令是 pixel-gen-run,它会自动完成提交、轮询和结果下载。 底层 endpoint 是 POST /api/pixel-gen,不是 /generate。
python3 skills/meowart_api.py \
pixel-gen-run \
--template-name "pixel_character_large" \
--requirement "A fox rogue with twin daggers" \
--template-config '{"direction":"left"}'常用参数:
--template-name--requirement--template-config '{}'--dry-run--output-dir ./outputs/pixel_gen--reference-file ./reference.png--reference-files ./ref2.png,可重复,适合pixel_gen_general这类需要多张用户参考图的场景
--dry-run 只打印计划提交的 request 和预计输出目录,不提交任务、不消耗额度,也不需要 API key。它适合在正式生成前确认模板、尺寸、输出路径是否符合预期。
如果需要让服务端根据用户参考图解析需求或保持色彩/造型倾向,可以传 --reference-file。需要多张参考图时,继续追加 --reference-files。这些参数会分别作为 /api/pixel-gen 的 reference_file 和 reference_files multipart 字段上传。
现在脚本也兼容把通用参数写在子命令后面,例如 --api-base、--api-key、--timeout、--max-wait、--poll-interval、--output-dir、--work-dir、--no-download、--insecure。下面两种写法都可以:
python3 skills/meowart_api.py --timeout 120 --output-dir ./outputs pixel-gen-run ...
python3 skills/meowart_api.py pixel-gen-run --timeout 120 --output-dir ./outputs ...*-run 命令在提交成功后,也会立刻打印:
planned_output_dir=...:预计保存目录submitted api_job_id=...:服务端任务 id
requirement 的写法建议
这里最容易犯错的一点是:--requirement 不等于“最终发给模型的完整 prompt”。
模板选择建议
- 物品、Icon、小动物:推荐优先使用
food、object模板,单次通常可以生成8个64x64像素对象。 - 人物、主角、怪物角色:小尺寸批量角色优先使用
pixel_char模板,单次通常可以生成2个128x128对象;大尺寸 1:1 角色优先看large_portrait;通用像素角色、大尺寸非 1:1 角色或没有命中特定角色模板时,优先选择pixel_gen_general模板。 pixel_gen_general模板是通用像素生成链路:16_9、4_3、3_4、9_16适合中等尺寸两图输出;large_16_9、large_4_3、large_3_4、large_9_16适合大尺寸两图输出;xlarge_1_2、xlarge_2_1、xlarge_2_3、xlarge_3_2适合单张超大比例输出。- 选择
pixel_gen_general时,模板名里的比例就是最终资产方向:竖版角色常用large_3_4、large_9_16或xlarge_1_2,横版角色/载具/场景物件常用large_4_3、large_16_9或xlarge_2_1。 - 具体模板名称、输出尺寸和数量以
pixel-gen-template-info返回为准;如果模板列表变化,优先相信接口返回。 - 批量生成时,可以在
--requirement里分别描述多个对象的外观,也可以一句话描述整体需求,让服务端按模板数量补充变体。尽量一次性生成模板支持的最大数量,因为价格和质量通常没有区别,多生成一些更方便挑选。
- 模板会先根据自己的默认配置决定一次生成几个对象,例如
cat_2默认是8个。 - 服务端会结合模板的
target_count,把你的requirement解析并包装成真正的生成 prompt。并对你的 prompt 进行一定的润色或精简。 - 所以对于
cat、cat_2等批量模板,--requirement更适合写“这一批要生成什么”,而不是写成“生成一只……白色背景……完整角色……”这种单图式 prompt。
更具体地说:
- 如果模板默认就是批量生成
8个 sprite,那么--requirement "猫咪"不是“只生成 1 只”,而是会被服务端理解成“生成 8 个猫咪”。 - 如果你想让 8 个 sprite 更有区分度,应该在
requirement里直接描述一批变体,例如:三花、橘猫、奶牛猫、暹罗、英短、美短、狸花、纯白猫,每一只都带着不同的帽子。 - 不要在
requirement里重复写模板已经隐含的约束,例如很多pixel-gen模板本身就默认是白底/透明底,这种情况下再写“白色背景”通常是冗余的,只做内容的描述,一切的其他部分模板内部都会自动化掉。 - 不要把“生成一个角色”的说法机械地套到批量模板上;单体模板和批量模板的
requirement写法应该不同。
推荐示例:
通用大尺寸像素角色:
python3 skills/meowart_api.py \
pixel-gen-run \
--template-name "large_3_4" \
--requirement "two full-body fantasy pixel characters: a silver-armored knight and a red-robed fire mage" \
--output-dir ./outputs/pixel_general_characters通用横版像素角色或物件:
python3 skills/meowart_api.py \
pixel-gen-run \
--template-name "large_16_9" \
--requirement "two side-view pixel airships with brass hulls and blue crystal engines" \
--output-dir ./outputs/pixel_general_airships带多张参考图的 pixel_gen_general:
python3 skills/meowart_api.py \
pixel-gen-run \
--template-name "xlarge_1_2" \
--requirement "one tall full-body pixel heroine, preserve the outfit silhouette and color palette from the references" \
--reference-file ./ref_pose.png \
--reference-files ./ref_palette.png \
--output-dir ./outputs/pixel_xlarge_heroine普通批量 sprite:
python3 skills/meowart_api.py \
pixel-gen-run \
--template-name "cat_2" \
--requirement "三花、橘猫、奶牛猫、暹罗、英短、美短、狸花、纯白猫"如果你只是想快速试一下模板是否能跑通,甚至可以更短:
python3 skills/meowart_api.py \
pixel-gen-run \
--template-name "cat_2" \
--requirement "猫咪"此时服务端仍会按照该模板默认的 target_count 去生成一整批结果,而不是只生成 1 张。
如果你只是想先看有哪些模板,可以先执行:
python3 skills/meowart_api.py pixel-gen-template-info如果模板信息里写了 supports_direction: true,那么这个模板支持设置朝向。 设置方式不是单独传 --direction,而是放在 --template-config 里,例如:
python3 skills/meowart_api.py \
pixel-gen-run \
--template-name "pixel_character_large" \
--requirement "A fox rogue with twin daggers" \
--template-config '{"direction":"left"}'可以先用 pixel-gen-template-info 查看模板返回的 directions 和 default_direction,再决定传什么值。
如果需要查看完整命令列表,可以运行:
python3 skills/meowart_api.py --help6. HD 资产生成
HD Gen 是非像素高清资产入口,适合透明 PNG 角色、高清 icon、物品包等。
先查看可用模板:
python3 skills/meowart_api.py hd-gen-template-info提交并等待高清生成:
python3 skills/meowart_api.py \
hd-gen-run \
--template-name "hd_char_1" \
--requirement "A cheerful fantasy alchemist girl with green cloak" \
--template-config '{"direction":"front"}' \
--output-dir ./outputs/hd_alchemist常用参数:
--template-name--requirement--template-config '{}'--reference-file ./reference.png--reference-files ./ref2.png,可重复--hd-remove-bg-mode batch|single--output-dir ./outputs/hd_asset
已经有任务 id 时:
python3 skills/meowart_api.py hd-gen-poll --api-job-id <api_job_id>
python3 skills/meowart_api.py hd-gen-download --api-job-id <api_job_id> --output-dir ./outputs/hd_download6.1 角色八向图 / Character Multi-View
已有一张角色参考图,并且目标是生成同一个角色的 8 个方向视图时,使用 character-multi-view-run。 它会调用后端 character_multi_view_generator workflow,输出 8 张透明 PNG 方向图和一个中心留空的 3x3 预览图。
像素八向图:
python3 skills/meowart_api.py \
character-multi-view-run \
--reference-image ./hero_front.png \
--mode pixel \
--output-dir ./outputs/hero_8_direction高清八向图:
python3 skills/meowart_api.py \
character-multi-view-run \
--reference-image ./hero_front.png \
--mode hd \
--output-size 1024 \
--output-dir ./outputs/hero_hd_8_direction常用参数:
--reference-image ./hero.png或--image-file ./hero.png--mode pixel|hd--canvas-resolution AUTO|1K|2K|4K--output-size 512:可选,指定每张方向图的最终正方形尺寸。--temperature 0.0
别名:character-8-direction-run 和 character-eight-direction-run 等价于 character-multi-view-run。 如果已经有任务 id,可以用:
python3 skills/meowart_api.py character-multi-view-poll --api-job-id <api_job_id>7. Remove Background
像素图通常用:
python3 skills/meowart_api.py \
remove-background-run \
--image-file ./pixel_image.png \
--method pixel高清图使用:
python3 skills/meowart_api.py \
remove-background-run \
--image-file ./hd_image.png \
--method hd8. Pixelate
python3 skills/meowart_api.py \
pixelate-run \
--image-file ./input.png这个命令适合先把较大的 AI 图收敛成更干净的小尺寸像素图,再继续做去背景等处理。
9. Self-Loop Image Generation
python3 skills/meowart_api.py \
self-loop-run \
--image-file ./tile.png \
--direction horizontalself-loop-run 默认使用 basic 模式,适合单方向横向或纵向补缝。如果需要四向连续的完整循环图,使用 full 模式:
python3 skills/meowart_api.py \
self-loop-run \
--image-file ./tile.png \
--mode full常用参数是 --image-file、--direction 和 --mode。横向卷轴背景通常使用 --direction horizontal,纵向场景使用 --direction vertical,四向平铺素材使用 --mode full。
10. Texture Generator
生成单张可平铺像素纹理:
python3 skills/meowart_api.py \
texture-gen-run \
--prompt "mossy cracked stone floor" \
--texture-name "砖墙" \
--texture-name "破碎小石块" \
--output-dir ./outputs/mossy_stone_texture常用参数:
--prompt:纹理需求。--texture-name:参考纹理名,可重复,也可以逗号分隔。内置参考包括水面、带气泡的岩浆、砖墙、木板、破碎小石块、金属板、凝固中的熔岩、火山岩带熔岩纹理。--padding-mode no_padding|padded--edge-fill-pixels 1--no-self-loop:跳过默认四方连续后处理。
11. Tileset Generator
生成 dual-grid 15 terrain tileset:
python3 skills/meowart_api.py \
tileset-gen-run \
--prompt "lush grass foreground plus shallow blue water background" \
--output-dir ./outputs/grass_water_tileset可选使用已有纹理作为前景和背景参考:
python3 skills/meowart_api.py \
tileset-gen-run \
--prompt "mossy stone foreground plus lava background" \
--foreground-texture ./stone_texture.png \
--background-texture ./lava_texture.png \
--texture-reference-mode white_region_fill \
--output-dir ./outputs/stone_lava_tileset常用参数:
--tileset-mode dual-grid-15--terrain-mode dual|single--foreground-color "#67B84F"/--background-color "#3D8EDB":精确前景/背景引导色。--terrain-color "#67B84F":single 模式的单地形精确引导色。--single-terrain-region foreground|background:single 模式保留中央前景区或周围背景区;另一侧默认移除成透明。--single-terrain-remove-background/--no-single-terrain-remove-background--foreground-texture ./foreground.png--background-texture ./background.png--texture-reference-size 64--texture-reference-mode white_region_fill|texture_block_fill
生成“只有前景、背景透明”的 tileset:
python3 skills/meowart_api.py \
tileset-gen-run \
--terrain-mode single \
--single-terrain-region foreground \
--foreground-color "#67B84F" \
--prompt "simple grass edge" \
--output-dir ./outputs/grass_transparent_tileset生成“只有背景、前景透明”的 tileset:
python3 skills/meowart_api.py \
tileset-gen-run \
--terrain-mode single \
--single-terrain-region background \
--background-color "#3D8EDB" \
--prompt "simple water edge" \
--output-dir ./outputs/water_transparent_tileset12. Map Presets And Isometric Map Generators
地图生成前必须先搜索内置 preset。命中合适图片时直接下载复用:
python3 skills/meowart_api.py \
map-reference-search \
--query "ocean water" \
--workflow-id pixel_isometric_gen \
--tile-size 1x1 \
--limit 8直接下载搜索结果:
python3 skills/meowart_api.py \
map-reference-search \
--query "desert" \
--workflow-id pixel_hex_isometric_gen \
--download \
--limit 6 \
--output-dir ./outputs/desert_hex_presets也可以按 preset id 下载:
python3 skills/meowart_api.py \
map-reference-download \
--preset-id pixel-isometric-xxxxxxxxxxxxxxxx \
--output-dir ./outputs/map_presets没有合适 preset 时再生成新的等角地图块。像素等角小地块通常需要两张参考图:
python3 skills/meowart_api.py \
isometric-gen-run \
--prompt "two cozy forest RPG isometric pixel tiles with mossy stones" \
--reference-image ./preset_01.png \
--reference-image ./preset_02.png \
--similar-tiles \
--output-dir ./outputs/forest_isometric像素六角等角地图块:
python3 skills/meowart_api.py \
hex-isometric-gen-run \
--prompt "two ocean hex isometric pixel tiles with coral and shallow water" \
--reference-image ./hex_01.png \
--reference-image ./hex_02.png \
--similar-tiles \
--output-dir ./outputs/ocean_hex高清等角地图块可以直接用后端模板参考图;大块模式可传 2 到 4 张参考图:
python3 skills/meowart_api.py \
hd-isometric-gen-run \
--prompt "modern hospital block with clean roads and plaza" \
--template modern \
--mode standard \
--similar-tiles \
--output-dir ./outputs/modern_hd_isometric高清六角等角地图块:
python3 skills/meowart_api.py \
hd-hex-isometric-gen-run \
--prompt "clean sci-fi hex platform with glowing edge lights" \
--template clean_scifi \
--mode standard \
--similar-tiles \
--output-dir ./outputs/scifi_hd_hex常用参数:
map-reference-search --query "关键词":搜索内置 preset,关键词可用ocean、desert、grassland、modern、clay、hex等。--workflow-id pixel_isometric_gen|pixel_hex_isometric_gen|hd_isometric_gen|hd_hex_isometric_gen|tileset_gen--template-id ocean|desert|grassland|modern|clay|clean_scifi|...--tile-size 1x1|2x2|7-cell|tileset-template--asset-kind reference|templateisometric-gen-run --mode standard|edit|tetraploid|roadhex-isometric-gen-run --mode standard|edit|tetraploid|heptaploidhd-isometric-gen-run --mode standard|tetraploid|style_quadhd-hex-isometric-gen-run --mode standard|tetraploid
13. Animate
python3 skills/meowart_api.py \
animate-run \
--image-file ./sprite.png \
--prompt "slime bouncing" \
--is-pixel \
--output-format webp默认示例只展示像素风动画。--output-format 常见可选值有 webp、gif 和 spritesheet:
webp:默认选项,适合大多数网页展示gif:兼容性更直观,适合简单预览或分享spritesheet:输出序列帧拼图,适合接入游戏或自行控制播放
animate-run 会自动提交、轮询并下载生成结果。如果已经有任务 id,也可以用 animate-poll --api-job-id <id> 继续等待和下载。
13. Sound Effect Generator
生成单条短音效:
python3 skills/meowart_api.py \
sound-run \
--prompt "soft wooden UI button click for cozy pixel RPG" \
--duration 1 \
--output-dir ./outputs/ui_click生成一组音效包:
python3 skills/meowart_api.py \
sound-run \
--prompt "8-bit fantasy combat sound pack: sword slash, shield block, coin pickup, potion drink" \
--sound-pack \
--count 4 \
--duration 1 \
--output-dir ./outputs/combat_sfx_pack常用参数:
--duration:0.5或1到10秒整数。--loop:请求可循环短音。--sound-pack --count N:生成 N 条不同音效。--variants --count N:生成同一音效的 N 个版本。--temperature:映射 ElevenLabs prompt influence,范围 0 到 1。--no-normalize-volume:跳过默认峰值归一化。--provider-api-key:临时传 ElevenLabs key;优先使用后端环境变量。
已经有任务 id 时:
python3 skills/meowart_api.py sound-poll --api-job-id workflow-elevenlabs_generator-xxxx14. Music Generator
只生成结构化音乐 prompt,不生成音频:
python3 skills/meowart_api.py \
music-run \
--prompt "A cozy pixel RPG village theme with flute, kalimba, soft strings, loop-friendly"生成 30 秒 demo 音频:
python3 skills/meowart_api.py \
music-run \
--prompt "A cozy pixel RPG village theme with flute, kalimba, soft strings, loop-friendly" \
--audio-generate \
--demo可选传参考图,参数可以重复:
python3 skills/meowart_api.py \
music-run \
--prompt "Music inspired by this scene" \
--reference-image ./scene.png常用参数:
--prompt:音乐需求;如果传了参考图,可以为空。--reference-image:参考图片,可重复。--audio-generate:实际生成音乐音频;不传时只生成音乐描述。--demo:配合--audio-generate使用,生成低成本 30 秒试听。--max-wait/--poll-interval:控制轮询等待。
music-run 会保存提交响应、最终 job 响应,并在音频生成成功时下载返回里的音频文件。已经有 job id 时可以用:
python3 skills/meowart_api.py music-poll --api-job-id workflow-music_generator-xxxx15. 输出目录
这些 *-run 命令默认会在脚本目录下创建:
./.meow_art/<timestamp>_<command>/通常会保存:
meta.jsonsubmit_response.jsonjob_response.json- 下载得到的 PNG、GIF、WebP、spritesheet、MP3、WAV、OGG 等输出文件
如需自定义目录,可使用 --work-dir 或 --output-dir。更细的行为差异直接看脚本源码即可。