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

# Suno generate

> POST /suno/submit/music — submit a Suno music-generation task

Submit a Suno music-generation task; the task ID is returned asynchronously.

## Request

```bash theme={null}
curl https://openp.ai/suno/submit/music \
  -H "Authorization: Bearer $OPENPAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "lo-fi hip hop, rainy night, female vocals, 90bpm",
    "tags": "lofi, hiphop, chill",
    "title": "Rainy Night",
    "model": "suno_v4",
    "make_instrumental": false,
    "notify_hook": "https://your-server.com/suno-callback"
  }'
```

### Parameters

| Field               | Type    | Required | Description                                   |
| ------------------- | ------- | :------: | --------------------------------------------- |
| `prompt`            | string  |     ✅    | Style / mood / keywords, in natural language  |
| `tags`              | string  |          | Style tags, comma-separated                   |
| `title`             | string  |          | Track title                                   |
| `lyric`             | string  |          | Custom lyrics (free mode)                     |
| `model`             | string  |          | `suno_v3.5` / `suno_v4`, etc.                 |
| `make_instrumental` | boolean |          | Whether instrumental only (no lyrics)         |
| `continue_at`       | number  |          | The second to continue from in a continuation |
| `continue_clip_id`  | string  |          | The clip ID to continue from                  |
| `notify_hook`       | string  |          | Callback URL                                  |

## Response

```json theme={null}
{
  "code": "success",
  "data": "task_01...",
  "message": ""
}
```

`data` is the task ID.

## Custom lyrics mode

```json theme={null}
{
  "prompt": "uplifting pop, hopeful, 120bpm",
  "tags": "pop, uplifting",
  "title": "Brave New Day",
  "lyric": "[Verse 1]\nWalking through the morning light...\n[Chorus]\nThis is a brave new day...",
  "model": "suno_v4"
}
```

## Instrumental only

```json theme={null}
{
  "prompt": "jazz piano solo, romantic mood",
  "make_instrumental": true,
  "model": "suno_v4"
}
```

## Billing

Charged by **number of tasks**; failures are not billed. A task usually returns 2 tracks (primary + backup) and is billed only once.
