Skip to main content
POST
/
audio
/
transcriptions
Speech to Text
curl --request POST \
  --url https://api.euron.one/api/v1/euri/audio/transcriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "language": "<string>",
  "response_format": "<string>",
  "temperature": 123,
  "prompt": "<string>"
}
'
import requests

url = "https://api.euron.one/api/v1/euri/audio/transcriptions"

payload = {
"model": "<string>",
"language": "<string>",
"response_format": "<string>",
"temperature": 123,
"prompt": "<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>',
language: '<string>',
response_format: '<string>',
temperature: 123,
prompt: '<string>'
})
};

fetch('https://api.euron.one/api/v1/euri/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.euron.one/api/v1/euri/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>',
'language' => '<string>',
'response_format' => '<string>',
'temperature' => 123,
'prompt' => '<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.euron.one/api/v1/euri/audio/transcriptions"

payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"language\": \"<string>\",\n \"response_format\": \"<string>\",\n \"temperature\": 123,\n \"prompt\": \"<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.euron.one/api/v1/euri/audio/transcriptions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"language\": \"<string>\",\n \"response_format\": \"<string>\",\n \"temperature\": 123,\n \"prompt\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.euron.one/api/v1/euri/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 \"language\": \"<string>\",\n \"response_format\": \"<string>\",\n \"temperature\": 123,\n \"prompt\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body

Request

POST https://api.euron.one/api/v1/euri/audio/transcriptions
Send as multipart/form-data.

Form parameters

file
file
required
Audio file to transcribe. Supported formats: mp3, mp4, mpeg, mpga, m4a, wav, webm. Max size: 25 MB.
model
string
STT model ID. Options: whisper-large-v3, whisper-large-v3-turbo, sarvam-stt. Default: whisper-large-v3-turbo.
language
string
Language code (ISO 639-1). Example: "en", "hi", "es".
response_format
string
Output format. Options: "json", "text", "verbose_json". Default: "json".
temperature
number
Sampling temperature for the model. Default: 0.
prompt
string
Optional prompt to guide the transcription style.

Examples

curl -X POST https://api.euron.one/api/v1/euri/audio/transcriptions \
  -H "Authorization: Bearer YOUR_EURI_API_KEY" \
  -F "[email protected]" \
  -F "model=whisper-large-v3-turbo" \
  -F "language=en"
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_EURI_API_KEY",
    base_url="https://api.euron.one/api/v1/euri"
)

with open("recording.mp3", "rb") as audio_file:
    response = client.audio.transcriptions.create(
        model="whisper-large-v3-turbo",
        file=audio_file,
        language="en"
    )

print(response.text)
curl -X POST https://api.euron.one/api/v1/euri/audio/transcriptions \
  -H "Authorization: Bearer YOUR_EURI_API_KEY" \
  -F "file=@hindi_audio.wav" \
  -F "model=sarvam-stt" \
  -F "language=hi"

Response

{
  "text": "Hello, welcome to the EURI API documentation."
}

Pricing

ModelPrice per audio hourPremium
whisper-large-v3$0.111Yes
whisper-large-v3-turbo$0.04Yes
sarvam-stt$0.33Yes
All STT models are premium and require wallet balance.