Token导航 LogoToken导航TokenDH.com
图像处理external-servicegithub未标认证来源可访问许可证需确认审计提醒

qwen-image-2Qwen 图像 2

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

6,952

周安装

284

GitHub Stars

380

下载量

2,227
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qwen-image-2(Qwen 图像 2)
来源仓库:https://github.com/inference-sh/skills
仓库路径:skills/qwen-image-2
安装命令:
npx skills add https://github.com/inference-sh/skills --skill qwen-image-2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/inference-sh/skills --skill qwen-image-2

简介

用于辅助图像生成、图片编辑或视觉素材处理。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合让 Agent 根据文本生成图片或整理视觉提示词。
  • 需确认输入图片版权、输出格式及模型限制后再使用。
  • 涉及人物、品牌或公开展示素材时应额外核对授权与合规性。
  • qwen-image-2 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Qwen-Image - Alibaba Image Generation

Generate and edit images with Alibaba Qwen-Image-2.0 models via inference.sh CLI.

Qwen-Image-2.0

Quick Start

Requires inference.sh CLI (belt). Install instructions
belt login

belt app run alibaba/qwen-image-2 --input '{"prompt": "A serene mountain landscape at sunset"}'

Models

ModelApp IDSpeedText RenderingBest For
Qwen-Image-2.0alibaba/qwen-image-2FastGoodGeneral use
Qwen-Image-2.0-Proalibaba/qwen-image-2-proStandardProfessionalPosters, text-heavy designs

Search Qwen Image Apps

belt app list --search "qwen image"

Examples

Basic Text-to-Image

belt app run alibaba/qwen-image-2 --input '{
  "prompt": "A futuristic cityscape at sunset with flying cars"
}'

Multiple Images

belt app run alibaba/qwen-image-2 --input '{
  "prompt": "Minimalist logo design for a coffee shop",
  "num_images": 4
}'

Custom Resolution

belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Panoramic mountain landscape with northern lights",
  "width": 1536,
  "height": 1024
}'

Text-Heavy Poster (Pro)

belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Poster with title \"Summer Sale!\" in bold red text at the top. Subtitle \"50% Off Everything\" in blue below. Beach background with palm trees.",
  "width": 1024,
  "height": 1536,
  "prompt_extend": false
}'

Image Editing (Multi-Reference)

belt app run alibaba/qwen-image-2 --input '{
  "prompt": "Make the girl from Image 1 wear the dress from Image 2 in the pose from Image 3",
  "reference_images": [
    {"uri": "https://example.com/person.jpg"},
    {"uri": "https://example.com/dress.jpg"},
    {"uri": "https://example.com/pose.jpg"}
  ]
}'

With Negative Prompt

belt app run alibaba/qwen-image-2-pro --input '{
  "prompt": "Professional headshot portrait, studio lighting",
  "negative_prompt": "low resolution, blurry, deformed, oversaturated"
}'

Reproducible with Seed

belt app run alibaba/qwen-image-2 --input '{
  "prompt": "Abstract geometric art in blue and gold",
  "seed": 12345
}'

Input Options

ParameterTypeDescription
promptstringRequired. What to generate or edit (max 800 chars)
reference_imagesarrayInput images for editing (1-3 images)
num_imagesintegerNumber of images to generate (1-6)
widthintegerOutput width in pixels (512-2048)
heightintegerOutput height in pixels (512-2048)
watermarkbooleanAdd "Qwen-Image" watermark
negative_promptstringContent to avoid (max 500 chars)
prompt_extendbooleanEnable prompt rewriting (default: true)
seedintegerRandom seed for reproducibility (0-2147483647)

Size constraint: Total pixels must be between 512×512 and 2048×2048.

Output

FieldTypeDescription
imagesarrayThe generated or edited images (PNG format)
output_metaobjectMetadata with dimensions and count

Prompt Tips

For Text Rendering (use Pro model):

  • Put exact text in quotes: "Title: \"Hello World!\""
  • Specify font style, color, position
  • Set prompt_extend: false for precise control

Styles: photorealistic, illustration, watercolor, oil painting, digital art, anime, 3D render

Composition: close-up, wide shot, aerial view, macro, portrait, landscape

Lighting: natural light, studio lighting, golden hour, dramatic shadows, neon

Sample Workflow

# 1. Generate sample input to see all options
belt app sample alibaba/qwen-image-2-pro --save input.json

# 2. Edit the prompt
# 3. Run
belt app run alibaba/qwen-image-2-pro --input input.json

Model Comparison

Featureqwen-image-2qwen-image-2-pro
SpeedFasterStandard
Text RenderingGoodProfessional
RealismStandardFine-grained
Semantic AdherenceGoodEnhanced

Related Skills

# Full platform skill (all 250+ apps)
npx skills add inference-sh/skills@infsh-cli

# All image generation models
npx skills add inference-sh/skills@ai-image-generation

# Video generation (for image-to-video)
npx skills add inference-sh/skills@ai-video-generation

Browse all image apps: belt app list --category image

Documentation

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

32.81%
按下载量换算731

Codex

32.51%
按下载量换算724

Cursor

16.97%
按下载量换算378

Gemini CLI

9.16%
按下载量换算204

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills