naftiko: 1.0.0-alpha2 info: label: Memesio API Contracts — templates description: 'Memesio API Contracts — templates. 3 operations. Lead operation: Detect Meme Template from Source Image and Return 1-2 Caption Slot Placement with Single/Split Assignment Plan. Self-contained Naftiko capability covering one Memesio business surface.' tags: - Memesio - templates created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MEMESIO_API_KEY: MEMESIO_API_KEY capability: consumes: - type: http namespace: memesio-templates baseUri: '' description: Memesio API Contracts — templates business capability. Self-contained, no shared references. resources: - name: api-ai-templates-detect path: /api/ai/templates/detect operations: - name: post method: POST description: Detect Meme Template from Source Image and Return 1-2 Caption Slot Placement with Single/Split Assignment Plan outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-ai-templates-suggest path: /api/ai/templates/suggest operations: - name: post method: POST description: Rank Template Suggestions from Prompt + Trend Signals for Creative Ideation Flow outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-v1-templates-ideas path: /api/v1/templates/ideas operations: - name: post method: POST description: Return Ranked Meme Template Ideas for a Prompt Using a Developer or Agent Key outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-developer-api-key value: '{{env.MEMESIO_API_KEY}}' placement: header exposes: - type: rest namespace: memesio-templates-rest port: 8080 description: REST adapter for Memesio API Contracts — templates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/ai/templates/detect name: api-ai-templates-detect description: REST surface for api-ai-templates-detect. operations: - method: POST name: post description: Detect Meme Template from Source Image and Return 1-2 Caption Slot Placement with Single/Split Assignment Plan call: memesio-templates.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/ai/templates/suggest name: api-ai-templates-suggest description: REST surface for api-ai-templates-suggest. operations: - method: POST name: post description: Rank Template Suggestions from Prompt + Trend Signals for Creative Ideation Flow call: memesio-templates.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/templates/ideas name: api-v1-templates-ideas description: REST surface for api-v1-templates-ideas. operations: - method: POST name: post description: Return Ranked Meme Template Ideas for a Prompt Using a Developer or Agent Key call: memesio-templates.post with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: memesio-templates-mcp port: 9090 transport: http description: MCP adapter for Memesio API Contracts — templates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: detect-meme-template-source-image description: Detect Meme Template from Source Image and Return 1-2 Caption Slot Placement with Single/Split Assignment Plan hints: readOnly: false destructive: false idempotent: false call: memesio-templates.post with: body: tools.body outputParameters: - type: object mapping: $. - name: rank-template-suggestions-prompt-trend description: Rank Template Suggestions from Prompt + Trend Signals for Creative Ideation Flow hints: readOnly: false destructive: false idempotent: false call: memesio-templates.post with: body: tools.body outputParameters: - type: object mapping: $. - name: return-ranked-meme-template-ideas description: Return Ranked Meme Template Ideas for a Prompt Using a Developer or Agent Key hints: readOnly: false destructive: false idempotent: false call: memesio-templates.post with: body: tools.body outputParameters: - type: object mapping: $.