AICHE Developer Platform

Speech-to-Text API

REST and real-time WebSocket speech recognition. 99 languages, sub-second streaming, zero retention, and Deepgram compatibility.

BASE REST:https://api.aiche.app/v1
Get API Key →Developer Console

The AICHE API provides fast, production-grade speech-to-text transcription via REST and real-time WebSocket connections. It is engineered with Whisper speech recognition, empirical hallucination filtering, and optional LLM cleanup.

99 Languages
Auto-detection with multi-lingual transcription & English translation.
$0.36 / Hour
Billed per second with server-side Voice Activity Detection (silence excluded).
Drop-in Deepgram
WebSocket protocol compatible with existing Deepgram client libraries.
Zero Retention
Audio is processed transiently in RAM and discarded immediately.
AUTHENTICATION

Authentication#

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Authorization: Bearer sk_live_xxxxxHeader

You can generate, revoke, and inspect usage for your API keys from your Account Settings. Keep your keys secret; do not expose secret keys in public client applications.

REST ENDPOINT

Transcribe Audio#

POST/v1/transcribe

Send pre-recorded audio files as Base64 or an HTTPS URL for rapid speech-to-text transcription.

Request body

ParameterTypeRequiredDescription
audiostringOptional*Base64-encoded audio payload (up to 100MB).
audio_urlstringOptional*Publicly accessible HTTPS URL pointing to the audio file.
languagestringOptionalISO 639-1 code (e.g. "en", "de", "es") or "auto" for automatic detection (default).
translatestringOptionalTranslate the resulting transcript to another language (ISO 639-1 code).

* Provide either audio or audio_url, not both. Supported formats: MP3, WAV, M4A, WebM, OGG, FLAC.

Quickstart request

curl -X POST https://api.aiche.app/v1/transcribe \ -H "Authorization: Bearer sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "audio_url": "https://example.com/audio.mp3", "language": "auto" }'

Response format

Transcriptions are returned synchronously upon completion:

{ "text": "Transcribed text here", "duration_seconds": 10.4, "language": "en", "cost": 0.00104 }
FieldTypeDescription
textstringThe polished transcribed text with punctuation and formatting.
duration_secondsnumberAudio duration processed, in seconds.
languagestringDetected or specified ISO 639-1 language code.
costnumberExact cost of this request in USD.
REST ENDPOINT · DEEPGRAM COMPATIBLE

Transcribe a file (Deepgram-compatible)#

POST/v1/listen

Send a finished audio recording and receive the transcript in Deepgram's pre-recorded JSON response format. Drop-in compatible with Deepgram SDKs and applications.

Send a finished recording and get the text back in Deepgram's response format. Applications built for Deepgram (such as mobile dictation keyboards, voice recorders, and ingest pipelines) work by changing the host to api.aiche.app and providing your AICHE API key. Both WebSocket streaming and pre-recorded POST requests work on /v1/listen, exactly like Deepgram.

Authentication & Request Body

Authentication: Pass your key via Deepgram-style Authorization: Token $AICHE_API_KEY, standard Authorization: Bearer $AICHE_API_KEY, or the X-API-Key header.

Input MethodContent-TypePayload & Limits
Raw binary audioaudio/* (or omitted)Direct audio file bytes in request body: WAV, MP3, M4A/MP4, OGG/Opus, WebM, FLAC (up to 100 MB).
Remote URL (JSON)application/jsonJSON object: {"url": "https://..."}. The server downloads and transcribes the file.

Query parameters

ParameterDefaultDescription
languagemultiLanguage code such as "en", "nl", "de" (regional codes like "en-US" also work). Omit or set to "multi" to detect language automatically.
modeldefaultAccepted and ignored for drop-in Deepgram compatibility.
smart_formattrueAccepted and ignored (formatting and punctuation are always cleanly applied).
punctuatetrueAccepted and ignored for compatibility.

Quickstart request

curl -X POST "https://api.aiche.app/v1/listen?language=en" \ -H "Authorization: Token $AICHE_API_KEY" \ -H "Content-Type: audio/wav" \ --data-binary @recording.wav

Response format

The response matches Deepgram's pre-recorded JSON structure:

{ "metadata": { "request_id": "req_01jbc2...", "duration": 4.44, "channels": 1, "created": "2026-10-27T06:01:14Z" }, "results": { "channels": [ { "alternatives": [ { "transcript": "Please call Stella and ask her to bring these things with her from the store.", "confidence": 0.95, "words": [] } ], "detected_language": "en" } ] } }

The transcribed text is in results.channels[0].alternatives[0].transcript. Word timings (words) and speaker diarization are not provided yet.

Limits & Pricing

- File size limit: Up to 100 MB per file.
- Test API keys (sk_test_): Accept up to 2 minutes of audio and are free of charge.
- Live keys: Billed at the same rate as /v1/transcribe ($0.36/hour, or $0.0001 per second) from your API balance.
- Errors: Returned as standard JSON: {"detail": {"error": "...", "message": "..."}} with HTTP 400 (bad or missing audio), 401 (bad key), 402 (insufficient balance), 413 (file too large), or 429 (rate limit).

STREAMING WEBSOCKET

Real-Time Streaming#

WSS/v1/listen

Stream raw PCM audio frames over a WebSocket connection and receive real-time interim and final transcripts.

The streaming WebSocket API is engineered to be drop-in compatible with the Deepgram WebSocket protocol, allowing existing Deepgram clients and SDKs to connect with just a URL update.

Connection parameters

ParameterDefaultDescription
encodinglinear16Audio encoding. Signed 16-bit little-endian PCM.
sample_rate16000Sample rate in Hz. Must be 16000.
channels1Audio channels. Must be 1 (mono).
punctuatetrueAutomatically add punctuation and capitalization to transcripts.
interim_resultstrueSend fast partial results while speech is in progress.
vad_eventsfalseSend SpeechStarted events when voice is detected.
utterance_end_ms1000Silence duration before considering an utterance finished (200 to 5000ms).
languageautoLanguage code (en, es, de, etc.) or auto-detect.

Streaming implementation

// Browser: capture mic and stream to AICHE const ws = new WebSocket( "wss://api.aiche.app/v1/listen?encoding=linear16&sample_rate=16000&token=sk_live_YOUR_KEY" ); ws.onopen = async () => { const stream = await navigator.mediaDevices.getUserMedia({ audio: true }); const ctx = new AudioContext({ sampleRate: 16000 }); const source = ctx.createMediaStreamSource(stream); const processor = ctx.createScriptProcessor(4096, 1, 1); source.connect(processor); processor.connect(ctx.destination); processor.onaudioprocess = (e) => { const float32 = e.inputBuffer.getChannelData(0); const int16 = new Int16Array(float32.length); for (let i = 0; i < float32.length; i++) { int16[i] = Math.max(-32768, Math.min(32767, float32[i] * 32768)); } ws.send(int16.buffer); }; }; ws.onmessage = (event) => { const msg = JSON.parse(event.data); if (msg.type === "Results") { const text = msg.channel.alternatives[0].transcript; if (msg.is_final) { console.log("FINAL:", text); } else { console.log("partial:", text); } } }; // When finished: ws.send(JSON.stringify({ type: "CloseStream" }));

Audio format requirements

SpecificationRequirementDetails
EncodingRaw PCM (linear16)Signed 16-bit integer, little-endian.
Sample rate16,000 HzSingle-channel mono.
Frame size50ms to 200ms800 to 3,200 samples per binary WebSocket frame.
ContainerRaw binary bytesDo not send WAV/MP3 container headers.
PROTOCOL REFERENCE

WebSocket Messages#

Client to Server messages

Send raw audio as binary frames. For control signals, send JSON text frames:

KeepAlive{"type": "KeepAlive"}
Resets the 60-second inactivity timer during silent pauses between utterances.
Finalize{"type": "Finalize"}
Forces a final transcription of pending buffered audio without closing the WebSocket connection.
CloseStream{"type": "CloseStream"}
Finalizes any pending audio and cleanly terminates the connection.

Server to Client messages

The server streams JSON messages indicating connection state, partials, and final transcripts:

1. Results (Transcription event)
{ "type": "Results", "channel_index": [0], "duration": 3.2, "start": 0.0, "is_final": false, "speech_final": false, "channel": { "alternatives": [{ "transcript": "hello world how are you", "confidence": 0.95 }] } }
is_finalspeech_finalState Meaning
falsefalseInterim partial result. Text may update as user continues speaking.
truetrueFinal utterance result. Speaker paused; text is finalized and punctuate-polished.
truetrue (from_finalize: true)Response generated after Finalize or CloseStream.

If your application already uses Deepgram for streaming or pre-recorded transcription, you can switch to AICHE in under 60 seconds with zero code refactoring:

01
Swap the endpoint URL
For streaming WebSocket, change wss://api.deepgram.com/v1/listen to wss://api.aiche.app/v1/listen. For pre-recorded files, change POST https://api.deepgram.com/v1/listen to POST https://api.aiche.app/v1/listen.
02
Use your AICHE API key
Pass your key as Authorization: Token $AICHE_API_KEY or ?token=$AICHE_API_KEY.
03
Keep all client handling code
Results format, channel alternatives, and response structures match Deepgram directly.

Quick copy-paste snippets for cURL, Python, and Node.js:

curl -X POST https://api.aiche.app/v1/transcribe \ -H "Authorization: Bearer sk_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "audio_url": "https://example.com/audio.mp3", "language": "auto" }'

Simple, transparent pay-as-you-go billing with no recurring commitments or tier traps:

Predictable audio billing
$0.36/ hour of audio
Exact rate: $0.0001 per second ($0.006 / min) · Minimum $0.0001 per request
✓ Server-side VAD Included
Dead air, long pauses, and silence are automatically identified and excluded from billing. You only pay for active speech.
ServiceRateBilling UnitNotes
/v1/transcribe$0.36 / hourPer second ($0.0001/s)Synchronous REST transcription
POST /v1/listen$0.36 / hourPer second ($0.0001/s)Pre-recorded file transcription (Deepgram format)
WSS /v1/listen$0.36 / hourPer second ($0.0001/s)Billed strictly on detected speech time (silence free)
Limit ParameterStandard LimitDescription
Requests per minute100 req/minBurst rate limit across all REST endpoints.
Concurrent connections10 streamsConcurrent active WebSocket streams.
Maximum payload size100 MBMaximum audio file size per single request.

Rate limit status is returned on all responses via headers: X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. Need higher volume? Contact developer support.

MethodEndpoint PathTypeDescription
POST/v1/transcribeRESTSynchronous audio transcription from URL or base64 payload.
POST/v1/listenRESTPre-recorded file transcription with Deepgram-compatible response format.
GET/v1/jobsRESTList asynchronous transcription jobs.
GET/v1/jobs/{id}RESTInspect asynchronous job progress and retrieve results.
WSS/v1/listenWebSocketLow-latency real-time streaming speech-to-text.

All endpoints are relative to the production base URL https://api.aiche.app/v1.