Skip to main content
POST
Text-to-Speech

Request

string
required
Authorization: Bearer nb_YOUR_API_KEY
string
required
TTS model slug:
  • minimax-tts — Free, Chinese/English, very natural
  • openai-tts — OpenAI standard voices
  • openai-tts-hd — OpenAI HD quality voices
  • gpt-4o-mini-tts — GPT-4o Mini TTS
  • elevenlabs-flash — ElevenLabs fast (low latency)
  • elevenlabs-v2 — ElevenLabs Multilingual v2 (highest quality)
string
required
The text to synthesize. Maximum length depends on model (typically 5,000 characters).
string
Voice identifier. Available voices depend on the model. See examples below.
number
default:"1.0"
Speaking speed multiplier. Range: 0.52.0.
string
default:"mp3"
Output audio format: mp3, wav, ogg

Available Voices

OpenAI TTS

alloy, echo, fable, onyx, nova, shimmer

ElevenLabs

ElevenLabs supports hundreds of voices. Use common ones like rachel, adam, bella, josh or pass any ElevenLabs voice ID directly.

MiniMax TTS

male-qn-qingse, male-qn-jingying, female-shaonv, female-yujie (and more)

Request Example

Response


Speech-to-Text

Transcribe audio files to text using Whisper, GPT-4o Transcribe, or ElevenLabs Scribe.

Request

string
required
STT model:
  • whisper — Fast, multilingual, free
  • gpt-4o-transcribe — Highest accuracy
  • elevenlabs-scribe — Best for podcasts and meetings (diarization support)
string
required
URL to the audio file (MP3, WAV, OGG, M4A, FLAC). Max 25MB.
string
ISO 639-1 language code (e.g. en, ru, de). If omitted, the model auto-detects.
boolean
default:"false"
Speaker diarization (who said what). Only available with elevenlabs-scribe.

Request Example

Response