Masonry: generate images and video with models across providers

AI-powered image and video generation. Generate images, videos, manage jobs, and explore models via the masonry CLI.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
4 · 1.8k · 1 current installs · 1 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Skill name/description (image & video generation via Masonry) matches the declared requirement of the 'masonry' binary and the MASONRY_TOKEN credential. The suggested npm package @masonryai/cli is an expected way to obtain the CLI.
Instruction Scope
SKILL.md only instructs running the masonry CLI, handling job responses, waiting for jobs, and downloading media. It does not ask the agent to read unrelated system files or other credentials. It does reference MASONRY_WORKSPACE as optional context, but does not require it.
Install Mechanism
The skill is instruction-only (no install spec in the registry), but SKILL.md metadata and the document suggest installing the CLI via npm (npm install -g or npx). This is a low-risk, common install method; double-check the npm package ownership/reputation before installing globally.
Credentials
Only MASONRY_TOKEN is required and is declared as the primary credential — appropriate for an API-driven CLI. The docs mention MASONRY_WORKSPACE if present but that env var is not listed as required; this is informational but should be noted (it may influence which workspace is used).
Persistence & Privilege
The skill does not request always:true and does not attempt to modify other skills or system-level configs. It expects to run the masonry CLI and write/download media files, which is normal for this use case.
Assessment
This skill appears internally consistent with a Masonry CLI integration. Before installing or using it: (1) confirm the CLI package (@masonryai/cli) and the masonry.so domain are the official Masonry project (check npm author, repo, and publisher signatures); (2) prefer using npx or installing locally rather than a global npm install if you don't want new global binaries; (3) treat MASONRY_TOKEN like any API secret — limit its scope and rotate/regenerate it if compromised; (4) be aware that the token can be used to create jobs that may incur charges on your account; and (5) note the SKILL.md references MASONRY_WORKSPACE (optional) even though it isn't listed as required. If you need stronger assurance, ask the maintainer for the skill's source repository or an official reference linking this skill to the Masonry project.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.1.6
Download zip
latestvk9711byghe8tryr39fpam9gzp182a252

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🧱 Clawdis
Binsmasonry
EnvMASONRY_TOKEN
Primary envMASONRY_TOKEN

SKILL.md

Masonry CLI

Generate AI-powered images and videos from text prompts.

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:

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:

masonry image "a sunset over mountains, photorealistic" --aspect 16:9

Video:

masonry video "ocean waves crashing on rocks" --duration 4 --aspect 16:9

2. Handle the response

Commands return JSON immediately:

{
  "success": true,
  "job_id": "abc-123",
  "status": "pending",
  "check_after_seconds": 10,
  "check_command": "masonry job status abc-123"
}

3. Wait and download

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

FlagShortDescription
--aspect-aAspect ratio: 16:9, 9:16, 1:1
--dimension-dExact size: 1920x1080
--model-mModel key
--output-oOutput file path
--negative-promptWhat to avoid
--seedReproducibility seed

Video flags

FlagShortDescription
--durationLength in seconds: 4, 6, 8
--aspect-aAspect ratio: 16:9, 9:16
--model-mModel key
--image-iFirst frame image (local file)
--last-imageLast frame image (requires --image)
--no-audioDisable audio generation
--seedReproducibility seed

Model discovery

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

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

CodeMeaningAction
AUTH_ERRORNot authenticatedRun auth flow above
VALIDATION_ERRORInvalid parameterCheck flag values
MODEL_NOT_FOUNDUnknown model keyRun 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?

Files

1 total
Select a file
Select a file to preview.

Comments

Loading comments…