POST
javascript
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); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


imageimage *

Image File


durationenum:int *

Video duration in seconds (5 or 8; only 5 is allowed for fast mode or 1080p quality)

Allowed values:


qualityenum:str *

Video quality (360p, 540p, 720p, 1080p)

Allowed values:


seedint ( default: 1 )

Seed for random generation

min : 1,

max : 999999


styleenum:str ( default: 1 )

Style (only for model=v3.5): anime, 3d_animation, clay, comic, cyberpunk

Allowed values:


motion_modeenum:str *

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.