prompt
(文本):可选文本,用于引导模型的风格或继续之前的音频片段。提示应为英文。response_format
(文本):输出格式,可选 json、text、srt、verbose_json 或 vtt。temperature
(文本):取样温度,介于 0 和 1 之间。取值越高(如 0.8),输出越随机,取值越低(如 0.2),输出越集中、确定。如果设置为 0,模型将使用对数概率自动提高温度,直到达到特定阈值。curl --location --request POST 'https://api.deerapi.com/v1/audio/translations' \
--header 'Authorization: Bearer {{api-key}}' \
--form 'file=@""' \
--form 'model="whisper-1"' \
--form 'prompt=""' \
--form 'response_format="json"' \
--form 'temperature="0"'
{
"text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}