Skip to main content
POST
https://api.naga.ac
/
v1
/
audio
/
translations
Translations
curl --request POST \
  --url https://api.naga.ac/v1/audio/translations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "language": "<string>"
}
'
{
  "text": "<string>"
}

Request Parameters

model
string
required
Translation model ID (e.g., whisper-large-v3).
file
file
required
The audio file to translate.
prompt
string
Optional prompt to guide the translation.
language
string
Source language hint (if known).

Example Request

from openai import OpenAI

client = OpenAI(base_url="https://api.naga.ac/v1", api_key="YOUR_API_KEY")

with open("german.mp3", "rb") as f:
    translation = client.audio.translations.create(
        model="whisper-large-v3",
        file=f,  # prompt="Translate clearly with punctuation."
    )
print(translation.text)

Response

Returns a JSON object with the translated text, e.g.:
{ "text": "Hello and welcome to NagaAI!" }

Response Fields

text
string
The translated text in English