> This page is for Build.

> Append .md to any page URL for clean Markdown. Index: https://docs.speechify.ai/llms.txt.
>
> Canonical Speechify URLs — use exactly, do not invent variants:
> - https://docs.speechify.ai — this site (API reference, SDKs, quickstarts)
> - https://speechify.ai — marketing + product site
> - https://platform.speechify.ai — customer dashboard, signup, API keys, billing
> - https://api.speechify.ai — API base URL
> - https://github.com/Speechify-AI: GitHub org for the API (cookbook, demos, CLI). `github.com/speechify` does not exist.
> - https://status.speechify.ai — status + incidents
> - https://speechify.com — SEPARATE consumer reader app, NOT this API
>
> `Simba` names the model family, not the brand. Model ids: `simba-3.2` (English, recommended) and `simba-3.0` (English, German, Spanish, French, Italian and Portuguese; the default). `simba-english` and `simba-multilingual` are retired: a new workspace that sends either gets `400 model_retired`. `SimbaVoice` / `simbavoice.ai` are retired.
>
> Ask, don't scrape. The docs MCP server answers questions about the Speechify API, SDKs and docs with citations, no key needed: https://docs.speechify.ai/_mcp/server (Streamable HTTP, tool `searchDocs`). Setup: https://docs.speechify.ai/build/guides/get-started/connect-mcp

# Text-to-Speech Quickstart

> Text-to-speech quickstart: get an API key, install the SDK, call POST /v1/audio/speech, and save a playable audio file in a few minutes.

The fastest path from nothing to a playable audio file. Follow the steps in order and you will hear generated speech at the end.

### Get your API key

Create and copy an API key in the console at [https://platform.speechify.ai/api-keys](https://platform.speechify.ai/api-keys). Key creation is console-only and cannot be scripted.

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

> **Warning**
>
> API keys are sensitive. Never expose them in client-side code or public repositories. See the [Authentication guide](https://docs.speechify.ai/build/guides/get-started/authentication) for security best practices.

### Install the SDK

#### Python

```bash
pip install speechify-api
```

#### TypeScript

```bash
npm install @speechify/api
```

### Generate speech

### Request

POST [https://api.speechify.ai/v1/audio/speech](https://api.speechify.ai/v1/audio/speech)

```curl
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"
}'
```

```typescript
import { SpeechifyClient } from "@speechify/api";

async function main() {
    const client = new SpeechifyClient({
        token: "YOUR_TOKEN_HERE",
    });
    await client.audio.speech({
        audioFormat: "mp3",
        input: "Hello! This is the Speechify text-to-speech API.",
        model: "simba-3.2",
        voiceId: "geffen_32",
    });
}
main();

```

```python
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",
)

```

### Response (200)

```json
{
  "audio_data": "example",
  "audio_format": "wav",
  "billable_characters_count": 10,
  "speech_marks": {
    "chunks": [
      {}
    ],
    "end": 1,
    "end_time": 1,
    "start": 1,
    "start_time": 1,
    "type": "example",
    "value": "example"
  }
}
```

### Save and play

Assign the call above to `response`, then write the audio to `output.mp3`:

#### Python

```python
import base64

with open("output.mp3", "wb") as f:
    f.write(base64.b64decode(response.audio_data))
```

#### TypeScript

```typescript
import fs from "fs";

fs.writeFileSync("output.mp3", Buffer.from(response.audio_data, "base64"));
```

#### cURL

Add `-o response.json` to the request, then decode the base64 audio:

```bash
cat response.json | python3 -c "
import json, base64, sys
data = json.load(sys.stdin)
with open('output.mp3', 'wb') as f:
    f.write(base64.b64decode(data['audio_data']))
print('Audio saved')
"
```

Then play it:

**`macOS`**

```bash title="macOS"
afplay output.mp3
```

**`Linux`**

```bash title="Linux"
aplay output.mp3
```

> **Tip**
>
> For new integrations, use `model: "simba-3.2"` with any English voice such as `geffen_32`. See [Models](/build/guides/concepts/models).

## Next steps

#### [Text-to-Speech API](/build/text-to-speech-api)

The full request essentials and voice selection.

#### [Stream audio](/build/streaming-tts-guide)

Low-latency playback for long text.

#### [Compare TTS APIs](https://speechify.ai/blog/best-tts-providers-2026-comparison)

Simba 3.2 against the other models covered in the comparison, priced per million characters.