Leonardo.AI Image Generation API
Create image generations with FLUX.2 Pro, FLUX Dev, FLUX Schnell, FLUX.1 Kontext, Phoenix, Lucid Origin, Lucid Realism, Ideogram 3.0, GPT Image 2, Nano Banana, Seedream, and other supported models. POST /generations submits a job; results are retrieved via GET /generations/{id} or via the optional webhook callback. Supports PhotoReal, Alchemy, image prompts, image guidance (ControlNet), enhanced prompts, transparency, and per-model knobs.
Documentation
Documentation
https://docs.leonardo.ai/reference/creategeneration
GettingStarted
https://docs.leonardo.ai/docs/getting-started
Specifications
OpenAPI
https://raw.githubusercontent.com/api-evangelist/leonardo-ai/refs/heads/main/openapi/leonardo-ai-image-generation-openapi.json
AsyncAPI
https://raw.githubusercontent.com/api-evangelist/leonardo-ai/refs/heads/main/asyncapi/leonardo-ai-webhooks-asyncapi.yml