Source: https://ailoot.ai/models/en/glm-tts/
Canonical: https://ailoot.ai/models/en/glm-tts/
Language: en

# glm-tts

[Markdown](https://ailoot.ai/models/en/glm-tts/index.md) · [JSON](https://ailoot.ai/models/en/glm-tts/facts.json)

## [glm-tts](https://ailoot.ai/models/en/glm-tts/)

GLM-TTS converts a supplied script into spoken audio. The glm-tts profile uses the Audio Speech method with an explicit voice and WAV output, making it suitable for short narration, spoken instructions and message playback. Prepare the text within its documented 1,024-character input limit.

- [**Ailoot Ultra · Speech** `POST /v1/audio/speech` `glm-tts`](https://ailoot.ai/models/en/glm-tts/#method-0)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

GLM-TTS is Zhipu’s speech-synthesis model selected with the exact ID glm-tts. Send POST /v1/audio/speech with model, input and voice. Put the words to be spoken directly in input, and select response\_format=wav for this profile. The result is a spoken recording of the supplied script, suitable for playback or for importing into an audio or video editor.

Use it for a short product explanation, a spoken welcome, an instructional passage or an announcement. Prepare a script as it should be read aloud: include the intended sentence breaks and spell out terms whose pronunciation matters to the task. For a tutorial, one request can contain a focused instruction that accompanies a single visible step. For a welcome message, supply the actual wording and review the recording before placing it in the customer flow.

The documented maximum input length is 1,024 characters. Work from the finished text when checking this limit, including punctuation and spacing. Longer narration needs a script divided into suitable passages; keep the order of the passages and the chosen settings with the recordings so they can be assembled and reviewed together. A character limit describes the input text and does not establish a fixed recording duration.

The voice schema lists tongtong, chuichui, jam, kazi, douji and luodo. The published example uses tongtong with speed=1 and volume=1. Both speed and volume are optional controls with a documented default of 1. For this WAV method, speed is an integer accepting 1 or 2, and volume is an integer from 1 to 10. The optional watermark\_enabled boolean controls the audio watermark. Leave stream unset or set it to false to receive the complete WAV recording. Start from that explicit example when preparing a first recording, then keep the selected voice and accepted settings consistent across related passages.

The WAV recording is the finished output of the speech request. Retain the complete audio result and its response information, then listen through the entire passage for pronunciation, wording, pauses and the intended sequence. Keep the exact source script beside the recording when preparing revisions. If a request has an uncertain outcome, preserve its original request and returned result information before creating another synthesis request; a missing playback file by itself does not establish that no recording was created.

**Ailoot Ultra · Speech** `POST /v1/audio/speech` `glm-tts`

[`glm-tts`](https://ailoot.ai/models/en/#m=glm-tts&route=Ultra&caller=glm-tts&fmt=speech)

ZHIPU /`glm-tts`

### Overview

GLM-TTS converts a supplied script into spoken audio. The glm-tts profile uses the Audio Speech method with an explicit voice and WAV output, making it suitable for short narration, spoken instructions and message playback. Prepare the text within its documented 1,024-character input limit.

Accepted inputs

Text

Results

Audio

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Speech** `POST /v1/audio/speech`

Input types

`text`

Output types

`audio`

Output format

wav

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits glm-tts | Default— |
| Field`input` | Type`string` | RequirementRequired | Values & limits | Default— |
| Field`voice` | Type`string` | RequirementRequired | Values & limits tongtong, chuichui, jam, kazi, douji, luodo | Default— |
| Field`response_format` | Type`string` | RequirementRequired | Values & limits wav | Default— |
| Field`encode_format` | Type`string` | RequirementOptional | Values & limits base64, hex | Default— |
| Field`speed` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 Maximum: 2 | Default1 |
| Field`volume` | Type`integer` | RequirementOptional | Values & limits Minimum: 1 Maximum: 10 | Default1 |
| Field`watermark_enabled` | Type`boolean` | RequirementOptional | Values & limits | Default— |
| Field`stream` | Type`boolean` | RequirementOptional | Values & limits false | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, input, voice, response\_format |
| Parameter`optional` | Contractencode\_format, speed, volume, watermark\_enabled, stream |
| Parameter`material_types` | Contracttext |
| Parameter`conditions` | ContractUse direct WAV output. speed and volume are positive integers within the listed bounds. stream is false or omitted. |

Lifecycle: `synchronous_result_then_owned_library`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

### Pricing

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Not specified When fast mode is selected

Flex mode

Not specified When flex mode is selected

Maximum reasoning effort

Not specified When maximum reasoning effort uses the default adjustment

#### Ailoot rates

#### Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

| Configuration | Rate schedule | Billing quantity | Billing unit | Charge |
| --- | --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Billing quantity— | Billing unit— | Charge Input · Input tokens **—** / 1K tokens Output · Output tokens **—** / 1K tokens Input · Cache read **—** / 1K tokens Input · Cache write **—** / 1K tokens Input · Cache write, 1 hour **—** / 1K tokens |
| Configurationinput character | Rate schedule— | Billing quantity— | Billing unitper input character | Charge Input · input character **$0.00006** per input character |
| ConfigurationPer request | Rate schedule— | Billing quantityone request | Billing unit— | Charge Input **$0** per request |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Speech

curl · create once and retain the complete result

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "glm-tts", "input": "Hello, this is a short speech example.", "voice": "tongtong", "response_format": "wav"}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/audio/speech \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

### Receive and save results

#### Ailoot Ultra · Speech

wav

- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

##### Keep all completed results

Keep every complete returned response, file and content part.

Retain the complete binary WAV, response headers and original request identity.

##### If the original response needs checking

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

### Aliases

#### Model aliases

**Ailoot Ultra** [`glm-tts`](https://ailoot.ai/models/en/#m=glm-tts&route=Ultra&caller=glm-tts&fmt=speech)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`glm-tts`](https://ailoot.ai/models/en/#m=glm-tts&route=Ultra&caller=glm-tts&fmt=speech)

FAQ · glm-tts

What inputs and results are available?

`POST /v1/audio/speech` · `glm-tts`: `text` → `audio`

Which fields does the request use?

`POST /v1/audio/speech` · `glm-tts`: `model`, `input`, `voice`, `response_format`, `encode_format`, `speed`, `volume`, `watermark_enabled`, `stream`

What limits apply?

`POST /v1/audio/speech` · `glm-tts`: `speed.minimum`: `1`; `speed.maximum`: `2`; `volume.minimum`: `1`; `volume.maximum`: `10`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
