Vidu Q3 और Q3 Pro मॉडल पर 50% छूट · केवल WaveSpeedAI | 20 मई – 2 जून

Heartmula Generate Music

wavespeed-ai /

HeartMuLa is a state-of-the-art music generation model that creates high-quality songs from lyrics and style tags. Ready-to-use REST inference API with best performance, no coldstarts, and affordable pricing.

text-to-audio
Input

Idle

$0.1per run·~10 / $1

ExamplesView all

Related Models

README

HeartMuLa Generate Music

HeartMuLa is an open-source music foundation model that generates high-quality songs from lyrics and style tags. It supports multilingual lyrics including English, Chinese, Japanese, Korean, and Spanish — delivering complete songs with vocals and instrumentals.

Why Choose This?

  • Complete song generation Creates full songs with vocals and instrumentals from lyrics and style tags.

  • Multilingual lyrics Supports English, Chinese, Japanese, Korean, and Spanish.

  • Structured song composition Use section markers ([Verse], [Chorus], [Bridge], etc.) for precise song arrangement.

  • Flexible style control Use comma-separated tags to define genre, mood, instruments, tempo, and vocal characteristics.

  • Instrumental sections Include intros, outros, and instrumental breaks with duration control.

Parameters

ParameterRequiredDescription
lyricsYesSong lyrics with structure markers
tagsNoStyle tags: genre, mood, instruments, tempo, etc.
seedNoRandom seed for reproducibility

Tags Format

Tags describe the overall musical style using comma-separated values. You can specify:

  • Gender: male, female
  • Timbre: dark, bright, soft
  • Genre: pop, jazz, rock, R&B, folk, metal, reggae, etc.
  • Emotion: sad, happy, energetic, romantic, soulful
  • Instruments: piano, drums, guitar, synthesizer
  • Tempo: e.g., "85bpm"

Examples:

r&b, smooth, male vocals, soulful, slow jam, romantic, 85bpm

piano, happy, wedding, synthesizer, romantic

female, dark, pop, sad, piano and drums, 125bpm

Lyrics Format

Use structure markers in brackets to guide song arrangement:

Vocal sections (require lyrics):

  • [Verse] — Verse section
  • [Chorus] — Chorus/hook section
  • [Bridge] — Bridge section

Instrumental sections (no lyrics needed):

  • [intro-short] — Short intro (approx. 0-10 seconds)
  • [intro-medium] — Medium intro (approx. 10-20 seconds)
  • [inst-short] — Short instrumental break (approx. 0-10 seconds)
  • [inst-medium] — Medium instrumental break (approx. 10-20 seconds)
  • [outro-short] — Short outro (approx. 0-10 seconds)
  • [outro-medium] — Medium outro (approx. 10-20 seconds)

Example:

[intro-short] [Verse] Your voice like velvet, I'm never alone The way you say my name, it pulls me in A love like ours is more than skin [Chorus] Stay with me until the morning light Hold me close and never let me go [outro-short]

How to Use

  1. Enter your lyrics — provide structured lyrics with section markers.
  2. Add tags (optional) — describe the musical style with comma-separated tags.
  3. Set seed (optional) — use a specific seed for reproducible results.
  4. Run — submit and download your generated song.

Pricing

OutputCost
Per song$0.10

Best Use Cases

  • Original Music Creation — Generate complete songs for creative projects.
  • Demo Production — Quickly prototype song ideas before full production.
  • Multilingual Content — Create songs in English, Chinese, Japanese, Korean, or Spanish.
  • Content Soundtracks — Create custom music for videos, podcasts, and games.
  • Songwriting Assistance — Hear your lyrics set to music instantly.

Pro Tips

  • Combine multiple style tags for specific results (e.g., "female, bright, pop, happy, piano, 130bpm").
  • Use [intro-short] and [outro-short] for quick intros/outros, or medium versions for longer sections.
  • Add [inst-short] or [inst-medium] between vocal sections for instrumental breaks.
  • Keep lyrics well-structured with clear section markers for better song arrangement.
  • Use the same seed to reproduce identical results.

Notes

  • Lyrics is the only required field.
  • Supported lyrics languages: English, Chinese, Japanese, Korean, Spanish.
  • Song length depends on lyrics length and structure markers.
  • Instrumental sections (intro, inst, outro) do not require lyrics text.
Accessibility:This website uses AI models provided by third parties.

Heartmula Generate Music API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/heartmula/generate-music with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Heartmula Generate Music below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/heartmula/generate-music" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "seed": -1
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("wavespeed-ai/heartmula/generate-music", {
        "seed": -1
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "wavespeed-ai/heartmula/generate-music",
    {
    "seed": -1
}
)

print(output["outputs"][0])  # → URL of the generated output

Heartmula Generate Music API — Frequently asked questions

What is the Heartmula Generate Music API?

Heartmula Generate Music is a WaveSpeedAI model for audio generation, exposed as a REST API on WaveSpeedAI. HeartMuLa is a state-of-the-art music generation model that creates high-quality songs from lyrics and style tags. Ready-to-use REST inference API with best performance, no coldstarts, and affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the Heartmula Generate Music API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/heartmula-generate-music.

How much does Heartmula Generate Music cost per run?

Heartmula Generate Music starts at $0.10 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does Heartmula Generate Music accept?

Key inputs: `seed`, `lyrics`, `tags`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/heartmula-generate-music.

How long does Heartmula Generate Music take to generate?

Average end-to-end generation time on WaveSpeedAI is around 148 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.

Can I use Heartmula Generate Music outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.