Grok
Grok Text to speech

namth/grok-voice-latest

Model ID: namth/grok-voice-latest
Family
Grok
Context
Not specified
Per request
0.0156 $
Requests
0
Success
—
Tokens
0
Uptime
24h agoNow
7 days agoNow

Pricing

Per request
0.0156 $
Price history

Price levels previously applied. The row tagged "current" is the live price.

Current Since 12/10/2026 - 01:35:29
Per request0.0156 $
Supported endpoints
https://api.xah.io/v1/audio/speech
Method POST · application/json
Auth Bearer token (API key)
API kinds Text to speech

Notes

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

Share

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"
}

Try it

Send a prompt with your API key — uses real credits, streams back instantly.

Reviews & comments
★ 0.0 / 0 reviews
Loading reviews...
Contact Support
We are always ready to help you