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
curl -X POST https://api.speechify.ai/v1/audio/speech \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"input": "Hello! This is the Speechify text-to-speech API.",
"voice_id": "geffen_32",
"audio_format": "mp3",
"model": "simba-3.2"
}'

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.