I was playing around and decided to try out Stable Diffusion in Composer. Their API is quite simple and can be accessed via curl statement, which API Explorer supports in addition to Web APIs. However, the text-based query is submitted using the ‘form’ parameter, a curl nuance that is NOT supported by API Explorer.
Thanks entirely to @Seb’s help, he figured out a workaround that is API Explorer-friendly. So here is the curl statement you can give to API Explorer in order to work with Stable Diffusion:
curl -X POST ‘https://api.deepai.org/api/stable-diffusion’ -H ‘api-key: quickstart-QUdJIGlzIGNvbWluZy4uLi4K’ -H ‘Content-Type: application/x-www-form-urlencoded’ --data-urlencode ‘text=YOUR-TEXT-STATEMENT-HERE’
That API key works but 1) appears to force a long wait for image generation, 2) always generates four images, and 3) has a very small daily call limit. You can get your own Stable Diffusion API key for free - but it costs $5 minimum to generate images. Alternatively, you can install Stable Diffusion locally, on your own PC, and use it for free.
Side note: Seems the Stable Diffusion syntax for curl statements is written incorrectly. It’s written as a GET, but it needs to be a POST - which we specify above.