Grok TTS(文字转语音)
xAI 的语音合成模型,经 Cloudflare 平台直接计费、免额外 Key,落在每日免费额度内即可免费合成语音。模型 id:xai/grok-tts。
Grok text-to-speech free on Cloudflare — natural voices within the daily allowance, no extra key.
xAI 的语音合成模型,经 Cloudflare 平台直接计费、免额外 Key,落在每日免费额度内即可免费合成语音。模型 id:xai/grok-tts。
文字转语音由 Cloudflare 账户直接计费、免任何额外 Key,落在每日免费额度内即可免费合成。模型 id:xai/grok-tts。
const res = await env.AI.run('xai/grok-tts', {
text: 'Hello from Grok on Cloudflare.',
});curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/xai/grok-tts \
-H "Authorization: Bearer $CF_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text":"Hello from Grok on Cloudflare."}' --output speech.mp3