Translations (OpenAI Native Format)
Translate audio into English text. Parameters match Transcriptions (minus language). See also Text to Speech and the Gemini native format.
Endpoint
POST /v1/audio/translationsUpload the audio file using multipart/form-data.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file | file | Yes | Audio file (mp3 / wav / m4a, etc.) |
model | string | Yes | Recognition model, e.g. whisper-1 |
response_format | string | No | json (default) / text / srt / vtt |
temperature | number | No | Sampling temperature, default 0 |
Request example
bash
curl https://ai.youqi.tech/v1/audio/translations \
-H "Authorization: Bearer sk-YOUR_API_KEY" \
-F file="@audio.mp3" \
-F model="whisper-1"Response example
json
{ "text": "This is the translated text content." }TIP
Use multipart/form-data for the binary upload, not JSON.