# StableMemes AI Meme Edit

> StableMemes AI Meme Edit 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).

Edit and regenerate an existing meme template with AI-generated captions using the Imgflip API

## Facts

- Endpoint: POST https://stablememes.dev/api/memelord/ai_meme/edit
- 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-ai-meme-edit-e7a1a758
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x_FahRGXxfKVsXS2CRSPz

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-ai-meme-edit-e7a1a758 -d '<json body>'
```

Example prompt: Use StableMemes to generate an AI-captioned meme from the 'Distracted Boyfriend' template — the template ID is 112126428.

## When to prefer this

Use this endpoint when you have a specific meme template ID and want AI to automatically generate appropriate caption text for it. Prefer this over manual captioning endpoints when you want AI creativity applied to a known template format.

## Known failure modes

- Invalid or missing template_id returns a 400 or error response
- Template ID not found in Imgflip's database returns an error
- Payment failure (insufficient USDC) blocks the request
- Rate limiting or quota exceeded returns a 429 error
- AI caption generation failure returns a generic error or empty captions

## How this service works

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

## Output

Returns a captioned meme image (likely a URL or image data) generated by AI based on the specified meme template, with AI-written caption text applied to the template.

## Example request

```json
{
 "instruction": "Create a funny meme caption about AI",
 "template_id": "112126428",
 "template_data": {
  "top_text": "Me thinking I understand AI",
  "bottom_text": "Me after reading the documentation"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "instruction": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  },
  "template_id": {
   "type": "string",
   "minLength": 1
  },
  "target_index": {
   "type": "integer",
   "maximum": 9007199254740991,
   "minimum": 1
  },
  "caption_style": {
   "enum": [
    "top",
    "tiktok",
    "snapchat"
   ],
   "type": "string"
  },
  "template_data": {
   "type": "object",
   "propertyNames": {
    "type": "string"
   },
   "additionalProperties": {}
  },
  "clientRequestId": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablememes-ai-meme-edit-e7a1a758/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)
