Generate images using Qwen models via Alibaba DashScope SDK with normalized request/response mapping.
Works with
Supports four Qwen image generation models: qwen-image , qwen-image-plus , qwen-image-max , and versioned snapshots with consistent image.generate interface
Normalized request parameters include prompt, negative_prompt, size (WxH format), optional style, seed, and reference_image for reproducibility and conditional generation
Requires DASHSCOPE_API_KEY environment variable or credent
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionalicloud-ai-image-qwen-imageExecute the skills CLI command in your project's root directory to begin installation:
Fetches alicloud-ai-image-qwen-image from cinience/alicloud-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate alicloud-ai-image-qwen-image. Access via /alicloud-ai-image-qwen-image in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
368
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
368
stars
Category: provider
mkdir -p output/alicloud-ai-image-qwen-image
python -m py_compile skills/ai/image/alicloud-ai-image-qwen-image/scripts/generate_image.py && echo "py_compile_ok" > output/alicloud-ai-image-qwen-image/validate.txt
Pass criteria: command exits 0 and output/alicloud-ai-image-qwen-image/validate.txt is generated.
output/alicloud-ai-image-qwen-image/.Build consistent image generation behavior for the video-agent pipeline by standardizing image.generate inputs/outputs and using DashScope SDK (Python) with the exact model name.
python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashscope
DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials (env takes precedence).Use one of these exact model strings:
qwen-imageqwen-image-plusqwen-image-maxqwen-image-2.0qwen-image-2.0-proqwen-image-2.0-2026-03-03qwen-image-2.0-pro-2026-03-03qwen-image-max-2025-12-30qwen-image-plus-2026-01-09prompt (string, required)negative_prompt (string, optional)size (string, required) e.g. 1024*1024, 768*1024style (string, optional)seed (int, optional)reference_image (string | bytes, optional)image_url (string)width (int)height (int)seed (int)Minimal normalized request body:
{
"prompt": "a cinematic portrait of a cyclist at dusk, soft rim light, shallow depth of field",
"negative_prompt": "blurry, low quality, watermark",
"size": "1024*1024",
"seed": 1234
}
Preview workflow (download then open):
curl -L -o output/alicloud-ai-image-qwen-image/images/preview.png "<IMAGE_URL_FROM_RESPONSE>" && open output/alicloud-ai-image-qwen-image/images/preview.png
Local helper script (JSON request -> image file):
python skills/ai/image/alicloud-ai-image-qwen-image/scripts/generate_image.py \\
--request '{"prompt":"a studio product photo of headphones","size":"1024*1024"}' \\
--output output/alicloud-ai-image-qwen-image/images/headphones.png \\
--print-response
| Field | Required | Notes |
|---|---|---|
prompt |
yes | Describe a scene, not just keywords. |
negative_prompt |
no | Best-effort, may be ignored by backend. |
size |
yes | WxH format, e.g. 1024*1024, 768*1024. |
style |
no | Optional stylistic hint. |
seed |
no | Use for reproducibility when supported. |
reference_image |
no | URL/file/bytes, SDK-specific mapping. |
Use the DashScope SDK and map the normalized request into the SDK call.
Note: For qwen-image-max, the DashScope SDK currently succeeds via ImageGeneration (messages-based) rather than ImageSynthesis.
If the SDK version you are using expects a different field name for reference images, adapt the input mapping accordingly.
import os
from dashscope.aigc.image_generation import ImageGeneration
# Prefer env var for auth: export DASHSCOPE_API_KEY=...
# Or use ~/.alibabacloud/credentials with dashscope_api_key under [default].
def generate_image(req: dict) -> dict:
messages = [
{
"role": "user",
"content": [{"text": req["prompt"]}],
}
]
if req.get("reference_image"):
# Some SDK versions accept {"image": <url|file|bytes>} in messages content.
messages[0]["content"].insert(0, {"image": req["reference_image"]})
response = ImageGeneration.call(
model=req.get("model", "qwen-image-max"),
messages=messages,
size=req.get("size", "1024*1024"),
api_key=os.getenv("DASHSCOPE_API_KEY"),
# Pass through optional parameters if supported by the backend.
negative_prompt=req.get("negative_prompt"),
style=req.get("style"),
seed=req.get("seed"),
)
# Response is a generation-style envelope; extract the first image URL.
content = response.output["choices"][0]["message"]["content"]
image_url = None
for item in content:
if isinstance(item, dict) and item.get("image"):
image_url = item["image"]
break
return {
"image_url": image_url,
"width": response.usage.get("width"),
"height": response.usage.get("height"),
"seed": req.get("seed"),
}
| Error | Likely cause | Action |
|---|---|---|
| 401/403 | Missing or invalid DASHSCOPE_API_KEY |
Check env var or ~/.alibabacloud/credentials, and access policy. |
| 400 | Unsupported size or bad request shape | Use common WxH and validate fields. |
| 429 | Rate limit or quota | Retry with backoff, or reduce concurrency. |
| 5xx | Transient backend errors | Retry with backoff once or twice. |
output/alicloud-ai-image-qwen-image/images/OUTPUT_DIR.(prompt, negative_prompt, size, seed, reference_image hash) to avoid duplicate costs.negative_prompt, style, or seed; treat them as best-effort inputs.WxH format (e.g. 1024*1024, 768*1024).See references/api_reference.md for a more detailed DashScope SDK mapping and response parsing tips.
See references/prompt-guide.md for prompt patterns and examples.
For edit workflows, use skills/ai/image/alicloud-ai-image-qwen-image-edit/.
Source list: references/sources.md
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
cinience/alicloud-skills
aradotso/trending-skills
Leonxlnx/taste-skill
glebis/claude-skills
inferen-sh/skills
giuseppe-trisciuoglio/developer-kit
We added alicloud-ai-image-qwen-image from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Keeps context tight: alicloud-ai-image-qwen-image is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for alicloud-ai-image-qwen-image matched our evaluation — installs cleanly and behaves as described in the markdown.
alicloud-ai-image-qwen-image is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in alicloud-ai-image-qwen-image — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Registry listing for alicloud-ai-image-qwen-image matched our evaluation — installs cleanly and behaves as described in the markdown.
alicloud-ai-image-qwen-image fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
I recommend alicloud-ai-image-qwen-image for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: alicloud-ai-image-qwen-image is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added alicloud-ai-image-qwen-image from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 73