qwen-image-20

qwen-image-2.0 image generation: uses the qwen-image-2.0 model on ai.gitee.com for text-to-image and multi-image reference generation. Supports Chinese prompts, negative prompts, seed control, watermark control, and various aspect ratios. Suitable for tasks that generate, fuse, or edit images based on one or multiple reference images.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "qwen-image-20" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-dc1e39b8197510711772cf0def1c72296c6a1bd40f3e5493eef234fd6c89a3f7. Verify the upstream source and version against https://skillhub.cn/skills/user_0064faa7/qwen-image-2 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

qwen-image-2.0 image generation: uses the qwen-image-2.0 model on ai.gitee.com for text-to-image and multi-image reference generation. Supports Chinese prompts, negative prompts, seed control, watermark control, and various aspect ratios. Suitable for tasks that generate, fuse, or edit images based on one or multiple reference images.

0 Downloads

Introduction source: third_party · user_0064faa7 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: qwen-image-2.0
description: 使用 ai.gitee.com 的 qwen-image-2.0 模型进行文生图和多图参考生成,支持中文提示词、负面提示词、种子、水印控制以及多种宽高比。适用于需要根据一张或多张参考图生成、融合或编辑图片的任务。

Qwen-Image 2.0 图片生成 Skill

通过 Gitee AI Images API 调用 qwen-image-2.0 模型:

  • Endpoint: https://ai.gitee.com/v1/images/generations
  • Model: qwen-image-2.0
  • 认证:环境变量 API_TOKEN
  • 请求方式:POST
  • 请求类型:application/json

使用前检查

确保已经设置 API Token:

export API_TOKEN="your-gitee-api-token"

不要把 token 写入 prompt、文件、日志或回复中。

支持的尺寸

size 使用宽度和高度以 x 连接,必须是以下值之一:

  • 1024x1024
  • 1152x864
  • 864x1152
  • 1344x768
  • 768x1344
  • 1248x832
  • 832x1248
  • 1536x1024
  • 1024x1536

用户未指定尺寸时使用 1024x1024。用户指定比例或宽高时,选择比例最接近的合法尺寸,并说明实际使用的尺寸。不要使用 1024*1024;请求中应使用 1024x1024 格式。

标准文生图调用

curl https://ai.gitee.com/v1/images/generations \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_TOKEN" \
  -d '{
    "prompt": "一位女生站在阳光明亮的室内,穿着简洁优雅的黑色裙子,写实摄影风格。",
    "model": "qwen-image-2.0",
    "images": [],
    "n": 1,
    "negative_prompt": "模糊、低质量、变形、构图混乱、主体缺失",
    "watermark": false,
    "seed": 0,
    "size": "1024x1024"
  }'

多图参考生成

images 是参考图片数组,支持传入多张图片。按照图片在数组中的顺序,在 prompt 中明确说明每张图的用途,例如“图1中的人物穿着图2中的服装,并采用图3的姿势”。

图片应按 Gitee AI 接口实际支持的格式传入(例如图片 URL 或接口要求的 base64 数据);不要把本地路径直接当作图片内容发送。使用 base64 时,建议由程序读取并安全注入 JSON,避免手工拼接造成转义错误。

示例:

curl https://ai.gitee.com/v1/images/generations \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_TOKEN" \
  -d '{
    "prompt": "图1中的女生穿着图2中的黑色裙子,按照图3的姿势坐下;保留人物的面部特征和服装细节,画面自然、写实。",
    "model": "qwen-image-2.0",
    "images": [
      "<IMAGE_1_URL_OR_BASE64>",
      "<IMAGE_2_URL_OR_BASE64>",
      "<IMAGE_3_URL_OR_BASE64>"
    ],
    "n": 1,
    "negative_prompt": "模糊、低质量、人物变形、肢体错位、服装细节错误、重复人物、乱码",
    "watermark": false,
    "seed": 0,
    "size": "1024x1024"
  }'

多图使用规则:

  1. images 为空数组表示纯文生图;有参考图时传入一张或多张图片。
  2. 在 prompt 中使用“图1”“图2”等明确指代,避免模型混淆参考图的作用。
  3. 需要保留某张图的身份、服装、姿势、构图或风格时,应逐项说明优先级。
  4. 不要在 images 中混入无法访问的 URL、未编码的二进制内容或本地文件路径。

常用请求字段

字段 类型 说明
prompt string 必填。描述生成内容,并在多图场景中说明各参考图的用途。支持中文。
model string 必填,固定为 qwen-image-2.0。
images array 可选。参考图片数组,可为空;支持多图传入,具体元素格式以接口要求为准。
n integer 可选。生成图片数量,通常使用 1。
negative_prompt string 可选。描述不希望出现的内容。
watermark boolean 可选。是否添加水印;按用户要求设置,示例为 false。
seed integer 可选。随机种子;使用 0 表示采用默认随机行为或服务端定义的行为。
size string 可选。必须使用上方列出的合法尺寸;默认 1024x1024。

调用规则

  1. 使用 model: "qwen-image-2.0",默认 images: []、n: 1、watermark: false、seed: 0 和 size: "1024x1024"。
  2. 用户提供参考图时,将其按顺序放入 images,并在 prompt 中明确“图1”“图2”等对应关系。
  3. 用户指定负面要求时放入 negative_prompt,不要重复堆入正向 prompt。
  4. 只使用支持列表中的尺寸,并使用 x 而不是 * 连接宽高。
  5. 解析成功响应中的图片 URL 或图片数据;若接口返回任务 ID,应根据服务端响应继续查询任务状态,不得伪造生成成功。
  6. 发生 HTTP 错误时保留状态码和服务端错误信息摘要,隐藏 Authorization 头和 token;先检查 token、JSON、图片格式、模型名和尺寸,再进行有针对性的重试。

安全与质量提示

  • 不要把 API token 写入代码、prompt、文件或日志。
  • 涉及真实人物、版权角色或敏感内容时,遵守上层安全政策及服务端限制。
  • 多图融合结果可能无法完全保持人物身份、服装细节或姿势,应在交付前检查结果。
  • 不要伪造接口响应、图片 URL 或本地生成文件。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value80/100

Highlights

  • 提供基于 qwen-image-2.0 模型的文生图和多图参考生成能力,支持中文提示词、负面提示词、种子、水印控制及多种宽高比,适用于图片生成、融合、编辑等任务。
Trigger Precision90/100

Highlights

  • description 明确描述了 Skill 的功能和使用场景,触发词涵盖关键能力,边界清晰,覆盖合理。
Structure and Standards95/100

Highlights

  • 文档结构清晰,包含 Phase/步骤、常用请求字段说明、调用规则、安全与质量提示,有端到端示例,frontmatter 完整。
Execution Reliability90/100

Highlights

  • 工具来源明确,参数说明正确,覆盖主要异常,不可逆操作有确认机制,安全提示到位。
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • ai.gitee.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.