Grok
Grok Text to speech

namth/grok-voice-latest

Model ID: namth/grok-voice-latest
Rodzina
Grok
Kontekst
Nie określono
Za request
0.0565 zł
Liczba użyć
0
Sukces
—
Tokeny
0
Uptime
24 godz. temuTeraz
7 dni temuTeraz

Cennik

Za request
0.0565 zł
Historia cen

Poziomy cen stosowane wcześniej. Wiersz oznaczony jako „bieżący” to cena obowiązująca.

Bieżąca Od 12/10/2026 - 01:35:29
Za request0.0565 zł
Obsługiwane endpointy
https://api.xah.io/v1/audio/speech
Metoda POST · application/json
Autoryzacja Bearer token (klucz API)
Rodzaje API Text to speech

Uwagi techniczne

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

Udostępnij

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

Wypróbuj

Wyślij prompt za pomocą swojego klucza API — zużywa realne środki, wynik jest streamowany natychmiast.

Oceny i komentarze
★ 0.0 / 0 ocen
Ładowanie ocen...
Skontaktuj się z pomocą
Zawsze jesteśmy gotowi, aby Ci pomóc