Call it
curl https://api.peume.com/v1/call/text-to-speech-3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"text": "your text",
"model_id": "eleven_v4",
"voice_id": "21m00Tcm4TlvDq8ikWAM"
}
}'const res = await fetch("https://api.peume.com/v1/call/text-to-speech-3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"text": "your text",
"model_id": "eleven_v4",
"voice_id": "21m00Tcm4TlvDq8ikWAM"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/text-to-speech-3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"text": "your text",
"model_id": "eleven_v4",
"voice_id": "21m00Tcm4TlvDq8ikWAM"
}
},
)
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: text-to-speech-3.
Parameters
textRequiredstringThe text to convert to speech (1–5000 characters). Billed per character. Split longer texts into multiple runs.
model_idstringTTS model: eleven_v4 (default — most expressive and most faithful to the voice, 80+ languages, audio tags), eleven_v4_turbo (same family at half price), eleven_multilingual_v2 (supports speed and style controls, 29 languages), eleven_flash_v2_5 (half price, fastest), or eleven_v3 (previous expressive model, 70+ languages).
eleven_v4 · eleven_v4_turbo · eleven_multilingual_v2 · eleven_flash_v2_5 · eleven_v3
Example: eleven_v4
voice_idstringThe ElevenLabs voice to speak with — pick a voice_id from /voices. An unknown or unauthorized id fails as a provider error (no charge).
Example: 21m00Tcm4TlvDq8ikWAM
voice_settingsobjectOptional voice tuning, passed through to ElevenLabs verbatim.
