curl --request POST \
--url https://easy-peasy.ai/api/generate-sound \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"prompt": "A door creaking open slowly in a haunted house",
"duration": 3
}
'
{
"url": "https://media.easy-peasy.ai/tts/user-id/abc123.mp3",
"text": "A door creaking open slowly in a haunted house",
"seconds": 3,
"status": "completed"
}{
"error": "Missing parameter prompt"
}{
"error": "Invalid API key"
}Sound Effects
Generate Sound Effect
Generate AI sound effects from a text description using ElevenLabs. Returns the audio URL immediately (synchronous).
Usage is counted against your plan’s character limit.
POST
/
api
/
generate-sound
curl --request POST \
--url https://easy-peasy.ai/api/generate-sound \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"prompt": "A door creaking open slowly in a haunted house",
"duration": 3
}
'
{
"url": "https://media.easy-peasy.ai/tts/user-id/abc123.mp3",
"text": "A door creaking open slowly in a haunted house",
"seconds": 3,
"status": "completed"
}{
"error": "Missing parameter prompt"
}{
"error": "Invalid API key"
}Authorizations
API key for authentication. Get yours at https://easy-peasy.ai/settings/api
Body
application/json
Text description of the sound effect to generate.
Example:
"A door creaking open slowly in a haunted house"
Duration of the sound effect in seconds.
Example:
5
How closely the output follows the prompt (0.0 = more creative, 1.0 = more literal).
Required range:
0 <= x <= 1Example:
0.3
Was this page helpful?
