---
title: music_generate
description: 接続先のワークスペースで、カタログのモデルを使って音楽生成ジョブを開始します。
canonical_url: https://orchestor.io/ja/docs/mcp/tools/music_generate
markdown_url: https://orchestor.io/ja/docs/mcp/tools/music_generate.md
related:
  - https://orchestor.io/ja/docs/mcp/tools
  - https://orchestor.io/ja/docs/mcp/tools/audio-and-music
contentType: reference
---

# music_generate

接続先のワークスペースで、カタログのモデルを使って音楽生成ジョブを開始します。

**操作** 書き込み・承認が必要

## パラメーター

| パラメーター | 型 | 必須 | 既定値 | 説明 |
| --- | --- | --- | --- | --- |
| `body` | object | 必須 | — | model の省略時は orchestor/music-auto。曲の長さはプロンプトで指定します。 |
| `body.model` | string | 任意 | — | `music_models_list` が返すモデル ID。既定値は `orchestor/music-auto` です。 |
| `body.prompt` | string | 必須 | — | 曲の指示を 5,000 文字以内で指定します。 |
| `body.negative_prompt` | string | 任意 | `""` | 省略または空文字列のみ。除外したい内容は prompt に含め、非空の値を送らないでください。 |
| `body.image_url` | null / string | 任意 | — | 参照画像の公開 HTTPS URL。 |
| `body.metadata` | object | 任意 | — | 追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。 |
| `body.mode` | string | 任意 | — | すぐにジョブを受け取る場合は `async` を指定します。 |
| `body.webhook_url` | string | 任意 | — | 終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。 |
| `body.wait_timeout_seconds` | integer | 任意 | — | sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。 |
| `body.project_id` | string | 任意 | — | 同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。 |
| `idempotency_key` | string | 必須 | — | 同じ入力で再試行するときは同じキーを使います。 |
| `approval_receipt` | string | 任意 | — | 承認後の再送に使うプランのレシート。 |

自動選択では `lyria-3-pro` が選ばれます。曲の長さはプロンプトで指定します。現在のモデル一覧には秒数を直接指定できるモデルはありません。結果には MP3 の URL が含まれます。

プランを承認したら、`approval_receipt` を付けて同じ入力を送信します。`data.job.id` を `jobs_wait` に渡し、完了後に `jobs_result` で成果物を取得します。

## 依頼例

```text
lyria-3-pro でゆっくりしたピアノ曲を作り、完了したら MP3 の URL を返して。
```

[MCP ツール](https://orchestor.io/ja/docs/mcp/tools.md) › [音声と音楽](https://orchestor.io/ja/docs/mcp/tools/audio-and-music.md)

---

- [Documentation index](https://orchestor.io/ja/docs/llms.txt)
- [Documentation sitemap](https://orchestor.io/docs/sitemap.md)
