memegen-rs
Generate meme images from memegen.rs by building a URL. The template and caption text go straight into the URL path, and the response is the image (PNG or animated GIF). Use when asked to make a meme, caption an image, or produce a shareable meme link.
- License 许可
- MIT
- 最近更新
- 2026-10-07
- Stars
- ★ 10
- Forks
- 1
01 前言 Front Matter
- name
- memegen-rs
- metadata
- { "version": "0.1.0", "openclaw": { "os": [ "darwin", "linux" ], "emoji": "🖼️", "homepage": "https://github.com/tenequm/memegen-rs" } }
- description
- Generate meme images from memegen.rs by building a URL. The template and caption text go straight into the URL path, and the response is the image (PNG or animated GIF). Use when asked to make a meme, caption an image, or produce a shareable meme link.
02 资源文件 12
- 资产文件Anton-Regular.ttf138.4 KB
- 资产文件apple-touch-icon.png1.6 KB
- 资产文件banner.png311.8 KB
- 其他favicon.ico14.7 KB
- 资产文件favicon.svg260 B
- 资产文件icon-192.png3.3 KB
- 资产文件icon-512.png9.8 KB
- 资产文件Manrope-Regular.ttf161.5 KB
- 参考文档OFL-Anton.txt4.4 KB
- 参考文档OFL-Manrope.txt4.3 KB
- 参考文档OFL-Pangolin.txt4.3 KB
- 资产文件Pangolin-Regular.ttf579.5 KB
03 SKILL.md 正文
memegen-rs
Generate memes by building a URL against https://memegen.rs. The response is the image itself - nothing to install, no account, no request body. The same URL always returns the same image, so a meme link is stable and shareable.
Build a captioned meme
https://memegen.rs/images/{template}/{line1}/{line2}.png
Encode the caption text into each path segment:
- Separate caption lines with
/. - Replace each space with
_. - Replace a literal underscore with
__. - Use
_alone for a blank line.
Examples
- Two-line Drake meme:
https://memegen.rs/images/drake/writing_a_parser/just_using_a_url.png - "X everywhere" (Buzz), top and bottom:
https://memegen.rs/images/buzz/memes/memes_everywhere.png - Blank template, no caption:
https://memegen.rs/images/drake.png - Caption any image on the web:
https://memegen.rs/images/custom/one_does_not_simply/use_a_database.png?background=https://example.com/photo.jpg - Animated GIF output (templates whose source is an animated GIF):
https://memegen.rs/images/fry/not_sure_if_static/or_animated.gif
Options (query parameters)
style- alternate background variant for the templatelayout=top- place all captions at the topwidth,height- pad to a fixed size with a blurred letterboxcolor- text fill color (name or hex)
Limits. These return 422 with a JSON {"error": "..."} body: width or height above 2048, or a custom background that is not a PNG, JPEG, GIF or WebP, or is above 10 MiB or 4096x4096 pixels. A custom background over 2048 pixels on a side is scaled down to fit 2048x2048, and layout=top draws only the first 32 lines.
Find templates
- Every template with its id, name, line count, and an example URL:
GET https://memegen.rs/templates - A single template:
GET https://memegen.rs/templates/{id}
Full reference
The complete, machine-readable contract - every endpoint, parameter, and schema - is the OpenAPI spec: https://memegen.rs/openapi.json.
Tip
Return the meme as a clickable link rather than pasting the raw URL into chat.