Grok
Grok ข้อความเป็นเสียง

namth/grok-voice-latest

Model ID: namth/grok-voice-latest
ตระกูล
Grok
บริบท
ไม่ระบุ
ต่อคำขอ
0.53 ฿
คำขอ
0
สำเร็จ
—
โทเค็น
0
เวลาใช้งาน
24 ชม. ที่แล้วตอนนี้
7 วันที่แล้วตอนนี้

ราคา

ต่อคำขอ
0.53 ฿
ประวัติราคา

ระดับราคาที่เคยใช้ แถวที่ระบุ "ปัจจุบัน" คือราคาจริง

ปัจจุบัน ตั้งแต่ 12/10/2026 - 01:35:29
ต่อคำขอ0.53 ฿
Endpoint ที่รองรับ
https://api.xah.io/v1/audio/speech
เมธอด POST · application/json
การยืนยันตัวตน Bearer token (คีย์ API)
ประเภท 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"
}

ลองใช้

ส่ง prompt ด้วยคีย์ API ของคุณ — ใช้เครดิตจริง สตรีมกลับทันที

รีวิวและความคิดเห็น
★ 0.0 / 0 รีวิว
กำลังโหลดรีวิว...
ติดต่อฝ่ายสนับสนุน
เราพร้อมช่วยเหลือคุณเสมอ