Leonardo.AI · Capability

Leonardo.AI User

Leonardo.AI User. 1 operations. Lead operation: Get user information. Self-contained Naftiko capability covering the Leonardo.AI User business surface.

Leonardo.AI User 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 GET method rooted at /v1/me.

The capability includes 1 read-only operation. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Leonardo.AI and User.

Run with Naftiko Leonardo.AIUser

What You Can Do

GET
Get user self — This endpoint will return your user information such as your user id, username, token renewal date and current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens
/v1/me

MCP Tools

leonardo-ai-get-user-self

This endpoint will return your user information such as your user id, username, token renewal date and current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens

read-only idempotent

Capability Spec

user.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Leonardo.AI User
  description: 'Leonardo.AI User. 1 operations. Lead operation: Get user information. Self-contained Naftiko capability covering
    the Leonardo.AI User business surface.'
  tags:
  - Leonardo.AI
  - User
  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: user
    baseUri: https://cloud.leonardo.ai/api/rest/v1
    description: Leonardo.AI User business capability. Self-contained, no shared references.
    resources:
    - name: me
      path: /me
      operations:
      - name: get-user-self
        method: GET
        description: 'This endpoint will return your user information such as your user id, username, token renewal date and
          current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens'
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters: []
    authentication:
      type: bearer
      value: '{{env.LEONARDO_AI_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: user-rest
    port: 8080
    description: REST adapter for Leonardo.AI User. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/me
      name: me
      description: REST surface for me.
      operations:
      - method: GET
        name: get-user-self
        description: 'This endpoint will return your user information such as your user id, username, token renewal date and
          current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens'
        call: user.get-user-self
        with: {}
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: user-mcp
    port: 9090
    transport: http
    description: MCP adapter for Leonardo.AI User. One tool per consumed operation, routed through this capability's consumes
      block.
    tools:
    - name: leonardo-ai-get-user-self
      description: 'This endpoint will return your user information such as your user id, username, token renewal date and
        current amounts of the following: subscription tokens, gpt (prompt generation) tokens, and model training tokens'
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: user.get-user-self
      with: {}
      outputParameters:
      - type: object
        mapping: $.