Skip to main content
POST
/
v1
/
audio
/
translations
音频翻译
curl --request POST \
  --url https://api.tkhub.ai/v1/v1/audio/translations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form model= \
  --form prompt= \
  --form response_format= \
  --form temperature=0
{
  "text": "<string>"
}

Authorizations

Authorization
string
header
required

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

Body

multipart/form-data
file
file
required
model
string
required
Example:

""

prompt
string
Example:

""

response_format
string
Example:

""

temperature
number
Example:

0

Response

200 - application/json

成功翻译

text
string