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
const axios = require('axios');
const fs = require('fs');
const path = require('path');
async function toB64(imgPath) {
const data = fs.readFileSync(path.resolve(imgPath));
return Buffer.from(data).toString('base64');
}
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/muscle-surge";
const data = {
"image": "toB64('https://segmind-resources.s3.amazonaws.com/input/a30b306b-6683-49ae-82c0-a1f18242660c-turbo-i2i-ip.jpg')",
"duration": 5,
"quality": "540p",
"seed": 56698,
"motion_mode": "normal"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();
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.
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.
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.