CoolFace
Apppublic

Thanus008/sd-base64-api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

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

  1. 1.Select the room type, color theme, style, dimensions, and furniture you want for your design.
  2. 2.Click Generate Design to request an image.
  3. 3.The backend will process the request and generate an image using Stable Diffusion.
  4. 4.The image will be returned as a base64 string, which you can embed in your frontend.

Example API Call

bash
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"
}