Leonardo Lightning XL - Image Generator
High-speed AI image generation model by Leonardo AI. Lightning XL delivers ultra-fast image generation without compromising quality, featuring Alchemy enhancement, Prompt Magic, advanced negative prompting capabilities, and optimized performance for rapid creative workflows and high-volume content production.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Feature type identifier. Must be IMAGE_GENERATOR |
model | string | Yes | AI model identifier. Must be b24e16ff-06e3-43eb-8d33-4416c2d75876 |
promptObject | object | Yes | Configuration object containing all generation parameters |
Prompt Object Parameters
Basic Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
prompt | string | Yes | Text description of the image to generate | - |
size | string | Yes | Generated image dimensions | 1024x1024 |
n | number | Yes | Number of images to generate (1-4) | 1 |
negativePrompt | string | No | Describe what you don't want in the image | - |
Leonardo Common Parameters
| Parameter | Type | Required | Description | Default | Range |
|---|---|---|---|---|---|
leonardo_guidance_scale | integer | No | How strongly generation reflects the prompt | 7 | 1-20 |
leonardo_num_inference_steps | integer | No | Number of inference steps for generation | 15 | 10-60 |
leonardo_seed | integer | No | Fixed seed for consistency across generations | - | 0-9999999998 |
leonardo_tilling | boolean | No | Whether images should tile on all axes | false | - |
leonardo_transparency | string | No | Type of transparency to use | - | disabled, foreground_only |
leonardo_preset_style | string | No | Style preset for generation | - | Dynamic based on Alchemy settings |
Image Guidance Parameters
| Parameter | Type | Required | Description | Default | Range |
|---|---|---|---|---|---|
leonardo_image_prompts | array | No | Upload images to use as image prompts | - | Max 4 images |
leonardo_init_image_id | string | No | Init image ID to influence generation features | - | Required for Fantasy Avatar |
leonardo_init_strength | float | No | How strongly generated images reflect init image | - | 0.1-0.9 |
leonardo_fantasy_avatar | boolean | No | Enable Fantasy Avatar feature (requires Init Image ID when enabled) | false | - |
Alchemy Parameters
| Parameter | Type | Required | Description | Default | Range |
|---|---|---|---|---|---|
leonardo_alchemy | boolean | No | Enable Alchemy enhancement | true | - |
leonardo_contrast_ratio | float | No | Contrast ratio for Alchemy | - | 0-1 |
leonardo_expanded_domain | boolean | No | Enable Expanded Domain feature | false | - |
leonardo_photo_real | boolean | No | Enable PhotoReal feature | false | - |
leonardo_photo_real_version | string | No | PhotoReal version (automatically set to v2 when PhotoReal is enabled) | v2 | v2 |
leonardo_photo_real_strength | float | No | PhotoReal depth of field (v1 only) | 0.55 | 0.45, 0.5, 0.55 |
Prompt Magic Parameters
| Parameter | Type | Required | Description | Default | Range |
|---|---|---|---|---|---|
leonardo_prompt_magic | boolean | No | Enable Prompt Magic | false | - |
leonardo_prompt_magic_version | string | No | Prompt Magic version | v3 | v2, v3 |
leonardo_prompt_magic_strength | float | No | Strength of Prompt Magic | - | 0.1-1.0 |
leonardo_hight_constrast | boolean | No | Enable High Contrast (controls RAW mode) | false | - |
leonardo_hight_resolution | boolean | No | Enable High Resolution | false | - |
Enhance Prompt Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
leonardo_enhance_prompt | boolean | No | Enable prompt enhancement | false |
leonardo_enhance_prompt_instruction | string | No | Instructions for prompt enhancement | - |
Supported Image Sizes
| Size | Resolution | Use Case |
|---|---|---|
| 512x512 | Standard square | Quick generations, thumbnails |
| 1024x768 | Landscape | Wide aspect ratio images |
| 768x1024 | Portrait | Vertical aspect ratio images |
| 1024x1024 | High-res square | High-quality square images |
Lightning XL Features
| Feature | Description |
|---|---|
| Lightning Speed | Ultra-fast generation optimized for rapid iteration |
| Alchemy Enhancement | Advanced AI processing for superior quality |
| Prompt Magic | AI-powered prompt expansion and optimization |
| PhotoReal Technology | Photorealistic image generation |
| Advanced Negative Prompting | Precise exclusion controls for results |
| High Resolution | Enhanced detail and clarity |
| Batch Processing | Efficient multiple image creation |
| Professional Output | Commercial-grade image quality |
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "b24e16ff-06e3-43eb-8d33-4416c2d75876",
"promptObject": {
"prompt": "Professional business portrait in modern office, corporate lighting, high resolution",
"negativePrompt": "blurry, distorted, low quality, cartoon, amateur",
"size": "1024x1024",
"n": 1,
"leonardo_alchemy": true,
"leonardo_guidance_scale": 8,
"leonardo_num_inference_steps": 20,
"leonardo_prompt_magic": true,
"leonardo_prompt_magic_version": "v3"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'IMAGE_GENERATOR',
model: 'b24e16ff-06e3-43eb-8d33-4416c2d75876',
promptObject: {
prompt: 'Professional business portrait in modern office, corporate lighting, high resolution',
negativePrompt: 'blurry, distorted, low quality, cartoon, amateur',
size: '1024x1024',
n: 1,
leonardo_alchemy: true,
leonardo_guidance_scale: 8,
leonardo_num_inference_steps: 20,
leonardo_prompt_magic: true,
leonardo_prompt_magic_version: 'v3'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "IMAGE_GENERATOR",
"model": "b24e16ff-06e3-43eb-8d33-4416c2d75876",
"promptObject": {
"prompt": "Professional business portrait in modern office, corporate lighting, high resolution",
"negativePrompt": "blurry, distorted, low quality, cartoon, amateur",
"size": "1024x1024",
"n": 1,
"leonardo_alchemy": True,
"leonardo_guidance_scale": 8,
"leonardo_num_inference_steps": 20,
"leonardo_prompt_magic": True,
"leonardo_prompt_magic_version": "v3"
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresGenerated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_GENERATOR",
"model": "b24e16ff-06e3-43eb-8d33-4416c2d75876",
"promptObject": {
"prompt": "Professional business portrait in modern office, corporate lighting, high resolution",
"negativePrompt": "blurry, distorted, low quality, cartoon, amateur",
"size": "1024x1024",
"n": 1,
"leonardo_alchemy": true,
"leonardo_guidance_scale": 8,
"leonardo_num_inference_steps": 20
}
}'
Response Format
{
"aiRecord": {
"uuid": "e4f5g6h7-i8j9-0123-4567-890123defghi",
"userId": "user-12345",
"teamId": "team-67890",
"model": "b24e16ff-06e3-43eb-8d33-4416c2d75876",
"type": "IMAGE_GENERATOR",
"status": "SUCCESS",
"createdAt": "2025-01-15T10:50:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "Professional business portrait in modern office, corporate lighting, high resolution",
"negativePrompt": "blurry, distorted, low quality, cartoon, amateur",
"size": "1024x1024",
"n": 1,
"leonardo_alchemy": true,
"leonardo_guidance_scale": 8,
"leonardo_num_inference_steps": 20,
"leonardo_prompt_magic": true,
"leonardo_prompt_magic_version": "v3"
},
"resultObject": [
"development/images/2025_01_15_10_50_45_001_lightning_portrait.webp"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_50_45_001_lightning_portrait.webp?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
}
}
Use Cases
High-Volume Production
- Content Marketing: Rapid creation of marketing visuals and social media content
- E-commerce: Fast product photography and catalog imagery
- A/B Testing: Quick iteration for testing different visual approaches
- Rapid Prototyping: Fast visual concept development and validation
- Blog Content: Quick creation of article illustrations and headers
Professional Applications
- Corporate Photography: Business portraits, team photos, professional headshots
- Event Coverage: Quick generation of event-related imagery
- Presentation Graphics: Fast creation of slide visuals and diagrams
- Training Materials: Rapid development of educational content
- Documentation: Quick visual aids for technical documentation
Creative Workflows
- Design Iteration: Fast generation of multiple design variations
- Concept Art: Rapid exploration of visual ideas and themes
- Storyboarding: Quick creation of visual sequences
- Character Design: Fast iteration on character concepts
- Environmental Art: Rapid generation of background and setting imagery
Advanced Lightning Optimization
Speed-Focused Parameters
- Inference Steps: Use 15-25 steps for optimal speed vs quality balance
- Guidance Scale: 7-10 range provides good results with faster processing
- Batch Generation: Generate 2-4 images simultaneously for efficiency
- Simplified Prompts: Clear, concise descriptions process faster
Quality Enhancement with Speed
- Alchemy + Lightning: Combine for enhanced quality without significant speed loss
- Prompt Magic v3: Latest version optimizes both speed and output quality
- High Resolution: Selectively use for final versions, not iterations
- Strategic Negative Prompting: Prevent common issues to avoid regeneration
Workflow Optimization
- Iterative Refinement: Start with basic settings, enhance successful generations
- Seed Consistency: Use fixed seeds for consistent style across series
- Template Prompts: Develop prompt templates for common use cases
- Batch Processing: Generate multiple variations in single requests
Negative Prompting Strategies
Quality Control
- Basic Quality: "blurry, low quality, distorted, pixelated, amateur"
- Professional Standard: "unprofessional, poorly lit, bad composition, low resolution"
- Technical Issues: "artifacts, noise, compression, overexposed, underexposed"
Style Management
- Realism Control: "cartoon, anime, sketch, drawing, painted, illustration"
- Photography Focus: "digital art, CGI, rendered, synthetic, artificial"
- Professional Look: "casual, informal, snapshot, candid, amateur"
Content Filtering
- Unwanted Elements: "text, watermark, signature, logo, border, frame"
- Background Control: "cluttered, messy, distracting, busy background"
- Composition Issues: "cropped, cut off, partial, incomplete, truncated"
Lightning XL Best Practices
Speed Optimization
- Concise Prompts: Keep descriptions clear and focused
- Effective Negatives: Use comprehensive negative prompts to avoid issues
- Batch Efficiency: Generate multiple images per request
- Parameter Balance: Find optimal settings for your use case
Quality Maintenance
- Strategic Enhancement: Use Alchemy for important projects
- Prompt Magic: Enable for improved prompt interpretation
- Resolution Planning: Choose appropriate size for end use
- Iterative Improvement: Refine based on initial results
Production Workflows
- Template Development: Create reusable prompt structures
- Style Consistency: Use seeds and settings for brand alignment
- Quality Control: Establish negative prompt libraries
- Efficiency Metrics: Track generation time vs quality for optimization
Credit Usage
Leonardo Lightning XL generation costs by image size and quantity:
| Size | 1 Image | 2 Images | 3 Images | 4 Images |
|---|---|---|---|---|
| 512x512 | 234 credits | 234 credits | 260 credits | 286 credits |
| 1024x768 | 260 credits | 312 credits | 364 credits | 416 credits |
| 768x1024 | 260 credits | 312 credits | 364 credits | 416 credits |
| 1024x1024 | 286 credits | 338 credits | 416 credits | 468 credits |
Lightning XL provides excellent cost-per-speed ratio. For high-volume work, consider generating multiple variations per request to maximize efficiency.
Notes
Lightning XL is specifically optimized for rapid generation without quality compromise, making it ideal for high-volume content production and iterative design workflows.
All Leonardo AI advanced features (Alchemy, Prompt Magic, PhotoReal) are available with Lightning XL, maintaining quality while maximizing speed.
For extensive batch processing, monitor credit usage and consider implementing efficient prompt strategies to optimize cost-effectiveness.
Authentication
This endpoint requires an API key to be provided in the API-KEY header.