Leonardo.AI · Capability

Leonardo.AI Pricing Calculator

Leonardo.AI Pricing Calculator. 1 operations. Lead operation: Calculating API Cost. Self-contained Naftiko capability covering the Leonardo.AI Pricing Calculator business surface.

Leonardo.AI Pricing Calculator is a Naftiko capability published by Leonardo.AI, one of 14 capabilities the APIs.io network indexes for this provider. It bundles 1 operation across the POST method rooted at /v1/pricing-calculator.

The capability includes 1 state-changing operation. Lead operation: This endpoint returns the cost used for generating images using a particular service type. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Leonardo.AI and Pricing Calculator.

Run with Naftiko Leonardo.AIPricing Calculator

What You Can Do

POST
Pricing calculator — This endpoint returns the cost used for generating images using a particular service type.
/v1/pricing-calculator

MCP Tools

leonardo-ai-pricing-calculator

This endpoint returns the cost used for generating images using a particular service type.

Capability Spec

pricing-calculator.yaml Raw ↑
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: $.