Quickstart

View as Markdown

Step 1: Get Your API Key

In the Smallest AI Console, go to Settings -> API Keys and click Create API Key.

API Keys settings page with Create API Key button highlighted Create New API Key dialog with name field

Copy the key and export it:

$export SMALLEST_API_KEY="your-api-key-here"
New to Smallest AI? Sign up here first.

Step 2: Transcribe Audio

Here’s the sample audio we’ll transcribe:

Paste this cURL — no install required:

$curl -X POST "https://api.smallest.ai/waves/v1/pulse/get_text?language=en" \
> -H "Authorization: Bearer $SMALLEST_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{"url": "https://github.com/smallest-inc/cookbook/raw/main/speech-to-text/getting-started/samples/audio.wav"}'

You’ll get back:

1{
2 "transcription": "This is a sample audio file for testing speech to text transcription with the Pulse API."
3}

Step 3: Build It Into Your App

$curl -X POST "https://api.smallest.ai/waves/v1/pulse/get_text?language=en" \
> -H "Authorization: Bearer $SMALLEST_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{"url":"https://github.com/smallest-inc/cookbook/raw/main/speech-to-text/getting-started/samples/audio.wav"}'

Full runnable source files: Python | JavaScript | cURL

Step 4: Explore Features

Full endpoint spec: Pulse API Reference

Need Help?

Or email support@smallest.ai.