GET
/v1/schemas/elevenlabs/audio/v1%2Fsound-generation
Accept:
Request body
5 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| text* | string | The text that will get converted into a sound effect. | |
| loop | boolean | Whether to create a sound effect that loops smoothly. Only available for the 'eleven_text_to_sound_v2 model'. | default: false |
| duration_seconds | number | The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None. | nullable |
| prompt_influence | number | A higher prompt influence makes your generation follow the prompt more closely while also making generations less variable. Must be a value between 0 and 1. Defaults to 0.3. | nullable |
| model_id | string | The model ID to use for the sound generation. | default: "eleven_text_to_sound_v2" |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"elevenlabs","endpointId":"v1/sound-generation","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}