New
  • #1 on OLMBench — AlphaDigit Max v2 scores 89.4%, ahead of Chandra & Mistral
  • AlphaDigit Max v2 & AlphaDigit Fast v2 are now available via the API — AlphaDigit Medium v2 is available on demand
Discover

POST /models/{model_slug}/transcript

Slug audio : alpha-audio-v1 uniquement. Multipart : champ fichier obligatoire nommé audio (pas file). POST /models/{slug}/transcript renvoie HTTP 200 (TranscriptResponse) en cas de succès. Le champ interne gateway_wall_ms est exclu du JSON client. Authentification : X-API-Key ou Authorization: Bearer (équivalents).

POST /models/{model_slug}/transcript

Request body

The following parameters can be included in the request body:

Parameters

audio
file
Required

Audio file (multipart, field name: audio).

Successful response

The following fields are returned in a successful response:

Response fields

model_slug
string

Model slug (synchronous response).

text
string

Texte transcrit.

inference_seconds
number

ASR time reported by the upstream service (in seconds).

audio_duration_seconds
number

Detected audio duration.

audio_filename
string null

Name of the audio file, or null.

Examples

Code examples for using this endpoint:

curl
curl -X POST "https://api-endpoints.alphaedge-ai.com/models/alpha-audio-v1/transcript" \
  -H "X-API-Key: TA_CLE" \
  -F "audio=@/chemin/audio.wav"
python
import requests
url = "https://api-endpoints.alphaedge-ai.com/models/alpha-audio-v1/transcript"
headers = {"X-API-Key": "TA_CLE"}
with open("/chemin/audio.wav", "rb") as f:
    files = {"audio": ("audio.wav", f, "audio/wav")}
    r = requests.post(url, headers=headers, files=files, timeout=300)
print(r.status_code)
print(r.json())
typescript
import fs from "node:fs";
const form = new FormData();
form.append("audio", new Blob([fs.readFileSync("/chemin/audio.wav")]), "audio.wav");
const res = await fetch("https://api-endpoints.alphaedge-ai.com/models/alpha-audio-v1/transcript", {
  method: "POST",
  headers: { "X-API-Key": "TA_CLE" },
  body: form
});
console.log(res.status, await res.json());

Response

Sample API response:

json
HTTP 200 — TranscriptResponse (POST /transcript) :
{
  "model_slug": "alpha-audio-v1",
  "text": "…",
  "inference_seconds": 1.2,
  "audio_duration_seconds": 45.3,
  "audio_filename": "audio.wav"
}