Skip to main content
POST
语音转文字接口
Note: For the transcription model name, refer to the list of supported transcription models. The request and response parameter structures are fully compatible with OpenAI. To switch models, you only need to change the model name. If a model’s request or response parameters differ from OpenAI’s, GeekAI automatically converts and aligns them at the underlying layer.
The response uses the same format as the OpenAI transcription endpoint. For examples of calling the speech-to-text API, see Speech recognition.

Request/response parameter details

Authorizations

Authorization
string
header
required

极客智坊 API KEY

Body

multipart/form-data
model
string
required

语音识别模型

Example:

"whisper-1"

file
file
required

待识别音频文件

prompt
string

提示文本,用于指导语音识别/转录风格

language
string

音频语言

response_format
enum<string>
default:text

响应格式,不同平台支持格式可能不一样,更多细节请查看语音模型示例文档。

Available options:
text,
srt,
vtt,
json
stream
boolean
default:false

是否返回流式响应,默认false,仅适用于支持该字段的模型。

temperature
number
default:0

采样温度,控制输出的随机性,仅适用于支持该字段的模型。

retries
integer
default:0

自动重试次数,默认0,表示失败不重试

Response

成功响应

纯文本格式的转录结果