qwen-image

qwen-image is a skill for Claude Code, Codex from xyva-yuangui/XyvaClaw. It costs 37 tokens per session (1,374 once invoked), scanned A, original, MIT.

A tool for generating images from text prompts through Alibaba Cloud’s Qwen Image service. It supports several Qwen and Wan models, different image sizes, and saving results locally.

In plain words
What is it for?
Use it to generate illustrations, posters, cover images, portraits, and e-commerce product images from Chinese or other text prompts.
Why use it?
It lets you create images from descriptions without preparing the artwork manually. You can choose models for uses such as text-heavy posters, portraits, or product images.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to generate illustrations, posters, cover images, portraits, and e-commerce product images from Chinese or other text prompts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xyva-yuangui/xyvaclaw/qwen-image
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xyva-yuangui/XyvaClaw --skill qwen-image
Clone the repo
git clone --depth 1 https://github.com/xyva-yuangui/XyvaClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qwen-image

README.md
[![agentmods](https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/qwen-image/github.svg)](https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/qwen-image)
Your own site
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/qwen-image"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/qwen-image/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qwen-image

Your own site · 80×15
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/qwen-image"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/qwen-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01374
Opus 5 $0.00018 $0.00687
Sonnet 5 $0.00007 $0.00275
Haiku 4.5 $0.00004 $0.00137

Measured 12d ago against content hash 744df8f61d4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

qwen-image scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check.py, scripts/generate_image.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

config-base/workspace/skills/qwen-image/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Qwen Image

AI 图片生成助手。触发后必须先询问用户确认,再执行生成。

触发场景 询问确认内容
图片生成 确认画面描述、尺寸比例 (16:9/1:1/9:16)、风格
封面设计 确认主题文字、配色风格、用途场景
海报创作 确认海报内容、文字元素、目标受众
艺术创作 确认艺术风格、参考图片 (可选)、情绪基调

执行流程: 触发 → 询问用户 → 用户确认 → 执行生成 → 返回图片 URL

注意: 默认返回 URL 不下载,如需保存需用户确认

Full docs: read SKILL-REFERENCE.md

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

Usage

快速开始

Generate an image (returns URL only):

# 使用默认模型(qwen-image-max)
uv run {baseDir}/scripts/generate_image.py --prompt "一副典雅庄重的对联悬挂于厅堂之中" --size "1664*928"

Generate and save locally:

# 保存为本地文件
uv run {baseDir}/scripts/generate_image.py --prompt "一副典雅庄重的对联悬挂于厅堂之中" --filename output.png

选择模型

# 千问旗舰版(适合复杂文字渲染)
uv run {baseDir}/scripts/generate_image.py --prompt "海报设计,含文字" --model qwen-image-max

# 万相性价比之王(适合快速测试)⭐ 推荐
uv run {baseDir}/scripts/generate_image.py --prompt "时尚人像摄影" --model wanx2.2-t2i-flash

# 万相专业版(适合电商主图)⭐ 推荐
uv run {baseDir}/scripts/generate_image.py --prompt "电商产品主图,白色背景" --model wanx2.1-pro

支持的模型

万相 2.6 系列(同步调用,推荐)⭐

  • wan2.6-t2i - 最新版,支持自定义分辨率,推荐默认使用

万相 2.5 及以下(异步调用)

  • wan2.5-t2i-preview - 预览版,支持自由尺寸
  • wan2.2-t2i-flash - 性价比之王 ¥0.05/张,速度最快
  • wan2.2-t2i-plus - 专业版,稳定性更好
  • wanx2.1-t2i-turbo - 2.1 极速版
  • wanx2.1-t2i-plus - 2.1 专业版
# 使用千问(适合文字渲染)
uv run {baseDir}/scripts/generate_image.py --prompt "一副典雅庄重的对联" --model qwen-image-plus-2026-01-09

# 使用万相(适合写实摄影)⭐
uv run {baseDir}/scripts/generate_image.py --prompt "时尚摄影风格的街拍人像" --model wanx2.2-t2i-flash
uv run {baseDir}/scripts/generate_image.py --prompt "电商产品主图" --model wanx2.1-pro

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/

Read the full file on GitHub · 124 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 124 lines · 37 tokens per session scan A 744df8f61d4b

Subscribe to this mod's changes

qwen-image is a skill published in the GitHub repository xyva-yuangui/XyvaClaw (21 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,374 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

imap-smtp-email

Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.

netease-youdao/LobsterAI · 82 tokens

technology-search

Search tech blogs, developer forums, and IT media (TechCrunch, Hacker News, 36氪, etc.) for software and hardware industry updates with heat ranking and EN↔CN translation. Use this skill only when the topic is clearly about programming, software, hardware, AI, or IT infrastructure.

netease-youdao/LobsterAI · 65 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

article-writer

Multi-style article creation skill. Supports 5 writing styles (deep analysis, practical guide, story-driven, opinion, news brief), including complete workflow: material collection → outline → content → formatting. Activated when users mention "write article", "write post", "create", or "draft".

netease-youdao/LobsterAI · 62 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens

content-planner

WeChat Official Account topic planning and content calendar management. Based on WeChat article search and trending analysis, generates differentiated topic recommendations and outputs structured content calendars. Activated when users mention "topic", "planning", "content calendar", "trending", or "what to write next…

netease-youdao/LobsterAI · 63 tokens