---
title: music
description: Generate music.
canonical_url: https://orchestor.io/docs/en/cli/music
markdown_url: https://orchestor.io/docs/en/cli/music.md
related:
  - https://orchestor.io/docs/cli/global-flags
contentType: reference
---

# music

`orc music` generates music. List the available models, then generate with a selected model or the default model.

## Usage

```bash title="terminal"
orc music models list --json
```

*List music generation models.*

## Subcommands

### `models list`

音楽モデルを一覧表示

```bash title="terminal"
orc music models list [options]
```

### `models get`

音楽モデルを取得

```bash title="terminal"
orc music models get <model-id> [options]
```

### `generate`

モデルを選んで音楽を生成

```bash title="terminal"
orc music generate [options]
```

#### Unique options

##### `--idempotency-key`

同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。

Type: `string`. Optional.

```bash title="terminal"
orc music generate --idempotency-key <value>
```

##### `--model`

生成で使用するカタログ ID。対応する入力・設定をモデル一覧で確認してください。; enum: orchestor/music-auto|lyria-3-pro

Type: `string`. Optional.

```bash title="terminal"
orc music generate --model <value>
```

##### `--prompt`

(required) 曲の雰囲気、楽器、テンポ、展開を指定する文章。歌声を避ける場合もこの文章に指示します。; max 5000 chars

Type: `string`. Optional.

```bash title="terminal"
orc music generate --prompt <value>
```

##### `--negative-prompt`

省略または空文字列のみ。除外したい内容は prompt に含め、非空の値を送らないでください。

Type: `string`. Optional.

```bash title="terminal"
orc music generate --negative-prompt <value>
```

##### `--image-url`

曲の雰囲気の参照に使う公開 HTTPS 画像。対応モデルだけで指定し、null で解除します。; (use "null" or "reset" to clear)

Type: `string`. Optional.

```bash title="terminal"
orc music generate --image-url <value>
```

##### `--metadata`

追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。; (JSON object, e.g. '{"custom_id":"x"}')

Type: `string`. Optional.

```bash title="terminal"
orc music generate --metadata <value>
```

##### `--mode`

結果の受け取り方。async は即時受付、sync と subscribe は最大30秒の待機、webhook は終端通知です。; enum: async|sync|subscribe|webhook

Type: `string`. Optional.

```bash title="terminal"
orc music generate --mode <value>
```

##### `--webhook-url`

終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。; max 2048 chars

Type: `string`. Optional.

```bash title="terminal"
orc music generate --webhook-url <value>
```

##### `--wait-timeout-seconds`

sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。

Type: `number`. Optional.

```bash title="terminal"
orc music generate --wait-timeout-seconds <value>
```

##### `--project-id`

同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。; max 200 chars

Type: `string`. Optional.

```bash title="terminal"
orc music generate --project-id <value>
```

### `generate-default`

音楽を生成

```bash title="terminal"
orc music generate-default [options]
```

#### Unique options

##### `--idempotency-key`

同じ入力の再送で同じジョブを返すキー。1〜255 文字の印字可能 ASCII。同じキーで異なる入力を送ると 409 です。

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --idempotency-key <value>
```

##### `--prompt`

(required) 曲の雰囲気、楽器、テンポ、展開を指定する文章。歌声を避ける場合もこの文章に指示します。; max 5000 chars

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --prompt <value>
```

##### `--negative-prompt`

省略または空文字列のみ。除外したい内容は prompt に含め、非空の値を送らないでください。

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --negative-prompt <value>
```

##### `--image-url`

曲の雰囲気の参照に使う公開 HTTPS 画像。対応モデルだけで指定し、null で解除します。; (use "null" or "reset" to clear)

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --image-url <value>
```

##### `--metadata`

追跡用にジョブへ保存する値。生成先には送信されません。秘密や個人情報を含めないでください。; (JSON object, e.g. '{"custom_id":"x"}')

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --metadata <value>
```

##### `--mode`

結果の受け取り方。async は即時受付、sync と subscribe は最大30秒の待機、webhook は終端通知です。; enum: async|sync|subscribe|webhook

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --mode <value>
```

##### `--webhook-url`

終端通知を受ける公開 HTTPS URL。単独指定時は webhook モードになります。; max 2048 chars

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --webhook-url <value>
```

##### `--wait-timeout-seconds`

sync または subscribe で HTTP 応答を待つ秒数。時間切れ後も同じジョブを追跡します。

Type: `number`. Optional.

```bash title="terminal"
orc music generate-default --wait-timeout-seconds <value>
```

##### `--project-id`

同じワークスペース内でジョブを保存するプロジェクト。存在しない場合は課金前に拒否されます。; max 200 chars

Type: `string`. Optional.

```bash title="terminal"
orc music generate-default --project-id <value>
```

## Global Options

The following [global options](https://orchestor.io/docs/cli/global-flags.md) can be used with `orc music`:

- [`--help`](https://orchestor.io/docs/cli/global-flags.md#help)
- [`--workspace`](https://orchestor.io/docs/cli/global-flags.md#workspace)
- [`--json`](https://orchestor.io/docs/cli/global-flags.md#json-output)
- [`--pretty`](https://orchestor.io/docs/cli/global-flags.md#json-output)
- [`--format`](https://orchestor.io/docs/cli/global-flags.md#output-format)
- [`--field`](https://orchestor.io/docs/cli/global-flags.md#field-selection)
- [`--fields`](https://orchestor.io/docs/cli/global-flags.md#field-selection)
- [`--raw`](https://orchestor.io/docs/cli/global-flags.md#raw-output)
- [`--output`](https://orchestor.io/docs/cli/global-flags.md#file-output)
- [`--no-pager`](https://orchestor.io/docs/cli/global-flags.md#pager)
- [`--dry-run`](https://orchestor.io/docs/cli/global-flags.md#dry-run)
- [`--yes`](https://orchestor.io/docs/cli/global-flags.md#confirmation)
- [`--stdin`](https://orchestor.io/docs/cli/global-flags.md#standard-input)
- [`--from-stdin`](https://orchestor.io/docs/cli/global-flags.md#standard-input)
- [`--page-all`](https://orchestor.io/docs/cli/global-flags.md#all-pages)
- [`--timing`](https://orchestor.io/docs/cli/global-flags.md#request-timing)
- [`--readonly`](https://orchestor.io/docs/cli/global-flags.md#read-only-mode)
- [`--wrap-untrusted`](https://orchestor.io/docs/cli/global-flags.md#untrusted-content-wrapping)

For details and examples, see [global options](https://orchestor.io/docs/cli/global-flags.md).

---

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