One API for chat, image, video, and speech modelsOpenAI-compatibleCard or cryptoCredit never expiresRead the docs
Speech price
First audio
median latency
Completion
median duration
01RoutesLoading
02Capabilities
Input
text
Output
audio
Context
—
Max output
—
Streaming
03Quick start

Call it with your RProuter key

Any OpenAI-compatible SDK works. Point it at the RProuter base URL from your API keys page and use this model ID.

curl "$RPROUTER_BASE_URL/audio/speech" \
  -H "Authorization: Bearer $RPROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model":"fish/s2-pro","voice":"YOUR_RPROUTER_VOICE_ID","input":"Every story starts somewhere.","response_format":"mp3"}' \
  --output speech.mp3
04Example request and response

Request

POST /v1/audio/speech
Authorization: Bearer YOUR_RPROUTER_KEY

{
  "model": "fish/s2-pro",
  "voice": "YOUR_RPROUTER_VOICE_ID",
  "input": "Every story starts somewhere.",
  "response_format": "mp3"
}

Response

200 OK

Content-Type: audio/mpeg
Transfer-Encoding: chunked
x-request-id: b0e4f7d2-91c3-4a6e-8d15-7f2a9c3e5b18

<streamed MP3 audio>