---
title: "Text To Speech Stream"
method: POST
path: "/v1/text-to-speech/{voice_id}/stream"
tags: ["Text to Speech"]
---

# Text To Speech Stream

`POST /v1/text-to-speech/{voice_id}/stream`

## Path parameters

- `voice_id` string, required

## Query parameters

- `output_format` string, nullable

## Headers

- `xi-api-key` string, nullable
- `x-api-key` string, nullable

## Request body

- ElevenLabsTextToSpeechIn
  - `text` string, required — Text to convert to speech
  - `model_id` string — Model ID to use for the conversion
  - `output_format` 'mp3' | 'opus' | 'flac' | 'wav' | 'pcm' — Select the desired format for the speech output. Supported formats include mp3, opus, flac, wav, and pcm.
  - `language_code` string, nullable — ISO 639-1, 2 letter language code

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/deepinfra/apis/deepinfra-api.md) · [All operations](https://skmtc.net/deepinfra/apis/deepinfra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepinfra/deepinfra-api/versions/51b817b3f80f/schema)
