PopNowAPI ドキュメント
本文

GPT Live Transcribe API リファレンス

GPT Live Transcribe は発話中に文字を逐次返し、言語、専門用語、背景のヒントと字幕の遅延を設定できます。

PopNow の API キー 1 つで、GPT Live Transcribe を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
OpenAI
出力
音声
最安
$0.000056667 USD 出力 1 秒あたり

料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。

リアルタイム文字起こし

openai/gpt-live-transcribe/realtime-transcription

料金

オプションUSD
既定$0.000056667 出力 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任意integer151〜60Maximum 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.
transcription_delay任意string—minimal, low, medium, high, xhighDelay profile for incremental captions; higher settings wait for more context.
audio_input_format任意stringpcmpcm, g711_ulaw, g711_alawEncoding of live microphone samples; PCM is 24 kHz mono 16-bit, G.711 is 8 kHz.
audio_noise_reduction任意stringnear_fieldnear_field, far_field, noneInput 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 に設定してください。

POST /api/v1/jobs/createTask
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-live-transcribe/realtime-transcription",
  "input": {
    "prompt": "A bright, cheerful scene with soft natural light",
    "max_audio_seconds": 15
  }
}'

レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

次に読む

このページの内容