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.

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.

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}

{"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 NameLoRA NameExample Picture
SDXL1.0Add_Detail
More_Art
Pixel_Art
Logo
Sci-fi
Crayons
Paint_Splash
Outdoor_Product_Photography
SD1.5Add_Detail
Superhero
Lineart
Anime_Lineart
Cartoon_Background
Pencil_Sketch

We're constantly adding new LoRAs to inspire your next masterpiece. Stay tuned!