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
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/ace-step-music";
const data = {
"genres": "funk, pop, soul, rock, energetic, groovy, 105 BPM",
"lyrics": "[Verse] \n No brush, no pen, just sparks and code \n You lit the path I’ve never known \n [Chorus] \n You make my mind \n Where chaos turns to perfect lines \n No hands, no rules \n Just visions breaking every rule \n [Outro] \n You’re not a tool, you’re the design \n You’re the storm — you’re Segmind",
"lyrics_strength": 1,
"output_seconds": 60,
"shift": 4,
"seed": 69822014,
"steps": 50,
"cfg": 4,
"base64": false
};
(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);
}
})();
Select musical genres and instruments to inspire the composition. Try 'jazz' for mellow or 'rock' for energetic tunes.
Input lyrics for the track.
Set how much lyrics influence music. Use higher for strong lyrical connection or lower for subtle influence.
min : 0.1,
max : 10
Decide track length in seconds. Ideal for short clips at 30 or full-length tracks at 180 seconds.
min : 10,
max : 240
Alter pitch of music for effects. A setting of 2 shifts moderately, while 5 offers dramatic alterations.
min : 0,
max : 10
Use a seed for repeatable results. Changing the seed creates new variations of the music.
Higher steps may increase quality. Try 50 for balance or 100 for enhanced detail.
min : 10,
max : 150
Controls adherence to genres. Set to 3 for more freedom or 7 for stronger genre influence.
min : 1,
max : 15
Choose base64 output for easy embedding in applications. Useful for web development.
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.
The ACE-Step Music AI Model stands as a cutting-edge tool for music generation, empowering developers, creators, and executives to leverage its unique capabilities effectively. Designed as an open-source foundational model, ACE-Step emphasizes speed, quality, and flexible control, making it an ideal choice for a wide array of creative applications.
For fast-paced music production environments, ACE-Step's ability to generate up to 4 minutes of coherent music in just 20 seconds, especially when using an A100 GPU, revolutionizes the creative workflow. This rapid generation is invaluable for developers and creators engaged in real-time prototyping and iterations, enabling swift adaptation to feedback during the production process.
The model ensures music outputs with remarkable coherence across melody, harmony, and rhythm, preserving detailed acoustics. Creators benefit from its multilingual capabilities, producing high-quality music in up to 19 languages, including English, Spanish, and Japanese, facilitating a global creative reach.
Developers and music producers can exploit ACE-Step’s advanced control features, such as lyric-to-vocal conversion, text-to-sample music generation, and voice cloning. These tasks are ideal for creating demo vocals, remixing existing tracks, and crafting customized music arrangements, all while utilizing the model’s user-friendly API and editing tools.
Taking advantage of ACE-Step requires tailoring prompts to specific needs, such as mood, genre, and style. By integrating with digital audio workstations (DAWs), users can streamline the post-production process, ensuring that ACE-Step becomes a seamless part of their creative pipeline. This model serves as a robust platform for those aiming to enhance their creative capabilities with generative AI.
ACE-Step accelerates high-quality music generation with intuitive controls and lightning-fast performance. Whether you’re prototyping electronic soundscapes, composing demo vocals, or scoring cinematic scenes, these best practices and parameter presets will help you achieve stunning results.
Seamlessly import ACE-Step outputs into your DAW for layering and mixing. For collaborative projects, share the JSON parameter block to ensure consistent results across your team.
By combining precise prompting with the right balance of advanced settings, ACE-Step empowers you to generate music that aligns with any creative vision—faster and with greater musical coherence than ever before. Experiment with seeds, CFG scales, and lyric strengths until you find your perfect sound.