Close menu
Explore Plans
Mobile menu Close menu
Leonardo AI

Get generation details

Pro plus icon This query returns the images and metadata for a completed generation in your Leonardo AI account.

Developer info

API endpoint slug
leonardo_ai.get_generation_details
Runtime method
performQuery("leonardo_ai.get_generation_details"}

Query fields

Generation Text input > Other

Label
Generation ID
Helper text
The ID of the generation to retrieve. Use the GenerationId ingredient from the "New image generation" trigger.
Slug
generation_id
Required
true
Can have default value
true

Ingredients

Generation The unique ID of the generation.

Slug
generation_id
Filter code
LeonardoAi.getGenerationDetails.GenerationId
Type
String
Example
1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d

First image url URL of the first image in the generation.

Slug
first_image_url
Filter code
LeonardoAi.getGenerationDetails.FirstImageUrl
Type
Image URL
Example
https://cdn.leonardo.ai/users/abc/generations/1a2b3c4d/image_0.png

Prompt The text prompt used to create the generation.

Slug
prompt
Filter code
LeonardoAi.getGenerationDetails.Prompt
Type
String
Example
A serene mountain lake at sunrise, photorealistic

Model The ID of the Leonardo AI model used for the generation.

Slug
model_id
Filter code
LeonardoAi.getGenerationDetails.ModelId
Type
String
Example
de7d3faf-762f-48e0-b3b7-9d0ac3a3fcf3

Image count How many images the generation produced.

Slug
image_count
Filter code
LeonardoAi.getGenerationDetails.ImageCount
Type
String
Example
4

Created at When the generation was created.

Slug
created_at
Filter code
LeonardoAi.getGenerationDetails.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00