Try Bifrost Enterprise free for 14 days. Explore now
curl --request POST \
--url http://localhost:8080/v1/audio/transcriptions \
--header 'Content-Type: multipart/form-data' \
--form 'model=<string>' \
--form file='@example-file' \
--form 'fallbacks=<string>' \
--form stream=true \
--form 'language=<string>' \
--form 'prompt=<string>' \
--form response_format=json \
--form 'file_format=<string>'{
"duration": 123,
"language": "<string>",
"logprobs": [
{
"bytes": [
123
],
"logprob": 123,
"token": "<string>"
}
],
"segments": [
{
"id": 123,
"seek": 123,
"start": 123,
"end": 123,
"text": "<string>",
"tokens": [
123
],
"temperature": 123,
"avg_logprob": 123,
"compression_ratio": 123,
"no_speech_prob": 123
}
],
"task": "<string>",
"text": "<string>",
"usage": {
"type": "tokens",
"input_tokens": 123,
"input_token_details": {
"text_tokens": 123,
"audio_tokens": 123
},
"output_tokens": 123,
"total_tokens": 123,
"seconds": 123
},
"words": [
{
"word": "<string>",
"start": 123,
"end": 123
}
],
"extra_fields": {
"request_type": "<string>",
"provider": "openai",
"model_requested": "<string>",
"model_deployment": "<string>",
"latency": 123,
"chunk_index": 123,
"raw_request": {},
"raw_response": {},
"cache_debug": {
"cache_hit": true,
"cache_id": "<string>",
"hit_type": "<string>",
"requested_provider": "<string>",
"requested_model": "<string>",
"provider_used": "<string>",
"model_used": "<string>",
"input_tokens": 123,
"threshold": 123,
"similarity": 123
}
}
}Transcribes audio into text in the input language.
curl --request POST \
--url http://localhost:8080/v1/audio/transcriptions \
--header 'Content-Type: multipart/form-data' \
--form 'model=<string>' \
--form file='@example-file' \
--form 'fallbacks=<string>' \
--form stream=true \
--form 'language=<string>' \
--form 'prompt=<string>' \
--form response_format=json \
--form 'file_format=<string>'{
"duration": 123,
"language": "<string>",
"logprobs": [
{
"bytes": [
123
],
"logprob": 123,
"token": "<string>"
}
],
"segments": [
{
"id": 123,
"seek": 123,
"start": 123,
"end": 123,
"text": "<string>",
"tokens": [
123
],
"temperature": 123,
"avg_logprob": 123,
"compression_ratio": 123,
"no_speech_prob": 123
}
],
"task": "<string>",
"text": "<string>",
"usage": {
"type": "tokens",
"input_tokens": 123,
"input_token_details": {
"text_tokens": 123,
"audio_tokens": 123
},
"output_tokens": 123,
"total_tokens": 123,
"seconds": 123
},
"words": [
{
"word": "<string>",
"start": 123,
"end": 123
}
],
"extra_fields": {
"request_type": "<string>",
"provider": "openai",
"model_requested": "<string>",
"model_deployment": "<string>",
"latency": 123,
"chunk_index": 123,
"raw_request": {},
"raw_response": {},
"cache_debug": {
"cache_hit": true,
"cache_id": "<string>",
"hit_type": "<string>",
"requested_provider": "<string>",
"requested_model": "<string>",
"provider_used": "<string>",
"model_used": "<string>",
"input_tokens": 123,
"threshold": 123,
"similarity": 123
}
}
}Successful response
Was this page helpful?