GET
/v1/schemas/stability/audio/v2beta%2Faudio%2Fstable-audio-2%2Finpaint
Accept:
Request body
8 properties · 2 required · 2 $defs| property | type | description | constraints |
|---|---|---|---|
| prompt* | string | What you wish the output audio to be. A strong, descriptive prompt that clearly defines instruments, moods, styles, and genre will lead to better results. | length ≤ 10000 |
| audio* | string | The audio to be use as the starting point for the generation. | format: binary |
| duration | number | Controls the duration in seconds of the generated audio. | 1 ≤ n ≤ 190 · default: 190 |
| seed | number | A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.) | 0 ≤ n ≤ 4294967294 · default: 0 |
| steps | integer | Controls the number of sampling steps. | 4 ≤ n ≤ 8 · default: 8 |
| output_format | enum | Dictates the `content-type` of the generated audio. | mp3 | wav · default: "mp3" |
| mask_start | number | 0 ≤ n ≤ 190 · default: 30 | |
| mask_end | number | 0 ≤ n ≤ 190 · default: 190 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"stability","endpointId":"v2beta/audio/stable-audio-2/inpaint","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}