curl --request POST \
--url https://api.edenai.run/v3/audio/transcriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"routing": {
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
]
},
"language": "<string>",
"prompt": "<string>",
"response_format": "<string>",
"timestamp_granularities": [
"<string>"
],
"temperature": 0.5,
"user": "<string>",
"file_id": "<string>",
"file_url": "<string>"
}
'import requests
url = "https://api.edenai.run/v3/audio/transcriptions"
payload = {
"model": "<string>",
"routing": {
"sticky": True,
"allow_fallbacks": True,
"allowed_providers": ["<string>"]
},
"language": "<string>",
"prompt": "<string>",
"response_format": "<string>",
"timestamp_granularities": ["<string>"],
"temperature": 0.5,
"user": "<string>",
"file_id": "<string>",
"file_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
routing: {sticky: true, allow_fallbacks: true, allowed_providers: ['<string>']},
language: '<string>',
prompt: '<string>',
response_format: '<string>',
timestamp_granularities: ['<string>'],
temperature: 0.5,
user: '<string>',
file_id: '<string>',
file_url: '<string>'
})
};
fetch('https://api.edenai.run/v3/audio/transcriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.edenai.run/v3/audio/transcriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'routing' => [
'sticky' => true,
'allow_fallbacks' => true,
'allowed_providers' => [
'<string>'
]
],
'language' => '<string>',
'prompt' => '<string>',
'response_format' => '<string>',
'timestamp_granularities' => [
'<string>'
],
'temperature' => 0.5,
'user' => '<string>',
'file_id' => '<string>',
'file_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.edenai.run/v3/audio/transcriptions"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ]\n },\n \"language\": \"<string>\",\n \"prompt\": \"<string>\",\n \"response_format\": \"<string>\",\n \"timestamp_granularities\": [\n \"<string>\"\n ],\n \"temperature\": 0.5,\n \"user\": \"<string>\",\n \"file_id\": \"<string>\",\n \"file_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.edenai.run/v3/audio/transcriptions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ]\n },\n \"language\": \"<string>\",\n \"prompt\": \"<string>\",\n \"response_format\": \"<string>\",\n \"timestamp_granularities\": [\n \"<string>\"\n ],\n \"temperature\": 0.5,\n \"user\": \"<string>\",\n \"file_id\": \"<string>\",\n \"file_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edenai.run/v3/audio/transcriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ]\n },\n \"language\": \"<string>\",\n \"prompt\": \"<string>\",\n \"response_format\": \"<string>\",\n \"timestamp_granularities\": [\n \"<string>\"\n ],\n \"temperature\": 0.5,\n \"user\": \"<string>\",\n \"file_id\": \"<string>\",\n \"file_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cost": 123,
"provider": "<string>",
"text": "<string>",
"usage": {}
}Audio Transcriptions
OpenAI-compatible speech-to-text endpoint.
Accepts either multipart/form-data (OpenAI SDK shape: a file upload
plus text fields) or application/json (file_id / file_url plus
text fields). Content-Type drives dispatch.
curl --request POST \
--url https://api.edenai.run/v3/audio/transcriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"routing": {
"sticky": true,
"allow_fallbacks": true,
"allowed_providers": [
"<string>"
]
},
"language": "<string>",
"prompt": "<string>",
"response_format": "<string>",
"timestamp_granularities": [
"<string>"
],
"temperature": 0.5,
"user": "<string>",
"file_id": "<string>",
"file_url": "<string>"
}
'import requests
url = "https://api.edenai.run/v3/audio/transcriptions"
payload = {
"model": "<string>",
"routing": {
"sticky": True,
"allow_fallbacks": True,
"allowed_providers": ["<string>"]
},
"language": "<string>",
"prompt": "<string>",
"response_format": "<string>",
"timestamp_granularities": ["<string>"],
"temperature": 0.5,
"user": "<string>",
"file_id": "<string>",
"file_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: '<string>',
routing: {sticky: true, allow_fallbacks: true, allowed_providers: ['<string>']},
language: '<string>',
prompt: '<string>',
response_format: '<string>',
timestamp_granularities: ['<string>'],
temperature: 0.5,
user: '<string>',
file_id: '<string>',
file_url: '<string>'
})
};
fetch('https://api.edenai.run/v3/audio/transcriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.edenai.run/v3/audio/transcriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => '<string>',
'routing' => [
'sticky' => true,
'allow_fallbacks' => true,
'allowed_providers' => [
'<string>'
]
],
'language' => '<string>',
'prompt' => '<string>',
'response_format' => '<string>',
'timestamp_granularities' => [
'<string>'
],
'temperature' => 0.5,
'user' => '<string>',
'file_id' => '<string>',
'file_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.edenai.run/v3/audio/transcriptions"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ]\n },\n \"language\": \"<string>\",\n \"prompt\": \"<string>\",\n \"response_format\": \"<string>\",\n \"timestamp_granularities\": [\n \"<string>\"\n ],\n \"temperature\": 0.5,\n \"user\": \"<string>\",\n \"file_id\": \"<string>\",\n \"file_url\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.edenai.run/v3/audio/transcriptions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ]\n },\n \"language\": \"<string>\",\n \"prompt\": \"<string>\",\n \"response_format\": \"<string>\",\n \"timestamp_granularities\": [\n \"<string>\"\n ],\n \"temperature\": 0.5,\n \"user\": \"<string>\",\n \"file_id\": \"<string>\",\n \"file_url\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.edenai.run/v3/audio/transcriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"<string>\",\n \"routing\": {\n \"sticky\": true,\n \"allow_fallbacks\": true,\n \"allowed_providers\": [\n \"<string>\"\n ]\n },\n \"language\": \"<string>\",\n \"prompt\": \"<string>\",\n \"response_format\": \"<string>\",\n \"timestamp_granularities\": [\n \"<string>\"\n ],\n \"temperature\": 0.5,\n \"user\": \"<string>\",\n \"file_id\": \"<string>\",\n \"file_url\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cost": 123,
"provider": "<string>",
"text": "<string>",
"usage": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
JSON request body, references the audio by file_id or file_url.
Exactly one of file_id (an Eden upload id) or file_url (an https URL
or a data:audio/...;base64,... URL) must be set.
provider/model, e.g. 'openai/whisper-1'
How to pick between the providers that serve the requested model. Applies only when model is a model name with no provider prefix (e.g. 'gpt-5.5'); ignored for a concrete 'provider/model' id, which already names its provider. This does not choose the model — for that see router_candidates with model='@edenai'.
Show child attributes
Show child attributes
ISO-639-1 language code of the input audio (e.g. 'en'). Omit to let the provider auto-detect where supported.
Optional text to guide the model's style or continue a prior audio segment's context.
Transcript format: 'json', 'text', 'srt', 'verbose_json', or 'vtt'. Provider support varies; forwarded as-is.
Timestamp granularities to populate with 'verbose_json' (['word'] and/or ['segment']).
Sampling temperature between 0 and 1.
0 <= x <= 1End-user identifier for abuse tracking.
Id of a file previously uploaded to Eden AI.
An https URL or a base64 data URL pointing at the audio.
Response
Successful Response
OpenAI-compatible transcription response, plus Eden cost / provider.
The provider's full transcript payload passes through — text plus any
language, duration, words, and segments the provider returns
— alongside the Eden-added cost and provider fields.