Skip to main content

Leonardo Diffusion XL - Image Generator

Advanced diffusion-based AI image generation model by Leonardo AI. Delivers exceptional artistic quality with sophisticated diffusion algorithms, superior detail reproduction, creative versatility, and comprehensive controls including Alchemy enhancement, Prompt Magic, and professional-grade features for artistic applications.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesFeature type identifier. Must be IMAGE_GENERATOR
modelstringYesAI model identifier. Must be 1e60896f-3c26-4296-8ecc-53e2afecc132
promptObjectobjectYesConfiguration object containing all generation parameters

Prompt Object Parameters

Basic Parameters

ParameterTypeRequiredDescriptionDefault
promptstringYesText description of the image to generate-
sizestringYesGenerated image dimensions1024x1024
nnumberYesNumber of images to generate (1-4)1
negativePromptstringNoDescribe what you don't want in the image-

Leonardo Common Parameters

ParameterTypeRequiredDescriptionDefaultRange
leonardo_guidance_scaleintegerNoHow strongly generation reflects the prompt71-20
leonardo_num_inference_stepsintegerNoNumber of inference steps for generation1510-60
leonardo_seedintegerNoFixed seed for consistency across generations-0-9999999998
leonardo_tillingbooleanNoWhether images should tile on all axesfalse-
leonardo_transparencystringNoType of transparency to use-disabled, foreground_only
leonardo_preset_stylestringNoStyle preset for generation-Dynamic based on Alchemy settings

Image Guidance Parameters

ParameterTypeRequiredDescriptionDefaultRange
leonardo_image_promptsarrayNoUpload images to use as image prompts-Max 4 images
leonardo_init_image_idstringNoInit image ID to influence generation features-Required for Fantasy Avatar
leonardo_init_strengthfloatNoHow strongly generated images reflect init image-0.1-0.9
leonardo_fantasy_avatarbooleanNoEnable Fantasy Avatar feature (requires Init Image ID when enabled)false-

Alchemy Parameters

ParameterTypeRequiredDescriptionDefaultRange
leonardo_alchemybooleanNoEnable Alchemy enhancementtrue-
leonardo_contrast_ratiofloatNoContrast ratio for Alchemy-0-1
leonardo_expanded_domainbooleanNoEnable Expanded Domain featurefalse-
leonardo_photo_realbooleanNoEnable PhotoReal featurefalse-
leonardo_photo_real_versionstringNoPhotoReal version (automatically set to v2 when PhotoReal is enabled)v2v2
leonardo_photo_real_strengthfloatNoPhotoReal depth of field (v1 only)0.550.45, 0.5, 0.55

Prompt Magic Parameters

ParameterTypeRequiredDescriptionDefaultRange
leonardo_prompt_magicbooleanNoEnable Prompt Magicfalse-
leonardo_prompt_magic_versionstringNoPrompt Magic versionv3v2, v3
leonardo_prompt_magic_strengthfloatNoStrength of Prompt Magic-0.1-1.0
leonardo_hight_constrastbooleanNoEnable High Contrast (controls RAW mode)false-
leonardo_hight_resolutionbooleanNoEnable High Resolutionfalse-

Enhance Prompt Parameters

ParameterTypeRequiredDescriptionDefault
leonardo_enhance_promptbooleanNoEnable prompt enhancementfalse
leonardo_enhance_prompt_instructionstringNoInstructions for prompt enhancement-

Supported Image Sizes

SizeResolutionUse Case
512x512Standard squareQuick iterations, concepts
1024x768LandscapeWide compositions, scenes
768x1024PortraitVertical compositions, characters
1024x1024High-res squareHigh-quality artistic work

Diffusion XL Features

FeatureDescription
Advanced Diffusion AlgorithmsSophisticated mathematical models for superior image generation
Exceptional Detail ReproductionFine detail preservation and enhancement capabilities
Artistic VersatilityWide range of artistic styles and creative applications
Alchemy EnhancementAdvanced AI processing for professional-grade output
Prompt MagicAI-powered prompt expansion and optimization
PhotoReal TechnologyPhotorealistic image generation capabilities
High ResolutionEnhanced detail and clarity for professional work
Creative ControlComprehensive parameters for artistic direction

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "IMAGE_GENERATOR",
"model": "1e60896f-3c26-4296-8ecc-53e2afecc132",
"promptObject": {
"prompt": "digital art masterpiece, fantasy landscape with floating islands, ethereal lighting, detailed environment",
"negativePrompt": "low quality, blurry, amateur, simple, plain",
"size": "1024x1024",
"n": 1,
"leonardo_alchemy": true,
"leonardo_guidance_scale": 9,
"leonardo_num_inference_steps": 30,
"leonardo_prompt_magic": true,
"leonardo_prompt_magic_version": "v3",
"leonardo_hight_resolution": true
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Describe the image you want to generate
Describe what you don't want in the image
Generated image dimensions
Number of images to generate (1-4)
How strongly generation reflects the prompt (1-20)
Number of inference steps (10-60)
Fixed seed for consistency (0-9999999998)
Enable tiling on all axes
Type of transparency to use
Enable Alchemy enhancement
Alchemy contrast ratio (0-1)
Enable Expanded Domain feature
Enable PhotoReal feature
How strongly generated images reflect init image (0.1-0.9)
Enable Fantasy Avatar feature (requires Init Image ID when enabled)
Enable Prompt Magic
Prompt Magic version (v2 or v3)
Strength of Prompt Magic (0.1-1.0)
Enable High Contrast (controls RAW mode)
Enable High Resolution
Enable prompt enhancement
Instructions for prompt enhancement

Generated 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": "1e60896f-3c26-4296-8ecc-53e2afecc132",
"promptObject": {
"prompt": "digital art masterpiece, fantasy landscape with floating islands, ethereal lighting, detailed environment",
"negativePrompt": "low quality, blurry, amateur, simple, plain",
"size": "1024x1024",
"n": 1,
"leonardo_alchemy": true,
"leonardo_guidance_scale": 9,
"leonardo_num_inference_steps": 30
}
}'

Response Format

{
"aiRecord": {
"uuid": "e4f5g6h7-i8j9-0123-4567-890123defghi",
"userId": "user-12345",
"teamId": "team-67890",
"model": "1e60896f-3c26-4296-8ecc-53e2afecc132",
"type": "IMAGE_GENERATOR",
"status": "SUCCESS",
"createdAt": "2025-01-15T10:50:00.000Z",
"aiRecordDetail": {
"promptObject": {
"prompt": "digital art masterpiece, fantasy landscape with floating islands, ethereal lighting, detailed environment",
"negativePrompt": "low quality, blurry, amateur, simple, plain",
"size": "1024x1024",
"n": 1,
"leonardo_alchemy": true,
"leonardo_guidance_scale": 9,
"leonardo_num_inference_steps": 30,
"leonardo_prompt_magic": true,
"leonardo_prompt_magic_version": "v3",
"leonardo_hight_resolution": true
},
"resultObject": [
"development/images/2025_01_15_10_50_45_001_diffusion_art.webp"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2025_01_15_10_50_45_001_diffusion_art.webp?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
}
}

Use Cases

Professional Art & Design

  • Digital Art: High-quality illustrations, concept art, and digital paintings
  • Commercial Design: Marketing materials, brand imagery, and promotional content
  • Fine Art: Artistic expressions, abstract compositions, and creative explorations
  • Print Media: High-resolution artwork for publications, posters, and displays
  • Web Design: Website graphics, headers, backgrounds, and visual elements

Creative & Entertainment

  • Concept Art: Game development, movie pre-production, and creative projects
  • Fantasy Art: Magical landscapes, creatures, characters, and mythical scenes
  • Science Fiction: Futuristic environments, technology concepts, and space scenes
  • Artistic Studies: Style exploration, technique development, and creative learning
  • Portfolio Work: Professional artwork for artistic portfolios and exhibitions

Technical & Professional

  • Architectural Visualization: Building concepts, interior design, and spatial planning
  • Product Visualization: Design concepts, prototypes, and marketing imagery
  • Educational Materials: Instructional graphics, diagrams, and learning aids
  • Research Visualization: Scientific concepts, data representation, and technical illustrations
  • Documentation: Technical manuals, guides, and reference materials