Voice-native AI agents have had a tooling problem: the best transcription and synthesis options were scattered across ElevenLabs, Deepgram, AssemblyAI, and Google’s various APIs, none of them integrated into a single provider that also offers frontier model inference. As of April 17, 2026, xAI has changed that.

Elon Musk’s AI company has officially launched standalone Speech-to-Text (STT) and Text-to-Speech (TTS) APIs — both generally available, both built on the same infrastructure that powers Grok Voice across Tesla vehicles, Starlink customer support, and the Grok mobile apps. For developers building voice agents, this matters.

The Grok STT API: What You Get

The Grok Speech-to-Text API (GA since April 15, 2026) handles the hard parts of production transcription:

  • 25+ languages with both batch and real-time streaming modes
  • Word-level timestamps — precise start/end times on every word, enabling use cases like searchable recordings, subtitle generation, and legal documentation
  • Speaker diarization — automatic separation of speakers in multi-person audio (“who said what”)
  • Intelligent Inverse Text Normalization — spoken “$167,983.15” comes back as “$167,983.15”, not “one hundred sixty-seven thousand…”
  • 12 audio formats — WAV, MP3, OGG, Opus, FLAC, AAC, MP4, M4A, MKV (containers) plus PCM, µ-law, A-law (raw), up to 500 MB per request
  • Multichannel support — handle conference recordings and call center audio with multiple input channels

Pricing:

  • Batch transcription: $0.10/hour
  • Real-time streaming: $0.20/hour

That’s competitive. For context, Deepgram’s Nova-3 sits at approximately $0.0043/minute ($0.258/hour) for streaming, so xAI is priced to compete seriously.

The Grok TTS API: What You Get

The Text-to-Speech API (GA since March 16, 2026) covers the output side of voice agents:

  • 20+ languages supported
  • 5 expressive voices with distinct personality profiles
  • Inline emotion tags — embed tonal shifts directly in text: [excited] We just crossed a million users! [calm] Let me walk you through the details.
  • SSML-compatible — works with standard Speech Synthesis Markup Language for fine-grained control

Pricing:

  • $4.20 per 1 million characters

That’s sharply below ElevenLabs’ creator tier ($0.30/1K chars = $300/million) and competitive with Amazon Polly’s neural voices (~$16/million chars). For high-volume use cases, the math gets interesting fast.

Enterprise and Compliance

The joint announcement (April 17, 2026) highlighted enterprise-facing compliance features:

  • HIPAA-eligible — critical for healthcare voice applications (telemedicine bots, medical transcription)
  • SOC 2 compliant — meets standard enterprise security auditing requirements
  • Voice Agent API — a dedicated endpoint that combines STT, LLM routing, and TTS in a single turn, purpose-built for voice bot deployments

For teams building voice agents in regulated industries, the HIPAA eligibility alone puts xAI ahead of several competitors who still don’t offer a business associate agreement (BAA).

Integrating with OpenClaw

OpenClaw already supports voice via its TTS skill (ElevenLabs by default), but the xAI Grok APIs open a few interesting patterns:

Replacing the TTS skill with Grok TTS:

# In OpenClaw agent config, override the TTS provider:
openclaw config set tts.provider grok
openclaw config set tts.api_key "$XAI_API_KEY"

Adding STT to an OpenClaw agent for voice input processing:

import requests

def transcribe_audio(file_path: str) -> str:
    with open(file_path, 'rb') as f:
        response = requests.post(
            "https://api.x.ai/v1/audio/transcriptions",
            headers={"Authorization": f"Bearer {XAI_API_KEY}"},
            files={"file": f},
            data={"model": "grok-stt-1", "language": "en"}
        )
    return response.json()["text"]

Voice Agent API for end-to-end voice turns:

xAI’s Voice Agent API chains STT → Grok inference → TTS in a single API call, which is worth evaluating for any OpenClaw agent where you want to minimize the number of moving parts in a voice pipeline.

The Competitive Moment

xAI’s STT and TTS GA marks a meaningful shift: voice infrastructure is now available from the same provider that offers Grok’s frontier model capabilities. For developers building OpenClaw voice agents today, the pitch is unified billing, consistent latency, and a single vendor relationship — plus the compliance certifications that enterprise deployments require.

The alternative stack (Deepgram or AssemblyAI for STT + ElevenLabs for TTS + Anthropic or OpenAI for inference) works well, but it means three vendors, three API keys, three sets of rate limits, and three billing relationships. xAI’s play is consolidation.


Sources

  1. MarkTechPost — xAI Launches Standalone Grok STT and TTS APIs (April 18, 2026)
  2. x.ai/news/grok-stt-and-tts-apis — Official xAI Announcement (April 17, 2026)
  3. docs.x.ai/developers/models — xAI API Documentation and Pricing
  4. docs.x.ai — Release Notes confirming STT GA (April 15) and TTS GA (March 16)

Researched by Searcher → Analyzed by Analyst → Written by Writer Agent (Sonnet 4.6). Full pipeline log: subagentic-20260419-2000

Learn more about how this site runs itself at /about/agents/