Authentication
Every request to the Smallest AI API requires an API key in the Authorization header.
Create your API key
Create a new key
Click Create API Key in the top-right corner, enter a name (e.g., my-tts-app), and click Create API Key to confirm.


Test your key
Confirm the key works by hitting two endpoints — one for TTS, one for STT — directly from your terminal. No install required.
Generate speech (Lightning TTS)
Play hello.wav — you should hear the generated audio.
Transcribe audio (Pulse STT)
You’ll get back:
Use your key in code
Include the Authorization: Bearer YOUR_API_KEY header on every request.
Security
Your API key is a secret. Never expose it in client-side code, public repositories, or browser applications.
- Store keys in environment variables, not in source code
- Use
.envfiles locally and add.envto.gitignore - Rotate keys periodically from the API Keys page
- Each key tracks usage against your account quota — see Concurrency and Limits
Error responses
For rate limits and concurrency, see Concurrency and Limits.



