Text-to-Speech API

Send text, get base64 audio back. Choose between expressive multi-speaker Gemini TTS, xAI voices and open-source CosyVoice, all billed per character or minute.

Text to Speech models and pricing

ModelProviderContextPrice
Gemini 3.1 Flash TTS Preview gemini-3.1-flash-tts-previewGoogleJan 2025 cutoff$1.20 in / $24.00 out per 1M tokens
AppNZ CosyVoice 3 appnz-ttsAppNZ15K chars$10.00 / 1M chars
xAI Text to Speech xai-ttsxAI15K chars$15.00 / 1M chars

FAQ

What does the response look like?

JSON with a base64 audio field and a format field. Decode it and write it to a file, or play it from a data URL.

How do I get an API key?

Create an account and your first key is issued immediately. The same key works for every model and endpoint on OpenPaths.

How is it priced?

Prepaid, pay-as-you-go credits at close to provider list price with no subscription. The tables on this page are generated from the live OpenPaths model catalog.

Speech to Text Music Generation Chat Completions