For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ExamplesConsole
OverviewText to SpeechAPI ReferenceChangelog
OverviewText to SpeechAPI ReferenceChangelog
  • API Reference
    • Introduction
    • Authentication
  • Text to Speech
LogoLogo
ExamplesConsole
On this page
  • API Keys
  • Making Requests

Authentication

Every API request requires an API key.
Was this page helpful?
Previous

Create Speech

Next
Built with

API Keys

To authenticate with the Speechify API, include your API key in the Authorization header of every request:

Authorization: Bearer YOUR_API_KEY

You can create and manage API keys in the Speechify Console.

Your API key is sensitive. Do not share it with others or expose it in any client-side code (browsers, apps). If you suspect a key has been compromised, revoke it immediately in the Console and create a new one.

Making Requests

cURL
Python
TypeScript
$curl https://api.speechify.ai/v1/voices \
> -H "Authorization: Bearer $SPEECHIFY_API_KEY"

Set the SPEECHIFY_API_KEY environment variable and the SDKs authenticate automatically — no need to pass the key in code.