Russell Richardson
140f5ad4c3
Allow passing firstpass_image to txt2img API
...
This change allows passing in a base64 encoded image string to the
`/sdapi/v1/txt2img` endpoint via the `firstpass_image` parameter.
Can be useful when applications utilizing the API generate an initial
image and then need that image upscaled using HiRes Fix - by replaying
the request alongside the `firstpass_image` parameter with the base64
image returned by the original request, it bypasses the need to
regenerate the original image since it has already been passed in.
At least, that seems to be the original intent of this parameter (and
works great with this change).
2025-03-12 08:16:23 -04:00
catboxanon
ca3bedbd02
Honor lossless webp compression option in API
2024-11-01 11:32:52 -04:00
Andray
3d2dbefcde
fix OSError: cannot write mode P as JPEG
2024-07-11 23:54:25 +04:00
AUTOMATIC1111
2fec94710b
Merge pull request #16060 from xiaoxianBoy/fix-typos
...
chore: fix typos
2024-07-06 10:06:35 +03:00
AUTOMATIC1111
af3ccee5c8
Merge pull request #16140 from ibrahimsn98/master
...
Return HTTP 400 instead of 404 on invalid sampler error
2024-07-06 09:42:44 +03:00
İbrahim Süren
3971c01562
Return http 400 instead of 404 on invalid sampler
2024-07-03 17:33:25 +03:00
snoppy
13f22974a4
chore: fix typos
...
Signed-off-by: snoppy <michaleli@foxmail.com>
2024-06-21 09:52:02 +08:00
missionfloyd
c8336c45b9
Use existing function for old sampler names
2024-04-30 01:53:41 -06:00
missionfloyd
579f1ef278
Allow old sampler names in API
2024-04-28 22:36:43 -06:00
missionfloyd
5cb567c138
Add schedulers API endpoint
2024-04-19 20:32:09 -06:00
AUTOMATIC1111
c1deec64cb
lint
2024-03-06 13:06:13 +03:00
AUTOMATIC1111
09b5ce68a9
add images.read to automatically fix all jpeg/png weirdness
2024-03-04 19:14:53 +03:00
AUTOMATIC1111
33fbe943e2
Merge pull request #15062 from astriaai/fix-exif-orientation-api
...
Fix EXIF orientation in API image loading
2024-03-04 16:26:53 +03:00
Alon Burg
67d8dafe44
Fix EXIF orientation in API image loading
2024-03-04 12:23:14 +02:00
Aarni Koskela
e3fa46f26f
Fix various typos with crate-ci/typos
2024-03-04 08:42:07 +02:00
AUTOMATIC1111
19c95de8eb
Merge pull request #14715 from stefanbenten/sb/embedding-refresh
...
modules/api/api.py: add api endpoint to refresh embeddings list
2024-01-23 22:35:41 +03:00
Stefan Benten
2974b9cee9
modules/api/api.py: add api endpoint to refresh embeddings list
2024-01-21 14:05:47 +01:00
unknown
8d986727b3
include tls arguments in api uvicorn init
2024-01-09 03:01:20 -06:00
AUTOMATIC1111
5d7d1823af
rename infotext.py again, this time to infotext_utils.py; I didn't realize infotext would be used for variable names in multiple places, which makes it awkward to import the module; also fix the bug I caused by this rename that breaks tests
2024-01-01 17:25:30 +03:00
AUTOMATIC1111
d859cec696
infotext.py: rename usages in the codebase
2024-01-01 13:53:12 +03:00
AUTOMATIC1111
79c9151802
Merge pull request #14421 from lanyeeee/api_thread_safe
...
fix API thread safe issues of txt2img and img2img
2023-12-30 20:21:13 +03:00
lanyeeee
f651405427
remove locks, move init code to __init__
2023-12-31 01:09:13 +08:00
lanyeeee
91560e98c4
fix format issue
2023-12-30 23:42:10 +08:00
AUTOMATIC1111
05230c0260
fix img2img api that i broke when implementing infotext support
2023-12-30 18:02:51 +03:00
kurisu_u
d05f9e8124
Merge branch 'dev' into api_thread_safe
2023-12-30 21:47:59 +08:00
lanyeeee
c069c2c562
add locks to ensure init args are thread-safe
2023-12-30 21:32:22 +08:00
AUTOMATIC1111
8f18263759
fix bad values read from infotext for API, add comment
2023-12-30 13:48:25 +03:00
AUTOMATIC1111
11a435b469
img2img support for infotext API
2023-12-30 13:34:46 +03:00
AUTOMATIC1111
0aacd4c72b
add support for alwayson scripts for infotext API
2023-12-30 13:33:18 +03:00
AUTOMATIC1111
8b08b78c03
make it so that if an option from infotext conflicts with an argument from API, the latter overrides the former
2023-12-30 12:27:23 +03:00
AUTOMATIC1111
ba92135a2b
add override_settings support for infotext API
2023-12-30 12:11:09 +03:00
AUTOMATIC1111
bb07cb6a0d
a
2023-12-30 10:42:42 +03:00
lanyeeee
00d4a4d4ac
move thread-unsafe code to __init__
2023-12-26 14:46:29 +08:00
AUTOMATIC1111
de03882d6c
make task ids for API work without force_task_id
2023-12-17 08:55:35 +03:00
AUTOMATIC1111
5b7d86d42b
Merge pull request #14314 from gayshub/master
...
Add allow specify the task id and get the location of task in the queue of pending task
2023-12-16 11:01:42 +03:00
gayshub
6d7e57ba6a
fix the problem of ruff of github
2023-12-15 18:03:14 +08:00
gayshub
da45e73b4f
fix the problem of ruff of github
2023-12-15 17:57:58 +08:00
gayshub
d859de37d9
fix the problem of ruff of github
2023-12-15 17:48:20 +08:00
gayshub
1242ba08e1
add allow specify the task id and get the location of task in the queue of pending task
2023-12-15 16:57:17 +08:00
AUTOMATIC1111
11d23e8ca5
remove Train/Preprocessing tab and put all its functionality into extras batch images mode
2023-12-02 18:01:11 +03:00
AUTOMATIC1111
282903bb67
repair unload sd checkpoint button
2023-10-15 09:41:02 +03:00
FluttyProger
f71e919ecb
Ability for extensions to return custom data via api in response.images
2023-10-01 18:06:48 +03:00
a666
b6c1a1bbbf
Fix some deprecated types
2023-08-29 00:54:57 -06:00
AUTOMATIC1111
72ee347eab
update pnginfo checkpoint to return dict with parsed values
2023-08-26 06:52:18 +03:00
SpenserCai
dd07b5193e
fix format error
2023-08-25 22:23:17 +08:00
SpenserCai
3369fb27df
support installed extensions list api
2023-08-25 22:15:35 +08:00
AUTOMATIC1111
b4d21e7113
prevent API options from being changed via API
2023-08-21 08:48:45 +03:00
AUTOMATIC1111
76ae1019b9
add settings for http/https URLs in source images in api
2023-08-21 07:38:07 +03:00
akiba
268dc9b308
fix potential ssrf attack in #12663
2023-08-20 23:17:50 +08:00
AUTOMATIC1111
d75b521af8
Merge pull request #12638 from Cschlaefli/fix-api-vae-model-refresh
...
fix issues with api model-refresh and vae-refresh
2023-08-19 08:28:47 +03:00