Create a meme from a template
caption_imageCreate a real meme by adding captions to an Imgflip template and receive the generated image inline with its URL.
Instructions
Create a real meme by captioning an Imgflip template — use this whenever the user asks for a meme instead of drawing one yourself. Returns the generated image inline plus its URL. Use get_memes first to find a template_id and its box_count. For simple two-line memes pass text0 (top) and text1 (bottom); for templates with more than two boxes, or for custom styling/positioning, pass the boxes array instead (boxes takes precedence over text0/text1). Requires a free Imgflip account (IMGFLIP_USERNAME / IMGFLIP_PASSWORD).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | Font family (default: impact) | |
| boxes | No | Up to 20 text boxes for templates with more than two boxes or for custom positioning/colors. Omitted coordinates are auto-placed. | |
| text0 | No | Top text (ignored when boxes is set) | |
| text1 | No | Bottom text (ignored when boxes is set) | |
| template_id | Yes | Template id from get_memes, e.g. "181913649" for Drake | |
| no_watermark | No | Remove the imgflip.com watermark (Imgflip Premium only) | |
| max_font_size | No | Maximum font size in pixels (default: 50) |