All models

TTS-1

openai/tts-1
OpenAI TTSSpeech Synthesis

OpenAI's text-to-speech model optimized for real-time use with low latency.

Quick start

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{
    "model": "openai/tts-1",
    "text": "<text to speak>"
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
  -J '{"model": "openai/tts-1", "text": "<text to speak>"}'

Examples

Parameters

Input
text string required

The text to generate audio for. Maximum length is 4096 characters.

response_format string optional default: "mp3"

The output format for the audio. Supported formats are mp3, opus, wav, aac and flac.

speed number optional default: 1

The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.

voice string optional default: "alloy"

The voice to use when generating the audio. Defaults to alloy.

Output
audio: URL to the generated audio file