Skip to content

Mureka 9.5 Song Generation

Integrate

Model id mureka/api/generate/song
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/mureka/api/generate/song?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Files like the example: $0.75 750 API credits · ≈ ₽79.92 your files are measured before the run Run it on this page

Get API key
Mureka Text to Music Reference inputs #music#vocals#song-generation

Generates songs with vocals from a prompt or lyrics, with style, voice and melody controls

Mureka · Audio

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

0 / 5000

Sung text for lyrics-to-song generation, with a maximum length of 5,000 characters. For prompt-to-song generation, supply prompt instead of lyrics.

88 / 2000

Song description whose role depends on whether lyrics is supplied: it controls musical style alongside lyrics and is required without lyrics. Describe the intended song, including its mood, instrumentation, and vocals.

model default mureka-9.5

Model used to generate the song.

Advanced gender · reference_id · vocal_id · melody_id · enable_safety_checker · styles
gender

Vocal gender preference for lyrics-to-song generation, used only when no uploaded or cloned voice overrides it.

Reference-music identifier obtained from /files/upload using purpose='reference'.

Voice identifier obtained from /voice/clone.

Melody identifier for use without prompt, reference_id, or vocal_id. Obtain it through /files/upload with purpose='melody'.

Genre selection available only for prompt-to-song generation without lyrics; choose one or more musical genres.

POST /run/mureka/api/generate/song?wait=20 quote → $0.75
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/mureka/api/generate/song?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Mureka 9.5 Song Generation

Use `lyrics` (up to 5000 characters) for lyrics-to-song, or `prompt` (up to 2000) and `styles` for prompt-to-song. Options include `gender`, `reference_id`, `vocal_id` and `melody_id`. The `model` list covers mureka-7.6, mureka-o2, mureka-8, mureka-9 and mureka-9.5 (default). Returns audio, duration and a `song_id`.

Parameters

NameType DefaultAllowed Description
modeloptional
Typeenum
Defaultmureka-9.5
mureka-7.6mureka-o2mureka-8mureka-9mureka-9.5
Model used to generate the song.
lyricsoptional
Typestring | null
≤ 5,000 characters
Sung text for lyrics-to-song generation, with a maximum length of 5,000 characters. For prompt-to-song generation, supply prompt instead of lyrics.
stylesoptional
Typeenum[]
Genre selection available only for prompt-to-song generation without lyrics; choose one or more musical genres.
promptoptional
Typestring | null
≤ 2,000 characters
Song description whose role depends on whether lyrics is supplied: it controls musical style alongside lyrics and is required without lyrics. Describe the intended song, including its mood, instrumentation, and vocals.
genderoptional
Typeenum
femalemale
Vocal gender preference for lyrics-to-song generation, used only when no uploaded or cloned voice overrides it.
reference_idoptional
Typestring | null
Reference-music identifier obtained from /files/upload using purpose='reference'.
vocal_idoptional
Typestring | null
Voice identifier obtained from /voice/clone.
melody_idoptional
Typestring | null
Melody identifier for use without prompt, reference_id, or vocal_id. Obtain it through /files/upload with purpose='melody'.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "mureka/api/generate/song",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 750,
    "usd": "0.75",
    "charged": 750,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "song_id": "string",
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "duration": 5,
    "lyrics_sections": [
      {
        "section_type": "intro",
        "start": 1,
        "end": 1,
        "lines": [
          {}
        ]
      }
    ]
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
song_id
string | nullReusable audio identifier for endpoints accepting song_id.
audio
object {url, content_type, file_name, file_size}Audio file produced by generation.
duration
integer | nullGenerated audio length, measured in milliseconds, if available.
lyrics_sections
array of object {section_type, start, end, lines} | nullLyric sections with timing information for the generated audio, if available.

More models: Text to Music

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/mureka/api/generate/song.md. All models and guides: https://doitong.com/developers/llms.txt