naftiko: 1.0.0-alpha2 info: label: Leonardo.AI Init Images description: 'Leonardo.AI Init Images. 4 operations. Lead operation: Upload init image. Self-contained Naftiko capability covering the Leonardo.AI Init Images business surface.' tags: - Leonardo.AI - Init Images created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: LEONARDO_AI_API_KEY: LEONARDO_AI_API_KEY capability: consumes: - type: http namespace: init-images baseUri: https://cloud.leonardo.ai/api/rest/v1 description: Leonardo.AI Init Images business capability. Self-contained, no shared references. resources: - name: init-image path: /init-image operations: - name: upload-init-image method: POST description: This endpoint returns presigned details to upload an init image to S3 outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: init-image-id path: /init-image/{id} operations: - name: get-init-image-by-id method: GET description: This endpoint will return a single init image outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: _"id" is required_ required: true - name: delete-init-image-by-id method: DELETE description: This endpoint deletes an init image outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: _"id" is required_ required: true - name: canvas-init-image path: /canvas-init-image operations: - name: upload-canvas-init-image method: POST description: This endpoint returns presigned details to upload an init image and a mask image to S3 outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer value: '{{env.LEONARDO_AI_API_KEY}}' placement: header exposes: - type: rest namespace: init-images-rest port: 8080 description: REST adapter for Leonardo.AI Init Images. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/init-image name: init-image description: REST surface for init-image. operations: - method: POST name: upload-init-image description: This endpoint returns presigned details to upload an init image to S3 call: init-images.upload-init-image with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/init-image/{id} name: init-image-id description: REST surface for init-image-id. operations: - method: GET name: get-init-image-by-id description: This endpoint will return a single init image call: init-images.get-init-image-by-id with: id: rest.id outputParameters: - type: object mapping: $. - method: DELETE name: delete-init-image-by-id description: This endpoint deletes an init image call: init-images.delete-init-image-by-id with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/canvas-init-image name: canvas-init-image description: REST surface for canvas-init-image. operations: - method: POST name: upload-canvas-init-image description: This endpoint returns presigned details to upload an init image and a mask image to S3 call: init-images.upload-canvas-init-image with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: init-images-mcp port: 9090 transport: http description: MCP adapter for Leonardo.AI Init Images. One tool per consumed operation, routed through this capability's consumes block. tools: - name: leonardo-ai-upload-init-image description: This endpoint returns presigned details to upload an init image to S3 hints: readOnly: false destructive: false idempotent: false call: init-images.upload-init-image with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-get-init-image-by-id description: This endpoint will return a single init image hints: readOnly: true destructive: false idempotent: true call: init-images.get-init-image-by-id with: id: tools.id outputParameters: - type: object mapping: $. - name: leonardo-ai-delete-init-image-by-id description: This endpoint deletes an init image hints: readOnly: false destructive: true idempotent: true call: init-images.delete-init-image-by-id with: id: tools.id outputParameters: - type: object mapping: $. - name: leonardo-ai-upload-canvas-init-image description: This endpoint returns presigned details to upload an init image and a mask image to S3 hints: readOnly: false destructive: false idempotent: false call: init-images.upload-canvas-init-image with: body: tools.body outputParameters: - type: object mapping: $.