Memelord Skill
Generate image and video memes on demand through the Memelord API with a set of ready-to-run helper scripts.
Setup
- 1. API key – export it once per shell (or drop it into
.env).
export MEMELORD_API_KEY="YOUR_KEY"
- 2. Executable scripts – the repo ships with
chmod +x already applied. If you clone from somewhere that strips modes, just run:
chmod +x scripts/*.sh
- 3. (Optional) create an
outputs/ folder to keep downloaded memes tidy:
CODEBLOCK2
CLI Overview
| Script | Endpoint | Purpose |
|---|
| INLINECODE3 | INLINECODE4 | Generate fresh image memes |
| INLINECODE5 |
POST /api/v1/ai-meme/edit | Edit an existing image meme |
|
scripts/ai-video-meme.sh |
POST /api/v1/ai-video-meme | Kick off async video meme renders |
|
scripts/ai-video-meme-edit.sh |
POST /api/v1/ai-video-meme/edit | Re-caption an existing video meme |
|
scripts/video-render-remote.sh |
GET /api/video/render/remote | Poll render job status / URLs |
|
scripts/verify-webhook.sh | helper | Validate webhook signatures |
All scripts accept --out <path> so you can control where JSON responses land.
1. Generate image memes (1 credit)
CODEBLOCK3
2. Edit an image meme (1 credit)
CODEBLOCK4
3. Generate video memes (5 credits, async)
CODEBLOCK5
4. Edit a video meme caption (5 credits, async)
CODEBLOCK6
5. Poll video render status
CODEBLOCK7
6. Verify webhook signatures
CODEBLOCK8
Sharing memes in chat surfaces (no links, just media)
When you want Telegram/Signal/WhatsApp/etc. to show
only the meme (no caption/link blob), follow this pattern:
- 1. Generate or edit the meme as usual (
ai-video-meme.sh, ai-meme.sh, etc.). - Poll the job if it’s a video (
video-render-remote.sh) until you see mp4Url (or url for images) in the JSON. - Download the asset into your workspace. Example for a video:
curl -sSL "<mp4Url-from-status>" -o ./outputs/hiring_engineers.mp4
For images, the
--png flag already writes the file; otherwise
curl the
url the same way.
- 4. Send the file itself back to the chat using the OpenClaw media syntax so only the video/image appears:
MEDIA:./outputs/hiring_engineers.mp4
(Swap the extension for .png/.webp for still memes.)
Because the attachment is the only thing in the reply, Telegram renders it inline without any auto-generated “description + link” chatter.
Credits: Memelord gives you 50 video/image credits per month on the base subscription. Top up or read more at https://www.memelord.com/docs.
技能名称: Memelord
详细描述:
Memelord 技能
通过 Memelord API 和一组即用型辅助脚本按需生成图片和视频梗图。
设置
- 1. API 密钥 – 在每个 shell 会话中导出一次(或将其放入 .env 文件)。
bash
export MEMELORD
APIKEY=YOUR_KEY
- 2. 可执行脚本 – 仓库已预先应用 chmod +x。如果你从某个会剥离权限的地方克隆,只需运行:
bash
chmod +x scripts/*.sh
- 3. (可选)创建一个 outputs/ 文件夹以保持下载的梗图整洁:
bash
mkdir -p /root/.openclaw/workspace/outputs
CLI 概览
| 脚本 | 端点 | 用途 |
|---|
| scripts/ai-meme.sh | POST /api/v1/ai-meme | 生成新的图片梗图 |
| scripts/ai-meme-edit.sh |
POST /api/v1/ai-meme/edit | 编辑现有的图片梗图 |
| scripts/ai-video-meme.sh | POST /api/v1/ai-video-meme | 启动异步视频梗图渲染 |
| scripts/ai-video-meme-edit.sh | POST /api/v1/ai-video-meme/edit | 重新为现有视频梗图添加字幕 |
| scripts/video-render-remote.sh | GET /api/video/render/remote | 轮询渲染任务状态/URL |
| scripts/verify-webhook.sh | 辅助工具 | 验证 webhook 签名 |
所有脚本都接受 --out <路径> 参数,以便你控制 JSON 响应的保存位置。
1. 生成图片梗图(1 积分)
bash
./scripts/ai-meme.sh 开发者凌晨3点修复bug --png ./outputs/meme.png
./scripts/ai-meme.sh 当代码第一次运行就成功时 --count 3 --png ./outputs/meme_%d.png
2. 编辑图片梗图(1 积分)
bash
./scripts/ai-meme-edit.sh --from ./memelord
aimeme.json \
--instruction 改成关于javascript的内容 --png ./outputs/edited.png
或手动提供模板元数据
./scripts/ai-meme-edit.sh --template-id abc-123 --template-data-file ./template_data.json \
--instruction 更改顶部文字 --out ./outputs/edit.json
3. 生成视频梗图(5 积分,异步)
bash
./scripts/ai-video-meme.sh 当代码第一次运行就成功时 --count 2 --out ./outputs/jobs.json
带 webhook 回调
./scripts/ai-video-meme.sh 发布吧 \
--webhook-url https://example.com/webhook \
--webhook-secret supersecret
4. 编辑视频梗图字幕(5 积分,异步)
bash
./scripts/ai-video-meme-edit.sh --template-id abc-123 \
--caption 当代码第一次运行就成功时 \
--instruction 改成关于不知道为什么能运行的内容 \
--out ./outputs/video
editjob.json
5. 轮询视频渲染状态
bash
./scripts/video-render-remote.sh --job-id render-1740524400000-abc12 --out ./outputs/status.json
6. 验证 webhook 签名
bash
./scripts/verify-webhook.sh --secret $WEBHOOK_SECRET --body-file ./payload.json --signature
在聊天界面中分享梗图(仅媒体,无链接)
当你希望 Telegram/Signal/WhatsApp 等只显示梗图(无字幕/链接块)时,请遵循以下模式:
- 1. 生成或编辑 梗图,照常操作(ai-video-meme.sh、ai-meme.sh 等)。
- 轮询任务(如果是视频,使用 video-render-remote.sh),直到在 JSON 中看到 mp4Url(或图片的 url)。
- 下载资源 到你的工作区。视频示例:
bash
curl -sSL -o ./outputs/hiring_engineers.mp4
对于图片,--png 标志已直接写入文件;否则以相同方式 curl 下载 url。
- 4. 将文件本身 通过 OpenClaw 媒体语法发送回聊天,这样只会显示视频/图片:
MEDIA:./outputs/hiring_engineers.mp4
(静态梗图请将扩展名替换为 .png/.webp。)
由于回复中仅包含附件,Telegram 会内联显示它,而不会自动生成“描述 + 链接”的杂音。
积分: Memelord 基础订阅每月提供 50 个视频/图片积分。充值或了解更多信息请访问 https://www.memelord.com/docs。