Skip to navigation

Speech to Text API Quickstart: Transcribe in 60 Seconds

Transcribe your first audio file in under 60 seconds with Pulse Pro.
View as Markdown

Step 1: Get Your API Key

No account yet? Sign up first, then come back here.

Open the API Keys page in the Smallest AI console.

Smallest AI console with Models selected and API Keys listed under Developer in the sidebar

Click Create API Key in the top-right corner, enter a name, keep Full access, and click Create API key to confirm.

API Keys page with the Create API Key button and the Access column Create API Key dialog with the name my-tts-app and Access set to Full access

The API Key Created dialog shows your key once. Click the copy icon to copy it, then Done.

API Key Created dialog with the key (blurred here), its Access line, the copy icon and the Store this key securely warning

Export the key in your terminal:

export SMALLEST_API_KEY="your-api-key-here"

Step 2: Transcribe Audio

Here’s the sample audio we’ll transcribe:

Paste this cURL (no install required). It downloads the sample and pipes it into Pulse Pro as raw bytes:

curl -sL "https://github.com/smallest-inc/cookbook/raw/main/speech-to-text/getting-started/samples/audio.wav" | \
curl -X POST "https://api.smallest.ai/waves/v1/stt/?model=pulse-pro&language=en" \
-H "Authorization: Bearer $SMALLEST_API_KEY" \
-H "Content-Type: application/octet-stream" \
--data-binary @-

You’ll get back:

{
"status": "success",
"transcription": "This is a sample audio file for testing speech-to-text transcription with the Pulse API.",
"language": "en",
"metadata": { "duration": 5.6, "processing_time_ms": 109.58, "rtfx": 51.1, "num_chunks": 1 },
"request_id": "354c932b-3c3a-473c-a6e7-fd497ba10d96"
}

This quickstart uses Pulse Pro, our leaderboard-ranked English model. If you need multilingual transcription (21 streaming + 12 pre-recorded languages) or streaming, swap ?model=pulse-pro for ?model=pulse. See the Pulse model card for the full language list.

Step 3: Build It Into Your App

The snippets below use Pulse Pro (?model=pulse-pro). For multilingual audio, swap to ?model=pulse and set the appropriate language code. Both models share the same /waves/v1/stt/ endpoint and request shape.

curl -sL "https://github.com/smallest-inc/cookbook/raw/main/speech-to-text/getting-started/samples/audio.wav" | \
curl -X POST "https://api.smallest.ai/waves/v1/stt/?model=pulse-pro&language=en" \
-H "Authorization: Bearer $SMALLEST_API_KEY" \
-H "Content-Type: application/octet-stream" \
--data-binary @-

For Pulse Pro, language must be en. For Pulse, set language to the known code (en, hi, es, etc.) for best accuracy, or use a regional aggregator for unknown audio. Aggregators differ by mode: pre-recorded supports multi-eu and multi-asian; streaming supports north_indic, multi-asian (US region only, contact sales for India), and multi-south-indic (India region only). See the Pulse model card for the full per-mode language matrix.

For browser or mobile clients, keep the API key on your server and mint a short-lived access token for the client.

Full runnable source files: Python | JavaScript | cURL

Step 4: Explore Features

Full endpoint spec: Pulse API Reference

Need Help?

Or email support@smallest.ai.