# tokenflow-tts-1

Generate speech from text using preset or described voices.

- Type: Text to speech
- Price: $1.00 / audio hour. Published reference prices in USD; your customer agreement governs fees and payment terms.
- Input: Up to 4,000 characters / request
- Default organization cap: 20 billed hours / month
- Endpoints: POST https://api.tokenflow.dev/v1/audio/speech

## Parameters and limits

- Input text: Up to 4,000 characters
- Voice description: Up to 200 characters; use voice or instructions, never both
- Voices: 14 published voices; see Voices below
- Output: MP3 by default; opus, aac, flac, wav or pcm (24 kHz 16-bit). Streaming: pcm or opus
- Request size: 64 KiB
- Voice cloning: Cloning from your own recordings is not offered

## Pricing and usage

- $1.00 / audio hour
- We bill the audio we send you, by the 0.1 s. A request that completes is billed at least 1 second, held between two-thirds and twice what the text should take to say, so slow or silent output never costs more than double. A stream you stop is billed for the audio already sent, with no minimum. If our node drops the stream, or you disconnect while a whole file is being sent, the request is free; so are failed requests and empty audio. Voice instructions make no audio and cost nothing.
- Default organization cap: 20 billed hours / month
- Published reference prices in USD. Your customer agreement governs fees and payment terms.

## Voices

- Chinese: `zh-female-calm` (calm female preset); `zh-male-warm` (warm male preset); `zh-sunwukong` (Sun Wukong, licensed recording)
- English: `en-female-clear` (clear female preset)
- English (US): `en-female-warm-us` (warm, gentle female, designed voice); `en-female-sweet-us` (sweet, playful female, designed voice); `en-female-mature-us` (rich, mature female, designed voice); `en-female-bedtime-us` (hushed, soft-spoken female, designed voice)
- English (US South): `en-female-southern-us` (soft drawl female, designed voice)
- English (UK): `en-female-soft-uk` (calm, soothing female, designed voice)
- English (UK, RP): `en-female-posh-uk` (crisp, elegant female, designed voice)
- English (Irish): `en-female-lilt-ie` (lilting, lively female, designed voice)
- English (Australian): `en-female-bright-au` (bright, cheerful female, designed voice); `en-female-mellow-au` (low, mellow female, designed voice)

## Disclosure

Speech from this model is AI-generated. Tell your listeners so, and keep the origin label in the audio files you pass on. If a shared voice answers 503, use one of the preset voices instead. See https://tokenflow.dev/speech and https://tokenflow.dev/terms.

## Example

```sh
curl --fail-with-body 'https://api.tokenflow.dev/v1/audio/speech' \
  -H "Authorization: Bearer $TOKENFLOW_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "tokenflow-tts-1",
  "input": "你好，欢迎使用语音服务。",
  "voice": "zh-female-calm"
}' \
  --output speech.mp3
```

## Live state (not in this file)

- Performance: https://api.tokenflow.dev/v1/public/models (entry `tokenflow-tts-1`, kind `tts`)
- Status and contract: https://api.tokenflow.dev/v1/public/capabilities/tokenflow-tts-1
- Your organization's access and quota: https://api.tokenflow.dev/v1/capabilities/tokenflow-tts-1 (inference API key)

Human page: https://tokenflow.dev/models/tokenflow-tts-1 · Agent guide: https://tokenflow.dev/agent-guide.md
