語音轉寫
使用 multipart/form-data 的 model、file,或 JSON 的 model、input_audio:{data,format}(原始 base64)。支援 wav、mp3、mp4、m4a、ogg、flac、webm、aac。解碼音訊最多 25 MiB;含 base64 的請求本文上限 50 MiB。audio.transcription_max_seconds_by_model 設定各模型上限,未設定時依序使用 audio.transcription_max_seconds 與預設 60 秒。超過會在處理前回傳 413 audio_too_long,且不收費。response_format 僅支援 json、verbose_json;timestamp_granularities 的 word、segment 只可搭配 verbose_json。不支援 stream,回傳 400 unsupported_parameter;音訊過大回傳 413 audio_too_large。provider 路由欄位被忽略。依資料庫模型價格按 usage.seconds 或輸入/輸出 token 計費;每分鐘為每秒價格乘以 60。usage.cost 是客戶支付的 USD 金額。
/v1/audio/transcriptions驗證
Authorization必填在 Authorization 標頭以 Bearer token 傳入 API 金鑰。
Body
model必填轉錄模型識別碼,例如 elevenlabs/scribe-v2。
file音訊檔(multipart)。支援 wav、mp3、mp4、m4a、ogg、flac、webm、aac,最大 25 MiB。JSON 用戶端可改傳 input_audio: {data: base64, format}。
input_audioJSON 中取代 file 的音訊物件:data 為原始 base64 音訊,format 為 wav、mp3 等格式。請求本文最多 50 MiB,解碼後音訊最多 25 MiB。
response_formatjson(預設)回傳 {text};verbose_json 另含語言、時長與 segments/words。
jsonverbose_jsontimestamp_granularitiesword 和/或 segment,只在 response_format=verbose_json 時套用,其他格式會忽略。 目前尚未回傳逐字(word)時間戳,會回傳 segments。
wordsegmentlanguage選填的語言提示,例如 en 或 zh。留空則自動偵測。
prompt選填的上下文文字,幫助辨識人名與專有名詞;不是每個模型都會套用。
temperature選填的取樣溫度;不是每個模型都會套用。
stream不支援串流;stream=true 會回傳 400 unsupported_parameter。
provider選填的路由欄位,會被忽略。