All API requests require a valid API key in the Authorization header:
Without this header, requests return 401 Unauthorized.
Set the SPEECHIFY_API_KEY environment variable and our SDKs will authenticate automatically — no need to pass the key in code.
API keys grant full access to your account, including creating/deleting voices and generating audio at your expense. Treat them like passwords.
.env to your .gitignoreIf your frontend needs to call the API, set up a server-side proxy instead of exposing the key:
Always authenticate your own users before proxying requests. An open proxy allows anyone to make API calls at your expense.
Key considerations:
Access Tokens were previously available for client-side authentication via the POST /v1/auth/token endpoint. This method is now deprecated.
All applications should use API keys with a server-side proxy pattern instead. If you’re currently using Access Tokens, migrate to API keys at your earliest convenience.