SuperAPIAI Directory

API documentation

x.ai · AI developer platforms

Grok Voice API is a collection of voice capability interfaces provided by xAI, powered by the Grok model and aimed at building voice agents and voice processing applications. It mainly includes three types of capabilities: real-time speech-to-speech conversation (based on WebSocket, supporting low-latency turn-taking dialogue and tool calling), text-to-speech (offering a variety of expressive multilingual voices, supporting inline speech tags and output formats ranging from high-fidelity MP3 to telephony μ-law, and supporting single requests or WebSocket streaming), and speech-to-text (default model grok-voice-transcribe-2.0, supporting 15 audio formats, word-level timestamps, multiple channels, speaker diarization, Smart Turn end detection, and more than 38 languages). In addition, it supports cloning custom voices from short reference audio, and the generated voice_id can be used in scenarios where built-in voices apply, including streaming TTS and the real-time speech-to-speech API. Client applications can use Ephemeral Tokens to connect securely without exposing API keys. The official documentation emphasizes enterprise-grade reliability and sub-second latency, and provides compliance and security capabilities such as zero data retention, BAA, data processing agreements, EU data residency, regional processing, multi-region high availability, SAML SSO, role-based access, and audit logs.

Open website Alternatives
Monthly visits
38.9M+13.5%
Avg. visit2m 02s2.8 pages
AI referrals51.0%Chatbot referral share
Global rank#1,364
PlatformsWeb · iOS

Sources: DataForSEO · SimilarWeb · Snapshot 2026-10

About this tool

Grok Voice API is a collection of voice capability interfaces in the xAI documentation. All capabilities are powered by Grok and positioned as a voice API with enterprise-grade reliability and sub-second latency.

Purpose For developers who need to build voice agents or process voice data, it provides three core capabilities: real-time voice conversation, text-to-speech, and speech-to-text, along with custom voices, secure connections, and compliance support.

Main capabilities

  1. Real-time speech-to-speech conversation: Build real-time voice agents via WebSocket, supporting low-latency turn-taking dialogue and tool calling. Client applications can use Ephemeral Tokens to connect securely, avoiding exposure of API keys. The official documentation provides demo applications such as Web Agent, Twilio Phone Agent, WebRTC Agent, and iOS Tester App.
  2. Text-to-speech: Convert text to speech using a large number of expressive voices, supporting inline speech tags (laughter, whispering, pauses) and output formats ranging from high-fidelity MP3 to telephony μ-law, and supporting single requests or WebSocket streaming. The official documentation lists real-world cases such as LiveKit and Pipecat.
  3. Speech-to-text: Supports transcribing audio files with a single call or streaming transcription via WebSocket. The default model is grok-voice-transcribe-2.0, supporting 15 audio formats, word-level timestamps, multiple channels, speaker diarization, Smart Turn end detection, and more than 38 languages. The official documentation lists a real-world case with Voximplant.
  4. Custom voices: Voices can be cloned from short reference audio, and the generated voice_id can be used in any scenario where built-in voices apply, including streaming TTS WebSocket and the speech-to-speech real-time API.
  5. Built-in voices: Both the speech-to-speech API and text-to-speech can use the full set of built-in voices. Each voice has its own personality and tone, and all can speak all supported languages. The default voice is eve.

Usage Real-time speech-to-speech connects via WebSocket; text-to-speech supports single requests or WebSocket streaming; speech-to-text supports single calls or WebSocket streaming. For client applications, it is recommended to use Ephemeral Tokens to establish secure connections. Custom voices require first cloning from short reference audio to obtain a voice_id, and then using it in interfaces that support built-in voices.Usage. The documentation provides a REST reference and quick start (custom voice), among other content.

Applicable scenarios Suitable for building real-time voice agents, telephony voice agents, WebRTC voice applications, applications requiring multilingual expressive speech synthesis, and speech processing scenarios requiring batch or streaming transcription, speaker diarization, and word-level timestamps. Official demos cover Web, Twilio telephony, WebRTC, and an iOS test application.

Limitations and compliance The documentation states that under zero data retention (ZDR), all audio data is processed in real time, neither stored nor used for training; audit controls for security, availability, and confidentiality are provided; a BAA can be provided for healthcare applications processing PHI; a data processing agreement and EU data residency options are provided; regional processing is supported to meet compliance requirements; enterprise-grade multi-region infrastructure and custom SLAs; SAML SSO, role-based access, and audit logs are supported. Specific pricing, quotas, and detailed parameters for each interface are not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools