Forge is available: build a website with AI from your RodiumAi account.

Try Forge
xAI

xAI Text-to-Speech

Healthyaudiospeech
Context
-
Max output
-
Speed
Balanced
Quality
Standard
Released
2026-03-16
Input: / Output:
TextAudio

About this model

Expressive text-to-speech with over two dozen voices, speech tags, and multilingual support. xAI Text-to-Speech converts text into natural-sounding spoken audio with a single API call.

Pricing

RateRODIUSD (ref.)Unit
Per unit
Per 1K characters11.4~ 0.015per 1K characters (RODI/1K chars, USD/1K chars)

RODI prices include RodiumAi markup and upstream fees. USD figures are wholesale reference rates.

Providers & pricing

ProviderInputOutputCachedFree tierStatus
Runware

Runware

Default

All rates (1)
  • Per 1K characters11.4 RODI/1K chars
----No data

Capabilities

Streaming
Tool calling
Vision
JSON mode
Reasoning

API usage

Synthesize speech with client.speech(): binary POST /v1/audio/speech.

Examples

…

RodiumAi SDK

speech() returns raw audio bytes (save to disk or stream to clients).

…

Use cases

  • Voice assistants, IVR menus and phone bots.
  • Narration of articles, newsletters and product tours.
  • Audio versions of notifications, receipts and alerts.
  • Voice-overs for videos, slides and e-learning.
  • Accessibility: read screen content aloud.

Notes

  • Endpoint: POST https://api.rodiumai.io/v1/audio/speech, the OpenAI Speech format. The response body is the audio file, not JSON: write the bytes to a file.
  • input and model are required. voice is optional. The OpenAI voice names (alloy, echo, nova, ...) are accepted for every model and are mapped to a comparable native voice when the model has its own voice library. Pass a native voice name to choose it precisely.
  • response_format accepts mp3, wav, flac, opus and pcm where the model supports them. Other values fall back to the model default.
  • speed is forwarded to models that support it.
  • Billing follows the pricing table above (per character or per token depending on the model). Keep each request to a few paragraphs and split long texts.
View all