Leonardo.AI · OpenAPI Overlay 1.0.0

API Evangelist overlay for Leonardo.AI REST API v2

6 actions 6 updates update extends openapi/leonardo-ai-v2-api-openapi.yml
Derived by API Evangelist Built from the contracts Leonardo.AI publishes. Leonardo.AI did not publish this file.
View Overlay File View on GitHub Overlay Specification

What the actions change

externalDocsx-llms-txtx-error-guidex-rate-limit-guidex-async-completionx-mcp-tool

Targets 5

$
$.info
$.paths['/generations'].post
$.paths['/generationssync'].post
$.paths['/models'].get

OpenAPI Overlay

Raw ↑
overlay: 1.0.0
info:
  title: API Evangelist overlay for Leonardo.AI REST API v2
  version: 1.0.0
extends: openapi/leonardo-ai-v2-api-openapi.yml
x-generated: '2026-10-21'
x-method: generated
x-source: openapi/leonardo-ai-v2-api-openapi.yml
x-rationale: Adds provider documentation links (reference pages, llms.txt, error, rate-limit and webhook guides)
  and agent-surface bindings without mutating the OpenAPI. Per-operation reference links are added only for the
  v2 operations whose reference pages the provider indexes in llms.txt.
actions:
- target: $
  description: Add externalDocs pointing at the provider API reference.
  update:
    externalDocs:
      description: Leonardo.Ai API reference
      url: https://docs.leonardo.ai/reference
- target: $.info
  description: Link the provider llms.txt index and error-message guide.
  update:
    x-llms-txt: https://docs.leonardo.ai/llms.txt
    x-error-guide: https://docs.leonardo.ai/docs/api-error-messages
    x-rate-limit-guide: https://docs.leonardo.ai/docs/guide-to-concurrency-queue-and-rate-limit
- target: $.paths['/generations'].post
  description: Link createGeneration to its provider reference page.
  update:
    externalDocs:
      url: https://docs.leonardo.ai/reference/creategeneration.md
- target: $.paths['/generationssync'].post
  description: Link createSyncGeneration to its provider reference page.
  update:
    externalDocs:
      url: https://docs.leonardo.ai/reference/createsyncgeneration.md
- target: $.paths['/models'].get
  description: Link getModels to its provider reference page.
  update:
    externalDocs:
      url: https://docs.leonardo.ai/reference/getmodels.md
- target: $.paths['/generations'].post
  description: Record async completion (webhook callback or polling) and the MCP tool that fronts this operation.
  update:
    x-async-completion:
      webhook_guide: https://docs.leonardo.ai/docs/guide-to-the-webhook-callback-feature
      webhook_auth: 'authorization: Bearer <webhook callback API key>, configured when creating a production API
        key'
      poll_operation: getGenerationById
    x-mcp-tool:
      server: https://mcp.leonardo.ai/v1/mcp
      tool: generate-image
      confidence: medium

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/leonardo-ai-v2-api-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.