{"uid":"cap_2rkk5-AgyBP2W8Wts_3rC","slug":"stablememes-caption-endpoint-3ac5c2b9","name":"StableMemes Caption Endpoint","description":"Generate memes via the Imgflip API. Caption templates, search 1M+, auto-caption, and AI memes.","url":"https://stablememes.dev/api/caption","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":{"request":{"text0":"When tests fail","text1":"When tests pass","template_id":"61579"},"response":{"url":"https://i.imgflip.com/aum3fo.jpg","page_url":"https://imgflip.com/i/aum3fo"}},"exampleRequest":{"text0":"When tests fail","text1":"When tests pass","template_id":"61579"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jRa6jD1y84AHq2JTUV-ld","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generate a captioned meme image by providing a template ID and caption text, powered by the Imgflip API","exampleAgentPrompt":"Make me a Drake meme using template ID '181913649' where he's disapproving of 'writing unit tests' and approving of 'shipping to production'.","exampleUseCases":null,"resultDescription":"A URL or image data pointing to the generated captioned meme image, created from the specified Imgflip template with the provided caption text applied.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:32:50.166Z","isFirstParty":false}