Official Memelord API

Super Official Top Secret Memelord AI Meme API for Hackers

Authentication

All API requests require an API key in the Authorization header.

Get your API key: Visit Developer Settings to create and manage your API keys.

GET KEY
Authorization: Bearer mlord_live_xxxxxxxxxxxxxxxxxxxxxx

Credits

Each API call consumes credits from your account balance. Credit costs vary by endpoint:

EndpointCredits per request
POST /api/v1/ai-meme1 credit per meme
POST /api/v1/ai-meme/edit1 credit per edit
POST /api/v1/ai-video-meme5 credits per video
POST /api/v1/ai-video-meme/edit5 credits per edit

Note: The count parameter multiplies the credit cost. For example, generating 3 video memes in one request costs 15 credits.

Get Credits

01Quick Start

Generate a rendered meme and get back a download URL:

curl -X POST https://www.memelord.com/api/v1/ai-meme \
  -H "Authorization: Bearer mlord_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "developer fixing bugs at 3am"}'

Endpoint:

  • POST /api/v1/ai-meme — Generates and renders memes, returns hosted download URLs with template metadata.
  • POST /api/v1/ai-meme/edit — Edit the text of an existing meme using AI

02Endpoint

POST /api/v1/ai-meme

Generates memes with text overlays and returns signed download URLs with template metadata.

Credits: Each meme costs 1 credit. When using the count parameter, total cost = count x 1.

Request Body

ParameterTypeRequiredDescription
promptstringYesTopic or idea for the meme
countnumberNoNumber of memes (default: 1, max: 10)
categorystringNo"trending" or "classic"
include_nsfwbooleanNoInclude NSFW templates (default: true)

Response (200)

{
  "success": true,
  "prompt": "when the code works on the first try",
  "total_generated": 2,
  "results": [
    {
      "success": true,
      "url": "https://...signed-download-url...",
      "expires_in": 86400,
      "template_name": "Drake Hotline Bling",
      "template_id": "abc-123"
    }
  ]
}

03Edit Endpoint

POST /api/v1/ai-meme/edit

Edit the text of an existing meme. Provide the original template data and an instruction describing what to change.

Credits: Each edit costs 1 credit.

Request Body

ParameterTypeRequiredDescription
instructionstringYesWhat to change about the meme text
template_idstringYesTemplate asset ID from the original generation response
template_dataobjectYesLayout data with render_mode, width, height, and optional template/caption/expanded_height
target_indexnumberNoIndex of text box to target (>= 1)

Response (200)

{
  "success": true,
  "url": "https://...signed-download-url...",
  "expires_in": 86400,
  "template_id": "abc-123",
  "template_data": {
    "render_mode": "template",
    "width": 800,
    "height": 600,
    "template": [...],
    "caption": null,
    "expanded_height": null
  },
  "edit_summary": "Changed the top text to reference JavaScript"
}

Example

curl -X POST https://www.memelord.com/api/v1/ai-meme/edit \
  -H "Authorization: Bearer mlord_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "instruction": "make it about javascript instead",
    "template_id": "abc-123",
    "template_data": {
      "render_mode": "template",
      "width": 800,
      "height": 600,
      "template": [...]
    }
  }'

Tip: Pass the template_id and template_data from the original /api/v1/ai-meme response directly into the edit request.

04Example Outputs

ai-startup-haroldviral-winnieplayoff-cattelling-claude-to-try-againai-cigmake-millions-believe
Official Memelord API | Memelord | Memelord.com