Skip to main content
POST
Eleven Sound Effects v2
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. Confirm live rates on the SnapGen models page. Failed requests are not charged.
string
required
Set to eleven-sound-effects-v2.
string
required
What the sound should be, up to 1,000 characters.
number
default:"5"
Length in seconds, from 0.5 to 30. Billed rounded up to whole seconds.
number
From 0 to 1. Higher values follow the prompt more closely.
boolean
true makes a sound that loops seamlessly.
string
default:"mp3"
mp3, opus, or pcm. See Output formats.

Request

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

Price examples

Synchronous audio endpoints reject Idempotency-Key. If a request times out, check your Console request logs before you retry. See Sound effects for every field, the response, and errors.