All models

TTS-1 HD

openai/tts-1-hd
OpenAI TTSSpeech SynthesisHigh Quality

OpenAI's high-definition text-to-speech model producing higher quality audio output.

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-hd",
    "text": <string>
  }'

# 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-hd", "text": "<string>"}'

Examples

Parameters

Input
response_format string required

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

speed number required

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

text string required

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

voice string required

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

Output
audio: URL to the generated audio file