Skip to navigation

Official SDKs

Client libraries for TTS and voices
Install the Speechify SDK
Install the official Speechify SDK for my project’s language, wire up `SPEECHIFY_API_KEY`, and write one working call that proves the setup works. Follow [https://docs.speechify.ai/build/guides/get-started/official-sdks.md](https://docs.speechify.ai/build/guides/get-started/official-sdks.md).

Python

pip install speechify-api

TypeScript / JavaScript

npm install @speechify/api

The old @speechify/api-sdk package is deprecated. See the changelog to upgrade.

Make a request

After installing, call a TTS endpoint. The SDKs read SPEECHIFY_API_KEY from the environment automatically. Not using an SDK? The cURL tab shows the equivalent raw HTTP request.

POST
/v1/audio/speech
from speechify import Speechify
client = Speechify(
token="YOUR_TOKEN_HERE",
)
client.audio.speech(
audio_format="mp3",
input="Hello! This is the Speechify text-to-speech API.",
model="simba-3.2",
voice_id="geffen_32",
)

The SDKs also send a build-date Speechify-Version header by default. Raw HTTP callers can send the same header when they need to pin a dated response shape; see API Versioning.

See the API Reference for all public Build endpoints.

Environment variables

Both SDKs read the SPEECHIFY_API_KEY environment variable automatically:

export SPEECHIFY_API_KEY="your-api-key-here"

You can also pass the key explicitly when creating the client. See the Authentication guide for security best practices.