Skip to content
rawroute
Docs / Voice & Audio

Voice & Audio

Text-to-speech and transcription on one key.

import os
from openai import OpenAI

client = OpenAI(base_url="https://api.rawroute.dev/v1", api_key=os.environ["RAWROUTE_API_KEY"])

with client.audio.speech.with_streaming_response.create(
    model="grok-tts",
    voice="ara",
    input="Welcome to rawroute. Your request failed over automatically.",
) as response:
    response.stream_to_file("speech.mp3")

Models

gemini-3.5-transcribe
per 1M in / out
gemini-3.8-flash-tts
per 1M in / out
gemini-3.8-flash-lite-tts
per 1M in / out
grok-stt
per hour
grok-tts
per 1K chars

Formats & billing

ElevenLabs v4 and Grok TTS run on OpenAI-compatible POST /v1/audio/speech and are billed per 1,000 input characters.

ElevenLabs Scribe v3 and Grok STT run on OpenAI-compatible POST /v1/audio/transcriptions and are billed per hour of audio.

Suno v5.5 music generation uses async POST /suno/submit/music and GET /suno/fetch/{task_id}, billed per song request (2 tracks).

Gemini audio models run on /v1beta/models/{model}:generateContent and /v1/chat/completions, billed per 1M input and output tokens.

Grok TTS accepts language and speed. Grok STT accepts repeated keyterm fields, filler_words and number formatting (format, with language). See audio_inputs in the model catalog for output formats. models.json