GPT Transcribe API リファレンス
録音ファイルと会話に対応
PopNow の API キー 1 つで、GPT Transcribe を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- OpenAI
- 出力
- 音声
- 最安
- $0.000015 USD 出力 1 秒あたり
料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。
音声を文字に
openai/gpt-transcribe/speech-to-text
料金
| オプション | USD |
|---|---|
既定 | $0.000075 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
audio_url必須 | string (uri) | — | — | Recording to transcribe. Maximum file size is 25 MB and duration is two hours. |
language任意 | string | — | aa, ab, ae, af, ak, am, an, ar, as, av, ay, az, ba, be, … (+170) · 2 文字まで | Two-letter spoken language code. |
prompt任意 | string | — | 2,048 文字まで | Spelling and brief context in the language of the recording. |
language_hints任意 | array<object> | — | 10 件まで | Likely spoken language codes, one per row. |
keyterms任意 | array<object> | — | 100 件まで | Names and technical vocabulary to recognize, one term per row. |
temperature任意 | number | — | 0〜1 | Sampling temperature for recognizing the recording. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
例の audio_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "openai/gpt-transcribe/speech-to-text",
"input": {
"prompt": "A bright, cheerful scene with soft natural light",
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"リアルタイム文字起こし
openai/gpt-transcribe/realtime-transcription
料金
| オプション | USD |
|---|---|
既定 | $0.000015 出力 1 秒あたり |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
audio_url任意 | string (uri) | — | — | Short WAV required for a single task. Live sessions instead send raw samples over the transcription WebSocket. |
max_audio_seconds任意 | integer | 15 | 1〜60 | Maximum admitted length of each audio segment; commit earlier at a complete phrase. |
prompt任意 | string | — | 2,048 文字まで | Background context for speech recognition, rather than an instruction to answer or summarize. |
language_hints任意 | array<object> | — | 10 件まで | Likely spoken language codes, one per row. |
keyterms任意 | array<object> | — | 100 件まで | Names and technical vocabulary to recognize, one term per row. |
audio_input_format任意 | string | pcm | pcm, g711_ulaw, g711_alaw | Encoding of live microphone samples; PCM is 24 kHz mono 16-bit, G.711 is 8 kHz. |
audio_noise_reduction任意 | string | near_field | near_field, far_field, none | Input denoising profile for a close microphone, room microphone, or preprocessed audio. |
realtime_session任意 | object | — | — | Advanced native session configuration; overlapping regular controls must agree. Function tools are executed by your application. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "openai/gpt-transcribe/realtime-transcription",
"input": {
"prompt": "A bright, cheerful scene with soft natural light",
"max_audio_seconds": 15
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
