Audio to Text (whisper-1)
Header Parameters
Request Body
multipart/form-data
The model ID to use. Currently only whisper-1 is available.
The audio file object to transcribe (not the file name). Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
The language of the input audio. Providing the input language in ISO-639-1 format improves accuracy and latency.
An optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.
The format of the transcription output. Options: json, text, srt, verbose_json, or vtt.
"json"Defaults to 0. Sampling temperature between 0 and 1. Higher values like 0.8 make output more random, lower values like 0.2 make it more focused and deterministic. If set to 0, the model will automatically increase the temperature using log probability until a certain threshold is reached.
0Response Body
application/json
curl -X POST "https://loading/v1/audio/transcriptions" \ -H "Content-Type: string" \ -H "Authorization: string" \ -F model="whisper-1" \ -F file="" \ -F language="zh" \ -F prompt="这是一段中文音频" \ -F response_format="json" \ -F temperature=""{
"text": "12345678910"
}How is this guide?
Last updated on