Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
agentbay-ai avatar

Qwen Image

  • 105 installs
  • 47 repo stars
  • Updated February 12, 2026
  • agentbay-ai/agentbay-skills

qwen-image is a Claude Code skill that generates images from text prompts using Alibaba Cloud's Qwen Image (DashScope) API.

About

qwen-image is a Claude Code skill that generates images from text prompts using Alibaba Cloud's Qwen Image API (通义万相 / DashScope). It runs a bundled generate_image.py script via uv, supports Chinese and English prompts, and lets the user pick sizes and models. By default it returns an image URL (parsed from a MEDIA_URL line) to render in Markdown and downloads only when asked. A developer invokes it for text-to-image generation, and it needs a DashScope API key.

  • Generates images from text via the Qwen Image API (Alibaba DashScope)
  • Supports Chinese and English prompts with selectable aspect ratios
  • Returns a MEDIA_URL to render, downloading only on request

Qwen Image by the numbers

  • 105 all-time installs (skills.sh)
  • Ranked #784 of 1,335 Generative Media skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

qwen-image capabilities & compatibility

Requires a DashScope (Alibaba Cloud) API key from dashscope.console.aliyun.com; images host on temporary Aliyun OSS URLs.

Capabilities
image generation · text to image
Use cases
image generation
Runs
Local or remote
Pricing
Bring your own API key
From the docs

What qwen-image says it does

Generate images using Qwen Image API (Alibaba Cloud DashScope). Use when users request image generation with Chinese prompts or need high-quality AI-generated images from text descriptions.
SKILL.md
Supports both Chinese and English prompts
SKILL.md
npx skills add https://github.com/agentbay-ai/agentbay-skills --skill qwen-image

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs105
repo stars47
Last updatedFebruary 12, 2026
Repositoryagentbay-ai/agentbay-skills

What it does

A user provides a text prompt and the skill generates an image via the Qwen Image API and returns its URL.

Who is it for?

Text-to-image generation from Chinese or English prompts using the Qwen Image / DashScope API.

Skip if: Use without a DashScope API key, or when a fully local (no cloud) image model is required.

When should I use this skill?

A user requests image generation, especially with Chinese prompts or high-quality text-to-image output.

What you get

A generated image URL (MEDIA_URL) rendered in Markdown, downloaded only if the user requests it.

  • generated image URL (MEDIA_URL) rendered in Markdown

By the numbers

  • 4 preset sizes (1664*928, 1024*1024, 720*1280, 1280*720)

Files

SKILL.mdMarkdownGitHub ↗

Qwen Image

Generate high-quality images using Alibaba Cloud's Qwen Image API (通义万相).

Usage

Generate an image (returns URL only):

uv run {baseDir}/scripts/generate_image.py --prompt "一副典雅庄重的对联悬挂于厅堂之中" --size "1664*928" --api-key sk-xxx

Generate and save locally:

uv run {baseDir}/scripts/generate_image.py --prompt "一副典雅庄重的对联悬挂于厅堂之中" --size "1664*928" --api-key sk-xxx

With custom model: Support qwen-image-max-2025-12-30 qwen-image-plus-2026-01-09 qwen-image-plus

uv run {baseDir}/scripts/generate_image.py --prompt "a beautiful sunset over mountains" --model qwen-image-plus-2026-01-09 --api-key sk-xxx

API Key

You can obtain the API key and run the image generation command in the following order.

  • Get apiKey from models.providers.bailian.apiKey in ~/.openclaw/openclaw.json
  • Or get from skills."qwen-image".apiKey in ~/.openclaw/openclaw.json
  • Or get from DASHSCOPE_API_KEY environment variable
  • Or Get your API key from: https://dashscope.console.aliyun.com/

Options

Sizes:

  • 1664*928 (default) - 16:9 landscape
  • 1024*1024 - Square format
  • 720*1280 - 9:16 portrait
  • 1280*720 - 16:9 landscape (smaller)

Additional flags:

  • --negative-prompt "unwanted elements" - Specify what to avoid
  • --no-prompt-extend - Disable automatic prompt enhancement
  • --watermark - Add watermark to generated image
  • --no-verify-ssl - Disable SSL certificate verification (use when behind corporate proxy)

Workflow

1. Execute the generate_image.py script with the user's prompt 2. Parse the script output and find the line starting with MEDIA_URL: 3. Extract the image URL from that line (format: MEDIA_URL: https://...) 4. Display the image to the user using markdown syntax: ![Generated Image](URL) 5. Do NOT download or save the image unless the user specifically requests it

Notes

  • Supports both Chinese and English prompts
  • By default, returns image URL directly without downloading
  • The script prints MEDIA_URL: in the output - extract this URL and display it using markdown image syntax: ![generated image](URL)
  • Always look for the line starting with MEDIA_URL: in the script output and render the image for the user
  • Default negative prompt helps avoid common AI artifacts
  • Images are hosted on Alibaba Cloud OSS with temporary access URLs

Related skills

FAQ

What languages do prompts support?

The API supports both Chinese and English prompts, with automatic prompt extension unless --no-prompt-extend is set.

How is the result returned?

The script prints a line starting with MEDIA_URL:; the URL is extracted and rendered as a Markdown image, and files are not saved unless requested.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.