Stability-AI / rest-api-support

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

Unknown form field style_preset, SDXL engine. #24

Closed AniketDutta007 closed 1 year ago

AniketDutta007 commented 1 year ago

Exception: Non-200 response: {"id":"38b23da9a02aa9de7bdfa13f6957b552","message":"unknown form field: style_preset","name":"bad_request"}

I have been trying to set the style for the requests but keep on receiving this exception. engine id - stable-diffusion-xl-beta-v2-2-2

brianfitzgerald commented 1 year ago

Hi Aniket, can you post the body of your request, as well as headers used? (Be sure to remove your auth token.)

brianfitzgerald commented 1 year ago

I've looked up your request - looks like you're still on the v1beta version of the API. I'd update your URL to /v1/generation/:engine_id/image-to-image.

AniketDutta007 commented 1 year ago

Thanks for the help, it resolved the issue.