Introduction
The Speechify API is a RESTful service at https://api.speechify.ai. All requests require an API key in the Authorization header.
For raw HTTP integrations, also send a dated API version header:
The official SDKs send their build-date version automatically. See API Versioning for the resolution order and deprecation policy.
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 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:
Every non-2xx response uses the same JSON envelope:
Check error.code in your SDK exception handler — it is a stable, machine-readable identifier you can branch your error handling on. error.message is human-friendly and may change between releases. error.fields (omitted unless relevant) carries per-field validation errors as path → message. request_id echoes the X-Request-ID response header; quote it when filing support tickets.