About HeartMuLa Transcribe
The endpoint accepts a single audio_url and finishes with the sung lyrics as plain text, with no timings and no options to tune. It fits music products that already generate or store songs: lyric sheets, catalog search, caption drafts. Because the model can invent words over long instrumental passages, most of the integration work happens before and after the call rather than in the request body.
Call it with the model name heartmula/transcribe/speech-to-text on POST /jobs/createTask, from $0.05.
Introduction
HeartMuLa Transcribe extracts sung lyrics from an audio file and returns them as text on the task.
It is designed for sung vocals over music. For an interview or a spoken recording, choose a general speech-to-text model.
Key features
Transcribe vocals over music
Music can make lyrics harder to recognise: vocals may be doubled, reverberant or mixed with instruments in overlapping frequencies. This model is tuned for sung vocals over music.
Text on the task, no asset to fetch
No file is written for you to fetch. Read the text off the finished task and send it straight to wherever your lyrics already live.
Process music catalogs
Generate lyric text for full tracks in a catalog. Review short excerpts separately to check whether their transcriptions are useful.
Request parameters
| Parameter | Required | Description |
|---|---|---|
audio_url | Yes | The voice or music track to use. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per run |
|---|---|
| Standard | $0.05 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Extract sung lyrics
Provide a direct audio URL to transcribe vocals over music, then review names and unclear lines before using the text.
Music catalog metadata
Generate lyric text across a catalog to improve search, display and tagging.
Subtitles for music-backed video
Pull the sung lines out of a track so they can be timed into captions for short-form video, where the vocal sits over a dense mix.
Prompt guide & pro tips
Send a direct URL to the audio file
The field takes a URL, not an upload body. It should point at the audio itself — a stream page or a share link that returns HTML will fail as an invalid asset, not as a bad transcription.
Expect text on the task, not a file
The transcript is returned as text on the task result.
Check the result before iterating
One audio URL in, lyric text out, nothing to configure: no language hint, no timestamps, no speaker labels, no confidence values and no choice of output shape. The model is tuned for sung vocals over music; heavily layered mixes, whispered or screamed vocals and very low-bitrate sources degrade the result, and instrumental audio returns little or nothing. The URL must resolve directly to an audio file — a page that returns HTML fails as an invalid asset.
API quick start
Call the HeartMuLa Transcribe API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model heartmula/transcribe/speech-to-text and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "heartmula/transcribe/speech-to-text",
"input": {
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the HeartMuLa Transcribe API
- A lyric check after song generation: when a song finishes, transcribe it and diff the text against the lyrics the user submitted, flagging lines that came back different.
- A search index for a music library built from lyric text, with a post-check that drops any track whose transcript is mostly one repeated token.
HeartMuLa Transcribe parameter notes
- audio_url is the only field. Verify on your server that the link answers with an audio content type; landing pages from music platforms are rejected rather than transcribed.
- No language, prompt or timestamp field exists. If your product needs timed lyrics, keep this text as the word list and align it to the track in a separate step.
- Pre-trim long instrumental intros and outros. A vocal stem cut to the sung section gave clean output in our tests, while the full mix of the same song ended in about sixty repeated words.
- Output arrives as one run of text without line breaks and can glue words together (we got "awakeMmm"), so post-process before display.
How HeartMuLa Transcribe API pricing adds up
HeartMuLa is billed per request: one flat charge per audio_url, independent of duration. Trimming never lowers the charge, and a rerun after a hallucinated result is a second full charge. Store the task id, your song id and a hash of the audio so the same file is never transcribed twice.
- Speech to Text: $0.05 per run, $5.00 for 100 runs
Async jobs, webhooks and rate limits
Every HeartMuLa Transcribe request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for heartmula/transcribe/speech-to-text never runs or bills twice.
Common HeartMuLa Transcribe API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_asset | The URL served a page, a sign-in redirect or a file that is not audio. Resolve it to the raw file and resubmit. |
generation_failed | No usable lyrics came back. Check whether the input is mostly instrumental; a clip with little singing can legitimately return almost nothing. |
upstream_unavailable | The provider is not taking jobs. Back off and retry the same URL later, and avoid splitting the song to work around it, because each piece is billed on its own. |
Examples
HeartMuLa Transcribe API questions
How much does the HeartMuLa Transcribe API cost?
HeartMuLa Transcribe costs $0.05 per run. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for HeartMuLa Transcribe in the API?
Put heartmula/transcribe/speech-to-text for Speech to Text in the model field of POST /jobs/createTask.
How can I spot a hallucinated transcript?
Look for long runs of a single repeated word or a sudden change of script, such as Persian characters after English lyrics. Both showed up in our tests on songs with long instrumental endings.
Should I send the vocal stem instead of the mix?
When you have one, yes. A separated and trimmed vocal returned clean lyrics with one wrong word in our test.
Can I send a whole album in one request?
No. One request takes one audio_url and is billed on its own. Queue tracks as separate tasks and save each result against its track.
Can I try HeartMuLa Transcribe without writing code?
Run HeartMuLa Transcribe in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.