Skip to navigation

Restricted API keys

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