zimage-generation
通过ModelScope推理API,使用Z-Image模型生成图像,满足用户图像生成需求,适用于各种视觉内容创作。
npx skills add toolsai/free-zimage-skills --skill zimage-generationBefore / After 效果对比
1 组1需要手动寻找或设计图片来匹配文本内容,耗时且可能无法精确表达意图。1使用 Z-Image 生成模型,只需提供文本描述,即可快速生成高质量的图像,实现文本到图像的快速转换。description SKILL.md
zimage-generation
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: # 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 # 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 Installs386Repositorytoolsai/free-zi…e-skillsGitHub Stars10First SeenJan 24, 2026Security AuditsGen Agent Trust HubFailSocketPassSnykFailInstalled onopencode378gemini-cli378codex377cursor376github-copilot372amp369
forum用户评价 (0)
发表评价
暂无评价,来写第一条吧
统计数据
用户评分
为此 Skill 评分