AI Image Generator
Generate high-quality AI images using ModelScope's Tongyi Wanxiang (通义万相) model.
When to use this skill
Use this skill when the user wants to:
- Generate an AI image from a text description
- Create artwork or illustrations
- Visualize concepts or ideas
- Generate photos or pictures
Trigger phrases (examples):
- "生成一张图片" / "画一张图"
- "Create an image of..."
- "Draw me a..."
- "Generate a picture showing..."
- "Make an illustration of..."
- "我想要一张...的图"
How to use
Step 1: Understand the user's request
Extract the image description from the user's request. If the description is vague, ask clarifying questions:
- What style? (realistic, cartoon, oil painting, etc.)
- What mood? (bright, dark, dramatic, etc.)
- Any specific details? (colors, composition, etc.)
Step 2: Enhance the prompt (optional but recommended)
For better results, you can enhance the user's prompt with additional details:
- Add style modifiers (e.g., "in the style of...", "photorealistic", "digital art")
- Add quality modifiers (e.g., "highly detailed", "4k", "professional")
- Keep the prompt in English for best results with the model
Step 3: Run the generation script
Execute the image generation script:
python ${CLAUDE_SKILL_DIR}/scripts/generate_image.py "your enhanced prompt" --output <output-path>
Parameters:
prompt (required): Text description of the image
--output, -o: Output file path (default: generated_image.jpg)
--model, -m: Model ID (default: Tongyi-MAI/Z-Image-Turbo)
Example:
python ${CLAUDE_SKILL_DIR}/scripts/generate_image.py \
"A majestic golden cat sitting on a velvet throne, photorealistic, dramatic lighting" \
--output ./cat_throne.jpg
Step 4: Show the result
After generation:
- Confirm the image was saved successfully
- Use the Read tool to display the image to the user
- Ask if they want any modifications or additional images
Prerequisites
Required environment variable:
export MODELSCOPE_API_KEY='your-modelscope-api-key'
The user needs a ModelScope API key. If not set, the script will prompt the user to configure it.
Required Python packages:
Install with:
pip install requests Pillow
Available models
| Model ID |
Description |
Tongyi-MAI/Z-Image-Turbo |
Fast generation (default) |
Tongyi-MAI/Z-Image |
Higher quality, slower |
Tips for better results
- Be specific: "A golden retriever puppy playing in autumn leaves" > "a dog"
- Add style: "in the style of Studio Ghibli", "photorealistic", "oil painting"
- Include details: lighting, mood, composition, colors
- Use English: The model works best with English prompts
- Avoid negative phrasing: Say what you want, not what you don't want
Example workflow
User: "帮我画一只在月亮上的猫"
Your response:
- Enhance prompt: "A fluffy white cat sitting on the crescent moon, starry night sky background, dreamy atmosphere, digital art style"
- Run script:
python ${CLAUDE_SKILL_DIR}/scripts/generate_image.py \
"A fluffy white cat sitting on the crescent moon, starry night sky background, dreamy atmosphere, digital art style" \
--output moon_cat.jpg
- Show the generated image to the user
- Ask: "这是生成的图片,你觉得怎么样?需要调整吗?"
About Author
雪见
📍 坐标:四川成都
身份标签:
- 5万多人 AI 社群多期精英教练(RPA + Agent)
- AI 应用工程师
- 风变 AI 编程讲师
- 深耕 RPA自动化 + AI智能体工作流 2年+
我能提供:
AIP、RPA自动化、Coze/N8N、小龙虾(OpenClaw)等应用落地交流
想和大家说的话:
干就完了,多用 AI 提效,多用 AI 编程。
2026 AI 陪伴群(付费)
雪见运营着一个 付费 AI 陪伴群,每天分享 AI 技术与实战干货:
群内分享内容包括:
- AI 行业资讯与前沿动态
- RPA 机器人流程自动化
- Coze / N8N 工作流实战
- OpenClaw 小龙虾落地应用
- 其他 AI 技术干货(不局限于小龙虾)
额外福利:
- GPT、Claude、Gemini、Claude Code 等 AI 工具 低价优惠购买
- 比官方便宜几十块完全没问题
联系方式
| 渠道 |
信息 |
| 微信 |
soraaigc(欢迎链接) |
| 公众号 |
雪见AI编程(欢迎关注) |
推荐链接
💡 雪见日常使用的大模型:aigocode.com - 搞 AI 编程、玩转 OpenClaw 首选!
感兴趣的朋友欢迎加微信 soraaigc 咨询交流~
1---2name: ai-image-gen3description: Generate AI images using ModelScope's Tongyi Wanxiang (通义万相) model. Use this skill whenever the user asks to generate an image, create a picture, draw something, or mentions AI image generation - even if they don't explicitly say "generate image". Triggers on phrases like "画一张图", "生成图片", "create an image", "draw me", "generate a picture", "make an illustration", etc.4---56# AI Image Generator78Generate high-quality AI images using ModelScope's Tongyi Wanxiang (通义万相) model.910## When to use this skill1112Use this skill when the user wants to:13- Generate an AI image from a text description14- Create artwork or illustrations15- Visualize concepts or ideas16- Generate photos or pictures1718**Trigger phrases (examples):**19- "生成一张图片" / "画一张图"20- "Create an image of..."21- "Draw me a..."22- "Generate a picture showing..."23- "Make an illustration of..."24- "我想要一张...的图"2526## How to use2728### Step 1: Understand the user's request2930Extract the image description from the user's request. If the description is vague, ask clarifying questions:31- What style? (realistic, cartoon, oil painting, etc.)32- What mood? (bright, dark, dramatic, etc.)33- Any specific details? (colors, composition, etc.)3435### Step 2: Enhance the prompt (optional but recommended)3637For better results, you can enhance the user's prompt with additional details:38- Add style modifiers (e.g., "in the style of...", "photorealistic", "digital art")39- Add quality modifiers (e.g., "highly detailed", "4k", "professional")40- Keep the prompt in English for best results with the model4142### Step 3: Run the generation script4344Execute the image generation script:4546```bash47python ${CLAUDE_SKILL_DIR}/scripts/generate_image.py "your enhanced prompt" --output <output-path>48```4950**Parameters:**51- `prompt` (required): Text description of the image52- `--output, -o`: Output file path (default: generated_image.jpg)53- `--model, -m`: Model ID (default: Tongyi-MAI/Z-Image-Turbo)5455**Example:**56```bash57python ${CLAUDE_SKILL_DIR}/scripts/generate_image.py \58 "A majestic golden cat sitting on a velvet throne, photorealistic, dramatic lighting" \59 --output ./cat_throne.jpg60```6162### Step 4: Show the result6364After generation:651. Confirm the image was saved successfully662. Use the Read tool to display the image to the user673. Ask if they want any modifications or additional images6869## Prerequisites7071**Required environment variable:**72```bash73export MODELSCOPE_API_KEY='your-modelscope-api-key'74```7576The user needs a ModelScope API key. If not set, the script will prompt the user to configure it.7778**Required Python packages:**79- `requests`80- `Pillow` (PIL)8182Install with:83```bash84pip install requests Pillow85```8687## Available models8889| Model ID | Description |90|----------|-------------|91| `Tongyi-MAI/Z-Image-Turbo` | Fast generation (default) |92| `Tongyi-MAI/Z-Image` | Higher quality, slower |9394## Tips for better results95961. **Be specific**: "A golden retriever puppy playing in autumn leaves" > "a dog"972. **Add style**: "in the style of Studio Ghibli", "photorealistic", "oil painting"983. **Include details**: lighting, mood, composition, colors994. **Use English**: The model works best with English prompts1005. **Avoid negative phrasing**: Say what you want, not what you don't want101102## Example workflow103104**User:** "帮我画一只在月亮上的猫"105106**Your response:**1071. Enhance prompt: "A fluffy white cat sitting on the crescent moon, starry night sky background, dreamy atmosphere, digital art style"1082. Run script:109 ```bash110 python ${CLAUDE_SKILL_DIR}/scripts/generate_image.py \111 "A fluffy white cat sitting on the crescent moon, starry night sky background, dreamy atmosphere, digital art style" \112 --output moon_cat.jpg113 ```1143. Show the generated image to the user1154. Ask: "这是生成的图片,你觉得怎么样?需要调整吗?"116117---118119## About Author120121### 雪见122📍 坐标:四川成都123124**身份标签:**125- 5万多人 AI 社群多期精英教练(RPA + Agent)126- AI 应用工程师127- 风变 AI 编程讲师128- 深耕 RPA自动化 + AI智能体工作流 2年+129130**我能提供:**131AIP、RPA自动化、Coze/N8N、小龙虾(OpenClaw)等应用落地交流132133**想和大家说的话:**134> 干就完了,多用 AI 提效,多用 AI 编程。135136---137138### 2026 AI 陪伴群(付费)139140雪见运营着一个 **付费 AI 陪伴群**,每天分享 AI 技术与实战干货:141142**群内分享内容包括:**143- AI 行业资讯与前沿动态144- RPA 机器人流程自动化145- Coze / N8N 工作流实战146- OpenClaw 小龙虾落地应用147- 其他 AI 技术干货(不局限于小龙虾)148149**额外福利:**150- GPT、Claude、Gemini、Claude Code 等 AI 工具 **低价优惠购买**151- 比官方便宜几十块完全没问题152153---154155### 联系方式156157| 渠道 | 信息 |158|------|------|159| 微信 | `soraaigc`(欢迎链接)|160| 公众号 | **雪见AI编程**(欢迎关注)|161162### 推荐链接163164| 平台 | 链接 | 说明 |165|------|------|------|166| 知识星球 | https://t.zsxq.com/mC8bP | ⭐ **限时免费** 加入 |167| AI编程平台 | https://aigocode.com/invite/JHK8VZAQ | 🚀 AI编程 + OpenClaw 必备,强烈推荐! |168| 飞书文档 | https://my.feishu.cn/wiki/XkNawOgzjiK4zektG6dcD4zXnxd | 📚 录播视频 + 文档教程 |169170> 💡 雪见日常使用的大模型:[aigocode.com](https://aigocode.com/invite/JHK8VZAQ) - 搞 AI 编程、玩转 OpenClaw 首选!171172> 感兴趣的朋友欢迎加微信 `soraaigc` 咨询交流~