Stability-AI / rest-api-support

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

decrease minimum dimensions below 512px #3

Closed dickhardt closed 1 year ago

dickhardt commented 1 year ago

For landscape images, 512px is larger than needed for some use cases - eg. generating a banner for an online profile.

The current API docs state 192 - 256 is minimal recommended dimension.

Perhaps allow any height and width dimensions that are divisible by 64 and height X width are between 262k and 1M?

todd-elvers commented 1 year ago

This is something we'll add to the v1beta I'm currently working on. Thank you for the suggestion!

todd-elvers commented 1 year ago

We're changing v1beta so that the minimum height/width dimension is 128 with no upper bound on the dimension size. Instead we'll verify that the pixel count of the image is between 262K and 1MP. This allows for dimensions like 192x3072:

wide

todd-elvers commented 1 year ago

This has been deployed to production!