Wrapper for Segmind API for using Generative models. Visit Website
Simply Install the pip package by typing the following in the terminal:
pip install segmind
- Import Required Model Class
     Âfrom segmind import Kadinsky
- Instantite Model Class with your API Key
     Âmodel = Kadinsky(api_key)
- Generate Image
     Âimg = model.generate(prompt)
- View Image
     Âimg.show()
Check Available Models
Image to Image using Stable Diffusion 1.5.
Available Options:
- Canny
- Depth
- OpenPose
- Scribble
- SoftEdge
from segmind import ControlNet
model = ControlNet(api_key)
img = model.generate(prompt, imageUrl, option)
For additional options, check Docstring of the model.
Text-to-image Stable diffusion 2.1 model that can generate images given a natural language prompt.
from segmind import SD2_1
model = SD2_1(api_key)
img = model.generate(prompt)
For additional options, check Docstring of the model.
Image-to-image Kadinsky model that can generate images given a natural language prompt.
from segmind import Kadinsky
model = Kadinsky(api_key)
img = model.generate(prompt)
For additional options, check Docstring of the model.
A text-to-image diffusion model that can create photorealistic images from any given text input, and additionally has the ability to fill in missing parts of an image by using a mask.
from segmind import SD1_5
For additional options, check Docstring of the model.
An image-to-image model that upscales low-resolution images into high-resolution ones using a GAN trained on a dataset of high-resolution images.
from segmind import ERSGAN
For additional options, check Docstring of the model.
The background removal model efficiently separates the main subject or the object from its surrounding background, resulting in a clean and isolated foreground.
from segmind import BackgroundRemoval
For additional options, check Docstring of the model.
CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.
from segmind import Codeformer
For additional options, check Docstring of the model.
Segment Anything Model (SAM) is a state-of-the-art image segmentation model that can segment any object in an image.
from segmind import SAM
model = SAM(api_key)
img = model.generate(imageUrl)
For additional options, check Docstring of the model.
FaceSwap is a state-of-the-art face swapping model that can swap faces in images and videos.
from segmind import FaceSwap
model = FaceSwap(api_key)
img = model.generate(imageUrl, maskUrl)
For additional options, check Docstring of the model.
The SDOutpainting model is used for outpainting tasks, where the model is given a part of an image and it needs to generate the rest of the image.
from segmind import SDOutpainting
model = SDOutpainting(api_key)
img = model.generate(imageUrl)
For additional options, check Docstring of the model.
A text-to-image model that can generate images from any given text input.
from segmind import Word2Img
model = Word2Img(api_key)
img = model.generate(image, prompt)
For additional options, check Docstring of the model.
A QR code generator that can generate QR codes from any given text input.
from segmind import QRGenerator
model = QRGenerator(api_key)
img = model.generate(prompt, qr_text)
For additional options, check Docstring of the model.
We support several text to image models:
- Stable Diffusion XL 1.0
- Segmind Tiny-SD
- Segmind Tiny-SD (Portrait)
- Segmind Small-SD
- Paragon
- Realistic Vision
- Reliberate
- Revanimated
- Colorful
- Cartoon
- Edge of Realism
- Epic Realism
- RPG
- Scifi
- Cyber Realistic
- Samaritan
- RCNZ - Cartoon
- Manmarumix
- Majicmix
- Juggernaut Final
- Icbinp
- Fruit Fusion
- Flat 2d
- Fantassified Icons
- DvArch
- Dream Shaper
- Deep Spaced Diffusion
- Cute Rich Style
- All in one pixel
- 526mix
You can check the complete list of models here.
- PIL (Python Imaging Library)