---
title: "Text To Speech"
method: POST
path: "/text-to-speech"
tags: ["generate"]
---

# Text To Speech

`POST /text-to-speech`

Generate a text-to-speech audio file based on the provided text input and speaker description.

## Request body

- TextToSpeechParams
  - `model_id` string, required — Hugging Face model ID used for text to speech generation.
  - `text` string — Text input for speech generation.
  - `description` string — Description of speaker to steer text to speech generation.

## Response `200`

Successful Response

- AudioResponse — Response model for audio generation.
  - `audio` MediaURL, required — A URL from which media can be accessed.
    - `url` string, required — The URL where the media can be accessed.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Validation Error
- `500` — Internal Server Error

## Changes

- **2025-12-13** `0dfb43d02786` — 4 breaking, 8 info
  - the `audio` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - the `detail` response's property type/format changed from ``/`` to `object`/`` for status `400`
  - the `detail` response's property type/format changed from ``/`` to `object`/`` for status `401`
  - the `detail` response's property type/format changed from ``/`` to `object`/`` for status `500`
  - …8 more
- **2025-10-30** `0e0e976fd9e0` — 8 breaking, 4 info
  - the `audio` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - the `detail` response's property type/format changed from `object`/`` to ``/`` for status `400`
  - the `detail` response's property type/format changed from `object`/`` to ``/`` for status `401`
  - the `detail` response's property type/format changed from `object`/`` to ``/`` for status `500`
  - …8 more
- **2025-10-30** `0dfb43d02786` — 4 breaking, 8 info
  - the `audio` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - the `detail` response's property type/format changed from ``/`` to `object`/`` for status `400`
  - the `detail` response's property type/format changed from ``/`` to `object`/`` for status `401`
  - the `detail` response's property type/format changed from ``/`` to `object`/`` for status `500`
  - …8 more
- …earlier changes not shown

[Full history](https://skmtc.dev/livepeer/apis/livepeer-ai-runner/changes/text-to-speech/post.md)

---

[API](https://skmtc.dev/livepeer/apis/livepeer-ai-runner.md) · [All operations](https://skmtc.dev/livepeer/apis/livepeer-ai-runner/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/livepeer/livepeer-ai-runner/revisions/d6ba118ca5e0/schema)
