Search

PythonReactSEOPDF
OpenClaw

wan-t2i

阿里云DashScope Wan2.6文生图工具。使用阿里云百炼平台的Wan2.6-t2i模型生成图片。 当用户需要:AI生成图片、文生图、从文字生成图像时触发。 需要DASHSCOPE_API_KEY环境变量(已在系统中配置)。

baokui0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install baokui/wan-text2image

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Wan2.6 文生图

使用阿里云DashScope的Wan2.6-t2i模型进行文生图。

环境要求

  • DASHSCOPE_API_KEY:已配置在系统中
  • curl:系统自带

使用方式

脚本调用
# 基本用法
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "你的提示词"

# 指定反向提示词
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "提示词" "不想出现的内容"

# 指定图片尺寸(支持:1280*1280, 720*1280, 1280*720)
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "提示词" "" "1280*720"
参数说明
参数 说明 默认值
第1个 正向提示词(中文效果更好) 必填
第2个 反向提示词(不想出现的元素) 空
第3个 尺寸(宽*高) 1280*1280

API详情

  • 模型:wan2.6-t2i
  • Endpoint:https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
  • 特点:支持prompt_extend自动优化提示词

示例

# 生成一张风景图
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "日落时的海滩,海浪轻拍沙滩"

# 生成人物图
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "一位穿着汉服的少女" "" "720*1280"

注意事项

  1. API响应是JSON格式,包含base64编码的图片或图片URL
  2. 实际使用中可能需要解析JSON获取图片
  3. 建议使用中文提示词,效果更好

Source information

Source
github
Repository
openclaw/skills
Path
skills/baokui/wan-text2image
Version
—
Commit
d0ba45cc547bcc7800c5aff17019d17b4d666364
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Wan2.6 文生图

使用阿里云DashScope的Wan2.6-t2i模型进行文生图。

## 环境要求

- DASHSCOPE_API_KEY:已配置在系统中
- curl:系统自带

## 使用方式

### 脚本调用

```bash
# 基本用法
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "你的提示词"

# 指定反向提示词
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "提示词" "不想出现的内容"

# 指定图片尺寸(支持:1280*1280, 720*1280, 1280*720)
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "提示词" "" "1280*720"
```

### 参数说明

| 参数 | 说明 | 默认值 |
|------|------|--------|
| 第1个 | 正向提示词(中文效果更好) | 必填 |
| 第2个 | 反向提示词(不想出现的元素) | 空 |
| 第3个 | 尺寸(宽*高) | 1280*1280 |

## API详情

- **模型**:wan2.6-t2i
- **Endpoint**:https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
- **特点**:支持prompt_extend自动优化提示词

## 示例

```bash
# 生成一张风景图
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "日落时的海滩,海浪轻拍沙滩"

# 生成人物图
bash ~/.openclaw/workspace/skills/wan-t2i/scripts/t2i.sh "一位穿着汉服的少女" "" "720*1280"
```

## 注意事项

1. API响应是JSON格式,包含base64编码的图片或图片URL
2. 实际使用中可能需要解析JSON获取图片
3. 建议使用中文提示词,效果更好

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.