AI Image Generation and Editing
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
A skill your agent uses when generating or editing images with DashScope Wan 2.7 image models (wan2.7-image, wan2.7-image-pro).
$ npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cinience/alicloud-skills aliyun-wan-image --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cinience/alicloud-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ai/image/aliyun-wan-image .claude/skills/aliyun-wan-image && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "aliyun-wan-image" agent skill from https://github.com/cinience/alicloud-skills/tree/main/skills/ai/image/aliyun-wan-image into .claude/skills/aliyun-wan-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aliyun-wan-image", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cinience/alicloud-skills/tree/main/skills/ai/image/aliyun-wan-imageType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cinience/alicloud-skills aliyun-wan-image --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cinience/alicloud-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/ai/image/aliyun-wan-image .agents/skills/aliyun-wan-image && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "aliyun-wan-image" agent skill from https://github.com/cinience/alicloud-skills/tree/main/skills/ai/image/aliyun-wan-image into .agents/skills/aliyun-wan-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aliyun-wan-image", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cinience/alicloud-skills aliyun-wan-image --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cinience/alicloud-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/ai/image/aliyun-wan-image .cursor/skills/aliyun-wan-image && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "aliyun-wan-image" agent skill from https://github.com/cinience/alicloud-skills/tree/main/skills/ai/image/aliyun-wan-image into .cursor/skills/aliyun-wan-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aliyun-wan-image", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cinience/alicloud-skills.git --path skills/ai/image/aliyun-wan-image--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cinience/alicloud-skills aliyun-wan-image --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cinience/alicloud-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/ai/image/aliyun-wan-image .gemini/skills/aliyun-wan-image && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "aliyun-wan-image" agent skill from https://github.com/cinience/alicloud-skills/tree/main/skills/ai/image/aliyun-wan-image into .gemini/skills/aliyun-wan-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aliyun-wan-image", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cinience/alicloud-skills aliyun-wan-imageInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cinience/alicloud-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/ai/image/aliyun-wan-image .github/skills/aliyun-wan-image && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "aliyun-wan-image" agent skill from https://github.com/cinience/alicloud-skills/tree/main/skills/ai/image/aliyun-wan-image into .github/skills/aliyun-wan-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aliyun-wan-image", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cinience/alicloud-skills aliyun-wan-image --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cinience/alicloud-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/ai/image/aliyun-wan-image .opencode/skills/aliyun-wan-image && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "aliyun-wan-image" agent skill from https://github.com/cinience/alicloud-skills/tree/main/skills/ai/image/aliyun-wan-image into .opencode/skills/aliyun-wan-image/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "aliyun-wan-image", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
aliyun-wan-imageA skill your agent uses when generating or editing images with DashScope Wan 2.7 image models (wan2.7-image, wan2.7-image-pro).
Aliyun Wan Image is an agent skill from cinience/alicloud-skills. Use when generating or editing images with DashScope Wan 2.7 image models (wan2.7-image, wan2.7-image-pro). Use when implementing text-to-image, image editing, interactive editing with bounding boxes, sequential group image generation, or color palette control via the multimodal-generation API.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/api_reference.md`, `references/sources.md` and `scripts/generate_image.py`).
It sits in Media & Creative, covering Image generation, Image editing and Theming and dark mode. It works with Alibaba Cloud. The repository describes itself as: alibaba cloud skills,qwen ,wan and all skills. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 1818263. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonpython3From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
dashscope.aliyuncs.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
DASHSCOPE_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Aliyun Wan Image loads about 1.5k tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 78 tokens; SKILL.md has 423 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cinience/alicloud-skills at commit 1818263, republished under its MIT licence (© cinience). 423 words, ~1,486 tokens.
.claude/skills/aliyun-wan-image/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.mkdir -p output/aliyun-wan-image
python -m py_compile skills/ai/image/aliyun-wan-image/scripts/generate_image.py && echo "py_compile_ok" > output/aliyun-wan-image/validate.txtPass criteria: command exits 0 and output/aliyun-wan-image/validate.txt is generated.
output/aliyun-wan-image/.python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashscopeDASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.wan2.7-image-pro — professional version, supports 4K outputwan2.7-image — faster generation, up to 2K| Capability | Description |
|---|---|
| Text-to-image | Generate images from text prompts |
| Image editing | Edit images with text instructions (1-9 input images) |
| Interactive editing | Edit specific regions via bounding boxes (bbox_list) |
| Group generation | Generate consistent multi-image sequences (enable_sequential=true, up to 12 images) |
| Color palette | Control color theme with custom hex+ratio palette (3-10 colors) |
| Thinking mode | Enhanced reasoning for better quality (text-to-image only) |
Sync (recommended):
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generationAsync (for long tasks):
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/image-generation/generation
Header: X-DashScope-Async: enableprompt (string, required) — up to 5000 characterssize (string, optional) — 1K, 2K (default), 4K (pro only), or WxH pixel valuesn (int, optional) — number of images, 1-4 (default 4), or 1-12 with enable_sequentialseed (int, optional) — range [0, 2147483647]reference_image (string/array, optional) — URL or base64, up to 9 imagesenable_sequential (bool, optional) — group image generation modethinking_mode (bool, optional, default true) — enhanced reasoning (text-to-image only)bbox_list (array, optional) — bounding boxes for interactive editingcolor_palette (array, optional) — custom color theme (3-10 colors with hex+ratio)watermark (bool, optional, default false)image_url (string) — PNG, valid for 24 hoursimage_count (int)size (string) — actual output resolutionseed (int)import os
from dashscope.aigc.image_generation import ImageGeneration
def generate_image(req: dict) -> dict:
messages = [
{
"role": "user",
"content": [{"text": req["prompt"]}],
}
]
# Add reference images if provided
ref_images = req.get("reference_images") or []
if req.get("reference_image"):
ref_images = [req["reference_image"]] + ref_images
for img in ref_images:
messages[0]["content"].append({"image": img})
params = {
"model": req.get("model", "wan2.7-image"),
"messages": messages,
"size": req.get("size", "2K"),
"n": req.get("n", 1),
"api_key": os.getenv("DASHSCOPE_API_KEY"),
"seed": req.get("seed"),
"watermark": req.get("watermark", False),
}
if req.get("enable_sequential"):
params["enable_sequential"] = True
if req.get("thinking_mode") is not None:
params["thinking_mode"] = req["thinking_mode"]
if req.get("bbox_list"):
params["bbox_list"] = req["bbox_list"]
if req.get("color_palette"):
params["color_palette"] = req["color_palette"]
response = ImageGeneration.call(**params)
content = response.output["choices"][0]["message"]["content"]
images = [item["image"] for item in content if isinstance(item, dict) and item.get("image")]
return {
"image_urls": images,
"image_count": response.usage.get("image_count"),
"size": response.usage.get("size"),
}| Model | Supported sizes | Default |
|---|---|---|
| wan2.7-image-pro | 1K, 2K, 4K (text-to-image only), or [768, 4096] px | 2K |
| wan2.7-image | 1K, 2K, or [768, 2048] px | 2K |
| Error | Likely cause | Action |
|---|---|---|
| 401/403 | Missing or invalid DASHSCOPE_API_KEY | Check env var or credentials file. |
400 InvalidParameter | Unsupported size, bad n value, or missing required image | Validate parameters against model limits. |
| 429 | Rate limit or quota | Retry with backoff. |
output/aliyun-wan-image/images/OUTPUT_DIR.wan2.7-image or wan2.7-image-pro only.wan2.7-image (only pro supports 4K).enable_sequential with bbox_list — they are separate modes.references/api_reference.md for full HTTP API details.references/sources.md for source links.© cinience, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts, references) in skills/ai/image/aliyun-wan-image of cinience/alicloud-skills.
Open the folder on GitHubat commit 1818263
Aliyun Wan Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Aliyun Wan Image this skillcinience/alicloud-skills | 397 | — | ~1.5k | Automated safety check: Pass | MIT | |
| AI Image Generation and Editingzhayujie/CowAgent | 47k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Generate Imageynulihao/AgentSkillOS | 618 | 10 repos | ~1.7k | Automated safety check: Notes | None | |
| GPT Image Generation CLIwuyoscar/GPT-Image2-Skill | 5.7k | — | ~2.5k | Automated safety check: Notes | MIT | |
| BlockRun Image GenerationBlockRunAI/ClawRouter | 6.6k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Native Transparent ImagegenZSeven-W/craft-skills | 225 | 1 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 |
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
ynulihao/AgentSkillOS
Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.
wuyoscar/GPT-Image2-Skill
Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.
BlockRunAI/ClawRouter
Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.
ZSeven-W/craft-skills
Generate new raster assets that must contain native pixel transparency, then verify the untouched PNG or WebP before delivery.
uluckyXH/OpenMOSS
Generate or edit images using the Antigravity-hosted Gemini image model via the local gateway.
cinience/alicloud-skills
A skill your agent uses when creating, migrating, or optimizing skills for this alicloud-skills repository.
cinience/alicloud-skills
Bootstrap, create, connect to, operate, secure, scale, upgrade, troubleshoot, inspect, and tear down Alibaba Cloud Container Compute Service (ACS) Agent Sandbox environments.
cinience/alicloud-skills
Create, inspect, connect to, inventory, and delete Alibaba Cloud Container Compute Service (ACS) clusters through the official CS OpenAPI.
cinience/alicloud-skills
A skill your agent uses when managing Alibaba Cloud AnalyticDB for MySQL (ADB) via OpenAPI/SDK, including the user needs AnalyticDB resource lifecycle and configuration operations, status checks, or…
cinience/alicloud-skills
A skill your agent uses when managing Alibaba Cloud AIContent (AiContent) via OpenAPI/SDK, including the user needs AI content generation or content workflow operations in Alibaba Cloud, including…
cinience/alicloud-skills
A skill your agent uses when managing Alibaba Cloud Quan Miao (AiMiaoBi) via OpenAPI/SDK, including the user asks for Alibaba Cloud MiaoBi content operations, including listing resources…
Works with
Categories
A skill your agent uses when generating or editing images with DashScope Wan 2.7 image models (wan2.7-image, wan2.7-image-pro). Aliyun Wan Image is an agent skill from cinience/alicloud-skills.7-image-pro).
Aliyun Wan Image fits situations like: editing images with DashScope Wan 2.7 image models (wan2.7-image; wan2.7-image-pro); implementing text-to-image; interactive editing with bounding boxes.
Run `npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a claude-code`. Or copy the skill folder (skills/ai/image/aliyun-wan-image in cinience/alicloud-skills) into .claude/skills/aliyun-wan-image in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a codex`. Or copy the skill folder (skills/ai/image/aliyun-wan-image in cinience/alicloud-skills) into .agents/skills/aliyun-wan-image in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cinience/alicloud-skills --skill aliyun-wan-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aliyun-wan-image, .gemini/skills/aliyun-wan-image, .github/skills/aliyun-wan-image and .opencode/skills/aliyun-wan-image in your project.
Going by SKILL.md and its folder, Aliyun Wan Image needs Python for the scripts in its folder, the command-line tools its instructions call (python and python3) and credentials named DASHSCOPE_API_KEY. Our summary lists: Python 3; A credential in DASHSCOPE_API_KEY.
SKILL.md names 1 domain. In commands or code: dashscope.aliyuncs.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Aliyun Wan Image is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 750 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Aliyun Wan Image: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Generate Image (ynulihao/AgentSkillOS, 618 stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars) and BlockRun Image Generation (BlockRunAI/ClawRouter, 6.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cinience (a GitHub user) maintains it in cinience/alicloud-skills, which has 397 GitHub stars. The repository holds 96 skills in this directory. The repository was last updated on August 11, 2026.
Source: cinience/alicloud-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.