Leonardo.AI · Capability

Leonardo.AI Variation

Leonardo.AI Variation. 6 operations. Lead operation: Create unzoom. Self-contained Naftiko capability covering the Leonardo.AI Variation business surface.

Leonardo.AI Variation is a Naftiko capability published by Leonardo.AI, one of 14 capabilities the APIs.io network indexes for this provider. It bundles 6 operations across the POST and GET methods.

The capability includes 2 read-only operations and 4 state-changing operations. Lead operation: This endpoint will create an unzoom variation for the provided image ID. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Leonardo.AI and Variation.

Run with Naftiko Leonardo.AIVariation

What You Can Do

POST
Create variation unzoom — This endpoint will create an unzoom variation for the provided image ID
/v1/variations/unzoom
POST
Create variation upscale — This endpoint will create an upscale for the provided image ID
/v1/variations/upscale
POST
Create variation no bg — This endpoint will create a no background variation of the provided image ID
/v1/variations/nobg
POST
Create universal upscaler job — This endpoint will create a high resolution image using Universal Upscaler
/v1/variations/universal-upscaler
GET
Get variation by id — This endpoint will get the variation by ID
/v1/variations/{id}
GET
Get motion variation by id — This endpoint will get the motion variation by ID
/v1/motion-variations/{id}

MCP Tools

leonardo-ai-create-variation-unzoom

This endpoint will create an unzoom variation for the provided image ID

leonardo-ai-create-variation-upscale

This endpoint will create an upscale for the provided image ID

leonardo-ai-create-variation-no-bg

This endpoint will create a no background variation of the provided image ID

leonardo-ai-create-universal-upscaler-job

This endpoint will create a high resolution image using Universal Upscaler

leonardo-ai-get-variation-by-id

This endpoint will get the variation by ID

read-only idempotent
leonardo-ai-get-motion-variation-by-id

This endpoint will get the motion variation by ID

read-only idempotent

Capability Spec

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