generation

Generate voice / text-to-speech (synchronous)

Synchronous voice synthesis — returns an audio URL directly. Also available at /tts. Requires a valid API key (bearer) or session.

post/v1/tts

Request

  • Base URL: https://varosity.ai/api
  • URL: https://varosity.ai/api/v1/tts
  • Auth: HTTP bearer

Request body

textstring required
voiceIdstring

Voice ID; defaults to the house voice.

voiceModelstring

Voice model ID from GET /v1/models (e.g. openai-tts-1, cartesia-sonic-3.6, deepgram-aura-2, fish-audio-tts). Defaults to ElevenLabs.

format'mp3' | 'wav' | 'ogg' | 'opus' | 'aac' | 'flac' | 'pcm'

Output format hint; providers map what they support.

speednumber

Playback speed (OpenAI 0.25–4.0; others ignore).

providerOptionsobject

Advanced per-voice knobs (Cartesia language/emotion, Fish prosody, Deepgram encoding). Full field list per model: /docs/provider-options.

Response

Audio generated

okboolean
audioUrlstring uri

Changes

No recorded changes to this operation across all 1 revision of this API.