npx skills add ...
npx skills add wu529778790/shenzjd-skills --skill freeimg-z-image
Generate AI images from text prompts via the free z-image-turbo model (Gitee AI serverless API, ~100 free 2K images/day with a free token). One-time setup stores the token locally; then generate PNG images in any size (multiple of 8), with negative prompts and step control. Companion web app with 18000+ prompt library and 12 preset styles: https://freeimg.shenzjd.com. Use for generating, drawing, or creating images (icons, covers, illustrations, posters). Keywords: image generation, text-to-image, AI image, z-image, z-image-turbo, Gitee AI, free image, 画图, 生成图片, 文生图, AI 绘画, 免费图片生成, freeimg-z-image.
npx skills add wu529778790/shenzjd-skills --skill freeimg-z-image
把一句话提示词变成 2K 高清图片:底层调用 Gitee AI Serverless API 的
z-image-turbo 模型(8 步极速生成),每天约 100 张免费额度,只需一个
免费令牌。不依赖任何付费服务。
可视化网页版:freeimg.shenzjd.com —— 不想写提示词时直接用网页版:内置 18000+ 精选提示词库、12 种预设 风格(公众号封面 / 小红书封面 / 知识卡片 / 海报 / 3D 卡通 / 中国风等)、 7 种尺寸比例、历史记录与图床上传。Skill 负责让 AI 在对话里直接出图, 网页版负责人工精修与逛提示词库,两者共用同一款令牌。
When NOT to Use:
freeimg-hunyuan skillfreeimg-hunyuan skill令牌获取(免费,三步,详见 freeimg.shenzjd.com 页面教程): 登录 ai.gitee.com/serverless-api → 任意模型详情页点「在线体验」→「API」→「添加令牌」→ 复制。
脚本按以下优先级读取令牌(不要把令牌写进仓库、日志或对话输出):
GITEE_AI_API_KEY~/.freeimg-z-image/config.env(内容一行:GITEE_AI_API_KEY=xxxx)都没有时脚本会打印上面的获取引导并退出;AI 应引导用户完成 Step 0,
把令牌写入 ~/.freeimg-z-image/config.env(chmod 600),只需一次。
--width/--height:必须为 8 的倍数;常用组合见 Quick Reference--steps:默认 8(turbo 模型推荐值,越高越慢)--negative:不传时默认 文字,字母,水印,签名,模糊sips -Z 144 原图 --out 小图.png(macOS)或 ImageMagick convert -resize 缩放风格 + 主体 + 细节 + 构图 + 无文字无水印| 需求 | 参数 | 用途 |
|---|---|---|
| 1:1 方图 | --width 1024 --height 1024(高清用 2048×2048) | 头像、图标、知识卡片 |
| 4:3 横图 | --width 2048 --height 1536 | 公众号封面(900×383 可后期裁) |
| 3:4 竖图 | --width 1536 --height 2048 | 小红书封面 |
| 16:9 宽图 | --width 2048 --height 1152 | PPT 配图、banner |
提示词模板:
环境变量:GITEE_AI_API_KEY(令牌)、FREEIMG_Z_IMAGE_CONFIG(自定义配置文件路径)。
~/.freeimg-z-image/config.env 或环境变量;.env 文件一律 .gitignore{风格,如 扁平卡通插画/3D 渲染/水彩}:{主体与细节},{构图,如 居中特写、四周留裁剪余量},{用途,如 App 图标、缩小时仍清晰},无文字,无水印