GET
/v1/schemas/stability/audio/v2beta%2Faudio%2Fstable-audio-2%2Ftext-to-audio
Accept:
Request body
7 properties · 1 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 |
| 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" |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"stability","endpointId":"v2beta/audio/stable-audio-2/text-to-audio","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}