API documentation
ThinLine Transcription speaks the OpenAI audio transcription API, so most tools that work with OpenAI Whisper work here by changing the base URL and key. The model is Whisper large-v3, fine-tuned on public safety radio traffic.
Quick start
- Sign in and add credit.
- Create an API key on the dashboard. It starts with
tlt_and is shown once. - Send audio:
curl https://transcribe.thinlineds.com/v1/audio/transcriptions \ -H "Authorization: Bearer $THINLINE_KEY" \ -F [email protected] \ -F response_format=json
{"text": "Engine 4 respond to 1200 Main Street for a reported structure fire"}
Endpoint
POST https://transcribe.thinlineds.com/v1/audio/transcriptions with a multipart/form-data body.
| Field | Required | Description |
|---|---|---|
file | Yes | The recording. Any common format: m4a/AAC, mp3, wav, ogg/opus, flac and others FFmpeg can read. Up to 15 minutes. |
response_format | No | verbose_json (default), json or text. |
language | No | Defaults to en. The model is tuned for English radio traffic. |
model | No | Accepted for compatibility (for example whisper-1) and ignored. |
Headers
| Header | Description |
|---|---|
Authorization: Bearer tlt_… | Your API key. Required. |
X-TLR-Call-ID | Optional. Your own call ID; it appears next to the call in your usage history. |
X-TLR-System, X-TLR-Talkgroup | Optional labels stored with the call. |
Responses
verbose_json returns the text plus one segment per 30-second window:
{
"task": "transcribe",
"language": "en",
"duration": 7.42,
"text": "Medic 12 en route",
"segments": [{"id": 0, "seek": 0, "start": 0.0, "end": 7.42, "text": "Medic 12 en route"}]
}
Examples
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(base_url="https://transcribe.thinlineds.com/v1", api_key="tlt_...")
with open("call.m4a", "rb") as f:
result = client.audio.transcriptions.create(model="whisper-1", file=f)
print(result.text)
Node.js (OpenAI SDK)
import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://transcribe.thinlineds.com/v1", apiKey: process.env.THINLINE_KEY });
const result = await client.audio.transcriptions.create({ model: "whisper-1", file: fs.createReadStream("call.m4a") });
console.log(result.text);
Other tools
Anything with an "OpenAI-compatible" or "custom Whisper endpoint" setting can use ThinLine Transcription. Set the base URL to https://transcribe.thinlineds.com/v1 (or the full endpoint above if the tool asks for it) and the API key to your tlt_ key.
Billing
- Prepaid. You're charged for the length of each recording at your plan's rate per audio hour, shown on your dashboard. Calls shorter than the minimum are billed at the minimum.
- While a call is being transcribed its cost is held from your balance. You're charged when it finishes; calls that fail are not charged.
- Requests are refused with
402when your balance can't cover the call. Turn on automatic recharge to avoid running out.
Limits
- Each account can have a limited number of calls being transcribed at once (shown on your dashboard). Extra requests get
429; send them again a moment later. - Recordings up to 15 minutes.
Errors
Errors are JSON: {"detail": "…"}.
| Status | Meaning | What to do |
|---|---|---|
| 400 | The audio couldn't be decoded. | Check the file. Don't retry unchanged. |
| 401 | Missing, wrong or revoked API key. | Check the key on your dashboard. |
| 402 | Not enough credit for this call. | Add credit, then retry. |
| 413 | Recording longer than 15 minutes. | Split it. |
| 429 | Too many of your calls in progress. | Retry after a second or two. |
| 503 | The service is busy or briefly unavailable. | Retry with backoff; honour Retry-After. |
Support
Email [email protected].
