← All skills
Tencent SkillHub Β· AI

Alicloud Ai Image Qwen Image

Generate images with Model Studio DashScope SDK using Qwen Image generation models (qwen-image-max, qwen-image-plus-2026-01-09). Use when implementing or documenting image.generate requests/responses, mapping prompt/negative_prompt/size/seed/reference_image, or integrating image generation into the video-agent pipeline.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Generate images with Model Studio DashScope SDK using Qwen Image generation models (qwen-image-max, qwen-image-plus-2026-01-09). Use when implementing or documenting image.generate requests/responses, mapping prompt/negative_prompt/size/seed/reference_image, or integrating image generation into the video-agent pipeline.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, agents/openai.yaml, references/api_reference.md, references/prompt-guide.md, references/sources.md, scripts/generate_image.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.3

Documentation

ClawHub primary doc Primary doc: SKILL.md 16 sections Open source page

Validation

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 And Evidence

Write generated image URLs, prompts, and metadata to output/alicloud-ai-image-qwen-image/. Keep at least one sample JSON response per run. 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.

Prerequisites

Install SDK (recommended in a venv to avoid PEP 668 limits): python3 -m venv .venv . .venv/bin/activate python -m pip install dashscope Set DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials (env takes precedence).

Critical model names

Use one of these exact model strings: qwen-image qwen-image-plus qwen-image-max qwen-image-2.0 qwen-image-2.0-pro qwen-image-max-2025-12-30 qwen-image-plus-2026-01-09

Request

prompt (string, required) negative_prompt (string, optional) size (string, required) e.g. 1024*1024, 768*1024 style (string, optional) seed (int, optional) reference_image (string | bytes, optional)

Response

image_url (string) width (int) height (int) seed (int)

Quickstart (normalized request + preview)

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

Parameters at a glance

FieldRequiredNotespromptyesDescribe a scene, not just keywords.negative_promptnoBest-effort, may be ignored by backend.sizeyesWxH format, e.g. 1024*1024, 768*1024.stylenoOptional stylistic hint.seednoUse for reproducibility when supported.reference_imagenoURL/file/bytes, SDK-specific mapping.

Quick start (Python + DashScope SDK)

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 handling

ErrorLikely causeAction401/403Missing or invalid DASHSCOPE_API_KEYCheck env var or ~/.alibabacloud/credentials, and access policy.400Unsupported size or bad request shapeUse common WxH and validate fields.429Rate limit or quotaRetry with backoff, or reduce concurrency.5xxTransient backend errorsRetry with backoff once or twice.

Output location

Default output: output/alicloud-ai-image-qwen-image/images/ Override base dir with OUTPUT_DIR.

Operational guidance

Store the returned image in object storage and persist only the URL in metadata. Cache results by (prompt, negative_prompt, size, seed, reference_image hash) to avoid duplicate costs. Add retries for transient 429/5xx responses with exponential backoff. Some backends ignore negative_prompt, style, or seed; treat them as best-effort inputs. If the response contains no image URL, surface a clear error and retry once with a simplified prompt.

Size notes

Use WxH format (e.g. 1024*1024, 768*1024). Prefer common sizes; unsupported sizes can return 400.

Anti-patterns

Do not invent model names or aliases; use official model IDs only. Do not store large base64 blobs in DB rows; use object storage. Do not omit user-visible progress for long generations.

Workflow

Confirm user intent, region, identifiers, and whether the operation is read-only or mutating. Run one minimal read-only query first to verify connectivity and permissions. Execute the target operation with explicit parameters and bounded scope. Verify results and save output/evidence files.

References

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

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs1 Scripts1 Config
  • SKILL.md Primary doc
  • references/api_reference.md Docs
  • references/prompt-guide.md Docs
  • references/sources.md Docs
  • scripts/generate_image.py Scripts
  • agents/openai.yaml Config