naftiko: 1.0.0-alpha2 info: label: Leonardo.AI Pricing Calculator description: 'Leonardo.AI Pricing Calculator. 1 operations. Lead operation: Calculating API Cost. Self-contained Naftiko capability covering the Leonardo.AI Pricing Calculator business surface.' tags: - Leonardo.AI - Pricing Calculator 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: pricing-calculator baseUri: https://cloud.leonardo.ai/api/rest/v1 description: Leonardo.AI Pricing Calculator business capability. Self-contained, no shared references. resources: - name: pricing-calculator path: /pricing-calculator operations: - name: pricing-calculator method: POST description: This endpoint returns the cost used for generating images using a particular service type. 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: pricing-calculator-rest port: 8080 description: REST adapter for Leonardo.AI Pricing Calculator. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/pricing-calculator name: pricing-calculator description: REST surface for pricing-calculator. operations: - method: POST name: pricing-calculator description: This endpoint returns the cost used for generating images using a particular service type. call: pricing-calculator.pricing-calculator with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: pricing-calculator-mcp port: 9090 transport: http description: MCP adapter for Leonardo.AI Pricing Calculator. One tool per consumed operation, routed through this capability's consumes block. tools: - name: leonardo-ai-pricing-calculator description: This endpoint returns the cost used for generating images using a particular service type. hints: readOnly: false destructive: false idempotent: false call: pricing-calculator.pricing-calculator with: body: tools.body outputParameters: - type: object mapping: $.