Stability-AI / rest-api-support

Stability REST API examples, issues, and discussions | https://api.stability.ai
107 stars 21 forks source link

SDXL model, style selection params in the API #21

Closed lihaooo closed 1 year ago

lihaooo commented 1 year ago

Is it possible to use the dreamstudio function, SDXL model and style selection, in the API?

kopyl commented 1 year ago

I would also like to know this. Need this model via API so badly.

And also:

  1. When will its weights be released or at least how can we figure out when they do? Is there any blog/digest/waitlist to which we can subscribe?
  2. Is it possible to use those "styles" with Diffusers and/or AUTOMATIC1111 WebUI?
kopyl commented 1 year ago

From Team DreamStudio dreamstudio@stability.ai:

At the moment SDXL is not available via our API. Once we make it available however, we will be noting it in the Release Notes section of our Platform site.

And

At the moment we aren't supporting the usage of styles in our API, but when we do we'll be sharing that update in the Release Notes section of Platform as can be found here: https://platform.stability.ai/docs/release-notes While the SDXL beta model will be open sourced in the future, we do not currently have a release date available for when we will be releasing the model weights.

johnsabath commented 1 year ago

SDXL is now available via the REST API.

Styles will be coming soon as well, possibly next week.

geosem42 commented 1 year ago

SDXL is now available via the REST API.

Styles will be coming soon as well, possibly next week.

I can't see anything in the documentation, nor the release notes.

What's the model's name?

EDIT: the model's name is stable-diffusion-xl-beta-v2-2-2 but when I try to use it, I get the following error No available resolution is available for the input

EDIT 2: it appears that the model only supports 512x512 resolution.

johnsabath commented 1 year ago

That's correct, stable-diffusion-xl-beta-v2-2-2 is the SDXL Beta model

Here are the resolutions we currently support for SDXL. We're still working on optimizing it for other resolutions, but we plan to unlock the full range of options in the future.

  - width: 512
    height: 512
  - width: 768
    height: 512
  - width: 512
    height: 768
  - width: 640
    height: 512
  - width: 512
    height: 640
  - width: 896
    height: 512
  - width: 512
    height: 896
geosem42 commented 1 year ago

Thank you for the reply. Do you think you'll enable 1024x1024 at some point?

johnsabath commented 1 year ago

Thank you for the reply. Do you think you'll enable 1024x1024 at some point?

I'm not sure, but I can ask the inference team what their plans are.

Also, style presets are now available in REST: image

https://platform.stability.ai/docs/release-notes#style-presets

kopyl commented 1 year ago

@johnsabath is it possible to use the older SDXL models?

brianfoody commented 1 year ago

@johnsabath can I use style preset through the grpc api?