---
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
widget:
- output:
url: images/example_001.png
text: pixel art style A character with spiky hair and a red jacket standing in a
neon-lit city street at night.
- output:
url: images/example_002.png
text: pixel art style A fantasy castle on a hill with a rainbow in the sky and birds
flying.
- output:
url: images/example_003.png
text: pixel art style A cat sitting on a windowsill with plants and a cup of coffee.
- output:
url: images/example_004.png
text: pixel art style A robot and a human shaking hands in a futuristic laboratory.
- output:
url: images/example_005.png
text: pixel art style A cozy cabin in a snowy forest with smoke from the chimney.
license: apache-2.0
---
# Pixel Art Lora
## Model description
This is a text-to-image LoRA. **Trigger word:** use `pixel art style` in your prompts for best results. The gallery above shows sample generations.
## Trigger word
Prepend **`pixel art style`** to your prompt, for example:
```
pixel art style
```
## Gallery
### Example 1

*Prompt:* pixel art style A character with spiky hair and a red jacket standing in a neon-lit city street at night.
### Example 2

*Prompt:* pixel art style A fantasy castle on a hill with a rainbow in the sky and birds flying.
### Example 3

*Prompt:* pixel art style A cat sitting on a windowsill with plants and a cup of coffee.
### Example 4

*Prompt:* pixel art style A robot and a human shaking hands in a futuristic laboratory.
### Example 5

*Prompt:* pixel art style A cozy cabin in a snowy forest with smoke from the chimney.
## Example prompts
Prompts used for the gallery above:
- pixel art style A character with spiky hair and a red jacket standing in a neon-lit city street at night.
- pixel art style A fantasy castle on a hill with a rainbow in the sky and birds flying.
- pixel art style A cat sitting on a windowsill with plants and a cup of coffee.
- pixel art style A robot and a human shaking hands in a futuristic laboratory.
- pixel art style A cozy cabin in a snowy forest with smoke from the chimney.
## LoRA scale
The gallery was generated with **`lora_scale=0.5`**. You can tune this when running inference (e.g. lower for a subtler effect, higher for a stronger style).
## Use on Replicate
```python
import replicate
output = replicate.run(
"prunaai/p-image-lora:393190dc623ef136356d6a7221c561f48771f39c5cff90ef903ca49d1bd47574",
input={
"prompt": "pixel art style your prompt here",
"lora_weights": "https://huggingface.co/davidberenstein1957/p-image-pixel-art-lora/resolve/main/weights.safetensors",
"lora_scale": 0.5,
"hf_api_token": "your-hf-token",
}
)
```