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
txt2img, img2img, extra_single_image, extra_batch_images support async api call with use_async=True parameter. You need asyncio, aiohttp packages installed.
144
+
```
145
+
result = await api.txt2img(prompt="cute kitten",
146
+
seed=1001,
147
+
use_async=True
148
+
)
149
+
result.image
150
+
```
151
+
138
152
### Scripts support
139
153
Scripts from AUTOMATIC1111's Web UI are supported, but there aren't official models that define a script's interface.
140
154
@@ -272,9 +286,17 @@ api.get_hypernetworks()
272
286
api.get_face_restorers()
273
287
api.get_realesrgan_models()
274
288
api.get_prompt_styles()
275
-
api.get_artist_categories()
276
-
api.get_artists()
289
+
api.get_artist_categories() # deprecated ?
290
+
api.get_artists() # deprecated ?
277
291
api.get_progress()
292
+
api.get_embeddings()
293
+
api.get_cmd_flags()
294
+
api.get_scripts()
295
+
api.get_memory()
296
+
297
+
# misc apis
298
+
api.interrupt()
299
+
api.skip()
278
300
```
279
301
280
302
### Utility methods
@@ -335,18 +357,26 @@ api.controlnet_version()
335
357
# api.controlnet_model_list()
336
358
```
337
359
<pre>
338
-
['control_canny-fp16 [e3fe7712]',
339
-
'control_depth-fp16 [400750f6]',
340
-
'control_hed-fp16 [13fee50b]',
341
-
'control_mlsd-fp16 [e3705cfa]',
342
-
'control_normal-fp16 [63f96f7c]',
343
-
'control_openpose-fp16 [9ca67cc5]',
344
-
'control_scribble-fp16 [c508311e]',
345
-
'control_seg-fp16 [b9c1cc12]']
360
+
['control_v11e_sd15_ip2p [c4bb465c]',
361
+
'control_v11e_sd15_shuffle [526bfdae]',
362
+
'control_v11f1p_sd15_depth [cfd03158]',
363
+
'control_v11p_sd15_canny [d14c016b]',
364
+
'control_v11p_sd15_inpaint [ebff9138]',
365
+
'control_v11p_sd15_lineart [43d4be0d]',
366
+
'control_v11p_sd15_mlsd [aca30ff0]',
367
+
'control_v11p_sd15_normalbae [316696f1]',
368
+
'control_v11p_sd15_openpose [cab727d4]',
369
+
'control_v11p_sd15_scribble [d4ba51ff]',
370
+
'control_v11p_sd15_seg [e1f51eb9]',
371
+
'control_v11p_sd15_softedge [a8575a2a]',
372
+
'control_v11p_sd15s2_lineart_anime [3825e83e]',
373
+
'control_v11u_sd15_tile [1f041471]']
346
374
</pre>
347
375
348
-
**Use of ControlNetInterface txt2img/img2img is deprecated.** Please use the txt2img and img2img api with controlnet_units parameter.
349
-
376
+
```
377
+
api.controlnet_version()
378
+
api.controlnet_module_list()
379
+
```
350
380
351
381
```
352
382
# normal txt2img
@@ -363,8 +393,6 @@ r = api.txt2img(prompt="photo of a beautiful girl", controlnet_units=[unit1])
0 commit comments