xAI: Grok Voice API — Text to Speech

xai/grok-tts

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.

xAI's text-to-speech mode, with custom voice support.
ModalitiesTextAudio
Price$0.006 per 1K charactersAll 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.

ProviderPriceUnit
xAI$0.006per 1K characters

Capabilities (3)

StreamingVoice CloningEphemeral Tokens

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.

Price
$0.006
per 1K characters · standard price $0.015
Current discount
60%
off every rate
RateStandard priceChargedUnit
Per 1K characters$0.015$0.006per 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

Text to speechCustom voices

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.

Requests (30 days)
10
A success rate is shown from 100 completed requests
Days with traffic
4
of the last 30 days

Frequently asked questions

What is Grok Voice API — Text to Speech?
xAI's text-to-speech mode, with custom voice support.
How much does Grok Voice API — Text to Speech cost?
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). You pay per request, with no subscription.
How do I call Grok Voice API — Text to Speech through the API?
Send a POST request to https://api.oxyy.ai/v1/audio/speech with "model": "grok-tts", authenticated with your Oxyy API key. Put the text in "input" and choose a "voice"; the response body is the audio file.
What inputs and outputs does Grok Voice API — Text to Speech support?
Grok Voice API — Text to Speech accepts text as input and returns audio.
What other models does xAI have?
xAI also offers Grok 4.20 (0309) Non-Reasoning, Grok 4.20 (0309) Reasoning, Grok 4.20 (0309) Multi-Agent and Grok 4.3 through Oxyy.

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.

Explore more models

More models from xAI