# Memegen

> Browse meme templates and generate captioned images.

App · 6 actions. Web page: https://docs.lodol.com/docs/integrations/memegen

## Actions

### Create meme

Generate an image from a built-in template and return its URL.

**Inputs**

- Template (`template_id`, text, required): Choose the image template.
- Caption lines (`text`, list, required): Enter the caption for each line in template order.
- Font (`font`, text): Choose the caption font.
- Image format (`extension`, text): Choose image format. One of: `png`, `jpg`, `webp`, `gif`.

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "url": "https://api.memegen.link/images/drake/Too_much_text/Short_caption.png"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get font

Get the name and link for a caption font.

**Inputs**

- Record (`record_id`, text, required): ID of a font

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "id": "impact",
    "name": "Impact"
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get template

Get the caption requirements and example for a meme template.

**Inputs**

- Record (`record_id`, text, required): ID of a meme template

**Outputs**

- `data` (object): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": {
    "id": "drake",
    "lines": 2,
    "name": "Drake Hotline Bling",
    "styles": []
  },
  "has_more": false,
  "next_cursor": null
}
```

### List example memes

Browse published example memes, optionally filtered by template.

**Inputs**

- Filter (`filter`, text): Part of the template name or example to match

**Outputs**

- `data` (list): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": [
    {
      "template": "drake",
      "url": "https://api.memegen.link/images/drake/example.jpg"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### List fonts

Get the fonts available for meme captions.

**Inputs**: None.

**Outputs**

- `data` (list): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": [
    {
      "id": "impact",
      "name": "Impact"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

### List templates

Find built-in meme templates and the number of caption lines they support.

**Inputs**

- Filter (`filter`, text): Part of the name, keyword, or example to match
- Animated (`animated`, true/false): Limit results to templates supporting animation

**Outputs**

- `data` (list): The data returned by the service.
- `has_more` (true/false): Whether the service reports another page.
- `next_cursor` (text): Continuation value when the service reports another page.

**Example output**

```json
{
  "data": [
    {
      "id": "drake",
      "lines": 2,
      "name": "Drake Hotline Bling",
      "styles": []
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```
