返回技能列表

qwen-image

agentbay-ai
更新于 2 days ago
3 次查看
40
2
40
在 GitHub 上查看
aiapi

关于

This skill generates images using Alibaba Cloud's Qwen Image API, ideal for Chinese prompts or high-quality AI image generation. It supports multiple model versions and outputs images as URLs or saves them locally. Use it when developers need to integrate text-to-image functionality into their applications.

快速安装

Claude Code

推荐
主要方式
npx skills add agentbay-ai/agentbay-skills -a claude-code
插件命令备选方式
/plugin add https://github.com/agentbay-ai/agentbay-skills
Git 克隆备选方式
git clone https://github.com/agentbay-ai/agentbay-skills.git ~/.claude/skills/qwen-image

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

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

GitHub 仓库

agentbay-ai/agentbay-skills
路径: qwen-image
0

相关推荐技能

content-collections

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能

polymarket

这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。

查看技能

creating-opencode-plugins

该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。

查看技能

sglang

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能