xAI: Grok Voice API — Text to Speech
xai/grok-tts
xAI Grok Voice API — Text to Speech pricing
在Oxyy上,Grok Voice API — Text to Speech花费$0.006每 1K 个字符。 这是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $0.015). 它接受 text 作为输入并返回 audio。 For every xAI model and rate, see Grok API 定价.
xAI's text-to-speech mode, with custom voice support.
模态文本音频
供应商
此模型的运行位置以及每个路由的费用。请求会自动发送到健康的提供商;如果某个提供商出错,网关会自动重试提供相同模型的另一个提供商。
| 提供方 | 价格 | 单位 |
|---|---|---|
| xAI | $0.006 | 每 1K 个字符 |
功能特性 (3)
流式传输Voice CloningEphemeral Tokens
定价
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.
价格
$0.006
每 1K 个字符 · standard price $0.015
当前折扣
60%
所有费率优惠
| 费率 | 标准价格 | 已扣费 | 单位 |
|---|---|---|---|
| 每 1K 字符 | $0.015 | $0.006 | 每 1K 个字符 |
折扣。 收费费率已包含所有费率的当前 "Launch Promo" 60% 折扣。
规格
- Model ID
grok-tts- 开发者
- xAI
- 类型
- 文本转语音
- 输入
- 文本
- 输出
- 音频
- 分词器
- Grok
- 系列
- Grok Voice
- 端点
/v1/audio/speech
最适合
文本转语音Custom voices
快速入门
调用 grok-tts 通过 POST 请求发送至 /v1/audio/speech 开启 https://api.oxyy.ai,使用来自的 Oxyy API key OXYY_API_KEY 环境变量。 同一密钥适用于目录中的所有模型。
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")可用性
过去一段时间内成功完成的该模型请求占比 30 天。 调用方取消的请求以及仍在处理中的请求不计入统计。 当上游供应商出错时,网关会自动重试提供同一模型的其他供应商,因此单个供应商的故障不一定会在此处显示。
请求数 (30 天)
13
成功率基于 100 个已完成的请求
有流量的天数
8
在过去的 30 天内
常见问题
什么是 Grok Voice API — Text to Speech?
xAI's text-to-speech mode, with custom voice support.
Grok Voice API — Text to Speech 的价格是多少?
在Oxyy上,Grok Voice API — Text to Speech花费$0.006每 1K 个字符。 这是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $0.015). 按请求付费,无需订阅。
如何通过 API 调用 Grok Voice API — Text to Speech?
向 https://api.oxyy.ai/v1/audio/speech 发送带有 "model": "grok-tts" 的 POST 请求,并使用你的 Oxyy API key 进行身份验证。 Put the text in "input" and choose a "voice"; the response body is the audio file.
Grok Voice API — Text to Speech 支持哪些输入和输出?
Grok Voice API — Text to Speech 接受 text 作为输入并返回 audio。
xAI 还有哪些其他模型?
xAI 还通过 Oxyy 提供 Grok 4.3, Grok 4.5, Grok 4.6 and Grok 4.7。
替代方案: Grok Voice API — Text to Speech
其他供应商提供的同类模型,按价格从低到高排序。在 Oxyy 上按需付费,使用相同的 API Key。
Fish Audio S1High-quality 4-billion-parameter voice generation model with fine-grained parenthetical emotion control.text to speech · $0.006 per 1K charactersOpenAI: TTS-1Text-to-speech model optimized for realtime, low-latency use.text to speech · $0.006 per 1K charactersElevenLabs: Eleven v4ElevenLabs' flagship speech synthesis model: 90+ languages, 10,000-character requests, multi-speaker dialogue, audio ta…text to speech · $0.0088 per 1K charactersGoogle: Gemini 2.5 Flash TTSFast and controllable text-to-speech for low-latency, cost-efficient applications and real-time assistants, with fine c…text to speech · 8K context · token 每 1M 收费 $0.200
探索更多模型
更多来自以下机构的模型 xAI
Grok 4.3Cost-efficient Grok model with a 1M token context window and a 20% Batch API discount.text · 1M context · $0.500 / $1.00 per 1M tokensGrok 4.5Previous-generation Grok flagship. Same standard input and output rates as Grok 4.6 but a cheaper cached-input rate.text · 500K context · $0.800 / $2.40 per 1M tokensGrok 4.6xAI's flagship model for code and everything else: agentic tool calling, minimal hallucinations, configurable reasoning.text · 500K context · $0.800 / $2.40 per 1M tokensGrok 4.7Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particu…text · 500K context · $0.800 / $2.40 per 1M tokensGrok Imagine ImagexAI's low-cost image generation and editing model, flat-priced across resolutions.image generation · $0.008 per imageGrok Imagine Image 2.0xAI's recommended image generation and editing model. Text and image in, image out.image generation · Not yet priced


