> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiid.edu.kg/llms.txt
> Use this file to discover all available pages before exploring further.

# NowAPI Music

> Create music generation tasks and query their results by task ID with NowAPI.

`nowapi-music` は既定で `https://api.aiid.edu.kg` を呼び出し、`NOWAPI_API_KEY` から認証情報を読み取ります。

## サポートされているコマンド

| コマンド     | API                         | 用途             |
| -------- | --------------------------- | -------------- |
| `models` | `GET /v1/models`            | 利用可能なモデルを照会    |
| `create` | `POST /suno/submit/music`   | 音楽タスクを作成する     |
| `status` | `GET /suno/fetch/{task_id}` | ID で音楽タスクを照会する |

## 呼び出し例

```bash theme={null}
node scripts/nowapi-music.mjs models
node scripts/nowapi-music.mjs create --json music-request.json
node scripts/nowapi-music.mjs status --id task_xxx
```

タスクを作成したら、返されたタスク ID を保存し、対応する照会コマンドで状態を取得します。長時間かかるタスクでは、単一の HTTP リクエストを待ち続けないでください。
