彈性參數
可設定 7 個已記錄的參數,包括 file, language, prompt, response_format, stream。
curl -X POST https://runapi.ai/v1/audio/transcriptions \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "whisper-1",
"audio_url": "https://cdn.runapi.ai/public/samples/voice.mp3"
}'
import { OpenaiTranscriptionClient } from "@runapi.ai/openai-transcription";
const client = new OpenaiTranscriptionClient();
const result = await client.speechToText.run({
model: "whisper-1",
audio_url: "https://cdn.runapi.ai/public/samples/voice.mp3",
});
import os
import requests
response = requests.post(
"https://runapi.ai/v1/audio/transcriptions",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"whisper-1","audio_url":"https://cdn.runapi.ai/public/samples/voice.mp3"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/v1/audio/transcriptions");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'whisper-1',
'audio_url' => 'https://cdn.runapi.ai/public/samples/voice.mp3',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.speechToText().run({"model":"whisper-1","audio_url":"https://cdn.runapi.ai/public/samples/voice.mp3"});
task.waitForResult();
require "runapi/openai_transcription"
client = RunApi::OpenaiTranscription::Client.new
result = client.speech_to_text.run(
model: "whisper-1",
audio_url: "https://cdn.runapi.ai/public/samples/voice.mp3"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.speechToText.Run({"model":"whisper-1","audio_url":"https://cdn.runapi.ai/public/samples/voice.mp3"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model whisper-1 \
--endpoint speech_to_text \
--wait
2 個版本可用
選擇任一模型,幾秒內即可開始生成。
| 提供者 | OpenAI |
| 模型 ID | whisper-1 |
| 模態 | 音訊與音樂 |
| 任務類型 | Synchronous |
| API 端點 | /v1/audio/transcriptions |
| 計費單位 | 分鐘 |
| 輸入參數 | file, language, model, prompt, response_format, stream, temperature, timestamp_granularities |
| 目錄狀態 | 可直接上線 |
免費註冊後,從控制台建立 whisper-1 的 API 金鑰。
向 /v1/audio/transcriptions 傳送 POST 請求,並傳入 whisper-1 模型 ID 與參數。
直接從端點讀取已完成的 whisper-1 回應。
可設定 7 個已記錄的參數,包括 file, language, prompt, response_format, stream。
公開 1 個公共 endpoint:speech_to_text。
依 分鐘 計量,無需訂閱。
fileAudio file upload, up to 25 MB.
promptOptional text that guides transcription style and vocabulary.
streamWhether to request a streamed response when supported.
languageAudio language as an ISO-639-1 code.
temperatureSampling temperature from 0 to 1.
response_formatResponse body format. (json, text, srt, verbose_json, vtt)
timestamp_granularitiesTimestamp detail included with verbose JSON responses.
依照單集情緒生成免版稅背景音樂,無需支付授權費。
為程序化生成的關卡產生可自適應的環境音景與效果音。
無需錄音室即可為客戶廣告製作客製化旁白與音效。
此模型目前尚無已驗證的客戶回饋。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。