Transcription Endpoint

POST /api/v1/transcribe

Transcribe audio files to text with optional translation to different languages.

Request Body

file
file
required
The audio file to transcribe. Supports various audio formats
target_language
string
default:"en"
The language code for the output transcription. If different from English, the transcription will be automatically translated

Response

choices
array
model
string
The model used for transcription/translation
object
string
Type of the response object

Example Request

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -F "file=@path/to/your/audio.mp3" -F "target_language=es" https://api.krosai.com/api/v1/transcribe

Example Response

{
  "choices": [{"text": "This is a test transcription."}]
}