编程

音乐生成 Suno Music

试用

通过 Suno 模型生成带人声或纯器乐的音乐,支持自动作词与自定义歌词两种模式。

它能做什么

基于 Suno 模型生成音乐,提供灵感模式(自动作词)和自定义模式(手动填词)两种歌词入口。可选择带人声或纯器乐输出,并指定风格、标题、人声性别,以及风格权重、怪异度、音频权重等参数。所有调用都需要 dLazy API Key,请求会发送到托管 API 端点执行。

什么时候用它

  • 用一段文字快速生成歌曲原型
  • 将自定义歌词搭配指定的音乐风格
  • 生成纯器乐用于背景播放
  • 通过 negative tags 排除不想要的风格

技能文档

音乐生成 Suno Music

English · 中文

Suno music generation model. Supports inspiration mode (auto lyrics) and custom mode (manual lyrics), generating music with or without vocals.

Trigger Keywords

  • suno-music

Authentication

All requests require a dLazy API key. The recommended way to authenticate is:

dlazy login

This runs a device-code flow (also works in remote shells) and automatically saves your API key to the local CLI config — no manual copy/paste required.

Alternative: Set the Key Manually

If you already have an API key, you can save it directly:

dlazy auth set YOUR_API_KEY

The CLI saves the key in your user config directory (~/.dlazy/config.json on macOS/Linux, %USERPROFILE%\.dlazy\config.json on Windows), with file permissions restricted to your OS user account. You can also supply the key per-invocation via the DLAZY_API_KEY environment variable.

Getting Your API Key Manually

  1. Sign in or create an account at dlazy.com
  2. Go to dlazy.com/dashboard/organization/api-key
  3. Copy the key shown in the API Key section

Each key is scoped to your dLazy organization and can be rotated or revoked at any time from the same dashboard.

About & Provenance

You can install on demand without persisting a global binary by running:

npx @dlazy/cli@1.2.3 

Or, if you prefer a global install, the skill's metadata.clawdbot.install field declares the exact pinned version (npm install -g @dlazy/cli@1.2.3). Review the GitHub source before installing.

How It Works

This skill is a thin client over the dLazy hosted API. When you invoke it:

  • Prompts and parameters you provide are sent to the dLazy API endpoint (api.dlazy.com) for inference.
  • Any local file paths you pass to image / video / audio fields are uploaded to dLazy's media storage (files.dlazy.com) so the model can read them — the same flow as any cloud-based generation API.
  • Generated output URLs returned by the API are hosted on files.dlazy.com.

This is the standard SaaS pattern; the skill itself does not access network or filesystem resources beyond what the dLazy CLI already handles. See dlazy.com for the full service terms.

Usage

CRITICAL INSTRUCTION FOR AGENT: Execute dlazy suno-music to get the result.

dlazy suno-music -h

Options:
  --customMode [customMode]            Custom Mode [default: false]
  --instrumental [instrumental]        Instrumental (No Vocals) [default: false]
  --prompt [prompt]                    Prompt [default: ]
  --style [style]                      Style [default: ] [only when customMode="true"]
  --title [title]                      Title [default: ] [only when customMode="true"]
  --negativeTags [negativeTags]        Negative Tags (styles to exclude) [default: ]
  --vocalGender [vocalGender]          Vocal Gender(m=Male; f=Female) [default: f] (choices: "m", "f") [only when instrumental="false"]
  --styleWeight [styleWeight]          Style Weight (0-1) [default: 0.65]
  --weirdnessConstraint [weirdnessConstraint]Weirdness (0-1) [default: 0.65]
  --audioWeight [audioWeight]          Audio Weight (0-1) [default: 0.65]
  --dry-run                            Print payload + cost estimate without calling API
  --no-wait                            Return generateId immediately for async tasks
  --timeout                   Max seconds to wait for async completion (default: "1800")
  -h, --help                           display help for command

Any flag also accepts pipe references — - (auto-pick from upstream stdin), @N (n-th output), @N.path (jsonpath into output), @* (all primary values), @stdin / @stdin:path (whole envelope). See dlazy --help for details.

Output Format

{
  "ok": true,
  "result": {
    "tool": "suno-music",
    "modelId": "suno-music",
    "outputs": [
      {
        "type": "image",
        "id": "o_xxxxxxxx",
        "url": "https://files.dlazy.com/result.png",
        "mimeType": "image/png"
      }
    ]
  }
}

Async tasks (when --no-wait is passed) return outputs: [] and a task: { generateId, status } field instead. Use dlazy status --wait to poll.

Examples

dlazy suno-music --prompt 'prompt content'

Error Handling

CodeError TypeExample Message
401Unauthorized (No API Key)ok: false, code: "unauthorized", message: "API key is missing or invalid"
501Missing required parametererror: required option '--prompt ' not specified
502Local file read errorError: Image file/Video file not found: C:\path\to\your\file
503API request failed (no balance)ok: false, code: "insufficient_balance"
503API request failed (server error)HTTP status code error (500 server crash)
504Asynchronous task execution failed=== Generation Failed === / {Specific error reason returned by backend, for example "Prompt violates safety policy"}

AGENT CRITICAL INSTRUCTION:

  1. If the execution result returns code: "insufficient_balance", you MUST explicitly inform the user that their credits are insufficient and guide them to recharge: https://dlazy.com/dashboard/organization/settings?tab=credits
  2. If the execution result returns code: "unauthorized" or indicates missing API key, you MUST inform the user to get their API key from https://dlazy.com/dashboard/organization/api-key and save it using dlazy auth set and resume the task.

Tips

Visit https://dlazy.com for more information.

相关技能

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

dlazyai 的更多技能

浏览全部技能

根据提示词自动挑选最合适的 dlazy CLI 图片模型,并执行生成命令。

作者 dlazyai66 次安装

通过 CLI 一键抠图,去背景后返回透明 PNG 链接,支持本地路径或远程图片 URL。

作者 dlazyai64 次安装

通过 CLI 调用 Seedance 2.0,从文本、图片、视频、音频或首尾帧生成视频。

作者 dlazyai65 次安装

用一条提示词生成 Midjourney 风格图像,可指定画幅、Bot 类型和输出位(grid/U1-U4)。

作者 dlazyai61 次安装