> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snapgen.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Eleven Sound Effects v2

> Generate sound effects of 0.5 to 30 seconds from a text prompt with ElevenLabs. $0.18 per minute.

`eleven-sound-effects-v2` generates a sound effect of 0.5 to 30 seconds from a text prompt, optionally as a seamless loop, and returns the audio file in the response.

| Property | Value |
| - | - |
| Model ID | `eleven-sound-effects-v2` |
| Endpoint | `POST /v1/audio/sound-effects` |
| Output | Audio bytes: MP3 (default), Opus, or PCM |
| Limits | 0.5 to 30 seconds (default 5) |
| Billed on | Requested `duration_seconds`, rounded up to whole seconds (default 5) |
| Price | \$0.003 per second (\$0.18 per minute, 0.3 credits per second) |

Confirm live rates on the [SnapGen models page](https://snapgen.org/models). Failed requests are not charged.

<ParamField body="model" type="string" required>
  Set to `eleven-sound-effects-v2`.
</ParamField>

<ParamField body="prompt" type="string" required>
  What the sound should be, up to 1,000 characters.
</ParamField>

<ParamField body="duration_seconds" type="number" default="5">
  Length in seconds, from `0.5` to `30`. Billed rounded up to whole seconds.
</ParamField>

<ParamField body="prompt_influence" type="number">
  From `0` to `1`. Higher values follow the prompt more closely.
</ParamField>

<ParamField body="loop" type="boolean">
  `true` makes a sound that loops seamlessly.
</ParamField>

<ParamField body="response_format" type="string" default="mp3">
  `mp3`, `opus`, or `pcm`. See [Output formats](/api-reference/audio-speech#output-formats).
</ParamField>

## Request

```bash theme={null}
curl https://api.snapgen.org/v1/audio/sound-effects \
  -H "Authorization: Bearer $SNAPGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "eleven-sound-effects-v2",
    "prompt": "Heavy wooden door creaking open in an empty hall",
    "duration_seconds": 4
  }' \
  --output effect.mp3
```

The response body is the audio file, with a `Content-Type` that matches `response_format`.

## Price examples

| Length | Price |
| - | - |
| 1 second | \$0.003 |
| 5 seconds | \$0.015 |
| 30 seconds | \$0.09 |

<Note>
  Synchronous audio endpoints reject `Idempotency-Key`. If a request times out, check your Console request logs before you retry.
  See [Sound effects](/api-reference/audio-sound-effects) for every field, the response, and errors.
</Note>
