Memelord Skill
Generate memes on demand through the Memelord API.
Setup
Set your API key as an environment variable (or store in config):
export MEMELORD_API_KEY="KEY HERE"
Usage
This skill includes separate scripts for each Memelord endpoint.
1) Generate image memes (1 credit): POST /api/v1/ai-meme
{baseDir}/scripts/ai-meme.sh "developer fixing bugs at 3am" --png ./meme.png
{baseDir}/scripts/ai-meme.sh "when the code works on the first try" --count 3 --png ./meme_%d.png
2) Edit an existing image meme (1 credit): POST /api/v1/ai-meme/edit
# easiest: edit from a previous generation response (pulls template_id + template_data from results[0])
{baseDir}/scripts/ai-meme-edit.sh --from ./memelord_ai_meme.json \
--instruction "make it about javascript instead" --png ./edited.png
# or provide template id + template data explicitly
{baseDir}/scripts/ai-meme-edit.sh --template-id abc-123 --template-data-file ./template_data.json \
--instruction "change the top text" --out ./edit.json
3) Generate video memes (5 credits) (async jobs): POST /api/v1/ai-video-meme
{baseDir}/scripts/ai-video-meme.sh "when the code works on the first try" --count 2 --out ./jobs.json
# with webhook callbacks
{baseDir}/scripts/ai-video-meme.sh "ship it" \
--webhook-url https://example.com/webhook \
--webhook-secret supersecret
4) Edit an existing video meme caption (5 credits) (async job): POST /api/v1/ai-video-meme/edit
{baseDir}/scripts/ai-video-meme-edit.sh --template-id abc-123 \
--caption "When the code works on the first try" \
--instruction "make it about not knowing why it works" \
--out ./video_edit_job.json
5) Poll video render job status: GET /api/video/render/remote?jobId=...
{baseDir}/scripts/video-render-remote.sh --job-id render-1740524400000-abc12
{baseDir}/scripts/video-render-remote.sh --job-id render-1740524400000-abc12 --out ./status.json
6) Verify webhook signatures (helper)
{baseDir}/scripts/verify-webhook.sh --secret "$WEBHOOK_SECRET" --body-file ./payload.json --signature "<hex>"
API credits: 50/month (free with a memelord.com subscription), more at https://www.memelord.com/docs.