Meme Generator and Template Database

FREEMIUM
By eximia | Updated 22 days ago | Entertainment
Popularity

8.8 / 10

Latency

1,696ms

Service Level

100%

Health Check

N/A

Followers: 0
Resources:
Product Website
API Creator:
Rapid account: Eximia
eximia
eximia
Log In to Rate API
Rating: 3 - Votes: 2

README

The Meme Generator API is a powerful tool for creating custom memes with a variety of options and customization. With support for multiple languages and a range of fonts, users can create memes that are tailored to their specific needs.

General endopints:

/search

Returns meme templates that contain a specific string. searchString is case sensitive.

/fonts

Any of the fonts can be used in any text box or caption.
Some fonts are language specific:

  • Chinese -> zcool-wenyi
  • Japanese -> takaopmincho
  • Korean -> gugi
  • Hindi -> poppins

/templates

Returns all of the currently supported templates and the number of text boxes that a particular template can support. For how to use this response go to /template/:image.


Meme generation endpoints:

/template/{image}

The image path parameter corresponds to a meme template you want to add text too. Images are fixed width of 500px and variable length depending on the template for a list all available images call /templates.
template/:image comes with predefined text boxes that are generally used with those images, text size is not included in the text box definitions.
If the text is larger then the box it will ignore the height restriction.
The request includes text0 -> textn keys where n is the number of text boxes a meme template usually has, its not required to use all of them.
textn fields:

  • text -> Text contents.
  • font -> What font to use.
  • font_size -> Font size.
  • text_angle -> How many degrees to rotate the text box, the axis is the center of the text box.
  • text_color -> Color of the text in (R,G,B) format that has to be a string exactly defined as the examples
  • text_stroke_color -> Text outline color (R,G,B)
  • text_stroke_width -> Width of the text outline
  • text_align -> Alignment of text inside of a text box can be ‘center’, ‘left’ or ‘right’
  • text_wrap -> Whether to wrap text to a new line if it goes over text box width either True or False

/text-box/{image}

The image path parameter corresponds to a meme template you want to add text too.
text-box/:image requires the text boxes to be defined when sending the request (max 15 text boxes) sample structure provided in example.
If the text overflows the bounds of a text box it ignores the height parameter.
Text Box Fields:

  • x , y -> Where the left top corner of a text box is located on a image.
  • width -> Width of a text box
  • height -> Height of a text box (optional)
  • text -> Text contents
  • font -> What font to use
  • font_size -> font size
  • text_angle -> how many degrees to rotate the text box, the axis is the center of the text box
  • text_color -> color of the text in (R,G,B)
  • text_stroke_color -> text outline color (R,G,B)
  • text_stroke_width -> width of the text outline
  • text_align -> alignment of text inside of a text box can be ‘center’, ‘left’ or ‘right’
  • text_placement -> text placement inside of a text box can be ‘center’, ‘top’ or ‘bottom’
  • text_wrap -> Whether to wrap text to a new line if it goes over text box width either True or False

/caption/{image}

The image path parameter corresponds to a meme template you want to add text too.
caption/:image expands the image with the text added on the bottom or top depending on parameters, the amount expanded is proportional to text height.
Request body (either for top/bot):

  • text -> Text for the caption
  • font_size -> Font size for top text
  • font -> What font to use
  • text_color -> color of the text in “(R.G.B)”
  • text_stroke_color -> text outline color “(R.G.B)”
  • text_stroke_width -> width of the outline
  • text_align -> alignment of text inside the caption can be either ‘center’, ‘left’ or ‘right’