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

# NewAPIs Music

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

`newapi-music` uses `https://api.newapi.si` by default and reads authentication information from `NEWAPI_API_KEY`.

## Supported Commands

| Command | API | Purpose |
| - | - | - |
| `models` | `GET /v1/models` | List available models |
| `create` | `POST /suno/submit/music` | Create a music task |
| `status` | `GET /suno/fetch/{task_id}` | Query a music task by ID |

## Usage Examples

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

After creating a task, save the returned task ID, then use the corresponding query command to get its status. For long-running tasks, do not keep a single HTTP request waiting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.