xAI: Grok Voice API — Text to Speech
xAI Grok Voice API — Text to Speech pricing
Grok Voice API — Text to Speech costs $0.006 per 1K characters on Oxyy. That is the pay-as-you-go price after the current 60% discount (Launch Promo; standard price $0.015). It takes text as input and returns audio. For every xAI model and rate, see Grok API pricing.
Providers
Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.
| Provider | Price | Unit |
|---|---|---|
| xAI | $0.006 | per 1K characters |
Capabilities (3)
Pricing
What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.
| Rate | Standard price | Charged | Unit |
|---|---|---|---|
| Per 1K characters | $0.015 | $0.006 | per 1K characters |
Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.
Specifications
- Model ID
grok-tts- Developer
- xAI
- Type
- Text to speech
- Input
- Text
- Output
- Audio
- Tokenizer
- Grok
- Series
- Grok Voice
- Endpoint
/v1/audio/speech
Best for
Quickstart
Call grok-tts with a POST to /v1/audio/speech on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.oxyy.ai/v1",
api_key=os.environ["OXYY_API_KEY"],
)
with client.audio.speech.with_streaming_response.create(
model="grok-tts",
voice="alloy",
input="Hello from Oxyy.",
response_format="mp3",
) as response:
response.stream_to_file("speech.mp3")Availability
The share of requests to this model that completed successfully over the last 30 days. Requests the caller cancelled, and requests still in flight, are not counted. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.
Frequently asked questions
What is Grok Voice API — Text to Speech?
How much does Grok Voice API — Text to Speech cost?
How do I call Grok Voice API — Text to Speech through the API?
What inputs and outputs does Grok Voice API — Text to Speech support?
What other models does xAI have?
Alternatives to Grok Voice API — Text to Speech
Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.


