Call it
curl https://api.peume.com/v1/call/tiktok-video-transcript-speech-to-text \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"wordTimestamps": false,
"hostVideo": false,
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-video-transcript-speech-to-text", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"wordTimestamps": false,
"hostVideo": false,
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-video-transcript-speech-to-text",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"wordTimestamps": False,
"hostVideo": False,
"url": "your 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: tiktok-video-transcript-speech-to-text.
Parameters
wordTimestampsbooleanReturn per-word timings inside each segment. Words carry timings only; the recognizer scores a phrase rather than a word, so there is no per-word confidence to report.
Example: false
routestringUpstream source to run on; omit for "octopus". octopus ($0.0015 + $0.0001 per audio second, at most $0.095, 98.9% uptime).
octopus
hostVideobooleanAlso store the video and return a hosted MP4 link that plays without TikTok's signed CDN URL. Charged as an extra on top of the transcript.
Example: false
urlRequiredstringTikTok video URL (e.g. "https://www.tiktok.com/@user/video/1234567890").
