POST
/
v1
/
audio
/
translations
curl -X POST "https://api.applerouter.ai/v1/audio/translations" \
  -H "Authorization: Bearer sk-your-api-key" \
  -F "file=@chinese_audio.mp3" \
  -F "model=whisper-1"
{
  "text": "This is the English translation of the Chinese audio."
}

Overview

Translate audio from any supported language into English text.
file
file
required
The audio file to translate
model
string
required
The model to use (e.g. whisper-1)
prompt
string
Optional Prompt to guide translation
response_format
string
Response Format: json, text, srt, verbose_json, or vtt
temperature
number
Sampling Temperature
curl -X POST "https://api.applerouter.ai/v1/audio/translations" \
  -H "Authorization: Bearer sk-your-api-key" \
  -F "file=@chinese_audio.mp3" \
  -F "model=whisper-1"
{
  "text": "This is the English translation of the Chinese audio."
}
The Translation endpoint always outputs English text, regardless of the source language.

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