Recent
Recommendations
Webhooks
Service
X (Twitter)
Service
YouTube
Service
Discord
Service
Google Sheets
Service
MyQ
Service
Gmail
Service
Instagram
Service
See all results
Explore
Plans
Log in
Get started
Mobile menu
Close menu
Back
Leonardo AI
Generate an image
This query generates an image in Leonardo AI based on the prompt you provide and returns the image URL when generation is complete.
Developer info
API endpoint slug
leonardo_ai.generate_image
Runtime method
performQuery("leonardo_ai.generate_image"}
Query fields
Prompt
Text input > Long text
Label
Prompt
Helper text
Describe the image you want to generate. Be specific about subject, style, mood, and composition. Each generation consumes Leonardo AI credits.
Slug
prompt
Required
true
Can have default value
true
Model
Dropdown list
Label
Model
Helper text
The Leonardo AI model to use.
Slug
model_id
Required
true
Can have default value
false
Num images
Dropdown list
Label
Number of images
Helper text
How many images to generate.
Slug
num_images
Required
true
Can have default value
true
Ingredients
Image url
URL of the generated image.
Slug
image_url
Filter
LeonardoAi.generateImage.ImageUrl
Type
Image URL
Example
https://cdn.leonardo.ai/users/abc/generations/1a2b3c4d/image_0.png
Generation
The unique ID of the generation.
Slug
generation_id
Filter
LeonardoAi.generateImage.GenerationId
Type
String
Example
1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
Prompt used
The prompt that produced the image.
Slug
prompt_used
Filter
LeonardoAi.generateImage.PromptUsed
Type
String
Example
A serene mountain lake at sunrise, photorealistic
Model used
The Leonardo AI model that produced the image.
Slug
model_used
Filter
LeonardoAi.generateImage.ModelUsed
Type
String
Example
Leonardo Phoenix
Created at
When the image was generated.
Slug
created_at
Filter
LeonardoAi.generateImage.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00
Applets using this Query
Post Leonardo AI images to Discord from Android notifications
by
IFTTT
Save Leonardo AI images to Google Drive from Shortcut
by
iOS Shortcuts
Send Leonardo AI image to Email on Button press
by
Button widget
Post Leonardo AI image to Slack
by
Webhooks
Send Leonardo AI image to Notifications
by
Google
Send Leonardo AI image to Telegram on location entry
by
IFTTT