---
title: Advanced Text to Speech API
slug: audio-text-speech
url: https://apyhub.com/llmapi-gateway/service/audio-text-speech
provider: LLMAPI
categories: [Audio Processing, Smart Generation]
tags: [text-to-speech, voice-models, voice-generation]
auth: api_key
---

# Advanced Text to Speech API

Create speech from text and list the available audio models. Compare TTS and STT capabilities, limits, pricing, and supported output formats.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/llmapi-gateway/audio-text-speech/audio-models` | What it does Returns the available audio models grouped into speech-to-text (stt) and text-to-speec… | 10 |
| POST | `https://api.eu.apyhub.com/llmapi-gateway/audio-text-speech/v1/audio/speech` | What it does Creates synthesized speech from the provided text input and returns the generated audi… | 10 |

## Examples

### List audio models

#### Quickstart

List the available audio models with a simple authenticated GET request.

```bash
curl -X GET "https://api.eu.apyhub.com/llmapi-gateway/audio-text-speech/audio-models" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object with two array fields: `stt` for speech-to-text models and `tts` for text-to-speech models. Each array item is an object with the model details declared in the schema.

```json
{
  "stt": [],
  "tts": []
}
```

### Create speech

#### Quickstart

Generate speech audio from a text prompt and save the returned file.

```bash
curl -X POST "https://api.eu.apyhub.com/llmapi-gateway/audio-text-speech/v1/audio/speech" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Hello, this is a quick test of text to speech.",
    "model": "eleven_multilingual_v2",
    "voice": "Rachel"
  }'
```

#### What you'll get back

Returns a file response, not JSON. The response body is the generated audio stream for the requested speech output.

## About

## What it does
Audio Generation lets you create speech from text and inspect the available audio models for text-to-speech and speech-to-text workflows. Send a text `input` in the speech endpoint, optionally set `model`, `speed`, `voice`, `language`, `stability`, `instructions`, `response_format`, and `similarity_boost`, and get back an audio file.

Use it when you need spoken output for product walkthroughs, accessibility features, voice notifications, or localized content. The model listing endpoint returns `stt` and `tts` arrays so you can compare providers and capabilities before you generate or process audio.

For STT models, the response includes fields such as `id`, `name`, `provider`, `releasedAt`, `maxDurationS`, `maxFileSizeB`, `pricePer1Min`, and `supportedLanguages`, plus streaming details when available. For TTS models, you get `id`, `name`, `provider`, `speedMin`, `speedMax`, `latencyMs`, `releasedAt`, `maxCharacters`, `pricePer1KChar`, and `supportedFormats`. That makes Audio Generation useful both for runtime speech creation and for selecting the right model for your application.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/llmapi-gateway/service/audio-text-speech
