/v1/audio/transcriptions音声を書き起こし
音声をテキストに変換します。マルチパートのfile(最大25MiB、4時間)を送信します。JSON({"model", "input_audio": {"data": "<base64>", "format": "wav"}})でも送信できます。response_format: textはプレーンテキストを返し、jsonとverbose_jsonはusageを含むプロバイダーのJSONを返します。
拒否されるもの:stream、srtとvtt形式、話者分離のフィールド。
認証: AuthorizationヘッダーにBearer形式のAPIキー
リクエストボディ
modelstring必須音声認識モデルのスラッグ。
filestring必須音声:flac、m4a、mp3、mp4、mpeg、ogg、opus、wav、webmのいずれか。
languagestringISO言語ヒント(例:
en)。promptstring語彙または文脈のヒント。
response_formatenumtemperaturenumbertimestamp_granularities[]array<enum>verbose_jsonが必要です。
レスポンス
200書き起こし。
レスポンス
textstringusageobjectプロバイダーのusage:
{type: duration, seconds}またはトークン数。
400不正なリクエスト。paramはフィールド名を、codeは理由(invalid_parameter、unsupported_parameter、unsupported_capability、refusal、previous_response_not_found)を示します。課金されません。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
401キーがないか、形式が不正か、期限切れか、取り消されています。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
402組織での対応が先に必要です(card_required、email_unverified、org_under_review、free_tier_requires_payment、promotion_ended)。メッセージに手順が示されます。再試行しても解決しません。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
429insufficient_quota(クレジット不足、支出上限の超過、またはモデルに購入が必要)とpromo_credits_now(無料プロモーションの使い切り):クレジットを追加してください。メッセージに手順が示されます。rate_limit_exceeded、free_limit_reached、admission_capacity_exceeded:Retry-Afterの秒数だけ待って再試行してください。
レスポンス
errorobjecterror
messagestring問題の内容と解決方法。
typestring例:
invalid_request_error、authentication_error、permission_error、rate_limit_error、insufficient_quota、api_error。codestring安定したエラーコード。
paramstring | null該当する場合、問題のあるリクエストフィールド。
refusal_reasonenumcode: refusalの場合にのみ含まれます。
リクエスト
curl https://api.experientiallabs.ai/v1/audio/transcriptions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-F model=whisper-1 \
-F file=@standup.m4a
レスポンス
{
"text": "Yesterday I shipped the retry fix. Today I am on the docs.",
"usage": {
"type": "duration",
"seconds": 6
}
}https://api.experientiallabs.ai/v1/audio/transcriptions