Call it
curl https://api.peume.com/v1/call/forced-alignment \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"audio_url": "your audio url",
"text": "your text"
}
}'const res = await fetch("https://api.peume.com/v1/call/forced-alignment", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"audio_url": "your audio url",
"text": "your text"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/forced-alignment",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"audio_url": "your audio url",
"text": "your text"
}
},
)
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: forced-alignment.
Parameters
audio_urlRequiredstringHTTPS URL of the audio file (public or presigned link; max 20MB). fetches it server-side and relays it to ElevenLabs.
textRequiredstringThe transcript to align — a PLAIN string (no JSON wrapping, no diarization markup).
expected_duration_minutesnumberonly billing hint (NOT sent upstream): expected audio length in minutes, used to size the admission hold. Settlement bills the actual aligned duration. Omitted → a 60-minute hold.
