moark-qwen-image

Image generation tool using the Qwen-Image model from ai.gitee.com. Supports Chinese text-to-image, text layout, negative prompts, size, seed, and LoRA parameters, suitable for generating images that include Chinese text such as couplets, posters, and illustrations.

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 "moark-qwen-image" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3321ee11691a7555b62bb5ccb8aafe3f08dd92e73d19550dc3326b5172d36a5b. Verify the upstream source and version against https://skillhub.cn/skills/user_0064faa7/moark-qwen-image 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

Image generation tool using the Qwen-Image model from ai.gitee.com. Supports Chinese text-to-image, text layout, negative prompts, size, seed, and LoRA parameters, suitable for generating images that include Chinese text such as couplets, posters, and illustrations.

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
description: 使用 ai.gitee.com 的 Qwen-Image 模型生成图片,支持中文文生图、文字排版、负面提示词、尺寸、种子和 LoRA。适用于需要生成包含中文文字、对联、海报、插画或其他图像内容的任务。

Qwen-Image 图片生成 Skill

通过 Gitee AI 的 OpenAI-compatible Images API 调用 Qwen-Image 模型:

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

使用前检查

确保已经设置 API Token:

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

不要把 token 写入 prompt、文件、日志或代码,也不要在回复中展示 token。

支持的尺寸

size 只能使用以下值:

  • 256x256
  • 512x512
  • 1024x1024
  • 1024x768
  • 768x1024
  • 1024x576
  • 576x1024
  • 1024x640
  • 640x1024

用户只给出宽高或比例时,优先映射到最接近的合法尺寸,并告知实际使用的尺寸。

标准文生图调用

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",
    "size": "1024x1024",
    "num_images_per_prompt": 0,
    "num_inference_steps": 4,
    "cfg_scale": 1,
    "seed": [],
    "negative_prompt": "模糊、低质量、文字错误、乱码、错别字、变形、构图混乱、主体缺失",
    "lora_weights": []
  }'

常用请求字段

字段 类型 说明
prompt string 必填。详细描述主体、动作、构图、风格、光线、文字内容和文字位置。支持中文 prompt。
model string 必填,固定为 Qwen-Image。
size string 可选。使用上方支持的尺寸;未指定时默认 1024x1024。
num_images_per_prompt integer 每个 prompt 生成的图片数量。参考接口传 0;若服务端拒绝则改为 1。
num_inference_steps integer 推理步数,参考值为 4。
cfg_scale number 引导强度,参考值为 1。
seed array/number 随机种子。参考请求使用 [];若服务端要求数字,可使用 0。
negative_prompt string 可选。描述需要避免的内容,不要把负面要求重复堆入正向 prompt。
lora_weights array 可选。无 LoRA 时传 []。

文字生成质量

Qwen-Image 适合生成包含文字的图像。对于对联、海报、招牌、书法和 UI 文字:

  1. 在 prompt 中明确要求文字“原样书写”,逐字提供文本。
  2. 明确文字所在位置、阅读方向、字体风格和排版层级。
  3. 将“乱码、错别字、漏字、重复字、不可读文字”放入 negative_prompt。
  4. 生成后检查文字是否准确;即使模型支持文字生成,也不能保证每个字完全正确。

调用规则

  1. 使用 model: "Qwen-Image",默认 num_inference_steps: 4、cfg_scale: 1。
  2. 用户未指定尺寸时使用 1024x1024。
  3. 用户指定比例时从支持列表中选择最接近的尺寸,并说明实际尺寸。
  4. 用户指定负面要求时放入 negative_prompt,不要将其作为正向内容描述。
  5. 优先按参考请求传 num_images_per_prompt: 0、seed: [];若接口返回参数校验错误,再分别改为 1 和数字种子重试一次。
  6. 解析成功响应中的图片 URL 或 b64_json。若返回 base64,应解码为 PNG/JPEG 文件后再向调用方返回文件路径。
  7. 若接口返回任务 ID而非图片,按照服务端响应提供的状态查询接口继续查询;不得伪造生成成功。
  8. HTTP 错误时保留状态码和服务端错误信息摘要,隐藏 Authorization 头和 token;先检查 token、JSON、模型名、尺寸和参数类型,再进行一次有针对性的重试。

安全与质量提示

  • 不要把 API token 写入代码、prompt、文件或日志。
  • 对真实人物、版权角色和敏感内容遵守上层安全政策及服务端限制。
  • 对联、书法和海报中的文字可能存在拼写或布局误差,应在交付前人工核验。
  • 不要伪造接口响应、图片 URL 或本地生成文件。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 支持中文文生图、文字排版、负面提示词、尺寸、种子和 LoRA,适用于对联、海报、插画等多种实际应用场景
  • 提供了详细的 API 调用方式和参数说明,具有较高的实用价值
Trigger Precision88/100

Highlights

  • description 明确描述了 Skill 的功能和使用场景,触发词清晰,覆盖主要功能点
Structure and Standards95/100

Highlights

  • 结构清晰,包含使用前检查、支持的尺寸、标准调用示例、常用请求字段说明、文字生成质量提示、调用规则、安全与质量提示等
  • frontmatter 完整,有详细的端到端示例,单文件未超过 500 行
Execution Reliability92/100

Highlights

  • 提供了详细的 API 调用方式、参数说明、错误处理建议和安全提示
  • 工具来源明确,参数正确,覆盖了主要异常情况
Evidence Verifiability (mean of the first four)90/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.