Learn-skills.dev imagenty
Use when generating images with Alibaba Cloud Bailian API, especially for Chinese text rendering or photorealistic images
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/agents365-ai/imagenty/imagenty" ~/.claude/skills/neversight-learn-skills-dev-imagenty && rm -rf "$T"
manifest:
data/skills-md/agents365-ai/imagenty/imagenty/SKILL.mdsource content
ImagenTY - Alibaba Cloud Bailian Text-to-Image Skill
Overview
Generate images using Alibaba Cloud Bailian API. Default endpoint is China region.
Supports two model families:
- Qwen-Image: Excellent at rendering complex Chinese/English text
- Wan Series: Photorealistic images and photography-grade visuals
Cross-platform support: Windows, macOS, Linux
When to Use This Skill
Automatically activate this skill when:
- User requests image generation with Chinese text or calligraphy
- Need photorealistic images or photography-style visuals
- Creating commercial posters, illustrations, or digital art
- User explicitly requests Alibaba Cloud / Bailian / Qwen / Wan models
- Any task where AI-generated image with strong Chinese support would be helpful
Models
Qwen-Image - Text Rendering Specialist
| Model | Description |
|---|---|
| Default. Best for Chinese/English text, posters, illustrations |
Wan Series - Photorealistic Generation
| Model | Description |
|---|---|
| Recommended. Latest version, flexible sizing |
| High quality, up to 768x2700 |
| Speed-optimized |
| Professional tier |
| Fast execution |
| Professional tier |
| Earlier generation |
Usage
Basic Usage
# Default model (qwen-image-plus) python ~/.claude/skills/imagenty/scripts/generate_image.py "A cute cat" output.png # Photorealistic with Wan model python ~/.claude/skills/imagenty/scripts/generate_image.py --model wan2.6-t2i "Realistic photo of mountains at sunset" photo.png
Size Options
# Use ratio preset python ~/.claude/skills/imagenty/scripts/generate_image.py --size 16:9 "Wide landscape" landscape.png # Use exact dimensions python ~/.claude/skills/imagenty/scripts/generate_image.py --size 1280*720 "Custom size" custom.png
Size Presets
Qwen-Image:
-> 1664x92816:9
-> 928x16649:16
-> 1024x10241:1
-> 1216x9124:3
-> 912x12163:4
Wan Series:
-> 1024x10241:1
-> 1280x12801:1-large
-> 1280x72016:9
-> 720x12809:16
-> 1200x9004:3
-> 900x12003:4
-> 1440x7202:1
Advanced Options
# With negative prompt python ~/.claude/skills/imagenty/scripts/generate_image.py --negative "blurry, low quality" "High quality portrait" portrait.png # List all models python ~/.claude/skills/imagenty/scripts/generate_image.py --list-models
Requirements
pip install dashscope requests
Environment Variables
# Required - Alibaba Cloud Bailian API Key export DASHSCOPE_API_KEY="your_api_key" # Optional - Set default model export DASHSCOPE_MODEL="wan2.6-t2i" # Optional - Set API endpoint (default: China) export DASHSCOPE_API_BASE="cn" # or full URL
Get API Key: https://bailian.console.aliyun.com/
API Endpoints
| Region | Alias | URL |
|---|---|---|
| China (default) | | |
| Singapore | | |
| Virginia | | |
# Switch to Singapore endpoint export DASHSCOPE_API_BASE="sg" # Or use full URL export DASHSCOPE_API_BASE="https://dashscope-intl.aliyuncs.com/api/v1"
Model Selection Guide
| Use Case | Recommended Model |
|---|---|
| Chinese text/calligraphy | |
| English text on images | |
| Posters with typography | |
| Photorealistic photos | |
| Portrait photography | |
| Fast generation | |
| High quality art | |
Comparison with Imagen (Gemini)
| Feature | ImagenTY (Bailian) | Imagen (Gemini) |
|---|---|---|
| Chinese text rendering | Excellent | Good |
| English text rendering | Excellent | Good |
| Photorealistic images | Excellent | Good |
| Speed | Medium | Fast |
| Model variety | 8 models | 3 models |
| Max resolution | 1440x1440 | 2K |
Examples
Chinese New Year Poster
python ~/.claude/skills/imagenty/scripts/generate_image.py \ "A beautiful Chinese New Year poster with red background, golden text, fireworks and firecrackers" \ new_year_poster.png
Photorealistic Landscape
python ~/.claude/skills/imagenty/scripts/generate_image.py \ --model wan2.6-t2i \ --size 16:9 \ "Breathtaking sunset over mountain range, golden hour, professional photography" \ landscape.png
Product Shot
python ~/.claude/skills/imagenty/scripts/generate_image.py \ --model wan2.6-t2i \ "Professional product photography of a coffee cup on marble surface, studio lighting" \ product.png