Transcribe audio
/openai/v1/audio/transcriptions● SupportedRequest body
modelstringrequiredModel catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
Verified to take effect.
temperaturenumberoptional○ UnsupportedBoth whisper-large-v3-turbo and qwen3-asr-flash return 400.
response_formatstringoptional◐ Partially supportedOutput format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.
json/text return transcription text; Fun-ASR supports speaker segments with diarized_json, and Workers AI whisper supports timestamps with verbose_json. Format support depends on the model; unsupported combinations and srt/vtt return 400.
filestringrequiredAudio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
Verified to take effect.
languagestringoptional◐ Partially supportedSource language code when known; omit to let the model detect the language.
Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502.
promptstringoptional◐ Partially supportedOptional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400.
timestamp_granularities[]arrayoptional◐ Partially supportedTimestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.
word requests word timestamps and segment requests segment timestamps; both levels may be requested together. Fun-ASR and Workers AI whisper support word. A word request returns 400 only when the upstream response lacks word-level data; word times are never fabricated. qwen3-asr-flash does not support timestamps.
Returns
200
Standard request fields; unrepresentable parameters return input_not_representable.
Errors follow the OpenAI format — see error codes
Request
curl
curl https://api.deepraxis.com/openai/v1/audio/transcriptions \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-F "file=@sample.mp3" \
-F "model=whisper-large-v3-turbo"Python
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepraxis.com/openai/v1",
api_key="$PRAXIS_API_KEY",
)
transcription = client.audio.transcriptions.create(
file=open("sample.mp3", "rb"),
model="whisper-large-v3-turbo",
)TypeScript
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({
baseURL: "https://api.deepraxis.com/openai/v1",
apiKey: "$PRAXIS_API_KEY",
});
const transcription = await client.audio.transcriptions.create({
file: fs.createReadStream("sample.mp3"),
model: "whisper-large-v3-turbo",
});Response 200
{
"text": "Hello, welcome to Praxis."
}Response
HTTP 200
Transcription in the requested format.
text/plain
| Name | Type | Description |
|---|---|---|
| $ | string |
application/json
| Name | Type | Description |
|---|---|---|
| text | string | Recognized speech text in the original language. |
| task | string | transcribe identifies speech-to-text transcription. |
| language | string | Detected or requested source language code. |
| duration | number | Audio duration in seconds when provided by the model. |
| segments | array<object> | Time-aligned speech segments when returned by the selected model and response format. |
| segments[].id | integer | Segment identifier within this transcription response. |
| segments[].start | number | Inclusive start time in seconds from the beginning of the audio. |
| segments[].end | number | Exclusive end time in seconds from the beginning of the audio. |
| segments[].text | string | Recognized speech text in the original language. |
| segments[].speaker | string | Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities. |
| segments[].temperature | number | Decoding temperature reported by the transcription model. |
| segments[].avg_logprob | number | Average segment token log probability when provided. |
| segments[].compression_ratio | number | Text compression ratio reported for this segment. |
| segments[].no_speech_prob | number | Probability of no speech reported for this segment. |
| words | array<object> | Per-word source-audio timestamps when word granularity is requested and supported. |
| words[].word | string | Recognized word text in its original language. |
| words[].start | number | Inclusive word start in seconds from the beginning of the audio. |
| words[].end | number | Exclusive word end in seconds from the beginning of the audio. |