naftiko: 1.0.0-alpha2 info: label: Leonardo.AI Variation description: 'Leonardo.AI Variation. 6 operations. Lead operation: Create unzoom. Self-contained Naftiko capability covering the Leonardo.AI Variation business surface.' tags: - Leonardo.AI - Variation 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: variation baseUri: https://cloud.leonardo.ai/api/rest/v1 description: Leonardo.AI Variation business capability. Self-contained, no shared references. resources: - name: variations-unzoom path: /variations/unzoom operations: - name: create-variation-unzoom method: POST description: This endpoint will create an unzoom variation for the provided image ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: variations-upscale path: /variations/upscale operations: - name: create-variation-upscale method: POST description: This endpoint will create an upscale for the provided image ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: variations-nobg path: /variations/nobg operations: - name: create-variation-no-bg method: POST description: This endpoint will create a no background variation of the provided image ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: variations-universal-upscaler path: /variations/universal-upscaler operations: - name: create-universal-upscaler-job method: POST description: This endpoint will create a high resolution image using Universal Upscaler outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: variations-id path: /variations/{id} operations: - name: get-variation-by-id method: GET description: This endpoint will get the variation by ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: '"id" is required' required: true - name: motion-variations-id path: /motion-variations/{id} operations: - name: get-motion-variation-by-id method: GET description: This endpoint will get the motion variation by ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string description: '"id" is required' required: true authentication: type: bearer value: '{{env.LEONARDO_AI_API_KEY}}' placement: header exposes: - type: rest namespace: variation-rest port: 8080 description: REST adapter for Leonardo.AI Variation. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/variations/unzoom name: variations-unzoom description: REST surface for variations-unzoom. operations: - method: POST name: create-variation-unzoom description: This endpoint will create an unzoom variation for the provided image ID call: variation.create-variation-unzoom with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/variations/upscale name: variations-upscale description: REST surface for variations-upscale. operations: - method: POST name: create-variation-upscale description: This endpoint will create an upscale for the provided image ID call: variation.create-variation-upscale with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/variations/nobg name: variations-nobg description: REST surface for variations-nobg. operations: - method: POST name: create-variation-no-bg description: This endpoint will create a no background variation of the provided image ID call: variation.create-variation-no-bg with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/variations/universal-upscaler name: variations-universal-upscaler description: REST surface for variations-universal-upscaler. operations: - method: POST name: create-universal-upscaler-job description: This endpoint will create a high resolution image using Universal Upscaler call: variation.create-universal-upscaler-job with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/variations/{id} name: variations-id description: REST surface for variations-id. operations: - method: GET name: get-variation-by-id description: This endpoint will get the variation by ID call: variation.get-variation-by-id with: id: rest.id outputParameters: - type: object mapping: $. - path: /v1/motion-variations/{id} name: motion-variations-id description: REST surface for motion-variations-id. operations: - method: GET name: get-motion-variation-by-id description: This endpoint will get the motion variation by ID call: variation.get-motion-variation-by-id with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: variation-mcp port: 9090 transport: http description: MCP adapter for Leonardo.AI Variation. One tool per consumed operation, routed through this capability's consumes block. tools: - name: leonardo-ai-create-variation-unzoom description: This endpoint will create an unzoom variation for the provided image ID hints: readOnly: false destructive: false idempotent: false call: variation.create-variation-unzoom with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-create-variation-upscale description: This endpoint will create an upscale for the provided image ID hints: readOnly: false destructive: false idempotent: false call: variation.create-variation-upscale with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-create-variation-no-bg description: This endpoint will create a no background variation of the provided image ID hints: readOnly: false destructive: false idempotent: false call: variation.create-variation-no-bg with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-create-universal-upscaler-job description: This endpoint will create a high resolution image using Universal Upscaler hints: readOnly: false destructive: false idempotent: false call: variation.create-universal-upscaler-job with: body: tools.body outputParameters: - type: object mapping: $. - name: leonardo-ai-get-variation-by-id description: This endpoint will get the variation by ID hints: readOnly: true destructive: false idempotent: true call: variation.get-variation-by-id with: id: tools.id outputParameters: - type: object mapping: $. - name: leonardo-ai-get-motion-variation-by-id description: This endpoint will get the motion variation by ID hints: readOnly: true destructive: false idempotent: true call: variation.get-motion-variation-by-id with: id: tools.id outputParameters: - type: object mapping: $.