Grok
Grok 文字转语音

namth/grok-voice-latest

Model ID: namth/grok-voice-latest
模型系列
Grok
上下文
尚未更新
每次请求
0.105 ¥
调用次数
0
成功
—
Tokens
0
在线率
24小时前现在
7天前现在

价格表

每次请求
0.105 ¥
价格变更历史

曾经适用的价格级别。标记为当前的价格为现在生效的价格。

当前 自 12/10/2026 - 01:35:29
每次请求0.105 ¥
支持的Endpoint
https://api.xah.io/v1/audio/speech
方法 POST · application/json
身份验证 Bearer token(API key)
API类型 文字转语音

技术说明

Dùng tiếng Việt thì language=vi để cho kết quả tốt nhất.

分享

curl 'https://api.xah.io/v1/audio/speech' --output speech.mp3 \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "namth/grok-voice-latest",
    "input": "Hello world from Ckey AI",
    "voice": "alloy"
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/audio/speech', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "namth/grok-voice-latest",
    "input": "Hello world from Ckey AI",
    "voice": "alloy"
})
});
const audioBlob = await res.blob(); // Browser: player.src = URL.createObjectURL(audioBlob)
import json, requests

url = 'https://api.xah.io/v1/audio/speech'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = json.loads("{\n    \"model\": \"namth/grok-voice-latest\",\n    \"input\": \"Hello world from Ckey AI\",\n    \"voice\": \"alloy\"\n}")

res = requests.post(url, headers=headers, json=payload, stream=True, timeout=120)
res.raise_for_status()
with open('speech.mp3', 'wb') as audio:
    audio.write(res.content)
{
    "model": "namth/grok-voice-latest",
    "input": "Hello world from Ckey AI",
    "voice": "alloy"
}

快速试用

使用您的API key发送prompt — 消耗真实credit,结果实时流式返回。

评价与评论
★ 0.0 / 0 条评价
正在加载评价...
联系支持
我们随时为您提供帮助