Skip to main content

Developers

Speech to text API for recorded audio

Use Hushscript's speech to text API to upload recorded audio, check the job, and read the transcript with a scoped token, directly or through an official SDK.

The Hushscript speech to text API accepts recorded audio through /v1/, then lets your script poll the job and read the transcript. It is an online transcription workflow, not a live streaming or raw recognition-model endpoint. The MCP server uses the same account, balance, and bearer token when your client prefers tools to HTTP calls.

For TypeScript, Python, Go, PHP, or a terminal, the SDKs and CLI wrap these calls so one call uploads a file and returns the transcript.

Audio and video transcription API

The audio transcription API accepts prepared audio files, including recorded voice. For voice transcription, send a recorded memo, interview, or call as a file. For an STT (speech-to-text) integration, submit recorded files; live microphone streaming is unavailable. For video transcription, upload an MP4 or MOV file with an audio track as it is: the server reads the audio track and skips the video. Extract the audio from any other video format first; the API does not accept a video URL. The browser workflow is explained at video to text.

Speech recognition runs at AssemblyAI, a listed subprocessor.

Quickstart

The API needs a personal access token, and there are two ways to hold one. A person creates one under Tokens on the MCP page in the account, picks its scopes, and decides whether it may buy minutes. Or an agent opens its own account without a human account holder: POST /v1/agent/accounts starts a paid signup, and POST /v1/agent/accounts/{signup_id}/claim exchanges its one-time claim secret for a real account and a first token. Either way the token is shown once and looks like hsr1:<region>:pat.<id>.<secret>. A token minted through the MCP server’s OAuth sign-in works here too; see Connect. A token can never mint, list, or revoke other tokens, and an account holds at most 25 active ones; the full agent-account flow, including credential rotation, is the Automated usage walkthrough.

Once you hold a token, call the API directly. This example represents a new personal account before card verification or a purchase; an agent-created account starts with the minute pack it paid for:

curl https://api.hushscript.com/v1/account \
  -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293"
{
  "balance_seconds": 0,
  "held_seconds": 0,
  "credits_expire_at": null,
  "card_on_file": false,
  "data_region": "eu",
  "limits": {
    "max_active_jobs": 50,
    "max_daily_seconds": 144000,
    "active_jobs": 0,
    "used_today_seconds": 0
  }
}

That answers the balance in seconds, the seconds held by running jobs, the credits_expire_at (always null because minutes do not expire), whether a card is saved, the data region, and the admission limits (max_active_jobs, max_daily_seconds, and what is used). The daily limit is the account’s current effective limit, not a value to hardcode. POST /v1/uploads checks available minutes, not the card: without enough it returns 3001 insufficient_balance.

Is there a free speech to text API?

There is no general free API tier, but you can try the workflow before you write any code: the public preview transcribes up to five minutes from one recording before sign-in. An eligible personal account then gets 30 free minutes after card verification (see pricing for how that works); an agent-created account skips the welcome minutes and starts with the pack it buys at signup. A full API job needs an account and minutes either way.

SDKs and CLI

The official SDKs wrap the transcription API for server code and scripts. One call transcribes a file: it uploads the recording, waits for the job, and hands back the transcript. In between, the SDK checks the file before any minutes are held, retries what is safe to retry, keeps a long upload alive, and carries an idempotency key on every upload and purchase so a retry never charges twice. The CLI is built on the TypeScript SDK and does the same from a terminal. The SDKs and the CLI are MIT-licensed.

Packages

Language Package Registry Source
TypeScript @hushscript/sdk npm: www.npmjs.com/package/@hushscript/sdk github.com/Hushscript/hushscript-sdk-typescript
Python hushscript PyPI: pypi.org/project/hushscript github.com/Hushscript/hushscript-sdk-python
Go github.com/Hushscript/hushscript-sdk-go pkg.go.dev: pkg.go.dev/github.com/Hushscript/hushscript-sdk-go github.com/Hushscript/hushscript-sdk-go
PHP hushscript/sdk Packagist: packagist.org/packages/hushscript/sdk github.com/Hushscript/hushscript-sdk-php
CLI @hushscript/cli npm: www.npmjs.com/package/@hushscript/cli github.com/Hushscript/hushscript-cli

Runtime floors:

The SDKs are for servers and scripts. The API does not accept browser origins, and a token in a browser bundle is a leaked token, so the TypeScript SDK refuses to start where window and document exist.

Token and environment

Every SDK and the CLI authenticate with a personal access token. Create one as described in the Quickstart, pick the scopes your code needs (see Authentication), and decide whether it may buy minutes.

The SDKs read the token from HUSHSCRIPT_TOKEN when you do not pass one:

export HUSHSCRIPT_TOKEN=hsr1:...

An agent can also open its own account, have it paid at a hosted checkout page, and claim its first token from code: Hushscript.agent.signup() and Hushscript.agent.claim() in TypeScript, Hushscript.agent_signup() and Hushscript.agent_claim() in Python, AgentSignup and AgentClaim in Go, and Client::agentSignup() and Client::agentClaim() in PHP. The flow and its rules are in Automated usage.

TypeScript

npm install @hushscript/sdk
import { writeFile } from "node:fs/promises";
import { Hushscript } from "@hushscript/sdk";

const hs = new Hushscript(); // reads HUSHSCRIPT_TOKEN
const transcript = await hs.transcribe("meeting.mp3");
console.log(transcript.text);
await writeFile("meeting.srt", transcript.toSRT());

transcribe() takes a path, a Blob, a Uint8Array, or a ReadableStream<Uint8Array>. A stream needs its exact size and durationSeconds. hs.balance() returns the minutes you can spend, hs.transcripts.list() pages through finished transcripts, and hs.buy("300min", { acknowledgeNoRefund: true }) buys a pack. Every /v1 operation is also available as hs.api, with the same retries, timeouts, and redaction.

Python

pip install hushscript
from pathlib import Path

from hushscript import Hushscript

with Hushscript() as hs:  # reads HUSHSCRIPT_TOKEN
    transcript = hs.transcribe("meeting.mp3")
    print(transcript.text)
    Path("meeting.srt").write_text(transcript.to_srt(), encoding="utf-8")

Every call has an asyncio twin on AsyncHushscript with the same names. transcribe() takes a path, bytes, or a binary file object; a file object that cannot seek needs size and duration_seconds. hs.balance(), hs.transcripts.list(), and hs.buy("300min", acknowledge_no_refund=True) cover the balance, the transcript list, and purchases.

Go

go get github.com/Hushscript/hushscript-sdk-go
package main

import (
	"context"
	"fmt"
	"log"
	"os"

	hushscript "github.com/Hushscript/hushscript-sdk-go"
)

func main() {
	client, err := hushscript.New() // reads HUSHSCRIPT_TOKEN
	if err != nil {
		log.Fatal(err)
	}
	transcript, err := client.Transcribe(context.Background(), "meeting.mp3", nil)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(transcript.Text(nil))
	if err := os.WriteFile("meeting.srt", []byte(transcript.SRT(nil)), 0o600); err != nil {
		log.Fatal(err)
	}
}

Transcribe takes a path, TranscribeReader an io.ReaderAt and its exact size, and TranscribeStream a forward-only reader with its size and DurationSeconds. client.Balance, client.Transcripts.List, and client.Buy cover the balance, the transcript list, and purchases. Options that can be off, on, or unset are *bool, built with hushscript.Bool.

PHP

composer require hushscript/sdk
<?php

require __DIR__ . '/vendor/autoload.php';

use Hushscript\Client;

$hs = new Client(); // reads HUSHSCRIPT_TOKEN

$transcript = $hs->transcribe('meeting.mp3');
echo $transcript->text();
file_put_contents('meeting.srt', $transcript->toSrt());

transcribe() takes a path or an open stream; a stream that cannot seek needs the size and duration_seconds options. Options use snake_case array keys, and results use camelCase properties. $hs->balance(), $hs->transcripts()->list(), and $hs->buy('300min', true) cover the balance, the transcript list, and purchases. For Laravel, bind one Client in a service provider and run transcriptions in a queued job with a stable idempotency_key option.

CLI

npm install --global @hushscript/cli
hushscript login
hushscript transcribe meeting.mp3 --format srt --out meeting.srt

The CLI takes the token from --token, then HUSHSCRIPT_TOKEN, then the one hushscript login stored. login asks for the token without echoing it and keeps it in a file only your user can read; hushscript logout deletes it. In CI, prefer the environment variable.

Command What it does
login Prompts for a token and stores it.
logout Deletes the stored token.
balance Shows the minutes you can spend.
transcribe <file> Uploads a recording, waits, and prints the transcript. Flags: --language, --translate, --format srt|vtt|txt|json, --out, --key.
resume <token> <file> Finishes a transcription that transcribe left behind.
transcripts Lists finished transcripts, newest first.
transcript <id> Prints one transcript.
jobs Lists jobs; --active for the ones that have not finished.
packs Lists the minute packs you can buy, with prices.
buy <pack> Buys a pack with your saved default card. Flags: --yes, --key.

--json prints one JSON document on stdout and nothing else, and turns stderr into JSON Lines. The exit code is 0 on success, 1 when the API or the SDK reported an error, 2 for a usage error (nothing was sent), and 130 when the run was interrupted.

Supported files

MP3, M4A, MP4 and MOV (the audio track of a video is used), WAV, FLAC, and OGG with Vorbis or Opus, from 15 seconds to 10 hours. The SDKs check the format from the file’s bytes and probe the duration before any minutes are held. They do not convert media, so convert anything else first:

ffmpeg -i input -vn -c:a libopus output.opus

SDK errors

Every error an SDK raises belongs to one family, so one catch covers everything: HushscriptError in TypeScript and Python, *hushscript.Error in Go, and HushscriptException in PHP. An error carries a slug code such as insufficient_balance, the numeric code, the HTTP status, a message, a hint that says what to do next, the details, and retryAfter (in PHP the slug is errorCode; in Python retryAfter is retry_after).

import { HushscriptError, InsufficientBalanceError } from "@hushscript/sdk";

try {
  await hs.transcribe("meeting.mp3");
} catch (error) {
  if (error instanceof InsufficientBalanceError) console.log(error.hint);
  else if (error instanceof HushscriptError) console.log(error.code, error.hint ?? error.message);
  else throw error;
}

A PreflightError means the SDK refused the file before any credit was held. Whether your balance covers a file is the server’s call: a 402 comes back when the upload is created, before any part is sent.

Charging and retries

Every upload and every purchase carries an idempotency key, and retries reuse it, so a retried call replays the first one instead of starting a second.

buy() charges your saved default card. Buying from code is off until three switches allow it: the token has the billing scope, the token has “Let this token buy minutes” turned on, and “Let connected apps buy minutes” is on for the account. If any is missing, the call fails with pat_scope_missing. Show your buyer the no-refund notice before you call it.

A purchase is retried at most once, on a network error, a 502, or a 503, with the same key. Some answers prove nothing was charged: a 400, 402, 404, or 422, and a 403 with code 4021 (pat_purchase_requires_app, the card was declined or cannot be charged without you) or 4023 (pat_purchase_requires_authentication, the bank wants to confirm the payment). After 4021 or 4023, buy the pack in the app. Any other failure after the request was sent, a 401 or a 429 included, means the card may have been charged. That error carries the idempotency key: ask again with the same key, and the purchase can never happen twice. In Python:

from hushscript import HushscriptError

try:
    purchase = hs.buy("300min", acknowledge_no_refund=True)
except HushscriptError as error:
    refused = error.status in {400, 402, 404, 422} or (
        error.status == 403 and error.numeric_code in {4021, 4023}
    )
    if error.idempotency_key is None or refused:
        raise  # only these refusals charged nothing; any other failure keeps the key for a retry
    purchase = hs.buy("300min", acknowledge_no_refund=True, idempotency_key=error.idempotency_key)

A purchase that failed before its request was sent carries no key: nothing was charged. A key you pass yourself must be 1 to 128 characters from A-Za-z0-9_-; do not reuse one for a different pack. The CLI prints the key when a purchase may have been sent:

hushscript buy 300min --yes --key <key>

Resume tokens

Once a job exists, an error carries a resume token next to the idempotency key. A wait that runs out raises WaitTimeoutError with the token, and the job keeps running. Pass the token back to resume() to carry on without a second charge: a job past uploading needs no file, and one still uploading is continued with the same file. In PHP:

try {
    $hs->transcribe($path, ['wait_timeout' => 60]);
} catch (\Hushscript\Exception\WaitTimeoutError $timeout) {
    $transcript = $hs->resume($timeout->resumeToken, $path);
}

In the CLI, Ctrl-C during transcribe prints the job’s resume token and the command that continues it:

hushscript resume <token> meeting.mp3 --format srt --out meeting.srt

Logging and redaction

The SDKs send no telemetry; the User-Agent header is the only client identification. Logging is off by default. HUSHSCRIPT_LOG=debug writes one line per request to standard error with the method, path, status, and timing, and never a header, body, title, or transcript text.

The token is redacted from every error, log line, and printed form of the client. In error messages, hints, and causes, a URL keeps its host and path but its query string becomes ?[redacted], so a signed upload URL never prints. Results that hand you a secret, such as a claim secret or a new token, keep it readable as a field but show [redacted] when printed; a JSON export is your own and carries the value. The CLI scrubs every token it knows from stderr; its results on stdout are your output and are not scrubbed.

SDK configuration

Setting Environment variable Default
Token HUSHSCRIPT_TOKEN none
Base URL HUSHSCRIPT_BASE_URL https://api.hushscript.com
Log level HUSHSCRIPT_LOG off
Request timeout none 60 seconds
Retries none 3

An option passed in code beats its environment variable, and an empty value counts as not set. Minutes come from the same balance as the app; packs and prices are on the pricing page.

Automating end to end

The same /v1/ calls work with a token created by a person in the app or one claimed by an agent after paid signup (see Automated usage). Saving a card requires hosted Checkout in a browser; an agent may drive it. Later off-session purchases can still be refused if the card issuer requires authentication.

  1. Read the account. GET /v1/account. If you need to buy minutes and card_on_file is false, save a card first.

  2. Save a card, once. POST /v1/billing/setup-session returns a checkout_url, a session_id, and an expires_at:

    curl -X POST https://api.hushscript.com/v1/billing/setup-session \
      -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293"
    {
      "checkout_url": "https://checkout.stripe.com/c/pay/cs_live_a1B2c3D4e5F6g7H8",
      "session_id": "seti_1PxYzQ2eZvKYlo2C",
      "expires_at": "2026-09-11T15:45:00Z"
    }

    Open the URL in a browser you control and complete the hosted Stripe page; nothing is charged and Hushscript never sees the card. Then GET /v1/billing/cards lists it with its id. POST /v1/billing/cards/default switches the default if the account holds several.

  3. Buy minutes. GET /v1/billing/packs lists the five packs with id, seconds, amount, and currency:

    curl https://api.hushscript.com/v1/billing/packs \
      -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293"

    POST /v1/billing/purchase with pack, quick_payment_method_id (the saved card’s id), and an idempotency_key charges the card off-session and answers the new balance_seconds:

    curl -X POST https://api.hushscript.com/v1/billing/purchase \
      -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293" \
      -H "Content-Type: application/json" \
      -d '{
        "pack": "300min",
        "quick_payment_method_id": "pm_2QeT4bY7uX9mK3nP",
        "idempotency_key": "purchase-2026-09-11-02"
      }'
    { "balance_seconds": 18000 }

    This needs the billing scope, billing enabled on the token, and billing enabled for the account. A body without a card id, or a declined card, is refused with 4021 pat_purchase_requires_app; a card the issuer wants to challenge is refused with 4023 pat_purchase_requires_authentication. Neither opens a page nobody can finish.

  4. Upload. POST /v1/uploads with size_bytes, duration_seconds (15 seconds to 10 hours), an optional title, transcription_options, matter_code, and an idempotency_key:

    curl -X POST https://api.hushscript.com/v1/uploads \
      -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293" \
      -H "Content-Type: application/json" \
      -d '{
        "size_bytes": 41943040,
        "duration_seconds": 1200,
        "title": "Q3 board call",
        "transcription_options": { "speaker_detection": true },
        "idempotency_key": "upload-2026-09-11-02"
      }'

    matter_code is free text of at most 64 characters, and it only means something for a token that belongs to a workspace: it is shown against the job in that workspace’s ledger and usage reports. A workspace whose matter policy is set to required refuses an upload that arrives without one, with org_matter_code_required. client_code is accepted and ignored, because the client is an attribute of the matter, set by a workspace admin.

    It places a credit hold and answers a job_id plus a first page of presigned part URLs:

    {
      "job_id": "job_5e2a91cf4d7b6081a9f3c2e4b5d6a7c8",
      "part_urls": [
        { "n": 1, "url": "https://r2.hushscript.com/uploads/job_5e2a91cf.../part-1?X-Amz-Signature=..." }
      ]
    }

    PUT each part to its URL (32 MiB parts by default, the last one smaller):

    curl -X PUT "https://r2.hushscript.com/uploads/job_5e2a91cf.../part-1?X-Amz-Signature=..." \
      --data-binary @part-01.bin

    Fetch further pages from GET /v1/uploads/{job}/part-urls?start=<n>, and call POST /v1/uploads/{job}/heartbeat well inside the 20 minute idle timeout during a long transfer. When presigned URLs are unavailable, or one part fails, PUT /v1/uploads/{job}/parts/{n} sends that part’s bytes through the API instead; a repeated PUT replaces the part, so retries are safe. Supported: mp3, m4a, mp4 or mov (the audio track is used, video tracks are skipped), wav, flac, ogg, or opus, probed on the server; extract the audio from any other video format before uploading.

  5. Start and wait. POST /v1/uploads/{job}/complete with the n and etag of every part you sent to a presigned URL (omit parts when every part went through the API):

    curl -X POST https://api.hushscript.com/v1/uploads/job_5e2a91cf4d7b6081a9f3c2e4b5d6a7c8/complete \
      -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293" \
      -H "Content-Type: application/json" \
      -d '{
        "parts": [
          { "n": 1, "etag": "\"9f86d081884c7d65\"" }
        ]
      }'

    Then poll GET /v1/jobs/{id}: state moves through uploading, queued, and processing to done or failed, and a finished job carries a transcript_id:

    curl https://api.hushscript.com/v1/jobs/job_5e2a91cf4d7b6081a9f3c2e4b5d6a7c8 \
      -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293"
    {
      "id": "job_5e2a91cf4d7b6081a9f3c2e4b5d6a7c8",
      "state": "done",
      "transcript_id": "trs_2b6e1d4a9f7c3088a1b2c3d4e5f6a7b9"
    }
  6. Read the result. GET /v1/transcripts/{id} returns the metadata and the full body, with speaker names, the detected language, tags, and the auto-delete date:

    curl https://api.hushscript.com/v1/transcripts/trs_2b6e1d4a9f7c3088a1b2c3d4e5f6a7b9 \
      -H "Authorization: Bearer hsr1:eu:pat.7f3a9c.2b6e1d4a9f2c88b1a3d4e5f60718293"

    GET /v1/transcripts pages the list.

Transcription options are the app’s, verbatim: language_code or auto-detection (optionally narrowed with expected_languages and a fallback_language chosen from them), speaker_detection, medical_mode or vet_mode (beta), never both (either needs language_code in en, es, fr, or de, billed at +100%), keep_disfluencies (free), translation_targets (+25% per language, up to 15 of 99 languages, never the source language), multichannel, keyterms_prompt and one_off_keyterms, a free-text prompt and one_off_prompt, and the saved dictionary_ids and prompt_preset_id that GET /v1/transcription-context lists. Key terms, the prompt and keep_disfluencies take effect only in the 33 languages served by the newest speech model; a typed key term or prompt in any other language is refused before any minutes are held.

Some of the account is still MCP-only. Importing from a link, editing or deleting transcripts, Insights, exports, saving dictionaries and prompt presets, and account settings have no /v1/ route yet; the MCP server covers all of them with the same token.

Authentication

Every /v1/ call carries a bearer token in the Authorization header, checked against the same scopes the MCP server uses:

Scope What it allows
transcripts:read Read and export transcripts, their metadata, and the deleted list
transcripts:write Edit, tag, translate, restore, and delete transcripts
transcribe Upload recordings, import from a link, and run transcriptions
insights Read, generate, and delete Insights
context Manage saved dictionaries and prompt presets
account:read Read balance, usage, transactions, and holds
settings:write Change account settings
org:read Read workspace members, ledger, invoices, and audit log
org:write Change member rights, schedule the move to firm (permanent) custody, and place or lift legal holds
export Request a full account export, check its status, and download it
billing Save a card and buy minute packs

A call outside the token’s scopes fails with pat_scope_missing, at 403. The billing scope is also inert unless billing is enabled both on the token and for the account. A billing call with either switch off fails with the same pat_scope_missing; re-minting the token does not turn on the account switch. A token cannot create, list, or revoke tokens, and an account holds at most 25 active ones.

These 11 scopes are caller-selectable. pat:rotate is a separate scope granted to an agent account’s first token and its rotated successors; it lets that token replace itself, not manage other tokens. You cannot select it when creating a token in the app.

Endpoints

The production OpenAPI document lists 38 method/path operations over 37 paths. Each operation below is gated by the scope shown:

Method Path Scope
POST /v1/agent/accounts none
POST /v1/agent/accounts/{signup_id}/claim none
POST /v1/agent/credentials/rotate pat:rotate
GET /v1/account account:read
POST /v1/billing/setup-session billing
GET /v1/billing/cards billing
POST /v1/billing/cards/default billing
GET /v1/billing/packs billing
POST /v1/billing/purchase billing
GET /v1/billing/transactions account:read
GET /v1/billing/ledger account:read
GET /v1/billing/holds account:read
POST /v1/uploads transcribe
GET /v1/uploads/{job}/part-urls transcribe
PUT /v1/uploads/{job}/parts/{n} transcribe
POST /v1/uploads/{job}/heartbeat transcribe
POST /v1/uploads/{job}/complete transcribe
GET /v1/jobs transcribe
GET /v1/jobs/{id} transcribe
GET /v1/transcripts transcripts:read
GET /v1/transcripts/deleted transcripts:read
GET /v1/transcripts/{id} transcripts:read
GET /v1/transcription-context context
GET /v1/org org:read
GET /v1/org/members org:read
PATCH /v1/org/members/{user_id} org:write
GET /v1/org/matters org:read
GET /v1/org/transcripts org:read
POST /v1/org/transcripts/{id}/hold org:write
DELETE /v1/org/transcripts/{id}/hold org:write
POST /v1/org/custody org:write
GET /v1/org/invoices org:read
GET /v1/org/ledger org:read
GET /v1/org/ledger.csv org:read
GET /v1/org/usage org:read
GET /v1/org/usage.csv org:read
GET /v1/org/audit org:read
GET /v1/org/audit.csv org:read

/v1/agent/accounts opens a headless signup with no token yet, /v1/agent/accounts/{signup_id}/claim turns a paid signup into a real account and its first token, and /v1/agent/credentials/rotate mints a successor for the calling token and retires it once the successor is first used, touching no other credential on the account. The Automated usage walkthrough covers all three end to end.

Every list takes a limit and an opaque cursor, and answers a next_cursor that is null on the last page. Pass the cursor back unchanged; it encodes the position, so a page is never skipped or repeated when rows arrive between calls.

The full, current definition, with parameters and response schemas for every operation, is the OpenAPI document: treat it as the source of truth over this table. It is served to any bearer token regardless of scope, so a client can fetch it with the credentials it already holds.

MCP interface

Prefer tools over raw HTTP? The MCP server puts the same account behind 56 tools instead of these endpoints, for a client that already speaks MCP rather than REST. It advertises only the tools the connected token’s scopes allow.

Limits

Requests made with a human account’s token are limited to 1,200 a minute per token. An agent account’s rotated tokens share that budget across the account. Stripe-calling billing routes share a tighter 60 a minute per account for PAT callers: setup session, purchase, default-card changes, card removal, and card-list cache misses. Ordinary throttling answers 429 rate_limited with Retry-After in seconds; wait that long before retrying. Purchases by an agent account or by a human account’s PAT share a cap of 3 attempts per rolling 24 hours per account. The agent’s signup purchase counts; declines or errors after reservation count too. A human browser-session purchase is exempt. A cap refusal answers HTTP 429 with 4038 agent_purchase_capped and Retry-After. Recordings can run from 15 seconds to 10 hours. GET /v1/account reports the account’s current admission limits (max_active_jobs, max_daily_seconds).

Sandbox

There is no general transcription sandbox: ordinary /v1/ calls run against real accounts, and purchases spend real money. The exception is signup validation: POST /v1/agent/accounts accepts dry_run: true, returns a non-claimable dry_ signup id, and opens no Stripe session or account.

Errors

An error is a JSON body carrying a stable numeric code and an error slug, at the HTTP status shown below. /v1/ error bodies are a frozen projection: error, code, and a fixed set of detail keys. /api’s error shape is not frozen and may carry more. The codes an automated caller must handle:

Status Code Slug Meaning
401 2000 unauthorized Missing or invalid bearer token
403 2022 pat_forbidden The route accepts no token at all
403 2023 pat_scope_missing The token lacks the scope this call needs, or billing is off for the account
403 4021 pat_purchase_requires_app No saved card was named, or the charge was declined; nothing was charged
403 4023 pat_purchase_requires_authentication The card issuer wants a challenge the caller cannot complete; the card itself is fine
402 3001 insufficient_balance Not enough balance to admit the job
402 3002 card_declined The saved card was declined
402 3003 org_insufficient_balance The workspace pool funding this upload is short
404 4000 not_found No such job, upload, or resource
409 4001 wrong_state The resource is not in a state that allows this
422 1021 duration_out_of_range The declared duration is under 15 seconds or over 10 hours
429 4038 agent_purchase_capped The account has used its token purchase-attempt allowance; wait for Retry-After
429 5000 rate_limited Too many requests; wait for Retry-After
502 6001 provider_error An upstream service failed
500 9000 internal_error An unexpected server error

The OpenAPI document names the exact code every operation can return, and the MCP server publishes the whole catalog as the hushscript://error-codes resource.

Frequently asked questions

What is the best speech to text API for recorded audio?

It depends on the job. Hushscript's API fits recorded files that you want back as a finished transcript with speaker labels: upload, poll the job, read the result. It is not a live streaming or raw recognition-model endpoint, so an app that needs real-time text needs a different tool.

How do I transcribe audio with the API?

Create a token, call POST /v1/uploads, send the file parts, call POST /v1/uploads/{job}/complete, and poll GET /v1/jobs/{id} until the job is done. Then read the result from GET /v1/transcripts/{id}. An SDK does all of it in one call, for example hs.transcribe("meeting.mp3") in TypeScript.

Is there an open source speech to text API?

The Hushscript API is a hosted service, not open source. The official SDKs and the CLI are MIT-licensed, and their source is on GitHub.

Is Hushscript a cloud speech to text API?

It is a hosted service at api.hushscript.com: your code sends a recorded file and reads back a transcript. It has its own endpoints and is not a Google Cloud (GCP) Speech-to-Text client. Speech recognition runs at AssemblyAI, a listed subprocessor, and audio from the EU, EEA, Switzerland and the UK is processed in the EU.

Can I use it as a legal speech to text API?

Law firms and legal teams can use the same API through a Hushscript for Teams workspace. A workspace token can attach a matter code to each upload, and the org scopes read the audit log and ledger and place or lift legal holds. Hushscript does not offer human proofreading or promise court-ready accuracy.

Start transcribing with 30 free minutes

Preview up to 5 minutes before you create an account, and a new personal account gets a free preview of its first upload in the app. Full transcription needs an account and minutes; eligible personal accounts get 30 free minutes once, after card verification or with a first purchase. Personal accounts have no subscription.

Get 30 free minutes