Call it
curl https://api.peume.com/v1/call/clone-voice \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"name": "your name",
"audio_urls": []
}
}'const res = await fetch("https://api.peume.com/v1/call/clone-voice", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"name": "your name",
"audio_urls": []
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/clone-voice",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"name": "your name",
"audio_urls": []
}
},
)
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: clone-voice.
Parameters
nameRequiredstringYour label for this voice (1–100 characters), shown in your resources list so you can tell voices apart. Say who or what it is for and its language, e.g. 'Brand narrator (English)' or 'Support agent, Spanish'. Stored by only; never sees it.
audio_urlsRequiredarrayHTTPS URLs of clean recordings of ONE speaker (WAV/MP3/FLAC; 10–30 s of clear speech works best; 20 MB in total).
textsarrayExact transcript of each recording, in the same order. Omit to let Fish transcribe them.
