File size: 1,331 Bytes
d46d881
d0cd8e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d46d881
d0cd8e8
 
c9e1f23
d0cd8e8
 
c9e1f23
 
 
 
d0cd8e8
 
 
 
7a81f1f
 
 
d0cd8e8
7a81f1f
 
 
 
 
 
 
 
 
 
 
d0cd8e8
303d240
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
license: other
license_name: sai-nc-community
license_link: https://huggingface.co/stabilityai/sdxl-turbo/blob/main/LICENSE.TXT
language:
- en
- ru
- fr
library_name: diffusers
pipeline_tag: text-to-image
tags:
- text2image
- sdxl
- sdlx-turbo
- turbo
- kviai
- stable diffusion xl
widget:
  - text: astronaut riding a horse
    output:
      url: https://github.com/woctezuma/stable-diffusion-colab/wiki/img/astronaut_2xl.jpg
  - text: a cute cat
    output:
      url: https://lh3.googleusercontent.com/proxy/mZL2Ls9NjwuvPaVlOKnHAl8wXlRzPwM0uH6Df5dWStLXVjMqK1ct2WP6kdJtUQyO-dfRHbMDp7K6CSBQWSZptABAJ2s3SHWGdjGYdzaZpjAB1cl4SBm8PQ
base_model: stabilityai/sdxl-turbo
instance_prompt: <lora:lcm-lora-sdxl-turbo:1>
---

# SDXL-Turbo

It is lora fine-tuned model based on stabilityai/sdxl-turbo

## Examples

<Gallery />

## Usage

You can use it via interface api:
```Python
import requests
import io
from PIL import Image

API_URL = "https://api-inference.huggingface.co/models/kviai/sdxl-turbo"
headers = {"Authorization": "Bearer YOUR_HF_API_TOKEN"}

def query(payload):
	response = requests.post(API_URL, headers=headers, json=payload)
	return response.content
image_bytes = query({
	"inputs": "Astronaut riding a horse",
})

image = Image.open(io.BytesIO(image_bytes))
```
Or you can download model from Files and Versions tab