Generate Images Using Alchemy


๐Ÿ“˜

Tip

There is no need to specify which version of Alchemy is required, the models will automatically apply the appropriate Alchemy version.

Sample Request

curl --request POST \
     --url https://cloud.leonardo.ai/api/rest/v1/generations \
     --header 'accept: application/json' \
     --header 'authorization: Bearer <YOUR_API_KEY>' \
     --header 'content-type: application/json' \
     --data '
{
  "height": 512,
  "prompt": "A beautiful sleeping white cat",
  "modelId": "aa77f04e-3eec-4034-9c07-d0f619684628",//Leonardo Kino XL model
  "width": 512,
  "alchemy": true,
  "presetStyle": "CINEMATIC"
}
'

Models and Alchemy Version

This is not a full comprehensive list of all Models. To view all platform models, use the List Platform Models endpoint.

Alchemy Version Applied

Example Models

V2

Leonardo Lightning XL
Leonardo Anime XL
Leonardo Kino XL
Leonardo Vision XL
Leonardo Diffusion XL
AlbedoBase XL
SDXL 1.0
SDXL 0.9

V1

Absolute Reality v1.6
Anime Pastel Dream
Dreamshaper v7
Stable Diffusion 1.5
Stable Diffusion 2.1