---
title: "Inpaint"
method: POST
path: "/v1/generations/v2/inpaint"
---

# Inpaint

`POST /v1/generations/v2/inpaint`

## 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/inpaint`
- Auth: none declared

## Query parameters

- `credits_check` boolean

## Headers

- `authorization` string

## Request body

- PubAPIV2InpaintRequest
  - `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
  - `audio_url` string, nullable
  - `audio_base64` string, nullable
  - `audio_upload_id` string, uuid4, nullable
  - `tags` string[]
  - `lyrics` string
  - `prompt` string, nullable
  - `instrumental` boolean
  - `prompt_strength` number
  - `sections` array[], required
    - number[]
  - `balance_strength` number
  - `seed` integer, nullable
  - `selection_crop` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-16** `204ad514aa95`: 1 info
  - added the new optional request property `audio_upload_id`

[Operation history](https://skmtc.dev/sonauto/apis/sonauto-api/changes/v1/generations/v2/inpaint/post.md)

---

[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)
