SubQ
Integrations

Integration overview

Choose an integration approach for the SubQ Speech-to-Text API

SubQ is a standard REST and WebSocket API. You call it directly with any HTTP client without requiring any proprietary SDK. If you're migrating from Deepgram, you can also reuse Deepgram SDKs by pointing them at SubQ.

Choose your approach

Use this decision map to pick the right integration path:

Integration decision flowchart

Endpoints and protocols

The SubQ API provides two transcription modes, each with its own protocol and use case, as shown:

Pre-recordedStreaming
ProtocolHTTPS (REST)WebSocket
EndpointPOST https://stt-api.subq.ai/v1/listenwss://stt-api.subq.ai/v1/listen
AuthAuthorization: Bearer org_...Sec-WebSocket-Protocol: token, org_...
InputAudio bytes in request bodyBinary audio frames over WebSocket
OutputSingle JSON response with full transcriptStream of JSON messages (interim + final)
Use caseFiles, URLs, batch processingLive audio, real-time captioning, voice assistants

Supported platforms

SubQ supports multiple platforms and works with any language that has an HTTP and WebSocket client.

PlatformRESTWebSocket
Pythonhttpxwebsockets
Node.jsfetch (built-in)ws
Gonet/httpgorilla/websocket
Rustreqwesttokio-tungstenite
Swift (iOS)URLSessionURLSessionWebSocketTask
Kotlin (Android)OkHttpOkHttp WebSocket

Next steps