---
title: "Render a hosted meme from a stored template using anonymous or keyed caption input"
method: POST
path: "/api/v1/memes/caption-template"
tags: ["developer-api", "memes"]
---

# Render a hosted meme from a stored template using anonymous or keyed caption input

`POST /api/v1/memes/caption-template`

## Request body

- FreeCaptionMemeRequest
  - `templateSlug` string, required
  - `captions` union[], required
    - union
      - string
      - CaptionInput
        - `id` string
        - `text` string, required
        - `x` number
        - `y` number
        - `fontSize` number
        - `boxWidthPct` number
        - `boxHeightPct` number
        - `maxLines` integer
        - `textAlign` 'left' | 'center' | 'right'
        - `fontFamily` 'impact' | 'arial' | 'poster'
  - `title` string
  - `visibility` 'private' | 'public'
  - `watermark` FreeMemeWatermark — Caption API requests accept watermark input, but non-premium callers are forced to the default Memesio watermark. Premium callers can customize enabled, text, position, and scale.
    - `enabled` boolean
    - `text` string
    - `position` 'top_left' | 'top_right' | 'bottom_left' | 'bottom_right'
    - `scale` number

## Response `201`

Captioned meme created

- FreeCaptionMemeSuccessResponse
  - `success` true, required
  - `data` object, required
    - `slug` string, required
    - `shareSlug` string, required
    - `templateSlug` string, required
    - `title` string, required
    - `visibility` 'private' | 'public', required
    - `imageUrl` string, required
    - `canonicalImageUrl` string, required
    - `altText` string, required
    - `tags` string[], required
    - `apiUrl` string, required
    - `pageUrl` string, required
    - `ownerToken` string, required
    - `captions` string[], required
    - `watermark` FreeMemeWatermark, required — Caption API requests accept watermark input, but non-premium callers are forced to the default Memesio watermark. Premium callers can customize enabled, text, position, and scale.
      - `enabled` boolean
      - `text` string
      - `position` 'top_left' | 'top_right' | 'bottom_left' | 'bottom_right'
      - `scale` number

## Other responses

- `400` — Validation error or unsupported template
- `401` — Invalid API key when one is provided
- `429` — Rate limit exceeded

---

[API](https://skmtc.net/memesio/apis/memesio-api-contracts.md) · [All operations](https://skmtc.net/memesio/apis/memesio-api-contracts/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/memesio/memesio-api-contracts/revisions/826e6edbf294/schema)
