Transcribe an audio or video file.
POST/api/v2/Audio/transcribe
Transcribes an audio or video file into text. Supported file formats: mp3, mp4, mpeg, mpga, m4a, wav, webm. Maximum file size: 25 MB.
Request
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- multipart/form-data
Body
The AI Model Id to use for transcription.
The audio or video file to transcribe.
Optional prompt to guide the transcription. Useful for providing context or specifying terminology.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Returns the transcription result.
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
metadata
object
duration
object
{
"transcript": "string",
"metadata": {
"language": "string",
"duration": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"microseconds": 0,
"nanoseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMicroseconds": 0,
"totalNanoseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
}
}
}
- Schema
- Example (from schema)
Schema
metadata
object
duration
object
{
"transcript": "string",
"metadata": {
"language": "string",
"duration": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"microseconds": 0,
"nanoseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMicroseconds": 0,
"totalNanoseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
}
}
}
- Schema
- Example (from schema)
Schema
metadata
object
duration
object
{
"transcript": "string",
"metadata": {
"language": "string",
"duration": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"microseconds": 0,
"nanoseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMicroseconds": 0,
"totalNanoseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
}
}
}
If the request validation fails (invalid file format, size, etc.).
The user is unauthorized or the session expired
The user does not have permission
If the specified model is not found.
There was an unexpected error