Whisper-1 Audio Transcription
Supports speech recognition in 99 languages
すべてのドキュメント/v1/audio/transcriptions- Multiple output formats: json, text, srt, vtt, etc.
- Maximum file size 25 MB
1
00:00:00,000 --> 00:00:03,500
This is a transcribed text
2
00:00:03,500 --> 00:00:08,500
from the test audio.{
"error": {
"code": 502,
"message": "Bad gateway, server temporarily unavailable",
"type": "bad_gateway"
}
}リクエスト例
curl --request POST \
--url https://api.apisea.ai/v1/audio/transcriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@/path/to/audio.mp3' \
--form 'model=whisper-1' \
--form 'language=en' \
--form 'response_format=json'Authorizations
AuthorizationstringrequiredAll interfaces require Bearer Token authentication
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYBody
Note
⚠️ Online testing (Try it) is not supported for this endpoint
Due to file upload limitations, please test using:
- Apifox / Postman - Manually change
fileparameter to file type after importing- cURL - Refer to code examples on the right
- SDK - Use SDK examples in various languages
filestringrequiredAudio file to transcribe (File type)
⚠️ Note: When testing with Apifox or similar tools:
- After importing, manually change this parameter type to
file - Ensure request Content-Type is
multipart/form-data
Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, webm
Maximum file size: 25 MB
modelstringrequireddefault: whisper-1Speech recognition model name
Example: "whisper-1"
languagestringLanguage code of the audio (ISO-639-1 format)
Specifying the language can improve accuracy and speed
Supported languages include: zh (Chinese), en (English), ja (Japanese), ko (Korean), and 99 other languages
Example: "en"
promptstringOptional text prompt to guide the transcription style or continue from previous audio
Maximum 224 tokens
response_formatstringdefault: jsonOutput format
Supported formats:
json- JSON format (text only)text- Plain textsrt- SRT subtitle formatverbose_json- Verbose JSON format (includes timestamps and metadata)vtt- WebVTT subtitle format
temperaturenumberdefault: 0Sampling temperature, range 0 to 1
Higher values (like 0.8) make output more random, lower values (like 0.2) make it more deterministic and consistent
Response
textstringTranscribed text content
taskstringTask type, fixed as transcribe
Only returned in verbose_json format
languagestringDetected or specified language code
Only returned in verbose_json format
durationnumberAudio duration (seconds)
Only returned in verbose_json format
segmentsarrayArray of text segments
Only returned in verbose_json format
Properties
idintegerSegment ID
startnumberSegment start time (seconds)
endnumberSegment end time (seconds)
textstringSegment text content
temperaturenumberSampling temperature used
avg_logprobnumberAverage log probability
compression_rationumberCompression ratio
no_speech_probnumberNo speech probability
レスポンス
{
"text": "This is a transcribed text from the test audio."
}このエンドポイントを使用するモデル
ドキュメントに問題が見つかりましたか?support@apisea.aiまでメールでお知らせください。