API
If you're looking for an API, you can choose from your desired programming language.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import requests
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/hotshot-xl"
# Prepare data and files
data = {}
files = {}
data['mp4'] = False
data['seed'] = 6226
data['steps'] = 30
data['width'] = 672
data['height'] = 384
data['prompt'] = "a dog running towards you with a smile, hd, high quality"
data['scheduler'] = "EulerAncestralDiscreteScheduler"
data['negative_prompt'] = "blurry"
headers = {'x-api-key': api_key}
# If no files, send as JSON
if files:
response = requests.post(url, data=data, files=files, headers=headers)
else:
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
Save as mp4, False for GIF
Random seed. Leave blank to randomize the seed
Number of denoising steps
min : 1,
max : 500
An enumeration.
Allowed values:
An enumeration.
Allowed values:
Input prompt
An enumeration.
Allowed values:
Negative prompt
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Other Popular Models
idm-vton
Best-in-class clothing virtual try on in the wild

sdxl1.0-txt2img
The SDXL model is the official upgrade to the v1.5 model. The model is released as open-source software

codeformer
CodeFormer is a robust face restoration algorithm for old photos or AI-generated faces.

sd2.1-faceswapper
Take a picture/gif and replace the face in it with a face of your choice. You only need one image of the desired face. No dataset, no training
