Thanus008/sd-base64-api
0
Stable Diffusion Base64 API
This Space provides an API to generate images using Stable Diffusion, which are then returned as base64 strings for use on the frontend.
How to Use
- Select the room type, color theme, style, dimensions, and furniture you want for your design.
- Click Generate Design to request an image.
- The backend will process the request and generate an image using Stable Diffusion.
- The image will be returned as a base64 string, which you can embed in your frontend.
Example API Call
POST /generate_image
Content-Type: application/json
{
"roomType": "Living Room",
"colorTheme": "Modern Black & White",
"style": "Minimalist",
"dimensions": "Spacious",
"furniture": "Sofa, Coffee Table, Accent Chairs, Entertainment Center"
}
