Call it
curl https://api.peume.com/v1/call/sound-effects \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"text": "your text",
"duration_seconds": 10,
"model_id": "eleven_text_to_sound_v2"
}
}'const res = await fetch("https://api.peume.com/v1/call/sound-effects", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"text": "your text",
"duration_seconds": 10,
"model_id": "eleven_text_to_sound_v2"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/sound-effects",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"text": "your text",
"duration_seconds": 10,
"model_id": "eleven_text_to_sound_v2"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: sound-effects.
Parameters
textRequiredstringDescription of the sound effect (e.g. 'Glass shattering on concrete', '90s hip-hop drum loop, 90 BPM'). Sequences and audio terminology (whoosh, braam, drone) work well.
duration_secondsRequirednumberLength of the generated effect in seconds (0.5–30). REQUIRED — it is the exact billing basis ($0.12 per minute, prorated per second).
loopbooleanGenerate a seamlessly looping effect.
prompt_influencenumber0–1 (default 0.3): higher = follows the prompt more literally; lower = more creative variation.
model_idstringSound-effects model.
eleven_text_to_sound_v2
Example: eleven_text_to_sound_v2
