GET
/v1/schemas/stability/audio/v2beta/audio/stable-audio-2/audio-to-audio
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace77fe885cc8d445eb4799212f707d4417de78be63e201881dff641300863462ce{
"fetchedAt": 1791523887,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
9 properties · 2 required · 1 $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. | |
| cfg_scale | number | How strictly the diffusion process adheres to the prompt text (higher values make your audio closer to your prompt). | 1 ≤ n ≤ 25 |
| model | enum | The model to use for generation. | stable-audio-2.5 | stable-audio-2 · default: "stable-audio-2" |
| output_format | enum | Dictates the `content-type` of the generated audio. | mp3 | wav · default: "mp3" |
| strength | number | Sometimes referred to as _denoising_, this parameter controls how much influence the `audio` parameter has on the generated audio. A value of 0 would yield audio that is identical to the input. A value of 1 would be as if you passed in no audio at all. | 0 ≤ n ≤ 1 · default: 1 |
Types
1 $defsSeednumber
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
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"stability","endpointId":"v2beta/audio/stable-audio-2/audio-to-audio","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}