> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apia1.com/llms.txt
> Use this file to discover all available pages before exploring further.

# POST Audio Speech

> Text-to-Speech

# POST Audio Speech

**POST `/v1/audio/speech`**

Text-to-Speech.

## Авторизация

```http theme={null}
Authorization: Bearer <A1_API_KEY>
```

## Параметры

`model`, `input`, `voice`; дополнительно output format и speed, если поддерживаются.

## Пример

```bash theme={null}
curl -X POST "https://apia1.com/api/v1/audio/speech" -H "Authorization: Bearer <A1_API_KEY>" -H "Content-Type: application/json" -d '{"model":"<MODEL_ID>","input":"Привет","voice":"<VOICE_ID>"}' --output speech.mp3
```

## Ошибки

`400` — неверный запрос; `401` — auth; `403` — права; `404` — объект не найден; `429` — лимит; `5xx` — временная ошибка сервиса/provider.
