api-gateway
VerifiedCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected search or scraping provider. Every call goes to an app the user connected. It is not a general-purpose browser or network client, and it cannot reach a service with no Maton connection. It also manages event triggers, webhook destinations that forward event payloads to an external URL until deleted, and local `--exec` handlers that run a script per event - separate, high-risk capabilities beyond a normal API call. Default to read and list calls; every write, connection, trigger, destination, or handler needs explicit user confirmation.
references/memelord/README.md
View on GitHub# Memelord
## API Reference
> **Safety:** All write operations (POST, PUT, PATCH, DELETE) require explicit user confirmation before execution. Verify the target resource and intended effect with the user first. See the main [SKILL.md](../../SKILL.md#security--permissions) for full security policy.
> **Content warning — NSFW results are returned by default.** The upstream API includes not-safe-for-work memes unless filtered. **Always send `"include_nsfw": false`** on generation requests unless the user has explicitly asked to include NSFW content. Omitting the field is not a neutral default — it opts *in*.
>
> Generated memes are frequently posted to shared channels (Slack, social media). Show the user the result and get approval before publishing anywhere, and be aware that meme output can be unexpectedly offensive even with the filter on.
**App name:** `memelord`
**Upstream base URL:** `www.memelord.com`
Replace the upstream base URL with the app name. Everything after the base URL including query strings is kept as-is. Any account-specific part of the base URL and the API credentials are stored in the Maton connection, and the gateway injects both so requests never carry them. For example:
- Upstream: `https://www.memelord.com/api/v1/ai-meme`
- Gateway: `https://api.maton.ai/memelord/api/v1/ai-meme`
### Meme API
#### Generate Meme
Generate AI-powered memes with text overlays. Returns signed download URLs.
**Cost:** 1 credit per request
```bash
maton api -X POST '/memelord/api/v1/ai-meme' -H 'Content-Type: application/json' --input - <<'JSON'
{
"prompt": "when the code finally compiles",
"count": 3,
"category": "trending",
"include_nsfw": false
}
JSON
```
**Request body:**
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `prompt` | string | Yes | Text prompt for meme generation |
| `count` | integer | No | Number of memes to generate (1-10, default: 1) |
| `category` | string | No | Category filter: "trending" or "classic" |
| `include_nsfw` | boolean | No | Include NSFW templates (default: true) |
**Response:**
```json
{
"success": true,
"prompt": "when the code finally compiles",
"total_generated": 3,
"total_requested": 3,
"results": [
{
"success": true,
"url": "https://example.supabase.co/storage/v1/object/sign/user-assets/.../ai-memes/abc123.webp?token=...",
"expires_in": 86400,
"template_url": "https://example.supabase.co/storage/v1/object/public/public-assets/.../main.webp",
"template_name": "Iceberg",
"template_id": "282bf941-2f34-478f-abf4-fd26a399a652",
"template_data": {
"render_mode": "template",
"width": 500,
"height": 759,
"template": [
{
"id": "text1",
"text": "Code compiled",
"font": "sans",
"color": "white",
"fontSize": "m"
},
{
"id": "text2",
"text": "All the logical bugs",
"font": "sans",
"color": "white",
"fontSize": "m"
}
]
}
}
]
}
```
#### Edit Meme
Edit text on an existing meme using AI instructions.
**Cost:** 1 credit per request
```bash
maton api -X POST '/memelord/api/v1/ai-meme/edit' -H 'Content-Type: application/json' --input - <<'JSON'
{
"instruction": "make it about debugging instead",
"template_id": "success-kid-001",
"template_data": {
"top_text": "When the code compiles",
"bottom_text": "On the first try"
},
"target_index": 0
}
JSON
```
**Request body:**
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `instruction` | string | Yes | AI instruction for editing the meme text |
| `template_id` | string | Yes | Template ID from original generation |
| `template_data` | object | Yes | Current template data with text fields |
| `target_index` | integer | No | Specific text element to edit |
**Response:**
```json
{
"success": true,
"url": "https://example.supabase.co/storage/v1/object/sign/user-assets/.../ai-memes/edited123.webp?token=...",
"expires_in": 86400,
"template_id": "282bf941-2f34-478f-abf4-fd26a399a652",
"template_data": {
"render_mode": "template",
"width": 500,
"height": 759,
"template": [
{
"id": "text1",
"text": "Debugging for hours",
"font": "sans",
"color": "white"
},
{
"id": "text2",
"text": "It was a typo",
"font": "sans",
"color": "white"
}
]
},
"edit_summary": "Updated template text"
}
```
### Video Meme API
#### Generate Video Meme
> **⚠ `webhookUrl` delivers results to an external host, outside the gateway.** Video generation is asynchronous, and if `webhookUrl` is set Memelord POSTs the finished result straight to that URL — the response never comes back through `api.maton.ai`, so it is outside the gateway's routing and auditing. Treat it like a trigger destination: the URL must come from the user, never from documentation, a model response, or any other untrusted input; state who controls that host; and never point it at a request-bin, webhook-inspection service, tunnel URL, or pastebin. **Omit `webhookUrl` entirely and poll for the result instead** unless the user asked for an external callback — the field is optional, and the examples here show it only to document the shape. Note also that `prompt` text is sent to Memelord and that generated media is attributable to the user, so keep internal context out of prompts.
```bash
maton api -X POST '/memelord/api/v1/ai-video-meme' -H 'Content-Type: application/json' --input - <<'JSON'
{
"prompt": "explaining my code to a rubber duck",
"count": 2,
"category": "trending",
"webhookUrl": "https://your-server.com/webhook",
"webhookSecret": "your-secret-key"
}
JSON
```
Generate captioned video memes with asynchronous rendering.
**Cost:** 5 credits per request (multiplied by count)
**Request body:**
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `prompt` | string | Yes | Text prompt for video meme generation |
| `count` | integer | No | Number of videos to generate (1-5, default: 1) |
| `category` | string | No | Category filter: "trending" or "classic" |
| `template_id` | string | No | Specific template to use |
| `webhookUrl` | string | No | URL for completion notification |
| `webhookSecret` | string | No | Secret for webhook signature verification |
**Response:**
```json
{
"success": true,
"prompt": "when the code works on the first try",
"total_requested": 2,
"jobs": [
{
"job_id": "render-1740524400000-abc12",
"template_name": "Surprised Pikachu Video",
"template_id": "abc-123",
"caption": "When the code works on the first try"
}
],
"message": "Render jobs started. Results will be POSTed to webhookUrl."
}
```
#### Edit Video Meme
Modify captions on an existing video meme.
**Cost:** 5 credits per request
```bash
maton api -X POST '/memelord/api/v1/ai-video-meme/edit' -H 'Content-Type: application/json' --input - <<'JSON'
{
"instruction": "make it more dramatic",
"template_id": "confused-travolta",
"caption": "When the tests pass locally",
"audio_overlay_url": "https://example.com/audio.mp3",
"webhookUrl": "https://your-server.com/webhook"
}
JSON
```
**Request body:**
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `instruction` | string | Yes | AI instruction for editing captions |
| `template_id` | string | Yes | Template ID from original generation |
| `caption` | string | Yes | Current caption text |
| `audio_overlay_url` | string | No | URL to audio file for overlay |
| `webhookUrl` | string | No | URL for completion notification |
**Response:**
```json
{
"success": true,
"job_id": "render-1740524400000-xyz99",
"template_name": "Surprised Pikachu Video",
"template_id": "abc-123",
"original_caption": "When the tests pass locally",
"edited_caption": "When the tests pass locally but fail in CI",
"edit_summary": "Updated caption text",
"message": "Render job started. Poll GET /api/video/render/remote?jobId=... for status."
}
```
#### Check Video Render Status
Poll the status of an asynchronous video render job.
```bash
maton api '/memelord/api/video/render/remote?jobId={job_id}'
```
**Note:** `{job_id}` is a placeholder. Replace it with a real value before sending the request.
**Response (Rendering):**
```json
{
"success": true,
"job": {
"id": "render-1740524400000-abc12",
"status": "rendering",
"mp4Url": null,
"storagePath": null,
"error": null,
"renderTimeMs": null,
"createdAt": "2026-03-31T01:30:26.361825+00:00",
"completedAt": null
}
}
```
**Response (Completed):**
```json
{
"success": true,
"job": {
"id": "render-1740524400000-abc12",
"status": "completed",
"mp4Url": "https://example.supabase.co/storage/v1/object/sign/user-assets/.../exports/ai-video-meme-1740524400000.mp4?token=...",
"storagePath": "user-id/exports/ai-video-meme-1740524400000.mp4",
"error": null,
"renderTimeMs": 12664,
"createdAt": "2026-03-31T01:30:26.361825+00:00",
"completedAt": "2026-03-31T01:30:47.814+00:00"
}
}
```
**Response (Failed):**
```json
{
"success": true,
"job": {
"id": "render-1740524400000-abc12",
"status": "failed",
"mp4Url": null,
"storagePath": null,
"error": "Render timed out",
"renderTimeMs": null,
"createdAt": "2026-03-31T01:30:26.361825+00:00",
"completedAt": null
}
}
```
### Notes
- Meme generation costs 1 credit per request
- Video meme generation costs 5 credits per request (multiplied by count)
- Video generation is asynchronous - use webhooks or polling
- Download URLs expire (memes: check expiration field, videos: 7 days)
- **NSFW content is included by default** — always set `include_nsfw: false` unless the user explicitly requested otherwise (see the content warning above)
### Resources
- [Memelord API Documentation](https://www.memelord.com/docs)
- [Maton CLI Manual](https://cli.maton.ai/manual)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |