Free plan

Meme maker

Add a top and bottom caption to a picture, meme style
POST
/v1/images/meme
With text
Original
OriginalWith text

About this tool

Writes a top text and a bottom text on a picture in the classic meme style: big white capital letters with a dark outline. You can also put the words in bars above and below the picture instead. You can change the font, colours, outline and alignment. The text is sized to fit the picture.
For example, you add a joke to a photo of your cat in a few seconds.

How to use it

  1. Choose this tool.
  2. Add your picture with Upload or drag and drop.
  3. Type the top text and the bottom text.
  4. Choose the style and font if you wish, then press Generate.
  5. Download your meme.

What you get back

You get a new picture with your captions on it, ready to download and share.
GOOD TO KNOW
The letters use the fonts of the service: impact falls back to a bold sans font where Impact is not installed. Counts as one image per picture.
TEST IT LIVE

Try Meme maker in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/meme
Tool ID
images.meme
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/meme" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'top_text=one does not simply' \
  -F 'bottom_text=make a meme' \
  -F 'style=overlay'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.meme({
    "images": 'photo.jpg',
    "top_text": "one does not simply",
    "bottom_text": "make a meme",
    "style": "overlay"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->meme([
    'images' => 'photo.jpg',
    'top_text' => 'one does not simply',
    'bottom_text' => 'make a meme',
    'style' => 'overlay',
]);
echo $result->requestId;
FAQ

Frequently asked questions

Write a top and a bottom text on a picture in the classic bold outlined meme style, or in caption bars above and below the picture. The text is made capitals, split into lines that fit and sized to fill the picture; the font, colours, outline, shadow and alignment are yours.

Meme maker accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Meme maker is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/meme with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.