← 返回
未分类 Key

Dashscope Imagegen

Generate images using DashScope wan2.6-t2i model (通义万相). Use when user asks to generate/create images, illustrations, or visual content via DashScope/通义万相. R...
使用 DashScope wan2.6‑t2i 模型(通义万相)生成图片。当用户请求通过 DashScope/通义万相 生成、创建图片、插画或视觉内容时使用。
chaoyang78 chaoyang78 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 232
下载
💾 1
安装
1
版本
#latest

概述

dashscope-imagegen

Generate images using Alibaba Cloud DashScope wan2.6-t2i model (通义万相 2.6).

Usage

python3 ~/.openclaw/scripts/dashscope-imagegen.py "your prompt here" [options]

Options

  • --size SIZE — Image size, e.g. 10241024, 1280720, 7201280 (default: 10241024)
  • -n N — Number of images (default: 1)
  • --negative "text" — Negative prompt
  • -o DIR — Output directory (default: current dir)
  • --url-only — Only print image URLs without downloading

Examples

# Generate and download
python3 ~/.openclaw/scripts/dashscope-imagegen.py "一只可爱的橘猫坐在书桌上" -o /tmp

# URL only
python3 ~/.openclaw/scripts/dashscope-imagegen.py "sunset over mountains" --url-only --size 1280*720

# With negative prompt
python3 ~/.openclaw/scripts/dashscope-imagegen.py "professional headshot" --negative "cartoon, anime, low quality"

Supported Sizes

Total pixels must not exceed ~1.5M. Common sizes:

  • 1024*1024 (1:1)
  • 1280*720 (16:9)
  • 720*1280 (9:16)
  • 1024*768 (4:3)
  • 768*1024 (3:4)

Environment

Requires DASHSCOPE_API_KEY environment variable (set in ~/.openclaw/.env).

Notes

  • Async API: submits task, polls for completion (~10-20s)
  • Output is PNG
  • Chinese and English prompts both work well
  • prompt_extend is enabled by default for better results

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 23:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 218 📥 47,833
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 331 📥 93,983
content-creation

Editorial Chief Workflow

chaoyang78
协调和管理编辑制作,定义目标,制定受众/渠道策略,分配专业人员,确保质量,交付成果。
★ 0 📥 364