Call it
curl https://api.peume.com/v1/call/transcribe-audio \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"audio_url": "your audio url"
}
}'const res = await fetch("https://api.peume.com/v1/call/transcribe-audio", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"audio_url": "your audio url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/transcribe-audio",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"audio_url": "your audio url"
}
},
)
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: transcribe-audio.
Parameters
audio_urlRequiredstringHTTPS URL of the recording (≤ 20 MB, up to 60 minutes): WAV, MP3, AAC/M4A/MP4, FLAC, Ogg, WebM or MOV — video files use their first audio track.
languagestringOptional language hint as a lowercase ISO 639-1 code (en, zh, ja). The language is detected either way.
ignore_timestampsbooleanDefault true (no timings). Set false to get word-level segments and timed speaker_turns.
tag_audio_eventsbooleanDefault true: keep emotion and vocal-event cues such as [laughter] in the text; false removes them.
diarizestringDefault auto. false omits speaker_turns (speaker markers stay in the text).
num_speakersintegerExpected number of speakers (best effort; cannot be combined with min_speakers/max_speakers).
min_speakersintegerLower bound on the number of speakers (best effort).
max_speakersintegerUpper bound on the number of speakers (best effort).
