Loading...
Loading...
Generate memes using the memegen.link API. Use when users request memes, want to add humor to content, or need visual aids for social media. Supports 100+ popular templates with custom text and styling.
npx skill4agent add softaworks/agent-toolkit meme-factory| Trigger | Description |
|---|---|
| Manual invocation |
| Direct meme generation |
| Natural language request |
| Action | Format |
|---|---|
| Basic meme | |
| With sizing | |
| Custom background | |
| All templates | https://api.memegen.link/templates/ |
| Interactive docs | https://api.memegen.link/docs/ |
https://api.memegen.link/images/{template}/{top_text}/{bottom_text}.{extension}https://api.memegen.link/images/buzz/memes/memes_everywhere.png| Character | Encoding |
|---|---|
| Space | |
| Newline | |
| Question mark | |
| Percent | |
| Slash | |
| Hash | |
| Single quote | |
| Double quote | |
| Template | Use Case | Example |
|---|---|---|
| X, X everywhere | bugs/bugs_everywhere |
| Comparisons | manual_testing/automated_testing |
| Victories | deployed/no_errors |
| Things going wrong | server_on_fire/this_is_fine |
| Uncertainty | not_sure_if_bug/or_feature |
| Hot takes | tabs_are_better_than_spaces |
| Priorities | my_code/new_framework/current_project |
| One does not simply | one_does_not_simply/deploy_on_friday |
| Context | Template | Why |
|---|---|---|
| Comparing options | | Two-panel reject/approve format |
| Celebrating wins | | Positive outcome emphasis |
| Problems ignored | | Ironic "everything is fine" |
| Uncertainty | | "Not sure if X or Y" format |
| Controversial opinion | | Statement + challenge |
| Ubiquitous things | | "X, X everywhere" |
| Bad ideas | | "One does not simply..." |
| Platform | Dimensions |
|---|---|
| Social media (Open Graph) | 1200x630 |
| Slack/Discord | 800x600 |
| GitHub | Default |
| Avoid | Why | Instead |
|---|---|---|
| Spaces without encoding | URL breaks | Use |
| Too much text | Unreadable | 2-6 words per line |
| Wrong template | Message mismatch | Match template to context |
| Missing extension | Invalid URL | Always include |
| Unencoded special chars | URL breaks | Use |
| Assuming template exists | 404 error | Check templates list first |
curl -I "https://api.memegen.link/images/buzz/test/test.png"
# Should return: HTTP/2 200| Extension | Use Case |
|---|---|
| Best quality, default |
| Smaller file size |
| Modern, good compression |
| Animated templates |
?width=800
?height=600
?width=800&height=600 (padded to exact)?layout=top # Text at top only
?layout=bottom # Text at bottom only
?layout=default # Standard top/bottom?font=impact (default)https://api.memegen.link/images/custom/hello/world.png?style=https://example.com/image.jpgTemplate: fry
https://api.memegen.link/images/fry/not_sure_if_feature/or_bug.pngTemplate: interesting
https://api.memegen.link/images/interesting/i_dont_always_test/but_when_i_do_i_do_it_in_production.pngTemplate: yodawg
https://api.memegen.link/images/yodawg/yo_dawg_i_heard_you_like_docs/so_i_documented_the_documentation.pngTemplate: fine
https://api.memegen.link/images/fine/memory_usage_at_99~/this_is_fine.pngTemplate: success
https://api.memegen.link/images/success/deployed_to_production/zero_downtime.pngHere's a relevant meme:
def generate_status_meme(status: str, message: str):
template_map = {
"success": "success",
"failure": "fine",
"review": "fry",
"deploy": "interesting"
}
template = template_map.get(status, "buzz")
words = message.split()
top = "_".join(words[0:3])
bottom = "_".join(words[3:6])
return f"https://api.memegen.link/images/{template}/{top}/{bottom}.png"from meme_generator import MemeGenerator
meme = MemeGenerator()
url = meme.generate("buzz", "features", "features everywhere")
print(url)| Endpoint | Purpose |
|---|---|
| List all templates |
| Template details |
| Available fonts |
| Generate meme |
| Document | Content |
|---|---|
| markdown-memes-guide.md | 15+ textual meme formats (greentext, copypasta, ASCII, etc.) |
| examples.md | Practical usage examples |
| Script | Purpose |
|---|---|
| meme_generator.py | Python helper for meme generation |