150 Commits (master)

Author SHA1 Message Date
AUTOMATIC 4ec6470a1a fix checkpoint list API 3 years ago
Vladimir Mandic cec209981e
log only sdapi 3 years ago
Vladimir Mandic aaa4c2aacb
add api logging 3 years ago
Philpax c65909ad16 feat(api): return more data for embeddings 3 years ago
Philpax b5819d9bf1 feat(api): add /sdapi/v1/embeddings 3 years ago
AUTOMATIC fef98723b2 set sd_model for API later, inside the lock, to prevent multiple requests with different models ending up with incorrect results #5877 #6012 3 years ago
Philpax 5be9387b23 fix(api): only begin/end state in lock 3 years ago
Vladimir Mandic 5f1dfbbc95 implement train api 3 years ago
Philpax 6247f21a63 fix(api): don't save extras output to disk 3 years ago
AUTOMATIC1111 adab48cb1b
Merge pull request #5637 from aednzxy/patch-1
API endpoint to refresh checkpoints
3 years ago
Jim Hays c0355caefe Fix various typos 3 years ago
Dean Hopkins 960293d6b2
API endpoint to refresh checkpoints
API endpoint to refresh checkpoints
3 years ago
ywx9 9539c2045a Bug fix 3 years ago
AUTOMATIC b2f17dd367 prevent include_init_images from being passed to StableDiffusionProcessingImg2Img in API #4989 3 years ago
AUTOMATIC1111 554787231a
Merge pull request #5117 from aliencaocao/fix_api_sampler_name
Fix api ignoring sampler_name settings
3 years ago
AUTOMATIC1111 b24aed0b69
Merge pull request #4960 from Hugo-Matias/master
fix null negative_prompt on get requests
3 years ago
Billy Cao 06ada734c7 Prevent warning on sampler_index if sampler_name is being used 3 years ago
Billy Cao 3cf93de24f Fix sampler_name for API requests are being ignored 3 years ago
Sena fcd75bd874
Fix other apis 3 years ago
Sena 75b67eebf2
Fix bare base64 not accept 3 years ago
Rogerooo c27a973c82 fix null negative_prompt on get requests
Small typo that causes a bug when returning negative prompts from the get request.
3 years ago
AUTOMATIC c81d440d87 moved deepdanbooru to pure pytorch implementation 3 years ago
AUTOMATIC1111 41e242b220
Merge pull request #4733 from MaikoTan/api-authorization
feat: add http basic authentication for api
3 years ago
AUTOMATIC 5a6387e189 make it possible to change models etc by editing options using API 3 years ago
Maiko Tan 336c341a7c
Merge branch 'master' into api-authorization 3 years ago
AUTOMATIC1111 84a6f211d4
Merge pull request #4358 from bamarillo/master
[API][Feature] Add Skip endpoint
3 years ago
AUTOMATIC cdc8020d13 change StableDiffusionProcessing to internally use sampler name instead of sampler index 3 years ago
Maiko Sinkyaet Tan 8f2ff861d3
feat: add http basic authentication for api 3 years ago
snowmeow2 67c8e11be7 Adding DeepDanbooru to the interrogation API 3 years ago
AUTOMATIC1111 07d1bd4267
Merge branch 'master' into roy.add_simple_interrogate_api 3 years ago
Bruno Seoane 7f63980e47 Remove unnecesary return 3 years ago
Bruno Seoane 3c72055c22 Add skip endpoint 3 years ago
Bruno Seoane 0ebf66b575 Fix set config endpoint 3 years ago
Bruno Seoane 99b05addb1 Fix options endpoint not showing the full list of options 3 years ago
AUTOMATIC1111 2e604233fd
Merge pull request #4329 from Blucknote/patch-1
Python 3.8 typing compatibility
3 years ago
evshiron b6cfaaa20b Merge branch 'master' into fix/encode-pnginfo 3 years ago
Evgeniy a170e3d222
Python 3.8 typing compatibility
Solves problems with

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 196, in SamplerItem
    aliases: list[str] = Field(title="Aliases")
TypeError: 'type' object is not subscriptable```

and

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 197, in SamplerItem
    options: dict[str, str] = Field(title="Options")
TypeError: 'type' object is not subscriptable```
3 years ago
Billy Cao ebce0c57c7 Use typing.Optional instead of | to add support for Python 3.9 and below. 3 years ago
evshiron 73e1cd6f53 Merge branch 'master' into fix/encode-pnginfo 3 years ago
AUTOMATIC 116bcf730a disable setting options via API until it is fixed by the author 3 years ago
AUTOMATIC1111 e9c767d8db
Merge branch 'master' into 7flash/fix-api-compatibility 3 years ago
AUTOMATIC1111 371c4b990e
Merge pull request #4218 from bamarillo/utils-endpoints
[API][Feature] Utils endpoints
3 years ago
digburn 8eb64dab3e
fix: correct default val of upscale_first to False 3 years ago
Gur b2c48091db fixed api compatibility with python 3.8 3 years ago
Bruno Seoane 743fffa3d6 Remove unused endpoint 3 years ago
Bruno Seoane 7a2e36b583 Add config and lists endpoints 3 years ago
digburn 2ac25ea64f fix: Add required parameter to API extras route 3 years ago
evshiron e21fcd72fc add back png info in image api 3 years ago
AUTOMATIC 4a8cf01f6f remove duplicate code from #3970 3 years ago
evshiron 51e0a83969 Merge branch 'master' into fix/progress-api 3 years ago
AUTOMATIC 198a1ffcfc fix API returning extra stuff in base64 encoded iamges for #3972 3 years ago
Roy Shilkrot 3f3d14afd5 nix unused thing 3 years ago
Roy Shilkrot df6a7ebfe8 revert things to master 3 years ago
Roy Shilkrot 509fd1459b Merge remote-tracking branch 'upstream/master' into roy.add_simple_interrogate_api 3 years ago
evshiron adaa699e38 prototype interrupt api 3 years ago
evshiron 1a4ff2de6a fix current image in progress api when parallel processing enabled 3 years ago
AUTOMATIC 149784202c rework #3722 to not introduce duplicate code 3 years ago
evshiron 9f4f894d74 allow skip current image in progress api 3 years ago
evshiron 9f104b53c4 preview current image when opts.show_progress_every_n_steps is enabled 3 years ago
evshiron 88f46a5bec update progress response model 3 years ago
evshiron e9c6c2a51f add description for state field 3 years ago
evshiron f62db4d5c7 fix progress response model 3 years ago
evshiron 7f5212fb5f Merge branch 'master' into feat/progress-api 3 years ago
evshiron 6b719c49b1 Merge branch 'master' into feat/progress-api 3 years ago
Bruno Seoane 83a1f44ae2 Fix space 3 years ago
Bruno Seoane 4609b83cd4 Add PNG Info endpoint 3 years ago
Roy Shilkrot bdc9083798 Add a barebones interrogate API 3 years ago
evshiron fddb4883f4 prototype progress api 3 years ago
Bruno Seoane b2e0d8ba78 Remove folder endpoint 3 years ago
Bruno Seoane 8320963dcb Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui 3 years ago
Stephen b46c64c6e5 clean 3 years ago
Stephen db9ab1a46b [Bugfix][API] - Fix API response for colab users 3 years ago
Bruno Seoane 2267498a8c Merge remote-tracking branch 'upstream/master' 3 years ago
Bruno Seoane 595dca85af Reverse run_extras change
Update serialization on the batch images endpoint
3 years ago
AUTOMATIC 2c05e06ea7 rename api/processing to api/models for #3511 3 years ago
Bruno Seoane 90f02c7522 Remove unused field and class 3 years ago
Bruno Seoane 1e625624ba Add folder processing endpoint
Also minor refactor
3 years ago
Bruno Seoane 866b36d705 Move processing's models into models.py
It didn't make sense to have two differente files for the same and
"models" is a more descriptive name.
3 years ago
Bruno Seoane e0ca4dfbc1 Update endpoints to use gradio's own utils functions 3 years ago
Bruno Seoane e3f0e34cd6 Merge branch 'master' of https://github.com/bamarillo/stable-diffusion-webui 3 years ago
Bruno Seoane 4ff852ffb5 Add batch processing "extras" endpoint 3 years ago
Stephen 5dc0739ecd working mask 3 years ago
Stephen 9e1a8b7734 non-implemented mask with any type 3 years ago
Stephen a7c213d0f5 [API][Feature] - Add img2img API endpoint 3 years ago
Bruno Seoane 28e26c2bef Add "extra" single image operation
- Separate extra modes into 3 endpoints so the user ddoesn't ahve to
handle so many unused parameters.
 - Add response model for codumentation
3 years ago
Bruno Seoane b02926df13 Moved moodels to their own file and extracted base64 conversion to its own function 3 years ago
Bruno Seoane 1b4d04737a Remove unused imports 3 years ago
arcticfaded 0f0d6ab8e0 call sampler by name 3 years ago
arcticfaded e7f4808505 provide sampler by name 3 years ago
arcticfaded 8d5d863a9d gradio and FastAPI 3 years ago
Ryan Voots 247aeb3aaa Put API under /sdapi/ so that routing is simpler in the future. This means that one could allow access to /sdapi/ but not the webui. 3 years ago
Ryan Voots c3851a853d Re-use webui fastapi application rather than requiring one or the other, not both. 3 years ago
arcticfaded f29b16bad1 prevent API from saving 3 years ago
arcticfaded f80e914ac4 example API working with gradio 3 years ago
AUTOMATIC d42125baf6 add missing requirement for api and fix some typos 3 years ago
Jonathan 71d42bb44b Update api.py 3 years ago
Jonathan 99013ba68a Update processing.py 3 years ago
Jonathan 832b490e51 Update processing.py 3 years ago
arcticfaded 9e02812afd pydantic instrumentation 3 years ago
arcticfaded 60251c9456 initial prototype by borrowing contracts 3 years ago