Result: Buzz Lightyear meme with "memes" at top and "memes everywhere" at bottom.
Text Formatting
Character
Encoding
Space
_ or -
Newline
~n
Question mark
~q
Percent
~p
Slash
~s
Hash
~h
Single quote
''
Double quote
""
Popular Templates
Template
Use Case
Example
buzz
X, X everywhere
bugs/bugs_everywhere
drake
Comparisons
manual_testing/automated_testing
success
Victories
deployed/no_errors
fine
Things going wrong
server_on_fire/this_is_fine
fry
Uncertainty
not_sure_if_bug/or_feature
changemind
Hot takes
tabs_are_better_than_spaces
distracted
Priorities
my_code/new_framework/current_project
mordor
One does not simply
one_does_not_simply/deploy_on_friday
Template Selection Guide
Context
Template
Why
Comparing options
drake
Two-panel reject/approve format
Celebrating wins
success
Positive outcome emphasis
Problems ignored
fine
Ironic "everything is fine"
Uncertainty
fry
"Not sure if X or Y" format
Controversial opinion
changemind
Statement + challenge
Ubiquitous things
buzz
"X, X everywhere"
Bad ideas
mordor
"One does not simply..."
Validation
After generating a meme:
URL returns valid image (test in browser)
Text is readable (not too long)
Template matches the message context
Special characters properly encoded
Dimensions appropriate for platform
Platform Dimensions
Platform
Dimensions
Social media (Open Graph)
1200x630
Slack/Discord
800x600
GitHub
Default
Anti-Patterns
Avoid
Why
Instead
Spaces without encoding
URL breaks
Use _ or -
Too much text
Unreadable
2-6 words per line
Wrong template
Message mismatch
Match template to context
Missing extension
Invalid URL
Always include .png, .jpg, etc.
Unencoded special chars
URL breaks
Use ~q, ~s, ~p, etc.
Assuming template exists
404 error
Check templates list first
Verification
Meme generation is successful when:
URL is valid - Returns HTTP 200
Image renders - Displays correctly in markdown
Text is visible - Properly formatted on image
Context matches - Template fits the message
Test command:
curl -I "https://api.memegen.link/images/buzz/test/test.png"
# Should return: HTTP/2 200
Image Formats
Extension
Use Case
.png
Best quality, default
.jpg
Smaller file size
.webp
Modern, good compression
.gif
Animated templates
Dimensions
?width=800
?height=600
?width=800&height=600 (padded to exact)
`### Layout Options`
?layout=top # Text at top only
?layout=bottom # Text at bottom only
?layout=default # Standard top/bottom