Pricing
Compare models →| Output | Cost |
|---|---|
| Per song | $0.10 |
Input schema
| Parameter | Type | Description |
|---|---|---|
lyricsRequired | string | Song lyrics with structure tags. Each paragraph represents a segment starting with a structure tag (e.g., [verse], [chorus], [bridge]) and ending with a blank line. Each line is a sentence without punctuation. |
tags | string | Musical style tags (Optional). Describe the genre, mood, instruments, tempo, etc. For example: 'pop, upbeat, electronic, female vocals'. |
seed | integer | The random seed to use for the generation. -1 means a random seed will be used. |
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
| Parameter | Required | Description |
|---|---|---|
| lyrics | Yes | Song lyrics with structure markers |
| tags | No | Style tags: genre, mood, instruments, tempo, etc. |
| seed | No | Random 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
- Enter your lyrics — provide structured lyrics with section markers.
- Add tags (optional) — describe the musical style with comma-separated tags.
- Set seed (optional) — use a specific seed for reproducible results.
- Run — submit and download your generated song.
Pricing
| Output | Cost |
|---|---|
| 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.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
HeartMuLa Generate Music Generation API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/heartmula/generate-music for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"lyrics": "example",
"tags": "example",
"seed": 0
}HeartMuLa Generate Music Generation API — Frequently asked questions
What is the Heartmula Generate Music API?
Heartmula Generate Music is a OpenSIAI model for music generation, exposed as a REST API on OpenSIAI. 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 OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/heartmula/generate-music.
How much does Heartmula Generate Music cost per run or per second?
Heartmula Generate Music starts at $0.1 per run or per second. 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 /docs/docs-api/opensi-ai/heartmula/generate-music.
How long does Heartmula Generate Music take to generate?
Reported generation time on OpenSIAI is around 133 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. 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 (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
