# StableMemes Caption Endpoint

> StableMemes Caption Endpoint is a paid API for AI agents from stablememes.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generate a captioned meme image by providing a template ID and caption text, powered by the Imgflip API

## Facts

- Endpoint: POST https://stablememes.dev/api/caption
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablememes-caption-endpoint-3ac5c2b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2rkk5-AgyBP2W8Wts_3rC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stablememes-caption-endpoint-3ac5c2b9 -d '<json body>'
```

Example prompt: Make me a Drake meme using template ID '181913649' where he's disapproving of 'writing unit tests' and approving of 'shipping to production'.

## When to prefer this

Choose this endpoint when you need to programmatically generate a captioned meme image from a known Imgflip template ID. It is ideal when the user wants to create humorous image content for social media or messaging, especially when leveraging the Imgflip library of 1M+ templates. Prefer this over generic image generation when the output must conform to a recognized meme format.

## Known failure modes

- Invalid or nonexistent template_id returns an error
- Missing required template_id field returns a 400 validation error
- Caption text too long for template returns truncation or error
- Imgflip API downstream outage causes 502/503 response
- Payment of 0.02 USDC not provided causes 402 payment required error

## How this service works

Generate memes via the Imgflip API. Caption templates, search 1M+, auto-caption, and AI memes.

## Output

A URL or image data pointing to the generated captioned meme image, created from the specified Imgflip template with the provided caption text applied.

## Example request

```json
{
 "text0": "When tests fail",
 "text1": "When tests pass",
 "template_id": "61579"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "font": {
   "type": "string"
  },
  "boxes": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "text"
    ],
    "properties": {
     "x": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     },
     "y": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     },
     "text": {
      "type": "string"
     },
     "color": {
      "type": "string"
     },
     "width": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     },
     "height": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
     },
     "outline_color": {
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20,
   "minItems": 1
  },
  "text0": {
   "type": "string"
  },
  "text1": {
   "type": "string"
  },
  "watermark": {
   "type": "boolean",
   "default": true
  },
  "template_id": {
   "type": "string",
   "minLength": 1
  },
  "max_font_size": {
   "type": "integer",
   "maximum": 9007199254740991,
   "exclusiveMinimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablememes-caption-endpoint-3ac5c2b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablememes.dev](https://www.zero.xyz/host/stablememes.dev/llms.txt)
