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
27
28
29
30
31
import requests
import base64
# Use this function to convert an image file from the filesystem to base64
def image_file_to_base64(image_path):
with open(image_path, 'rb') as f:
image_data = f.read()
return base64.b64encode(image_data).decode('utf-8')
# Use this function to fetch an image from a URL and convert it to base64
def image_url_to_base64(image_url):
response = requests.get(image_url)
image_data = response.content
return base64.b64encode(image_data).decode('utf-8')
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/muscle-surge"
# Request payload
data = {
"image": image_url_to_base64("https://segmind-resources.s3.amazonaws.com/input/a30b306b-6683-49ae-82c0-a1f18242660c-turbo-i2i-ip.jpg"), # Or use image_file_to_base64("IMAGE_PATH")
"duration": 5,
"quality": "540p",
"seed": 56698,
"motion_mode": "normal"
}
headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
Image File
Video duration in seconds (5 or 8; only 5 is allowed for fast mode or 1080p quality)
Allowed values:
Video quality (360p, 540p, 720p, 1080p)
Allowed values:
Seed for random generation
min : 1,
max : 999999
Style (only for model=v3.5): anime, 3d_animation, clay, comic, cyberpunk
Allowed values:
Motion mode (normal, fast, --fast only available when duration=5; --quality=1080p does not support fast)
Allowed values:
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.
Pixverse Muscle Surge
Muscle Surge is a cutting-edge AI effect within PixVerse designed to instantly enhance the physique in videos by adding visible muscle and strength. Targeted towards content creators looking to add a dynamic and powerful visual element, its key differentiator is the ease and speed with which it can apply a significant muscular enhancement without the need for complex editing or physical effort. Experience the immediate visual impact of augmented strength with this innovative PixVerse feature.
Key Features of Pixverse Muscle Surge
-
Instant Muscle Enhancement - With a single click, the Muscle Surge effect instantly adds noticeable muscle mass and definition to the subject in your video, saving significant time and effort compared to manual editing.
-
Effortless Application - Applying the Muscle Surge effect requires no complex controls or technical expertise; it integrates seamlessly into the PixVerse user interface for straightforward use.
-
Dynamic Visual Transformation - The effect provides a dynamic alteration to the video, ensuring the added muscle appears natural and moves realistically with the subject's existing motion.
-
Creative Visual Storytelling - Enhance characters or subjects in your videos to convey a sense of power, transformation, or heightened physical prowess for various creative projects.
-
Experimentation with Physicality - Quickly visualize different levels of muscularity and strength in your videos, allowing for rapid iteration and exploration of different character aesthetics.
Other Popular Models
sdxl-img2img
SDXL Img2Img is used for text-guided image-to-image translation. This model uses the weights from Stable Diffusion to generate new images from an input image using StableDiffusionImg2ImgPipeline from diffusers

idm-vton
Best-in-class clothing virtual try on in the wild

faceswap-v2
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

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
