Introduction

The Speechify API is a RESTful service at https://api.sws.speechify.com. All requests require an API key in the Authorization header.

Authorization: Bearer YOUR_API_KEY

Install an official SDK to get started:

$pip install speechify-api
1from speechify import Speechify
2
3client = Speechify() # uses SPEECHIFY_API_KEY env var

Set the SPEECHIFY_API_KEY environment variable and the SDKs authenticate automatically.

Response format

All non-streaming endpoints return JSON. Audio data is base64-encoded in the audio_data field. The streaming endpoint returns raw audio chunks via HTTP chunked transfer encoding.

Errors

The API uses standard HTTP status codes:

StatusMeaning
400Invalid request parameters
401Missing or invalid API key
402Insufficient account balance
429Rate or concurrency limit exceeded
500Server error

Error responses include a JSON body with an error field describing the issue.