naftiko: 1.0.0-alpha2 info: label: Memesio API Contracts — face-swap description: 'Memesio API Contracts — face-swap. 2 operations. Lead operation: Execute Real-Time Face Swap for Image/Video Frame, with Preview Fallback When GPU Estimate Exceeds 2 Seconds. Self-contained Naftiko capability covering one Memesio business surface.' tags: - Memesio - face-swap created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MEMESIO_API_KEY: MEMESIO_API_KEY capability: consumes: - type: http namespace: memesio-face-swap baseUri: '' description: Memesio API Contracts — face-swap business capability. Self-contained, no shared references. resources: - name: api-ai-face-swap path: /api/ai/face-swap operations: - name: post method: POST description: Execute Real-Time Face Swap for Image/Video Frame, with Preview Fallback When GPU Estimate Exceeds 2 Seconds outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-ai-face-targets path: /api/ai/face-targets operations: - name: post method: POST description: Detect Multiple Face Targets and Return Selector Payload for Target Selection UI 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-face-swap-rest port: 8080 description: REST adapter for Memesio API Contracts — face-swap. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/ai/face-swap name: api-ai-face-swap description: REST surface for api-ai-face-swap. operations: - method: POST name: post description: Execute Real-Time Face Swap for Image/Video Frame, with Preview Fallback When GPU Estimate Exceeds 2 Seconds call: memesio-face-swap.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/ai/face-targets name: api-ai-face-targets description: REST surface for api-ai-face-targets. operations: - method: POST name: post description: Detect Multiple Face Targets and Return Selector Payload for Target Selection UI call: memesio-face-swap.post with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: memesio-face-swap-mcp port: 9090 transport: http description: MCP adapter for Memesio API Contracts — face-swap. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: execute-real-time-face-swap description: Execute Real-Time Face Swap for Image/Video Frame, with Preview Fallback When GPU Estimate Exceeds 2 Seconds hints: readOnly: false destructive: false idempotent: false call: memesio-face-swap.post with: body: tools.body outputParameters: - type: object mapping: $. - name: detect-multiple-face-targets-and description: Detect Multiple Face Targets and Return Selector Payload for Target Selection UI hints: readOnly: true destructive: false idempotent: false call: memesio-face-swap.post with: body: tools.body outputParameters: - type: object mapping: $.