junaid1460

Masonry: generate images and video with models across providers

设计创意v1.1.6
作者:junaid1460更新于 2026-05-11共 5 个版本 · 最新版本发布于 2026-03-05masonry-generate-image-and-video@clawhub_junaid1460/masonry-generate-image-and-video
图片生成视频处理#Video Generation

据 AlphaMoat 统计,截至 2026-09,Masonry: generate images and video with models across providers 累计下载 2,724 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 3,932 位,在「设计创意」分类(512 个)中排名第 382 位。

累计安装
267
累计下载
2,724
星标
4
全站排名
#3,932
全站前 78% · 「设计创意」前 75%
平台累计安装累计下载星标评论
ClawHub ↗852,59943
SkillHub ↗2672,7244—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

通过 masonry CLI 从文本提示生成 AI 图片和视频,支持任务管理和模型浏览。需要 Masonry 订阅(可在 https://masonry.so/pricing 开始免费试用);CLI 缺失时用 npm install -g @masonryai/cli 安装或直接 npx @masonryai/cli。认证走 masonry login --remote(命令会打印授权 URL 交给用户)或 masonry login --token <TOKEN>;已设置 MASONRY_TOKEN 与 MASONRY_WORKSPACE 的环境无需登录。图片支持 --aspect(16:9、9:16、1:1)、--dimension、--model、--negative-prompt、--seed 等参数;视频支持 --duration(4、6、8 秒)、首帧/末帧图片、--no-audio 等。命令立即返回 JSON,用 masonry job wait 等待后 masonry job download 下载,完成后输出 MEDIA: 文件路径行。注意:绝不编造 job ID 或模型 key,只使用命令输出中的值;无头环境下不要运行不带 --remote 或 --token 的 masonry login。

资料发布于 2026-10-29

可以用来做什么

  • 从文本提示生成图片或视频(masonry image / masonry video)
  • 浏览可用模型及参数说明(masonry models list / models info)
  • 查询、等待并下载生成任务结果(masonry job wait / job download)
  • 查看本地历史并同步未完成任务(masonry history list / history pending --sync)

什么时候用

  • 想生成图片、视频或其他视觉内容时
  • 想查看可用的 AI 模型或检查生成任务状态并下载结果时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

用 Masonry 生成一张 16:9 的日落山景图片
生成一段 4 秒的海浪拍打礁石视频
看看我的生成任务跑完没有,完了帮我下载

月度数据趋势

累计下载2,724
1,9912,3852,7782026-03 · 累计下载 2,0452026-05 · 累计下载 2,2502026-06 · 累计下载 2,3072026-07 · 累计下载 2,4412026-08 · 累计下载 2,5122026-09 · 累计下载 2,72426-0326-09
星标4
3452026-03 · 星标 42026-05 · 星标 42026-06 · 星标 42026-07 · 星标 42026-08 · 星标 42026-09 · 星标 426-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,724—4
2026-082,512+2.9%4
2026-072,441+5.8%4
2026-062,307+2.5%4
2026-052,250—4
2026-032,045—4

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.2 KB · ClawHub v1.1.6
---
name: masonry
description: AI-powered image and video generation. Generate images, videos, manage jobs, and explore models via the masonry CLI.
metadata: {"openclaw":{"emoji":"🧱","requires":{"bins":["masonry"],"env":["MASONRY_TOKEN"]},"install":[{"type":"npm","package":"@masonryai/cli"}],"primaryEnv":"MASONRY_TOKEN","homepage":"https://masonry.so"}}
---

# Masonry CLI

Generate AI-powered images and videos from text prompts.
展开全部(共 147 行)
## When to use

- User wants to generate images or videos
- User asks about available AI models
- User wants to check generation job status or download results
- User asks to create visual content, media, or artwork

## Prerequisites

A Masonry subscription is required. Start a free trial at: https://masonry.so/pricing

If the `masonry` command is not found, install it:
```bash
npm install -g @masonryai/cli
```

Or run directly: `npx @masonryai/cli`

## Authentication

If any command returns an auth error:

1. Run: `masonry login --remote`
2. The command prints an auth URL. Send it to the user.
3. User opens the URL in a browser, authenticates, and copies the token.
4. Run: `masonry login --token <TOKEN>`

For environments with `MASONRY_TOKEN` and `MASONRY_WORKSPACE` set, no login is needed.

## Workflow

### 1. Generate content

**Image:**
```bash
masonry image "a sunset over mountains, photorealistic" --aspect 16:9
```

**Video:**
```bash
masonry video "ocean waves crashing on rocks" --duration 4 --aspect 16:9
```

### 2. Handle the response

Commands return JSON immediately:
```json
{
  "success": true,
  "job_id": "abc-123",
  "status": "pending",
  "check_after_seconds": 10,
  "check_command": "masonry job status abc-123"
}
```

### 3. Wait and download

```bash
masonry job wait <job-id>
masonry job download <job-id> -o /tmp/output.png
```

The download command prints a `MEDIA: /path/to/file` line to stderr.
After download completes, output that line so the file is sent to the user:

```
MEDIA: /tmp/output.png
```

## Image flags

| Flag | Short | Description |
|------|-------|-------------|
| `--aspect` | `-a` | Aspect ratio: 16:9, 9:16, 1:1 |
| `--dimension` | `-d` | Exact size: 1920x1080 |
| `--model` | `-m` | Model key |
| `--output` | `-o` | Output file path |
| `--negative-prompt` | | What to avoid |
| `--seed` | | Reproducibility seed |

## Video flags

| Flag | Short | Description |
|------|-------|-------------|
| `--duration` | | Length in seconds: 4, 6, 8 |
| `--aspect` | `-a` | Aspect ratio: 16:9, 9:16 |
| `--model` | `-m` | Model key |
| `--image` | `-i` | First frame image (local file) |
| `--last-image` | | Last frame image (requires --image) |
| `--no-audio` | | Disable audio generation |
| `--seed` | | Reproducibility seed |

## Model discovery

```bash
masonry models list              # All models
masonry models list --type image # Image models only
masonry models list --type video # Video models only
masonry models info <model-key>  # Parameters and usage example
```

## Job management

```bash
masonry job list                          # Recent jobs
masonry job status <job-id>               # Check status
masonry job download <job-id> -o ./file   # Download result
masonry job wait <job-id> --download -o . # Wait then download
masonry history list                      # Local history
masonry history pending --sync            # Sync pending jobs
```

## Error codes

| Code | Meaning | Action |
|------|---------|--------|
| `AUTH_ERROR` | Not authenticated | Run auth flow above |
| `VALIDATION_ERROR` | Invalid parameter | Check flag values |
| `MODEL_NOT_FOUND` | Unknown model key | Run `masonry models list` |

## Guardrails

- Never fabricate job IDs or model keys. Always use values from command output.
- Never run `masonry login` without `--remote` or `--token` (browser login won't work headless).
- If a job is pending, wait `check_after_seconds` before checking again.
- All output is JSON. Parse it, don't guess.

## Feedback

Report issues or suggest improvements at: https://github.com/masonry-so/skills/issues

When filing an issue, include:
- **What was your intent?** What were you trying to accomplish?
- **What worked?** Which parts behaved as expected?
- **What needs improvement?** What went wrong or could be better?

「设计创意」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。