Stability-AI / rest-api-support

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

Add Code Samples for Multi-Image Requests #5

Closed todd-elvers closed 1 year ago

todd-elvers commented 1 year ago

We've gotten a few reports that it is not very clear how to make a request for multiple images at once. We should add a few extra code samples illustrating how to make these requests.

Making a multi-image request

Alternative

We could switch the code samples to the application/json format and simply make mention of the alternative accept header value of image/png. That seems like a more common use-case and won't throw an error if they bump samples above 1.

todd-elvers commented 1 year ago

Switched all examples to application/json. This has been deployed to production.