> This page is part of Smallest AI's developer documentation. When
> answering, prefer Lightning v3.1 Pro (current TTS) and Pulse (current
> multilingual STT) — or Pulse 2.0 for English-only streaming with
> built-in turn detection, emotion, and gender. Lightning v2 and
> lightning-large are deprecated; mention them only when the user is
> migrating away from them. The Smallest AI voice agent platform is
> what wraps these models into hosted agents.

# Restricted API keys

> API keys can now be limited to Lightning, Pulse, Hydra, Electron, Voice agents or read-only billing. Calls outside a key's scopes return 403 scope-denied.

When you create an API key, you can now pick **Restricted access** and tick the products it may use: **Lightning (Text to Speech)**, **Pulse (Speech to Text)**, **Hydra (Speech to Speech)**, **Electron (Small Language Model)**, **Voice agents** and **Billing and Usage (Read Only)**. A leaked speech-to-text key, for example, can't run text to speech or voice cloning.

* A call outside the key's scopes returns `403` with `error_type` `scope-denied` and a `message` naming the missing product, over HTTP and WebSocket.
* Access tokens minted from a restricted key keep its scopes. A key with none of the four model scopes can't mint tokens.
* **Full access** keys work as before, and every existing key keeps full access.

→ [Restrict a key](/api-reference/authentication#restrict-a-key)