Call it
curl https://api.peume.com/v1/call/voice-changer \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"audio_url": "your audio url",
"voice_id": "your voice id",
"model_id": "eleven_multilingual_sts_v2"
}
}'const res = await fetch("https://api.peume.com/v1/call/voice-changer", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"audio_url": "your audio url",
"voice_id": "your voice id",
"model_id": "eleven_multilingual_sts_v2"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/voice-changer",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"audio_url": "your audio url",
"voice_id": "your voice id",
"model_id": "eleven_multilingual_sts_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: voice-changer.
Parameters
audio_urlRequiredstringHTTPS URL of the source recording (public or presigned link; max 20MB, max 5 minutes — split longer recordings). fetches it server-side and relays it to ElevenLabs.
voice_idRequiredstringThe TARGET voice to speak with — pick a voice_id from /voices. An unknown or unauthorized id fails as a provider error (no charge).
model_idstringVoice-conversion model: eleven_multilingual_sts_v2 (recommended, 29 languages — often best even for English) or eleven_english_sts_v2.
eleven_multilingual_sts_v2 · eleven_english_sts_v2
Example: eleven_multilingual_sts_v2
remove_background_noisebooleanRun voice isolation on the input first to minimize environmental sounds.
expected_duration_minutesnumberonly billing hint (NOT sent upstream): expected recording length in minutes. Omitted → a 5-minute hold.
