- Stable Diffusion WebUI is a simple demo project that integrates with Heurist's image generation API, built with Gradio in Python. Here's the relevant POST API request
- Imagine is a production-ready AI image generator site built with React and Next.js. Its getImage API route demonstrates the usage of Stable Diffusion API in real world.
llm-gateway-openai-sdk.py
is an example of using Pythonopenai
SDK to generate texts. Both stream and non-stream modes are supported.