by Mureka

Songs from a style brief and your lyrics, or instrumental background tracks

mureka/v9/text-to-audio
Mureka V9 AI Music Generator online
  • Up to 3 per run
  • Your own lyrics
  • Music

About Mureka V9

Mureka V9 accepts a style prompt of up to 1,024 characters with either a lyric sheet or instrumental true, and finishes as an async job with one to three audio files in the format you request. It suits products that want lossless delivery and a choice of takes without extra round trips, such as a background-music picker for video creators or a demo tool for songwriters.

Call it with the model name mureka/v9/text-to-audio on POST /jobs/createTask, from $0.084.

Introduction

Mureka V9 turns musical direction and lyrics into a vocal song. For background music, enable instrumental and leave the lyric field empty. Its num_outputs control can request one, two or three versions in a single submission.

Key features

The style brief allows 1,024 characters and the lyric field allows 5,000, including [Verse] and [Chorus] tags. Export choices are mp3, wav and flac. Mureka says songs can reach roughly 5:30 and background music roughly 4:30; those are publisher-stated lengths.

Request parameters

ParameterRequiredDescription
lyricsNoWrite your own lyrics, or leave it to the model.
promptYesDescribe what you want to make.
num_outputsNoHow many results to make in one go. ≥ 1 · ≤ 3 · Default: 1
instrumentalNoMusic only, no vocals. Default: false
output_formatNoFile type of the result. mp3 · wav · flac · Default: mp3

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.

OptionUSD per run
Standard$0.084

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

Our folk-song test sang the supplied road-trip verse and chorus over acoustic guitar for about 2:31. A separate instrumental test produced a slow study beat with piano and vinyl crackle.

Prompt guide & pro tips

Keep genre, instruments, mood, tempo and voice direction in prompt, and put the sung text in lyrics. Compare Mureka V9.5 when you need a female or male vocal selector at a higher song rate.

API quick start

Call the Mureka V9 API in three steps

  1. 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.
  2. Send the request. POST /jobs/createTask with model mureka/v9/text-to-audio and an input object that follows the parameter table. The response returns a task ID straight away.
  3. 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": "mureka/v9/text-to-audio",
  "input": {
    "prompt": "Calm ambient pads with a slow rising motif",
    "output_format": "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 Mureka V9 API

  • Background music in a video app: send instrumental true with a short brief naming instruments and bpm, request flac or wav for editing, and let users audition up to three takes.
  • A lyric demo service: users paste tagged lyrics and pick a genre, your backend composes the style prompt and returns the sung demo. Short sheets still yield full songs, so promise a song, not a jingle.

Mureka V9 parameter notes

  • num_outputs ranges from 1 to 3 and each output is billed. Default it to 1 and make the multi-take option an explicit user choice.
  • When instrumental is true, lyrics are ignored. Clear the lyric editor or warn the user so nobody thinks their words were used.
  • output_format is mp3 (default), wav or flac. Choose by destination: mp3 for preview players, wav or flac for editors.
  • V9 has no vocal_gender field. If your UI offers a voice toggle, route that request to Mureka V9.5 instead.

How Mureka V9 API pricing adds up

Metered per output: a request with num_outputs 3 counts three times. Output format and song length do not change the unit. Persist num_outputs with each task so your ledger matches what was delivered.

  • Music: $0.084 per run, $8.40 for 100 runs

Async jobs, webhooks and rate limits

Every Mureka V9 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 mureka/v9/text-to-audio never runs or bills twice.

Common Mureka V9 API errors

errorCodeWhat it usually means and how to fix it
invalid_requestStyle prompt over 1,024 characters, lyrics over 5,000, num_outputs outside 1 to 3, or an output_format other than mp3, wav or flac.
generation_failedNo audio came back. Resubmit as a new task, ideally with num_outputs 1 for the retry.
timeoutPoll the saved taskId before resubmitting, especially for three-take jobs, so you do not pay twice.

Examples

Americana folk songExamples
Background track for a cooking videoExamples

Mureka V9 API questions

How much does the Mureka V9 API cost?

Mureka V9 costs $0.084 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 Mureka V9 in the API?

Put mureka/v9/text-to-audio for Music in the model field of POST /jobs/createTask.

Why are V9 songs long when the lyrics are short?

The model arranges a full song around them: our eight-line sheet returned 3:04. There is no duration parameter.

Does num_outputs return separate assets?

Yes, one asset per version, each billed.

When should I call V9.5 instead?

When you need vocal_gender. V9.5 costs about three times as much per song and has no num_outputs.

What are the limits of the Mureka V9 API?

Outputs per call: 1–3; Prompt length (characters): 1,024. Requests outside these limits are rejected before anything is charged.

Can I try Mureka V9 without writing code?

Run Mureka V9 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.

All Mureka models

Mureka V9.5 adds a female or male vocal setting at a higher rate per song. Stay on V9 when the voice can be described in the prompt.

More about Mureka V9