Core concepts
Text to speech
Send JSON with model and input; receive audio bytes (e.g. mp3). Billed in RODI.
POST
https://api.rodiumai.io/v1/audio/speechCall POST /v1/audio/speech with a TTS model id. The OpenAI SDK audio.speech.create helper works when base_url points at RodiumAi.
Voices & formats
Start with openai/tts-1 and voice alloy. Google TTS models (e.g. google/gemini-2.5-flash-preview-tts) are also available when listed in GET /v1/models.
Examples
…Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Required | TTS model id (e.g. openai/tts-1, google/gemini-2.5-flash-preview-tts). |
| input | string | Required | Text to synthesize into speech. |
| voice | string | Optional | Voice id when supported (e.g. "alloy", "nova"). |
| response_format | string | Optional | Audio format when supported (e.g. "mp3", "opus", "wav"). |
| speed | number | Optional | Playback speed multiplier when supported (typically 0.25–4.0). |
| instructions | string | Optional | Optional speaking style / delivery instructions when the model supports them. |