You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# FLUX
2
+
2
3
by Black Forest Labs: https://blackforestlabs.ai
3
4
4
5

@@ -107,6 +108,22 @@ To run the demo with the dev model and create a public link:
107
108
python demo_gr.py --name flux-dev --share
108
109
```
109
110
111
+
There is also a simple FastAPI demo:
112
+
113
+
```bash
114
+
python demo_fastapi.py --name flux-schnell --device cuda
115
+
```
116
+
117
+
You can use the endpoint `/generate` to generate an image:
118
+
119
+
```bash
120
+
curl --location '0.0.0.0:9000/generate' \
121
+
--header 'Content-Type: application/json' \
122
+
--data '{
123
+
"prompt": "a cat holding a sign that says hello world"
124
+
}'
125
+
```
126
+
110
127
## Diffusers integration
111
128
112
129
`FLUX.1 [schnell]` and `FLUX.1 [dev]` are integrated with the [🧨 diffusers](https://github.com/huggingface/diffusers) library. To use it with diffusers, install it:
0 commit comments