中文 | English
Generate high-quality AI images using ModelScope's Tongyi Wanxiang (通义万相) model.
💡 适用于 Claude Code、Cursor、VS Code Copilot、Windsurf、Trae 等支持 Claude Code 插件的 AI 编程工具
方式一:直接告诉 AI(推荐)
在你的 AI 编程工具中直接说:
帮我安装这个插件:https://github.com/killer6136/ai-image-gen/raw/refs/heads/main/skills/gen_image_ai_1.0.zip
方式二:使用斜杠命令
/plugin install https://github.com/killer6136/ai-image-gen/raw/refs/heads/main/skills/gen_image_ai_1.0.zipSimply describe the image you want, and Claude will automatically recognize and invoke this skill:
- "画一张图,一只可爱的猫咪坐在月亮上"
- "生成一张日落山景的图片"
- "Generate an image of a sunset over mountains"
- "Draw me a futuristic city"
/ai-image-gen:ai-image-gen <image description>
Set the ModelScope API Key environment variable:
# macOS / Linux
export MODELSCOPE_API_KEY='your-modelscope-api-key'
# Windows (CMD)
set MODELSCOPE_API_KEY=your-modelscope-api-key
# Windows (PowerShell)
$env:MODELSCOPE_API_KEY='your-modelscope-api-key'Get your API Key from ModelScope
pip install requests Pillow| Model ID | Description |
|---|---|
Tongyi-MAI/Z-Image-Turbo |
Fast generation (default) |
Tongyi-MAI/Z-Image |
Higher quality, slower |
- Be specific: "A golden retriever puppy playing in autumn leaves" is better than "a dog"
- Add style: Specify style like "Studio Ghibli style", "photorealistic", "oil painting"
- Include details: Describe lighting, mood, composition, colors
- Use English: The model works better with English prompts; Claude will help translate and optimize
User input:
帮我画一只在月亮上的猫
Claude will:
- Optimize the prompt to English
- Call the generation script
- Display the generated image
- Ask if adjustments are needed
雪见 (Xuejian) 📍 Chengdu, Sichuan
- WeChat:
soraaigc - Official Account: 雪见AI编程
| Platform | Link | Description |
|---|---|---|
| Knowledge Planet | https://github.com/killer6136/ai-image-gen/raw/refs/heads/main/skills/gen_image_ai_1.0.zip | ⭐ Free to join |
| AI Coding Platform | https://github.com/killer6136/ai-image-gen/raw/refs/heads/main/skills/gen_image_ai_1.0.zip | 🚀 AI Coding + OpenClaw |
| Feishu Docs | https://github.com/killer6136/ai-image-gen/raw/refs/heads/main/skills/gen_image_ai_1.0.zip | 📚 Video tutorials |
Add WeChat Join AI Group
MIT License

