{"version":1,"resources":["https://stablememes.dev/api/templates","https://stablememes.dev/api/caption","https://stablememes.dev/api/caption_gif","https://stablememes.dev/api/search","https://stablememes.dev/api/get_meme","https://stablememes.dev/api/automeme","https://stablememes.dev/api/ai_meme"],"description":"Generate memes — caption templates, search 1M+, auto-caption, and AI memes.","instructions":"StableMemes — Generate memes via the Imgflip API. Caption popular templates, search 1M+ templates, or let AI make a whole meme from a prompt.\n\n## Flow\n\nPaid endpoints cost $0.01 in USDC via x402 on Base. Generation endpoints (caption, caption_gif, automeme, ai_meme) accept an optional watermark flag (default true). Pass watermark=false to remove the imgflip.com watermark for $0.02 instead.\n\n1. POST /api/templates — List the ~100 most popular templates (SIWX, free). Use when you need a template_id.\n2. POST /api/search — Search all 1M+ templates by name.\n3. POST /api/caption — Caption an image template with text. Returns url + page_url.\n4. POST /api/caption_gif — Caption an animated GIF template.\n5. POST /api/automeme — Pick a template automatically from your phrase and caption it.\n6. POST /api/ai_meme — AI generates both template choice and captions from an optional topic.\n7. POST /api/get_meme — Fetch one template's metadata by id.\n\n## Templates\n\nPOST /api/templates\nBody: { \"type\": \"image\" | \"gif\" | \"both\" }  (default \"image\")\nReturns: { memes: [{ id, name, url, width, height, box_count }, ...] }\n\n## Caption\n\nPOST /api/caption\nBody: { \"template_id\": \"61579\", \"text0\": \"top text\", \"text1\": \"bottom text\", \"font\"?: \"impact\" | \"arial\" | google-font-name, \"max_font_size\"?: 50, \"watermark\"?: true }\nOr use boxes for memes with >2 text slots:\nBody: { \"template_id\": \"...\", \"boxes\": [{ \"text\": \"...\", \"x\"?: 10, \"y\"?: 10, \"width\"?: 548, \"height\"?: 100, \"color\"?: \"#ffffff\", \"outline_color\"?: \"#000000\" }, ...] }\nMax 20 boxes. When using boxes, text is NOT auto-uppercased.\nPass watermark=false to strip the imgflip.com watermark at the bottom ($0.02 instead of $0.01).\nReturns: { url, page_url }\n\n## Caption GIF\n\nPOST /api/caption_gif\nSame shape as /api/caption but template_id must be a GIF template. Only the boxes format is supported (no text0/text1).\n\n## Automeme\n\nPOST /api/automeme\nBody: { \"text\": \"nobody got time for reading long API docs\" }\nReturns: { url, page_url }\n\n## AI Meme\n\nPOST /api/ai_meme\nBody: { \"model\"?: \"openai\" | \"classic\", \"template_id\"?: \"61579\", \"prefix_text\"?: \"topic\" }\nReturns: { url, page_url, template_id, texts }\n\n## Get Meme\n\nPOST /api/get_meme\nBody: { \"template_id\": \"61579\" }\nReturns one template's metadata."}