---
title: "Generate"
method: POST
path: "/v1/generations/v2"
---

# Generate

`POST /v1/generations/v2`

## Request

- Base URL: `https://api.sonauto.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sonauto.ai/v1/generations/v2`
- Auth: none declared

## Query parameters

- `credits_check` boolean

## Headers

- `authorization` string

## Request body

- PubAPIV2GenerateRequest
  - `webhook_url` string, nullable
  - `output_format` 'flac' | 'mp3' | 'wav' | 'ogg' | 'm4a'
  - `output_bit_rate` 128 | 192 | 256 | 320, nullable
  - `align_lyrics` boolean
  - `num_songs` integer
  - `tags` string[]
  - `lyrics` string
  - `prompt` string, nullable
  - `instrumental` boolean
  - `prompt_strength` number
  - `balance_strength` number
  - `seed` integer, nullable
  - `bpm` union
    - integer
    - 'auto'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonauto/apis/sonauto-api.md) - [All operations](https://skmtc.dev/sonauto/apis/sonauto-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sonauto/apis/sonauto-api/revisions/c5755807c38a?raw)
