Leonardo Lightning XL
About Leonardo Lightning XL
Image Generation is an advanced feature that generates compelling images based on a given text prompt. It can easily produce high-quality and original images in a matter of seconds, without the need for specialized design skills or software
Leonardo Lightning XL is a Leonardo AI model available on Eden AI for Image Generation, from $0.011 / image. Call it with the same API key as every other Eden AI model by sending its model string to the Universal AI endpoint, with processing in the United States.
Tasks and prices
Leonardo Lightning XL is available on Eden AI for 1 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.
Parameters
What you send and what you get back when you call Leonardo Lightning XL through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Input
- text (required): text. Text prompt for image generation
- resolution: text. Image resolution as a named size (e.g. '1024x1024'). Optional: providers may also accept native sizing knobs (width/height, aspect_ratio, image_size tier, etc.)
- num_images: number. Number of images to generate
- reference_images: file (images). Optional reference images. Plain file IDs/URLs are treated as ReferenceImage with kind=None. Support and per-model limits vary by model; models that do not acce
- mask: file (images). Optional inpainting mask. Must be paired with at least one reference image (otherwise the request returns 422). Support varies by model; models that do not acce
Response
- items
Estimate your monthly cost
Enter your monthly volume for Image Generation to compare Leonardo Lightning XL with its cheapest alternatives.
Call Leonardo Lightning XL with Eden AI
Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.
import requests
response = requests.post(
"https://api.edenai.run/v3/universal-ai",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "",
"input": {},
},
)
print(response.json())
curl https://api.edenai.run/v3/universal-ai \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "", "input": {}}'
const response = await fetch("https://api.edenai.run/v3/universal-ai", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "",
input: {},
}),
});
console.log(await response.json());
"text": "A lighthouse on a cliff at sunset, watercolor"
Questions about Leonardo Lightning XL
On Eden AI, Leonardo Lightning XL costs $0.011 / image for Image Generation. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Leonardo Lightning XL is available for: Image Generation. Input: Image, Text. Output: items.
Yes. Leonardo Lightning XL is processed in Europe for at least one task: see the Regions column in the Tasks and prices table.
Asynchronous: you start a job, then get the result by polling it or through a webhook. This suits long files such as audio, video or multipage documents.
Eden AI offers Image Generation from 8 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Image Generation
Other Image Generation models you can call with the same key, cheapest first.
More from Leonardo AI
Other Leonardo AI models on Eden AI, for every task.
.avif)

.png)