Music 2.6: Cover Reborn. Bass Redefined.
Cover Reborn. Bass Redefined.Music Generation Example
Let’s walk through how to create a soulful blues track from scratch in two simple steps: first, use the Lyrics Generation API to write lyrics based on a theme; then, feed those lyrics into the Music Generation API to compose and produce a complete song.Call the Lyrics Generation API to generate lyrics from a theme (optional)
Simply tell the model what you’re looking for — for example, “a soulful blues song about a rainy night” — and the Lyrics Generation API will automatically write complete lyrics with proper song structure (Verse, Chorus, Bridge, etc.). If you already have your own lyrics, feel free to skip this step. Additionally, even without lyrics you can go straight to the second step: call the music generation API to compose and generate a full song.
Call the Music Generation API to compose and produce the full song
Once you have your lyrics, set the music style via the
prompt parameter (e.g., “Blues, Soulful, Rainy Night, Electric Guitar”), pass the lyrics into the lyrics parameter, and the Music Generation API will arrange, perform, and output a complete song. If you don’t have lyrics, you can set the lyrics_optimizer parameter to true to generate a song directly. In addition, Music 2.6 supports instrumental-only generation; see the is_instrumental parameter.Cover Generation
Music Cover generates a new rendition of an existing song with a different style. There are two modes:- One-Step Cover: Pass the reference audio directly — lyrics are auto-extracted via ASR.
- Two-Step Cover: Preprocess the audio first to extract and modify lyrics, then generate the cover.
One-Step Cover (Quick Mode)
Pass the reference audio URL and a style prompt to the Music Generation API. Lyrics are automatically extracted from the audio.Two-Step Cover (Advanced Mode — with Lyrics Modification)
For more control, use the two-step workflow: first preprocess the audio to extract features and lyrics, then modify the lyrics and generate the cover.Preprocess the reference audio
Call the Music Cover Preprocess API to extract audio features and structured lyrics. This step is free (no charge).The response includes:
cover_feature_id: A unique identifier for the audio features (valid for 24 hours)formatted_lyrics: Structured lyrics with section tags ([Verse],[Chorus], etc.) that you can modifystructure_result: JSON string with segment types and timestampsaudio_duration: Duration of the reference audio in seconds
Modify lyrics and generate the cover
Review and edit the
formatted_lyrics from the previous step, then pass the cover_feature_id and modified lyrics to the Music Generation API.When using
cover_feature_id, do not pass audio_url or audio_base64 — they are mutually exclusive. The lyrics parameter is required (10–1000 characters).Recommended Reading
Music Generation API
Use this API to generate a song from lyrics and a prompt.
Music Cover Preprocess API
Preprocess reference audio to extract features and lyrics for two-step cover generation.
Lyrics Generation API
Use this API to generate or edit lyrics from a song description.
Pricing
Detailed information on model pricing and API packages.
Rate Limits
Rate limits are restrictions that our API imposes on the number of times a user or client can access our services within a specified period of time.