Skip to main content
Glama

Generate Music

generate_music
Destructive

Use this to create an AI music track (full songs with vocals, or instrumentals). Models: music-3.0 (default, 200 credits — songs from a prompt and/or lyrics, lyrics optimizer on by default so a prompt alone works), eleven-music-v2.5 (ElevenLabs' newest — songs with vocals in many languages, sung from the user's lyrics exactly as written or its own, or instrumentals, of an EXACT length via duration, 10–300 s — 200 credits per minute billed per second, 10-second minimum; the prompt must not name artists, songs, albums or record labels), mureka-v9.5 (200 credits — Mureka's newest: sings the user's EXACT lyrics verbatim, or instrumental/BGM), mureka-v9 (60 credits — sings the user's EXACT lyrics verbatim, or instrumental/BGM), lyria-3 (100 credits — high-fidelity from a rich prompt, can condition on up to 10 reference images), and sonilo-music (instrumental/background music of an EXACT length via duration, 5–360 s — priced PER SECOND at 4 credits/s with a 10-second minimum, no vocals). VIDEO-TO-MUSIC: pass a video URL (upload_media first for local files) and sonilo-video-music composes a licensed soundtrack for the clip's content, pacing and mood — priced per second of the video's measured length (15 credits/s, 10 s minimum, ≤360 s). Flat price per track (by length for sonilo-music, eleven-music-v2.5 and sonilo-video-music), charged on success only; each call starts a new paid job. Submits an async job and returns a numeric job_id — music takes a minute or three: poll check_generation_status with the job_id AND type "music" every 15–30 seconds, then share the finished track's listen/download link with the user (chat can't embed audio players).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoMusic model id. Omit for the default (music-3.0 — latest MiniMax, all-purpose songs, 200 credits; passing a video auto-selects sonilo-video-music). Alternatives: eleven-music-v2.5 (ElevenLabs — songs with vocals in many languages or instrumentals of an exact length, 200 credits per minute billed per second — pass duration), music-2.6 (previous generation, same price), mureka-v9.5 (Mureka's newest — sings exact lyrics, 200), mureka-v9 (sings exact lyrics, cheapest at 60), lyria-3 (high-fidelity, image conditioning, 100), sonilo-music (instrumental/background music of an exact length, priced per second — pass duration). Call list_models for details.
videoNoVideo-to-music: URL of a video (≤360 s, ≤30 MB for public URLs) to compose a licensed soundtrack FOR — the music follows the clip's content, pacing and mood, and matches its length. Must be a URL — upload local files with upload_media first. Uses sonilo-video-music: 15 credits per second of the video's measured duration (10-second minimum). prompt becomes optional direction (genre/mood/instrumentation); no lyrics or duration.
formatNomusic-2.6/music-3.0 only: output audio format, wav (default) or mp3.
imagesNolyria-3 only: up to 10 reference images to condition the mood — each a URL, data URI, or raw base64 (upload local files with upload_media).
lyricsNoLyrics to sing. mureka-v9.5 and mureka-v9 sing them VERBATIM ([verse]/[chorus] tags supported); music-2.6/music-3.0 polish them unless lyrics_optimizer is false; lyria-3 treats them as optional guidance; eleven-music-v2.5 sings them exactly as written (optional, up to 3000 chars and 4090 together with the prompt; omit them and it writes its own; not with instrumental).
promptNoStyle/mood description of the track. Required for lyria-3 (10–2000 chars), eleven-music-v2.5 (up to 2000 chars) and for instrumental tracks; optional on music-2.6/music-3.0 when lyrics are given. eleven-music-v2.5 refuses prompts that name artists, songs, albums or record labels or quote a real song's lyrics (refused jobs are free).
durationNoTrack length in seconds, for the two models priced by length: sonilo-music (5–360, default 30; 4 credits/s → 30 s = 120 credits) and eleven-music-v2.5 (10–300, default 60; 200 credits per minute billed per second → 30 s = 100, 60 s = 200, 5 min = 1000 credits). Both have a 10-second billing minimum. Other music models ignore length (sonilo-video-music sizes the music to the video).
instrumentalNoGenerate an instrumental track (no vocals). music-2.6/music-3.0, mureka-v9.5/mureka-v9 (mureka requires a prompt in this mode) and eleven-music-v2.5 (not together with lyrics).
vocal_genderNomureka-v9.5 and mureka-v9 only: preferred vocal gender for songs (default auto).
lyrics_optimizerNomusic-2.6/music-3.0 only. Write/polish lyrics from the prompt — DEFAULT TRUE (matches web/API). Set false to sing the provided lyrics as-is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / instrumental / description
      Previous value: -"Generate an instrumental track (no vocals). music-2.6/music-3.0, mureka-v9 (mureka requires a prompt in this mode) and eleven-music-v2.5 (not together with lyrics)."New value: +"Generate an instrumental track (no vocals). music-2.6/music-3.0, mureka-v9.5/mureka-v9 (mureka requires a prompt in this mode) and eleven-music-v2.5 (not together with lyrics)."
    • changedInput schema / properties / lyrics / description
      Previous value: -"Lyrics to sing. mureka-v9 sings them VERBATIM ([verse]/[chorus] tags supported); music-2.6/music-3.0 polish them unless lyrics_optimizer is false; lyria-3 treats them as optional guidance; eleven-music-v2.5 sings them exactly as written (optional, up to 3000 chars and 4090 together with the prompt; omit them and it writes its own; not with instrumental)."New value: +"Lyrics to sing. mureka-v9.5 and mureka-v9 sing them VERBATIM ([verse]/[chorus] tags supported); music-2.6/music-3.0 polish them unless lyrics_optimizer is false; lyria-3 treats them as optional guidance; eleven-music-v2.5 sings them exactly as written (optional, up to 3000 chars and 4090 together with the prompt; omit them and it writes its own; not with instrumental)."
    • changedInput schema / properties / model / description
      Previous value: -"Music model id. Omit for the default (music-3.0 — latest MiniMax, all-purpose songs, 200 credits; passing a video auto-selects sonilo-video-music). Alternatives: eleven-music-v2.5 (ElevenLabs — songs with vocals in many languages or instrumentals of an exact length, 200 credits per minute billed per second — pass duration), music-2.6 (previous generation, same price), mureka-v9 (sings exact lyrics, cheapest at 60), lyria-3 (high-fidelity, image conditioning, 100), sonilo-music (instrumental/background music of an exact length, priced per second — pass duration). Call list_models for details."New value: +"Music model id. Omit for the default (music-3.0 — latest MiniMax, all-purpose songs, 200 credits; passing a video auto-selects sonilo-video-music). Alternatives: eleven-music-v2.5 (ElevenLabs — songs with vocals in many languages or instrumentals of an exact length, 200 credits per minute billed per second — pass duration), music-2.6 (previous generation, same price), mureka-v9.5 (Mureka's newest — sings exact lyrics, 200), mureka-v9 (sings exact lyrics, cheapest at 60), lyria-3 (high-fidelity, image conditioning, 100), sonilo-music (instrumental/background music of an exact length, priced per second — pass duration). Call list_models for details."
    • changedInput schema / properties / vocal_gender / description
      Previous value: -"mureka-v9 only: preferred vocal gender for songs (default auto)."New value: +"mureka-v9.5 and mureka-v9 only: preferred vocal gender for songs (default auto)."
  2. Changed5 schema fields changed
    • changedInput schema / properties / duration / description
      Previous value: -"sonilo-music only: track length in seconds (5–360, default 30). Billed per second with a 10-second minimum (4 credits/s → 30 s = 120 credits). Other music models ignore length (sonilo-video-music sizes the music to the video)."New value: +"Track length in seconds, for the two models priced by length: sonilo-music (5–360, default 30; 4 credits/s → 30 s = 120 credits) and eleven-music-v2.5 (10–300, default 60; 200 credits per minute billed per second → 30 s = 100, 60 s = 200, 5 min = 1000 credits). Both have a 10-second billing minimum. Other music models ignore length (sonilo-video-music sizes the music to the video)."
    • changedInput schema / properties / instrumental / description
      Previous value: -"Generate an instrumental track (no vocals). music-2.6/music-3.0 and mureka-v9 (mureka requires a prompt in this mode)."New value: +"Generate an instrumental track (no vocals). music-2.6/music-3.0, mureka-v9 (mureka requires a prompt in this mode) and eleven-music-v2.5 (not together with lyrics)."
    • changedInput schema / properties / lyrics / description
      Previous value: -"Lyrics to sing. mureka-v9 sings them VERBATIM ([verse]/[chorus] tags supported); music-2.6/music-3.0 polish them unless lyrics_optimizer is false; lyria-3 treats them as optional guidance."New value: +"Lyrics to sing. mureka-v9 sings them VERBATIM ([verse]/[chorus] tags supported); music-2.6/music-3.0 polish them unless lyrics_optimizer is false; lyria-3 treats them as optional guidance; eleven-music-v2.5 sings them exactly as written (optional, up to 3000 chars and 4090 together with the prompt; omit them and it writes its own; not with instrumental)."
    • changedInput schema / properties / model / description
      Previous value: -"Music model id. Omit for the default (music-3.0 — latest MiniMax, all-purpose songs, 200 credits; passing a video auto-selects sonilo-video-music). Alternatives: music-2.6 (previous generation, same price), mureka-v9 (sings exact lyrics, cheapest at 60), lyria-3 (high-fidelity, image conditioning, 100), sonilo-music (instrumental/background music of an exact length, priced per second — pass duration). Call list_models for details."New value: +"Music model id. Omit for the default (music-3.0 — latest MiniMax, all-purpose songs, 200 credits; passing a video auto-selects sonilo-video-music). Alternatives: eleven-music-v2.5 (ElevenLabs — songs with vocals in many languages or instrumentals of an exact length, 200 credits per minute billed per second — pass duration), music-2.6 (previous generation, same price), mureka-v9 (sings exact lyrics, cheapest at 60), lyria-3 (high-fidelity, image conditioning, 100), sonilo-music (instrumental/background music of an exact length, priced per second — pass duration). Call list_models for details."
    • changedInput schema / properties / prompt / description
      Previous value: -"Style/mood description of the track. Required for lyria-3 (10–2000 chars) and for instrumental tracks; optional on music-2.6/music-3.0 when lyrics are given."New value: +"Style/mood description of the track. Required for lyria-3 (10–2000 chars), eleven-music-v2.5 (up to 2000 chars) and for instrumental tracks; optional on music-2.6/music-3.0 when lyrics are given. eleven-music-v2.5 refuses prompts that name artists, songs, albums or record labels or quote a real song's lyrics (refused jobs are free)."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations it discloses the critical economics: async job submission returning a numeric job_id, "each call starts a new paid job", billing charged on success only, per-second vs per-minute pricing, and free refused jobs. It also notes chat can't embed audio players, which shapes the agent's output. Slightly short of 5 only because it doesn't state whether failed jobs leave partial artifacts or how long finished tracks persist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and purposeful, but it is one enormous dense block that re-enumerates the model list and prices already present in the model and duration schema descriptions. The information is useful; the duplication and wall-of-text form cost it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter async paid generation tool with no output schema, the description covers cost model, async lifecycle, polling, model tradeoffs, and per-model parameter interactions. An agent has everything needed to call it once and handle the result correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds real routing meaning beyond the schema — e.g. "passing a video auto-selects sonilo-video-music", the mutual exclusion of lyrics with instrumental, and duration's differing ranges/price math per model. Much of the model/pricing detail is duplicated in the schema's model description, which caps the gain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: "create an AI music track (full songs with vocals, or instrumentals)". It immediately separates itself from siblings like generate_sound_effect and generate_video by scope, and the model roster makes the covered surface explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives per-model routing advice (which model to pick for vocals in many languages, exact-length instrumentals, verbatim lyrics, cheapest option), states the video-to-music path with the upload_media prerequisite, and names the mandatory follow-up call (check_generation_status with type "music") plus the 15–30 s polling cadence.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.