What is LoRA
LoRA is a novel technique in AI image generation, applying minimal tweaks to the standard models for significant enhancements. For example, Pixel-Art-XL is a LoRA adaptation for Stable Diffusion XL, specifically designed to enhance its pixel art generation capabilities. Using the same prompt, SDXL and SDXL+Pixl-Art-LoRA generate completely different images.
![](https://files.readme.io/b619481-2024-03-25_4.26.02.png)
curl -X POST "https://api.hyperbolic.xyz/v1/image/generation" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPERBOLIC_API_KEY" \
-d '{
"model_name": "SDXL1.0-base",
"prompt": "a cute cat",
"height": 1024,
"width": 1024,
"backend": "auto",
"lora": {"Pixel_Art": 1.0}
}' | jq -r ".images[0].image" | base64 -d > result.jpg
We support various LoRAs for Stable Diffusion v1.5 and Stable Diffusion XL, each introducing unique functionalities to these models.
![](https://files.readme.io/7d2616a-2024-03-25_5.12.25.png)
You can also mix LoRAs to customize your creations. Adjusting the weight of each LoRA enables us to control its influence, like combining Logo and Pixel Art LoRAs for a distinctive logo.
![{"Pixel_Art": 0.5, "Logo": 0.5, "Paint_Splash": 0.9}](https://files.readme.io/6e43223-cat_pixel_logo.png)
{"Pixel_Art": 0.5, "Logo": 0.5, "Paint_Splash": 0.9}
curl -X POST "https://api.hyperbolic.xyz/v1/image/generation" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPERBOLIC_API_KEY" \
-d '{
"model_name": "SDXL1.0-base",
"prompt": "a cute cat",
"height": 1024,
"width": 1024,
"backend": "auto",
"lora": {"Pixel_Art": 0.5, "Logo": 0.5, "Paint_Splash": 0.9}
}' | jq -r ".images[0].image" | base64 -d > result.jpg
Supported Lora List
Model Name | LoRA Name | Example Picture |
---|---|---|
SDXL1.0 | Add_Detail | |
More_Art | ||
Pixel_Art | ||
Logo | ||
Sci-fi | ||
Crayons | ||
Paint_Splash | ||
Outdoor_Product_Photography | ||
SD1.5 | Add_Detail | |
Superhero | ||
Lineart | ||
Anime_Lineart | ||
Cartoon_Background | ||
Pencil_Sketch |
We're constantly adding new LoRAs to inspire your next masterpiece. Stay tuned!
Updated 5 months ago