Leonardo.AI Image API

The Image API from Leonardo.AI — 3 operation(s) for image.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Generative Media AE-110.20

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /generations Generate images from a prompt · Create a Generation of Images #
Ask an LLM
“How do I generate an image from a text prompt?”
“Can I generate several images at once and set their height and width?”
Tell an agent
Generate an image from the prompt {prompt}.
Create {num_images} images of size {width} by {height} from {prompt}.
GET /generations/{id} Get one image generation · Get a Single Generation #
Ask an LLM
“How do I check the status of a generation I started?”
“What images were produced by a specific generation?”
Tell an agent
Get generation {id}.
Show the images from generation {id}.
DELETE /generations/{id} Delete an image generation · Delete a Single Generation #
Ask an LLM
“How do I delete a generation I no longer need?”
“Can I remove a generation by its ID?”
Tell an agent destructive · confirm first
Delete generation {id}.
Remove the generation {id} from my account.
GET /generations/user/{userId} List a user's image generations · Get generations by user ID #
Ask an LLM
“Which generations has a particular user created?”
“Can I page through all generations for one user?”
Tell an agent
List generations for user {userId}.
Show {limit} generations created by user {userId}.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/leonardo-ai:leonardo-ai-image-api"
All apis
curl "https://apis.io/api/v1/apis?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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

leonardo-ai-image-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Leonardo.AI Generation Image API
  description: Create image generations with FLUX, Phoenix, Lucid, Ideogram, GPT Image, Nano Banana, Seedream, and other supported models. Includes generation lifecycle (create, retrieve, delete, list by user).
  version: v1.0.0
  contact:
    name: Leonardo.AI Support
    url: https://docs.leonardo.ai/docs/need-more-support
  license:
    name: Leonardo.AI Terms of Service
    url: https://leonardo.ai/terms-of-service/
servers:
- url: https://cloud.leonardo.ai/api/rest/v1
  description: Leonardo.AI Production API
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (39 KB total) ---
# Full source: https://artifacts.apis.io/leonardo-ai/openapi/leonardo-ai-image-api-openapi.yml