---
title: "Text2Speech"
method: POST
path: "/text2speech"
tags: ["Text2Audio"]
---

# Text2Speech

`POST /text2speech`

The *Text2Speech* service helps generate an audio based on the text introduced as input by the user. The audio will speak the text provided.

## Request body

- object
  - `text` string, required — The text to speak. Up to 5000 characters.
  - `language` 'en' | 'fr' — The language to speak.
  - `model` 'urn:air:openai:model:openai:tts-1@1' | 'urn:air:elevenlabs:model:elevenlabs:eleven-v3@1' | 'urn:air:async:model:async:async-flash-v1.0@1', nullable — Optionally choose a specific AI model to use for this audio generation. If not specified, a default model will be applied. Please note that the default model may change over time as Picsart continues to improve performance and accuracy. Any change to the default will be made only after thorough testing and validation to ensure it delivers better results. If you require consistent behavior or wish to evaluate different models on your own, we recommend explicitly setting this parameter.
  - `voice` string, nullable — Voice for speech synthesis. Considering different models have different voices and that list changes over time, the list of supported voices is not provided here. Please go ahead to check for available voices on each provider's website. When not provided, the following default voices will be applied: * OpenAI > alloy * Eevenlabs > Rachel * Async > nyomi

## Response `202`

Accepted.

- object
  - `status` 'success' | 'error' | 'processing'
  - `inference_id` string, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `413` — Request Entity Too Large
- `415` — Unsupported Media Type
- `429` — Too Many Requests
- `431` — Request Header Fields Too Large
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/picsart/apis/picsart-programmable-image-apis.md) · [All operations](https://skmtc.net/picsart/apis/picsart-programmable-image-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/picsart/picsart-programmable-image-apis/revisions/726b2a637ae8/schema)
