zimage-generation by toolsai/free-zimage-skills
npx skills add https://github.com/toolsai/free-zimage-skills --skill zimage-generation此技能允许您通过 ModelScope 推理 API 使用 Z-Image 模型生成图像。
在以下情况使用此技能:
zimage: <prompt> 或 zimage <prompt> 的命令时。该技能提供了一个 Python 脚本 scripts/generate_zimage.py 来处理 API 交互。
requests 库。scripts/generate_zimage.py 文件,将您的密钥粘贴到顶部的 DEFAULT_API_KEY 变量中。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
--api-key your_tokenscripts/)创建一个名为 .env 的新文本文件。
MODELSCOPE_API_TOKEN="your_key_here"要生成图像:
# 如果您使用方法 A(将密钥粘贴在文件中):
python3 /Users/promptcase/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "您描述性的提示词"
# 如果您更喜欢命令行(方法 B):
python3 /Users/promptcase/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "您的提示词" --api-key "your_key"
参数:
prompt:图像的文本描述(必需)。--output, -o:指定输出文件名(可选)。--model:指定不同的模型 ID(可选)。--api-key:API 密钥(如果未在文件或环境中设置)。如果脚本返回 401 错误并提及"绑定您的阿里云账户",请通知用户必须登录 ModelScope (https://modelscope.cn/my/account) 并绑定其阿里云账户以启用 API 访问。这是平台要求的一次性设置。
# 生成赛博朋克城市
python3 /Users/mattchan/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "cyberpunk city, neon lights, rainy street, high detail"
每周安装量
487
代码仓库
GitHub 星标数
10
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode479
gemini-cli479
codex478
cursor477
github-copilot473
amp470
This skill allows you to generate images using the Z-Image model via the ModelScope Inference API.
Use this skill when:
zimage: <prompt> or zimage <prompt>.The skill provides a Python script scripts/generate_zimage.py to handle the API interaction.
requests installed.scripts/generate_zimage.py and paste your key into the DEFAULT_API_KEY variable at the top.--api-key your_token.env in the same folder as the script (scripts/).
MODELSCOPE_API_TOKEN="your_key_here"To generate an image:
# If you used Method A (pasted key in file):
python3 /Users/promptcase/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "Your descriptive prompt here"
# If you prefer command line (Method B):
python3 /Users/promptcase/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "Your prompt" --api-key "your_key"
Arguments:
prompt: The text description of the image (required).--output, -o: Specify output filename (optional).--model: Specify a different model ID (optional).--api-key: API key (if not set in file or environment).If the script returns a 401 error mentioning "bind your Alibaba Cloud account", notify the user that they must log in to ModelScope (https://modelscope.cn/my/account) and bind their Alibaba Cloud account to enable API access. This is a one-time setup required by the platform.
# To generate a cyberpunk city
python3 /Users/mattchan/.gemini/antigravity/skills/zimage-generation/scripts/generate_zimage.py "cyberpunk city, neon lights, rainy street, high detail"
Weekly Installs
487
Repository
GitHub Stars
10
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
opencode479
gemini-cli479
codex478
cursor477
github-copilot473
amp470
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
54,900 周安装
wacli - WhatsApp 命令行工具:安全发送消息、搜索历史记录与同步管理
372 周安装
React Native Reanimated + Skia 动画性能优化指南:提升帧率与流畅度
373 周安装
React前端开发指南:Suspense数据获取、懒加载与性能优化最佳实践
373 周安装
Lark Mail CLI 使用指南:邮件管理、安全规则与自动化工作流
7,100 周安装
OpenAPI 转 TypeScript 工具 - 自动生成 API 接口与类型守卫
563 周安装
Rust Unsafe代码检查器 - 安全使用Unsafe Rust的完整指南与最佳实践
566 周安装