naftiko: 1.0.0-alpha2 info: label: Leonardo.AI Realtime Canvas description: 'Leonardo.AI Realtime Canvas. 4 operations. Lead operation: Create LCM Generation. Self-contained Naftiko capability covering the Leonardo.AI Realtime Canvas business surface.' tags: - Leonardo.AI - Realtime Canvas 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: realtime-canvas baseUri: https://cloud.leonardo.ai/api/rest/v1 description: Leonardo.AI Realtime Canvas business capability. Self-contained, no shared references. resources: - name: generations-lcm path: /generations-lcm operations: - name: create-lcmgeneration method: POST description: This endpoint will generate a LCM image generation. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: lcm-instant-refine path: /lcm-instant-refine operations: - name: perform-instant-refine method: POST description: This endpoint will perform instant refine on a LCM image outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: lcm-inpainting path: /lcm-inpainting operations: - name: perform-inpainting-lcm method: POST description: This endpoint will perform a inpainting on a LCM image outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: lcm-upscale path: /lcm-upscale operations: - name: perform-alchemy-upscale-lcm method: POST description: This endpoint will perform Alchemy Upscale on a LCM image outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer value: '{{env.LEONARDO_AI_API_KEY}}' placement: header exposes: - type: rest namespace: realtime-canvas-rest port: 8080 description: REST adapter for Leonardo.AI Realtime Canvas. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/generations-lcm name: generations-lcm description: REST surface for generations-lcm. operations: - method: POST name: create-lcmgeneration description: This endpoint will generate a LCM image generation. call: realtime-canvas.create-lcmgeneration with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lcm-instant-refine name: lcm-instant-refine description: REST surface for lcm-instant-refine. operations: - method: POST name: perform-instant-refine description: This endpoint will perform instant refine on a LCM image call: realtime-canvas.perform-instant-refine with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lcm-inpainting name: lcm-inpainting description: REST surface for lcm-inpainting. operations: - method: POST name: perform-inpainting-lcm description: This endpoint will perform a inpainting on a LCM image call: realtime-canvas.perform-inpainting-lcm with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lcm-upscale name: lcm-upscale description: REST surface for lcm-upscale. operations: - method: POST name: perform-alchemy-upscale-lcm description: This endpoint will perform Alchemy Upscale on a LCM image call: realtime-canvas.perform-alchemy-upscale-lcm with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: realtime-canvas-mcp port: 9090 transport: http description: MCP adapter for Leonardo.AI Realtime Canvas. One tool per consumed operation, routed through this capability's consumes block. tools: - name: leonardo-ai-create-lcmgeneration description: This endpoint will generate a LCM image generation. hints: readOnly: false destructive: false idempotent: false call: realtime-canvas.create-lcmgeneration with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-perform-instant-refine description: This endpoint will perform instant refine on a LCM image hints: readOnly: false destructive: false idempotent: false call: realtime-canvas.perform-instant-refine with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-perform-inpainting-lcm description: This endpoint will perform a inpainting on a LCM image hints: readOnly: false destructive: false idempotent: false call: realtime-canvas.perform-inpainting-lcm with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-perform-alchemy-upscale-lcm description: This endpoint will perform Alchemy Upscale on a LCM image hints: readOnly: false destructive: false idempotent: false call: realtime-canvas.perform-alchemy-upscale-lcm with: body: tools.body outputParameters: - type: object mapping: $.