Grok TTS · vercel
Generate speech with 5 expressive voices, speech tags, and telephony codecs.
Цена, $ $15.00 / 1M симв.
Уведомления о ценах
API
API, совместимый с OpenAI: подходят официальные SDK OpenAI с этим адресом. YOUR_API_KEY замените на свой ключ от провайдера.
| Адрес API | |
|---|---|
| Эндпоинт | |
| Модель (id в API) | |
curl
curl https://ai-gateway.vercel.sh/v1/audio/speech \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "spacexai/grok-tts", "input": "Hello!", "voice": "alloy"}'Python
import requests
r = requests.post(
"https://ai-gateway.vercel.sh/v1/audio/speech",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "spacexai/grok-tts",
"input": "Hello!",
"voice": "alloy"
},
)
print(r.json())JavaScript
const r = await fetch("https://ai-gateway.vercel.sh/v1/audio/speech", {
method: "POST",
headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify({
"model": "spacexai/grok-tts",
"input": "Hello!",
"voice": "alloy"
}),
});
console.log(await r.blob());Запрос (JSON)
{
"model": "spacexai/grok-tts",
"input": "Hello!",
"voice": "alloy"
}Ответ (JSON)
audio bytes (audio/mpeg)Адрес взят из списка моделей провайдера - сверьте с его документацией.
Source: AI Rate Card, https://airatecard.com/ru/c/offer%3Avercel%7Cspacexai/grok-tts, prices checked 2026-11-04; seller's page: https://vercel.com/ai-gateway/models/grok-tts
Технические данные
ID: offer:vercel|spacexai/grok-tts