GET
/v1/schemas/elevenlabs/audio/v1/sound-generation
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace5ae19a7323a5c84e5b2ca5803fa0f49b9a8fcd7dbd5ff4bbcb8ac8086d880749{
"fetchedAt": 1792560027,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
5 properties · 1 required · 1 $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. | 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 | enum | The model ID to use for the sound generation. | eleven_text_to_sound_v2 | eleven_text_to_sound_v3 · default: "eleven_text_to_sound_v2" |
Types
1 $defsSFXModelIdenum
eleven_text_to_sound_v2 | eleven_text_to_sound_v3 · 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", …}]}