# StableMemes AI Meme Generator

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

Generates an AI-powered meme using the Imgflip API based on a specified meme template ID

## Facts

- Endpoint: POST https://stablememes.dev/api/ai_meme
- Price: $0.02/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-generator-a1efce6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oDsFFLUD-CqPZKLwUH1uH

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-generator-a1efce6b -d '<json body>'
```

Example prompt: Create an AI-generated meme using StableMemes with the 'Drake Hotline Bling' template (template ID '181913649') — let the AI automatically write funny captions for it.

## When to prefer this

Use this endpoint when you need AI-automatically-captioned memes from a specific known Imgflip template ID, without needing to supply your own caption text. Prefer this over manual caption endpoints when you want the AI to decide the humor angle. Best for agents that need to produce social media meme content quickly with minimal creative input.

## Known failure modes

- Invalid or missing template_id returns a 400/422 validation error
- Template ID not found in Imgflip database returns an error response
- Payment failure (x402) returns 402 Payment Required before processing
- Imgflip API downstream failure returns a 500 or timeout error
- Rate limiting or quota exceeded returns a 429 error

## How this service works

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

## Output

Returns a meme image (likely a URL or image data) generated by the Imgflip AI, automatically captioned based on the provided template ID.

## Example request

```json
{
 "template_id": "61579"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "openai",
    "classic"
   ],
   "type": "string",
   "default": "openai"
  },
  "watermark": {
   "type": "boolean",
   "default": true
  },
  "prefix_text": {
   "type": "string",
   "maxLength": 64
  },
  "template_id": {
   "type": "string"
  }
 }
}
```

## More

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