minimax-music-gen

minimax-music-gen is a skill for Claude Code from desirecore/market. It costs 95 tokens per session (3,085 once invoked), scanned A, original, MIT.

A tool for generating music through MiniMax's Music Generation API, including songs with vocals, instrumental tracks, and covers based on reference audio.

In plain words
What is it for?
Use it to create vocal songs, instrumental music, or rearranged cover versions through MiniMax.
Why use it?
It provides a defined workflow for turning prompts and, when needed, lyrics or reference audio into generated music.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to create vocal songs, instrumental music, or rearranged cover versions through MiniMax.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desirecore/market/minimax-music-gen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add desirecore/market --skill minimax-music-gen
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minimax-music-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/minimax-music-gen/github.svg)](https://agentmods.dev/skills/desirecore/market/minimax-music-gen)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/minimax-music-gen"><img src="https://agentmods.dev/badge/skills/desirecore/market/minimax-music-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for minimax-music-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/desirecore/market/minimax-music-gen"><img src="https://agentmods.dev/badge/skills/desirecore/market/minimax-music-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.03085
Opus 5 $0.00048 $0.01543
Sonnet 5 $0.00019 $0.00617
Haiku 4.5 $0.00010 $0.00309

Measured 11d ago against content hash f8e810d1ad66, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

minimax-music-gen scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **Use Bash curl throughout** — do not use the HttpRequest tool or Python
skills/minimax-music-gen/SKILL.md · 298 lines

How it starts

The opening of the file, as written. The whole thing — 298 lines — stays where its author put it; the contents beside it link to each section on GitHub.

minimax-music-gen Skill

Mandatory Rules (violations will cause functionality to fail)

  1. Must access agent-service over HTTPShttps://127.0.0.1:${PORT} with -k to skip certificate verification
  2. Use Bash curl throughout — do not use the HttpRequest tool or Python
  3. Do not use output_format: "url" — URL downloads will return empty files in scenarios such as Token Plan due to CDN authentication failures. Always use the default hex format; audio data is returned directly in the API response

Full Execution Flow

Prerequisites

  • The user has configured the MiniMax Provider (regular API or Token Plan) in Resource Manager → Compute and filled in the API Key
  • agent-service is running

Core Concepts

MiniMax Music Generation is a synchronous API (not an asynchronous task model); it returns audio data directly when called. Three modes are supported:

Mode model Description
Song generation music-2.6 Provide prompt + lyrics to generate a song with vocals
Pure instrumental music-2.6 Set is_instrumental: true; only a prompt is needed
Cover music-cover Provide a reference audio + prompt; rearrange based on the melodic skeleton

Lyrics Structure Tags

The lyrics field supports the following structure tags to organize song sections:

Tag Meaning
[verse] Verse
[chorus] Chorus
[bridge] Bridge
[intro] Intro
[outro] Outro
[interlude] Interlude

Example lyrics format:

[verse]
夜晚的城市灯火阑珊
我独自走在回家的路上

[chorus]
这一刻时间仿佛停止
所有的喧嚣都已远去

Generate a Song (with Vocals)

Note: Do not pass the output_format parameter; use the default hex format.

PORT=$(cat ${DESIRECORE_ROOT}/agent-service.port)
curl -sk -X POST "https://127.0.0.1:${PORT}/api/media-proxy" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "minimax",
    "serviceType": "music_gen",
    "endpoint": "/music_generation",
    "body": {
      "model": "music-2.6",
      "prompt": "独立民谣,温暖,治愈,吉他伴奏",
      "lyrics": "[verse]\n歌词内容\n\n[chorus]\n副歌内容",
      "audio_setting": {
        "format": "mp3",
        "sample_rate": 44100,
        "bitrate": 256000
      }
    },
    "responseType": "json"
  }'

Read the full file on GitHub · 298 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 298 lines · 95 tokens per session scan A f8e810d1ad66

Subscribe to this mod's changes

minimax-music-gen is a skill published in the GitHub repository desirecore/market (2 stars, last pushed today), licensed MIT. It adds 95 tokens to every session and 3,085 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.