Downloads · 30 days
0
Iratze/image_generator
image_generator is a text-to-image model from Iratze. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as mit.
This repository uses the Stable Diffusion model from the diffusers library to generate images based on a text prompt and returns the generated image in base64 format.
Downloads · 30 days
0
Access
Public
Updated Oct 6, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md1.8 KB · 63%
From the Hugging Face model README
This repository uses the Stable Diffusion model from the diffusers library to generate images based on a text prompt and returns the generated image in base64 format.
Stable Diffusion model generates images based on the provided prompt.CompVis/stable-diffusion-v1-4You can use this model via the Hugging Face Inference API by making a POST request with the following format:
curl -X POST https://api-inference.huggingface.co/models/YOUR_USERNAME/stable-diffusion-make -H "Authorization: Bearer YOUR_API_TOKEN" -H "Content-Type: application/json" -d '{"prompt": "A red apple on a wooden table", "num_images": 1}'
prompt: The text prompt for image generation.num_images: Number of images to generate (default is 1).The response will return the first image encoded in base64 format.
MIT License