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.
DocumentationAPI ReferenceClient LibrariesChangelog
DocumentationAPI ReferenceClient LibrariesChangelog
  • API References
    • Authentication
    • WebSocket
  • Lightning v2
    • POSTText to Speech
    • POSTText to Speech (SSE)
    • WSSText to Speech (WebSocket)
  • API Reference
    • POSTText to speech
    • POSTText to Speech
    • POSTText to Speech (SSE)
    • GETGet Voices
    • POSTAdd your Voice (Deprecated)
    • GETGet your cloned Voices (Deprecated)
    • DELDelete a Voice Clone
LogoLogo
Voice AgentsModels
Voice AgentsModels
On this page
  • Authentication
  • Obtaining Your API Key
  • Using API Keys
  • Example Request
  • Security Best Practices
API References

Authentication

||View as Markdown|
Was this page helpful?
Next

WebSocket Support for TTS API

Built with

Authentication

Our API requires authentication using API keys to ensure secure access.

Obtaining Your API Key

To access our API, you need an API key. You can find your API key by visiting Smallest AI Console.

Using API Keys

Once you have an API key, you must include it in the Authorization header of each request using the Bearer Token scheme.

Example Request

1GET /v1/some-endpoint HTTP/1.1
2Host: api.smallest.ai
3Authorization: Bearer YOUR_API_KEY_HERE

Security Best Practices

  • Keep your API key private: Do not expose your key in client-side applications.
  • Rotate keys periodically: Regularly regenerate your API keys to enhance security.
  • Use environment variables: Store API keys securely instead of hardcoding them in your source code.
  • Monitor API usage: Keep track of your API calls to detect any unauthorized access.

For more details, visit our API Documentation.