naftiko: 1.0.0-alpha2 info: label: Memesio API Contracts — ai-providers description: 'Memesio API Contracts — ai-providers. 9 operations. Lead operation: Read the Current Actor''s Daily AI Meme Quota, Remaining Generations, and Next Action. Self-contained Naftiko capability covering one Memesio business surface.' tags: - Memesio - ai-providers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MEMESIO_API_KEY: MEMESIO_API_KEY capability: consumes: - type: http namespace: memesio-ai-providers baseUri: '' description: Memesio API Contracts — ai-providers business capability. Self-contained, no shared references. resources: - name: api-ai-memes-generate path: /api/ai/memes/generate operations: - name: get method: GET description: Read the Current Actor's Daily AI Meme Quota, Remaining Generations, and Next Action outputRawFormat: json outputParameters: - name: result type: object value: $. - name: post method: POST description: Select an Existing Meme Template, Generate Captions, and Return Editor-Ready Meme Variants outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-ai-providers-background-remove-benchmark path: /api/ai/providers/background-remove-benchmark operations: - name: get method: GET description: Run or Retrieve Background-Remove Provider Benchmark and Recommendation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: refresh in: query type: boolean - name: api-ai-providers-face-swap-benchmark path: /api/ai/providers/face-swap-benchmark operations: - name: get method: GET description: Run or Retrieve Face-Swap Provider Benchmark and Recommendation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: refresh in: query type: boolean - 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-memes-generate path: /api/v1/memes/generate operations: - name: get method: GET description: Read the Keyed Actor's Daily AI Meme Quota Snapshot outputRawFormat: json outputParameters: - name: result type: object value: $. - name: post method: POST description: Generate AI Meme Variants Synchronously for a Developer or Standalone Agent Key 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-ai-providers-rest port: 8080 description: REST adapter for Memesio API Contracts — ai-providers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/ai/memes/generate name: api-ai-memes-generate description: REST surface for api-ai-memes-generate. operations: - method: GET name: get description: Read the Current Actor's Daily AI Meme Quota, Remaining Generations, and Next Action call: memesio-ai-providers.get outputParameters: - type: object mapping: $. - method: POST name: post description: Select an Existing Meme Template, Generate Captions, and Return Editor-Ready Meme Variants call: memesio-ai-providers.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/ai/providers/background-remove-benchmark name: api-ai-providers-background-remove-benchmark description: REST surface for api-ai-providers-background-remove-benchmark. operations: - method: GET name: get description: Run or Retrieve Background-Remove Provider Benchmark and Recommendation call: memesio-ai-providers.get with: refresh: rest.refresh outputParameters: - type: object mapping: $. - path: /v1/api/ai/providers/face-swap-benchmark name: api-ai-providers-face-swap-benchmark description: REST surface for api-ai-providers-face-swap-benchmark. operations: - method: GET name: get description: Run or Retrieve Face-Swap Provider Benchmark and Recommendation call: memesio-ai-providers.get with: refresh: rest.refresh outputParameters: - type: object mapping: $. - 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-ai-providers.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-ai-providers.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/memes/generate name: api-v1-memes-generate description: REST surface for api-v1-memes-generate. operations: - method: GET name: get description: Read the Keyed Actor's Daily AI Meme Quota Snapshot call: memesio-ai-providers.get outputParameters: - type: object mapping: $. - method: POST name: post description: Generate AI Meme Variants Synchronously for a Developer or Standalone Agent Key call: memesio-ai-providers.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-ai-providers.post with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: memesio-ai-providers-mcp port: 9090 transport: http description: MCP adapter for Memesio API Contracts — ai-providers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: read-current-actor-s-daily-ai description: Read the Current Actor's Daily AI Meme Quota, Remaining Generations, and Next Action hints: readOnly: true destructive: false idempotent: true call: memesio-ai-providers.get outputParameters: - type: object mapping: $. - name: select-existing-meme-template-generate description: Select an Existing Meme Template, Generate Captions, and Return Editor-Ready Meme Variants hints: readOnly: false destructive: false idempotent: false call: memesio-ai-providers.post with: body: tools.body outputParameters: - type: object mapping: $. - name: run-retrieve-background-remove-provider description: Run or Retrieve Background-Remove Provider Benchmark and Recommendation hints: readOnly: true destructive: false idempotent: true call: memesio-ai-providers.get with: refresh: tools.refresh outputParameters: - type: object mapping: $. - name: run-retrieve-face-swap-provider description: Run or Retrieve Face-Swap Provider Benchmark and Recommendation hints: readOnly: true destructive: false idempotent: true call: memesio-ai-providers.get with: refresh: tools.refresh outputParameters: - type: object mapping: $. - 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-ai-providers.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-ai-providers.post with: body: tools.body outputParameters: - type: object mapping: $. - name: read-keyed-actor-s-daily-ai description: Read the Keyed Actor's Daily AI Meme Quota Snapshot hints: readOnly: true destructive: false idempotent: true call: memesio-ai-providers.get outputParameters: - type: object mapping: $. - name: generate-ai-meme-variants-synchronously description: Generate AI Meme Variants Synchronously for a Developer or Standalone Agent Key hints: readOnly: false destructive: false idempotent: false call: memesio-ai-providers.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-ai-providers.post with: body: tools.body outputParameters: - type: object mapping: $.