---
title: "Detect meme template from source image and return 1-2 caption slot placement with single/split assignment plan"
method: POST
path: "/api/ai/templates/detect"
tags: ["ai-providers", "templates"]
---

# Detect meme template from source image and return 1-2 caption slot placement with single/split assignment plan

`POST /api/ai/templates/detect`

## Request body

- object
  - `sourceImageUrl` string, required
  - `texts` string[]
  - `maxSlots` integer
  - `mappingMode` 'single_or_split'
  - `actorId` string
  - `workspaceId` string
  - `correlationId` string

## Response `200`

Template detection payload

## Other responses

- `400` — Validation error
- `500` — Detection failure

---

[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)
