Introduction
Base URL, authentication, response formats, and error codes for the Speechify API
The Speechify API is a RESTful service at https://api.speechify.ai. All requests require an API key in the Authorization header.
Install an official SDK to get started:
Python
TypeScript
Python
TypeScript
Set the SPEECHIFY_API_KEY environment variable and the SDKs authenticate automatically.
Example request
A minimal text-to-speech call. The request and response below are generated from the API specification, so they stay in sync with the live endpoint.
Response
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:
Error responses include a JSON body with an error field describing the issue.