跳到主内容
智客 ZICQ

技能库 智客分类:媒体内容 zimage-generation

Zimage Generation

使用ModelScope的Z-Image API生成高质量的图像. 当用户想使用他们提供的特定Z-图像模型或ModelScope API生成图像时使用此技能. 触发词:"Zimage","ModelScope","基因 ".

864 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

使用ModelScope的Z-Image API生成高质量的图像. 当用户想使用他们提供的特定Z-图像模型或ModelScope API生成图像时使用此技能. 触发词:"Zimage","ModelScope","基因 ".

何时用

当 :

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Z-Image Generation Skill、When to Use、Usage、Prerequisites、Commands、If you used Method A (pasted key in file):。 其中含规范建议的小节:输入输出示例。

文件分析

文件分析:除 SKILL.md 外,正文引用了 scripts/generate_zimage.py,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Generate high-quality images using ModelScope's Z-Image API. Use this skill when the user wants to generate images using the specific Z-Image model or ModelScope API they provided. Trigger words: 'Zimage', 'ModelScope', 'generate zimage'.

Z-Image Generation SkillWhen to UseUsagePrerequisitesCommandsIf you used Method A (pasted key in file):If you prefer command line (Method B):API Verification NoteExampleTo generate a cyberpunk city

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
zimage-generation
description
Generate high-quality images using ModelScope's Z-Image API. Use this skill when the user wants to generate images using the specific Z-Image model or ModelScope API they provided. Trigger words: 'Zimage', 'ModelScope', 'generate zimage'.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 1
  • scripts/generate_zimage.py

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「zimage-generation」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-56b8a89368b10019-%E9%BD%90%E7%8E%9B%E5%90%89%E4%B8%80%E4%BB%A3.html
请存为 .cursor/skills/zimage-generation/SKILL.md 或 .claude/skills/zimage-generation/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/toolsai/free-zimage-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/toolsai/free-zimage-skills' --list

npx skills add 'https://github.com/toolsai/free-zimage-skills' --skill 'zimage-generation'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: zimage-generation description: "Generate high-quality images using ModelScope's Z-Image API. Use this skill when the user wants to generate images using the specific Z-Image model or ModelScope API they provided. Trigger words: 'Zimage', 'ModelScope', 'generate zimage'." --- # Z-Image Generation Skill This skill allows you to generate images using the Z-Image model via the ModelScope Inference API. ## When to Use Use this skill when: - The user requests to generate an image using "Zimage", "zimage:", or "ModelScope". - The user inputs a command like `zimage: ` or `zimage `. - The user wants to use their configured ModelScope API key for image generation. ## Usage The skill provides a Python script `scripts/generate_zimage.py` to handle the API interaction. ### Prerequisites - Python 3 with `requests` installed. - **API Key Setup (Choose one):** - **Method A (Easiest for beginners):** Open `scripts/generate_zimage.py` and paste your key into the `DEFAULT_API_KEY` variable at the top. - **Method B (Temporary):** Pass via command line: `--api-key your_token` - **Method C (Recommended Project Setup):** Create a new text file named `.env` **in the same folder as the script** (`scripts/`). - Content of the file should be: `MODELSCOPE_API_TOKEN="your_key_here"` ### Commands To generate an image: ```bash # 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). ### API Verification Note 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. ## Example ```python # 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" ```

相关技能

媒体内容

Nano Banana Pro

以纳米·香蕉Pro(Gemini 3 Pro Image)来生成/编辑图像. 用于创建/修改请求,包括编辑。 支持文本到图像+图像到图像; 1K/2K/4K; 使用 -- input-image.

媒体内容

Youtube Watcher

从YouTube视频中获取并读取文字记录. 需要汇总视频时使用,回答有关视频内容的问题,或者从中提取信息.

媒体内容

Atxp

Access ATXP支付API工具用于网页搜索,AI图像生成,音乐创建,视频生成,X/Twitter搜索,电子邮件,代理账户管理. 当用户需要实时网络搜索时使用,AI生成的媒体(图像,音乐,视频),X/Twitter搜索,发送/接收电子邮件,或创建和资助代理账户. 需要通过“ …

媒体内容

Youtube

YouTube Data API与管理的OAuth的集成. 搜索视频,管理播放列表,访问频道数据,并与评论互动. 用户想与YouTube互动时使用此技能. 对于其他第三方应用,使用api-gateway技能(https://clawhub.ai/byungkyu/api-gate…